/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #f97316;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
}

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

img {
    max-width: 100%;
    display: block;
}

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

/* ===== 导航栏 ===== */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.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: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-menu a {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    color: var(--text-dark);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: #f0f9ff;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* ===== Hero 区域 ===== */
.hero {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #7dd3fc 100%);
    color: white;
    padding: 80px 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

.hero-visual {
    text-align: center;
    font-size: 12rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== Section 通用 ===== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 产品卡片 ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 220px;
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
}

.product-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-gray);
    text-decoration: line-through;
    margin-left: 6px;
}

/* ===== 特性区域 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ===== 分类区域 ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* ===== 页脚 ===== */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col a {
    color: #cbd5e1;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    background: var(--bg-light);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb .container {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 8px;
}

/* ===== 页面标题 ===== */
.page-header {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: white;
    padding: 60px 0;
    text-align: center;
}

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

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== 产品详情页 ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-gallery {
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-gallery .main-image {
    font-size: 15rem;
    animation: float 4s ease-in-out infinite;
}

.thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.thumb {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumb:hover,
.thumb.active {
    border-color: var(--primary);
}

.product-detail-info .category-tag {
    display: inline-block;
    background: #f0f9ff;
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.stars {
    color: #fbbf24;
    font-size: 1.1rem;
}

.rating-text {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.product-detail-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.product-detail-price .original {
    font-size: 1.2rem;
    color: var(--text-gray);
    text-decoration: line-through;
    margin-left: 12px;
    font-weight: 400;
}

.product-detail-desc {
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-specs {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.product-specs h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.spec-list {
    list-style: none;
}

.spec-list li {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.spec-list li:last-child {
    border-bottom: none;
}

.spec-label {
    width: 120px;
    color: var(--text-gray);
    font-weight: 500;
}

.spec-value {
    flex: 1;
    color: var(--text-dark);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.quantity-selector label {
    font-weight: 600;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--border);
}

.qty-input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-buy {
    flex: 1;
    min-width: 150px;
}

/* ===== 产品详情 Tab ===== */
.product-tabs {
    margin-top: 60px;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--border);
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 14px 24px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    line-height: 1.8;
    color: var(--text-dark);
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.tab-content p {
    margin-bottom: 16px;
    color: var(--text-gray);
}

.feature-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-gray);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== 相关产品 ===== */
.related-products {
    margin-top: 60px;
}

.related-products h2 {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

/* ===== 关于我们 ===== */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-visual {
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    font-size: 10rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.team-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.team-card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.team-card .role {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.team-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ===== 联系我们 ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: #f0f9ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-text h4 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.contact-text p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

/* ===== 筛选栏 ===== */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.products-count {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ===== 响应式 ===== */
@media (max-width: 968px) {
    .hero-content,
    .product-detail,
    .about-hero,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-visual {
        font-size: 8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-gallery .main-image {
        font-size: 10rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow);
        gap: 4px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        display: block;
        padding: 12px 16px;
    }

    .mobile-toggle {
        display: block;
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .product-detail-info h1 {
        font-size: 1.5rem;
    }

    .product-detail-price {
        font-size: 1.8rem;
    }
}

/* ===== 动画 ===== */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 通知提示 ===== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #10b981;
    color: white;
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}
