/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根元素 */
:root {
    --primary-color: #7c3aed;
    --secondary-color: #a78bfa;
    --accent-color: #c084fc;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --text-color: #374151;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* 基础样式 */
body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #7c3aed 0%, #c084fc 50%, #a78bfa 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 48px;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
}

/* 区块标题 */
.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 700;
}

.section-subtitle {
    font-size: 20px;
    text-align: center;
    margin-bottom: 50px;
    color: #6b7280;
}

/* 产品中心 */
.products-section {
    padding: 100px 20px;
    background: var(--light-color);
}

.product-categories {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    flex: 1 1 260px;
    max-width: 280px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.2);
}

.category-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.category-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.category-list {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.category-list li {
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    color: var(--text-color);
}

.category-list li:last-child {
    border-bottom: none;
}

.btn-detail {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 30px;
    font-size: 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn-detail:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

/* 热销产品 */
.featured-section {
    padding: 100px 20px;
    background: white;
}

.featured-products {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    flex: 1 1 260px;
    max-width: 280px;
    border: 2px solid #e5e7eb;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.15);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
}

.product-image {
    font-size: 72px;
    text-align: center;
    margin: 20px 0;
}

.product-name {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--dark-color);
    font-weight: 600;
}

.product-desc {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-buy {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 14px;
    font-size: 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn-buy:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

/* 关于我们 */
.about-section {
    padding: 100px 20px;
    background: var(--light-color);
}

.about-content {
    margin-top: 40px;
}

.about-text {
    text-align: center;
    margin-bottom: 60px;
}

.about-heading {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-description {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.features-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 35px 25px;
    flex: 1 1 260px;
    max-width: 280px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.15);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

.feature-desc {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.6;
}

/* 联系我们 */
.contact-section {
    padding: 100px 20px;
    background: white;
}

.contact-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-info {
    flex: 1 1 400px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    align-items: flex-start;
}

.info-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.info-text {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.8;
}

.info-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.info-text a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 表单 */
.contact-form {
    flex: 1 1 400px;
    background: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--dark-color);
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 20px;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 16px;
    font-size: 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

/* 页脚 */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-text {
    font-size: 18px;
    margin: 8px 0;
    opacity: 0.9;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 600px;
    position: relative;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 36px;
    font-weight: bold;
    color: #9ca3af;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--dark-color);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.modal-body {
    font-size: 20px;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
}

.modal-body li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.modal-body li:last-child {
    border-bottom: none;
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 18px;
    }

    .nav-menu {
        gap: 15px;
    }

    .nav-menu a {
        font-size: 16px;
    }

    .product-categories,
    .featured-products,
    .features-grid {
        gap: 20px;
    }

    .contact-container {
        gap: 30px;
    }

    .category-card,
    .product-card,
    .feature-item {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 18px;
    }

    .modal-content {
        margin: 20% auto;
        padding: 25px;
    }

    .logo {
        font-size: 24px;
    }
}
