* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.logo .tagline {
    font-size: 14px;
    opacity: 0.9;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255,255,255,0.2);
}

/* 顶部搜索条 */
.search-bar {
    display: flex;
    gap: 10px;
    margin: 15px auto 5px;
	width: 80%;
}

.search-bar input[type="text"] {
    flex: 1;
    height: 46px;
    padding: 0 16px;
    border-radius: 23px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
}

.search-btn {
    height: 46px;
    padding: 0 22px;
    border-radius: 23px;
    background: linear-gradient(135deg, #ffb75e 0%, #ed8f03 100%);
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 用户操作按钮 */
.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-login,
.btn-register {
    padding: 8px 20px;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover,
.btn-register:hover {
    background-color: white;
    color: #667eea;
}

/* 广告位 */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.banner-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: white;
    color: #667eea;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* 内容区域 */
.featured-section,
.recommended-section {
    padding: 60px 0;
}

.featured-section {
    background-color: white;
}

.recommended-section {
    background-color: #f9f9f9;
}

.search-results {
    background-color: #fff;
    padding: 30px 0 10px;
}

.no-results {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-top: 10px;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 15px auto;
    border-radius: 2px;
}

/* 卡片网格 */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.item-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #eee;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.item-card:hover .item-image img {
    transform: scale(1.1);
}

.item-content {
    padding: 20px;
}

.item-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
}

.location {
    font-size: 14px;
    color: #999;
}

.btn-detail {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-detail:hover {
    opacity: 0.9;
}

/* 栏目页面 */
.category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.category-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.category-header p {
    font-size: 18px;
    opacity: 0.9;
}

.category-content {
    padding: 60px 0;
    background-color: white;
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info h3 {
    margin-bottom: 10px;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-links a {
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: #bdc3c7;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

.footer-bottom p {
    margin: 5px 0;
}

.footer-bottom a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: white;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.detail-header {
    margin-bottom: 20px;
}

.detail-header h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.detail-item {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.detail-item strong {
    display: block;
    color: #667eea;
    margin-bottom: 5px;
}

.detail-item span {
    color: #333;
    font-size: 16px;
}

.detail-description {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 20px;
}

.detail-description h3 {
    margin-bottom: 10px;
    color: #333;
}

.detail-description p {
    color: #666;
    line-height: 1.8;
}

.detail-contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.detail-contact h3 {
    margin-bottom: 15px;
}

.detail-contact p {
    margin: 8px 0;
    font-size: 16px;
}

/* 表单弹窗样式 */
.modal-form {
    max-width: 600px;
}

/* 搜索弹窗样式 */
.modal-search {
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

/* 搜索加载中样式 */
.search-loading {
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 40px 0;
	color: #666;
}

.search-loading .spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(102, 126, 234, 0.2);
	border-top-color: #667eea;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 12px;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.modal-search h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.search-results-container {
    padding: 0;
}

.search-results-container .no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.search-results-container .no-results p {
    font-size: 16px;
    margin: 0;
}

.modal-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.form-container {
    padding: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[type="file"] {
    padding: 8px;
    border: 2px dashed #ddd;
    background-color: #f9f9f9;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: #667eea;
    background-color: #f0f0ff;
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.verify-code-group {
    display: flex;
    gap: 10px;
}

.verify-code-group input {
    flex: 1;
}

.btn-verify {
    padding: 12px 20px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s;
}

.btn-verify:hover {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.btn-verify:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.radio-label span,
.checkbox-label span {
    font-size: 14px;
    color: #333;
}

.radio-label a,
.checkbox-label a {
    color: #667eea;
    text-decoration: none;
}

.radio-label a:hover,
.checkbox-label a:hover {
    text-decoration: underline;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    opacity: 0.9;
}

.btn-cancel {
    padding: 12px 30px;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background-color: #e0e0e0;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.form-actions .btn-submit {
    flex: 1;
    margin-top: 0;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-footer p {
    color: #666;
    font-size: 14px;
}

.form-footer a {
    color: #667eea;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .user-actions {
        margin-top: 10px;
    }

    .banner-content h2 {
        font-size: 28px;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .verify-code-group {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }
}
