/* ========================================
   义乌圣诞产业带网站样式表
   Yiwu Christmas Industry Hub Stylesheet
   ======================================== */

/* --- 基础样式 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- 导航栏 --- */
.navbar {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 8px 16px;
    border-radius: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255,255,255,0.2);
}

/* --- 主横幅 --- */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #c41e3a 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 10px;
    opacity: 0.95;
}

.hero-content .subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- 按钮样式 --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #c41e3a;
    color: white;
}

.btn-primary:hover {
    background-color: #a01830;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #c41e3a;
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
    display: block;
}

/* --- 通用区块标题 --- */
.section-title {
    text-align: center;
    font-size: 36px;
    color: #1e3c72;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #c41e3a, #8b0000);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- 优势特色区 --- */
.features {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    color: #1e3c72;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* --- 产品预览区 --- */
.products-preview {
    padding: 80px 20px;
}

.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.category-image {
    font-size: 60px;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 20px;
    color: #1e3c72;
    margin-bottom: 8px;
}

.category-card p {
    color: #666;
    font-size: 14px;
}

/* --- 数据统计区 --- */
.stats {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 60px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* --- CTA 区域 --- */
.cta-section {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* --- 页脚 --- */
.footer {
    background-color: #1a1a2e;
    color: white;
    padding: 50px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #c41e3a;
}

.footer-section p {
    color: #bbb;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bbb;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #c41e3a;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
}

/* --- 页面头部 --- */
.page-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

.page-header .subtitle {
    font-size: 16px;
    margin-top: 15px;
    opacity: 0.8;
}

/* --- 产品页面 --- */
.products-section {
    padding: 60px 20px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #1e3c72;
    background: white;
    color: #1e3c72;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1e3c72;
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    color: #1e3c72;
    margin-bottom: 5px;
}

.product-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

.product-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    background: #f0f0f0;
    color: #666;
    border-radius: 15px;
    font-size: 12px;
}

.tag-primary {
    background: #c41e3a;
    color: white;
}

/* --- 关于我们页面 --- */
.about-section {
    padding: 60px 20px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 28px;
    color: #1e3c72;
    margin-bottom: 20px;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.stat-box .stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-box .stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.advantages-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.advantage-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.advantage-card h3 {
    font-size: 20px;
    color: #1e3c72;
    margin-bottom: 15px;
}

.advantage-card p {
    color: #666;
    line-height: 1.8;
}

.services-section {
    padding: 60px 20px;
}

.services-list {
    max-width: 900px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e9ecef;
}

.service-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-number {
    font-size: 36px;
    font-weight: 700;
    color: #c41e3a;
    min-width: 60px;
}

.service-content h3 {
    font-size: 22px;
    color: #1e3c72;
    margin-bottom: 10px;
}

.service-content p {
    color: #666;
    line-height: 1.8;
}

/* --- 联系我们页面 --- */
.contact-section {
    padding: 60px 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info h2 {
    font-size: 28px;
    color: #1e3c72;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 30px;
    min-width: 40px;
}

.contact-detail h3 {
    font-size: 18px;
    color: #1e3c72;
    margin-bottom: 5px;
}

.contact-detail p {
    color: #666;
    line-height: 1.6;
}

.business-hours {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

.business-hours h3 {
    font-size: 18px;
    color: #1e3c72;
    margin-bottom: 15px;
}

.business-hours p {
    color: #666;
    margin-bottom: 8px;
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.contact-form-wrapper h2 {
    font-size: 28px;
    color: #1e3c72;
    margin-bottom: 10px;
}

.form-description {
    color: #666;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3c72;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
}

.form-note p {
    color: #856404;
    font-size: 14px;
    margin: 0;
}

.form-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.map-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.map-placeholder {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 80px 20px;
    border-radius: 10px;
    text-align: center;
}

.map-content {
    max-width: 600px;
    margin: 0 auto;
}

.map-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.map-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.map-content p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.map-content .btn {
    margin-top: 25px;
}

/* --- 响应式设计 --- */
@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        padding: 5px 10px;
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .filter-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 32px;
    }
}
