/* ============================================
   METRIC PRO - 全局样式表
   版本：2.0
   说明：所有样式已去重、合并、按逻辑分组
   ============================================ */

/* ===== 1. CSS变量（全局设计令牌） ===== */
:root {
    --primary: #e11d48;          /* 品牌红 */
    --primary-hover: #be123c;
    --dark: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #eef2f6;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e1;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #1e293b;
    --white: #ffffff;
    --max-width: 1280px;
    --header-height: 64px;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 20px -8px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 20px -12px rgba(0,0,0,0.08);
}

/* ===== 2. 重置与基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.4;
    color: var(--gray-900);
    background: var(--white);
}

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

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 3. 按钮 ===== */
.btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.2);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gray-700);
    color: var(--white);
}
.btn-secondary:hover {
    background: var(--gray-900);
}

.btn-outline {
    border: 1.5px solid var(--gray-900);
    color: var(--gray-900);
    background: transparent;
}
.btn-outline:hover {
    background: var(--gray-900);
    color: var(--white);
    border-color: var(--gray-900);
}

/* ===== 4. 头部导航（桌面端） ===== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-200);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    min-height: var(--header-height);
}

.logo img {
    display: block;
    max-height: 50px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-weight: 500;
    color: var(--gray-900);
    font-size: 0.95rem;
    transition: color 0.2s;
    white-space: nowrap;
}
.main-nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--gray-900);
    line-height: 1;
    padding: 0 6px;
}

/* ===== 5. 下拉菜单（桌面端） ===== */
.dropdown {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    padding: 6px 0;
    margin-top: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 200;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    list-style: none;
}

.sub-menu li {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

.sub-menu a {
    display: block;
    width: 100%;
    padding: 10px 16px;
    color: var(--gray-700);
    font-weight: 450;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: nowrap;
    transition: background 0.2s;
}
.sub-menu a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

/* 桌面端悬停展开 */
@media (min-width: 769px) {
    .dropdown:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* ===== 6. 英雄区（Banner） ===== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
    background-color: var(--gray-900);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    width: 100%;
}

.hero-content h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--white) !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin: 0 auto 28px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ===== 7. 通用区块 ===== */
section {
    padding: 48px 0;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 36px;
    color: var(--dark);
}

/* ===== 8. 产品网格（全局） ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px 12px 20px;
    text-align: center;
    transition: all 0.25s ease;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.product-card img {
    border-radius: 14px;
    margin-bottom: 12px;
    width: 100%;
    height: auto;
}

.product-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 10px 0 6px;
    color: var(--gray-900);
    line-height: 1.3;
}

.product-card .price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    margin: 8px 0 0;
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.center-btn {
    text-align: center;
}

/* ===== 9. 面包屑 ===== */
.breadcrumb {
    padding: 16px 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.85rem;
}
.breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--primary);
}
.breadcrumb span {
    color: var(--gray-900);
    font-weight: 500;
}

/* ===== 10. 产品详情页（布局与图片轮播） ===== */
.product-detail {
    padding: 48px 0 40px;
}
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.product-images {
    background: var(--white);
    border-radius: 28px;
    padding: 20px 20px 16px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    user-select: none;
}

.carousel-main {
    position: relative;
    width: 100%;
    background: #fafafa;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: crosshair;
}

.carousel-main .main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.25s ease;
    background: var(--white);
    padding: 12px;
}

/* 轮播箭头 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--gray-900);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-weight: 300;
    padding: 0;
}
.carousel-btn:hover {
    background: var(--white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    border-color: rgba(0, 0, 0, 0.15);
}
.carousel-btn:active {
    transform: translateY(-50%) scale(0.94);
}
.carousel-btn.prev-btn { left: 12px; }
.carousel-btn.next-btn { right: 12px; }

/* 缩略图列表（自动换行） */
.thumbnail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
    padding: 4px 2px;
}
.thumbnail-list.empty {
    display: none !important;
}

.thumbnail {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    object-fit: cover;
    cursor: pointer;
    border: 2.5px solid transparent;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    background: var(--gray-50);
    padding: 2px;
}
.thumbnail:hover {
    transform: scale(1.04);
    border-color: var(--gray-400);
}
.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
    transform: scale(1.02);
}

/* 图片计数器 */
.image-counter {
    position: absolute;
    bottom: 14px;
    right: 16px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 30px;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
    z-index: 8;
    pointer-events: none;
}

/* 网状虚影选择框 */
.selector-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 15;
    border: 1.5px dashed rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.25);
    display: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
    transition: none;
}

/* ===== 11. 产品详情页（信息与悬浮缩放） ===== */
.product-info {
    position: relative;
}

.product-info h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--dark);
}
.sku {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 12px;
}
.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 16px 0;
}
.availability {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.in-stock {
    background: #e6f7e6;
    color: #2e7d32;
}

.product-description p {
    margin-bottom: 16px;
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.5;
}
.product-description ul {
    margin: 16px 0 24px;
    padding-left: 20px;
    list-style: disc;
    color: var(--gray-700);
    font-size: 0.9rem;
}
.product-description li {
    margin-bottom: 8px;
}

.btn-buy {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: var(--white);
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 8px;
}
.btn-buy:hover {
    background: var(--primary-hover);
}

/* 悬浮放大预览框（左上角固定，尺寸由JS控制） */
.zoom-preview {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 50;
    background: var(--white);
    border: 1px solid var(--gray-400);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    pointer-events: none;
}
.zoom-preview img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 50;
    transform-origin: 0 0;
    pointer-events: none;
    image-rendering: auto;
}

/* ===== 12. 规格表 ===== */
.product-specs {
    margin: 48px 0;
    background: var(--gray-50);
    border-radius: 28px;
    padding: 32px;
}
.product-specs h2 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    color: var(--dark);
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table tr {
    border-bottom: 1px solid var(--gray-300);
}
.specs-table th,
.specs-table td {
    text-align: left;
    padding: 12px 8px;
    font-size: 0.9rem;
}
.specs-table th {
    width: 30%;
    font-weight: 700;
    color: var(--gray-900);
}
.specs-table td {
    color: var(--gray-600);
}

/* ===== 13. 相关产品 ===== */
.related-products {
    margin-top: 56px;
}
.related-products h2 {
    font-size: 1.6rem;
    margin-bottom: 28px;
    color: var(--dark);
}
/* 相关产品复用 .product-grid 和 .product-card 样式（见第8节） */

/* ===== 14. 模态框（点击弹原图） ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 40px 20px;
    backdrop-filter: blur(4px);
}
.modal-overlay.active {
    display: flex;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    cursor: default;
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-content img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 20px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--gray-900);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.7);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    border: none;
    line-height: 1;
}
.modal-close:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.06);
}

/* ===== 15. About Teaser ===== */
.about-teaser {
    background: #fefaf6;
    text-align: center;
    border-radius: 32px;
    margin: 16px 0;
}
.about-teaser p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== 16. FAQ ===== */
.faq-list details {
    background: var(--white);
    border: 1px solid #eef2ff;
    border-radius: 18px;
    margin-bottom: 14px;
    padding: 12px 20px;
}
.faq-list summary {
    font-weight: 700;
    cursor: pointer;
    color: var(--dark);
    font-size: 0.95rem;
}
.faq-list details p {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

/* ===== 17. Contact Bar ===== */
.contact-bar {
    background: var(--gray-100);
    text-align: center;
    border-radius: 28px;
    margin-bottom: 20px;
}
.contact-details p {
    margin: 10px 0;
}

/* ===== 18. Footer ===== */
.site-footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 40px 0 24px;
    margin-top: 0;
}

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1rem;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 6px;
}
.footer-col a,
.footer-col p {
    font-size: 0.85rem;
    color: var(--gray-400);
}
.footer-col a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-900);
    font-size: 0.8rem;
}

/* ============================================
   响应式设计
   ============================================ */

/* ===== 平板及以下（≤ 768px） ===== */
@media (max-width: 768px) {
    /* 导航 */
    .nav-container {
        flex-wrap: wrap;
        gap: 8px;
    }

    .main-nav {
        flex: 1 1 100%;
        order: 3;
        display: none;
        background: var(--white);
        padding: 12px 0;
        border-top: 1px solid var(--gray-200);
    }
    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    .main-nav li {
        width: 100%;
    }
    .main-nav a {
        display: block;
        width: 100%;
        padding: 6px 0;
        font-size: 0.95rem;
        font-weight: 500;
    }

    .dropdown {
        width: 100%;
        position: relative;
    }

    .sub-menu {
        position: static;
        box-shadow: none;
        background: var(--gray-50);
        margin-top: 4px;
        margin-left: 12px;
        width: calc(100% - 12px);
        border-radius: var(--radius-md);
        padding: 4px 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        display: none;
        border: 1px solid #eef2ff;
        flex-direction: column;
    }
    .sub-menu.active-sub {
        display: flex;
    }
    .sub-menu a {
        padding: 8px 12px;
        font-size: 0.85rem;
        white-space: normal;
    }

    /* 移除桌面 hover 残留 */
    .dropdown:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .mobile-toggle {
        display: block;
    }
    .header-actions .btn-outline {
        display: none;
    }

    /* 英雄区 */
    .hero {
        min-height: 400px;
        padding: 40px 0;
    }
    .hero-content h1 {
        font-size: 1.8rem !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    }
    .hero-content p {
        font-size: 1rem;
    }

    /* 通用标题 */
    h2 {
        font-size: 1.6rem !important;
    }
    section {
        padding: 36px 0;
    }

    /* 产品详情页 */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .product-info h1 {
        font-size: 1.5rem;
    }
    .price {
        font-size: 1.8rem;
    }
    .product-specs {
        padding: 24px;
    }
    .specs-table th,
    .specs-table td {
        padding: 10px 4px;
    }
    .zoom-preview {
        display: none !important;
    }
    .selector-box {
        display: none !important;
    }
    .carousel-main {
        cursor: pointer;
    }

    /* FAQ & Contact */
    .faq-list details {
        padding: 12px 16px;
    }
    .contact-details {
        font-size: 0.9rem;
    }
}

/* ===== 手机小屏（≤ 640px） ===== */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .product-grid {
        gap: 20px;
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-col {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 1.6rem !important;
    }
}

/* ===== 超小屏（≤ 480px） ===== */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .logo img {
        max-height: 40px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
}
/* =====================
   Products Page 专属样式
   ===================== */

/* ---- 产品页英雄区 ---- */
.products-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}
.products-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.products-hero p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- 粘性分类导航 ---- */
.category-nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.75rem 0;
    position: sticky;
    top: var(--header-height);
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.92);
}

.category-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    justify-content: center;
}
.category-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.category-links a:hover {
    background: var(--gray-100);
    color: var(--primary);
}
.category-links a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ---- 产品分区 ---- */
.product-section {
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid var(--gray-200);
    scroll-margin-top: calc(var(--header-height) + 60px);
}
.product-section:last-of-type {
    border-bottom: none;
}

.product-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
.product-section h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--primary);
    margin-top: 6px;
    border-radius: 4px;
}

/* ---- 覆盖全局产品网格（产品列表页专用） ---- */
.product-section .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 0;
}

.product-section .product-card {
    padding: 1.2rem 1rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}
.product-section .product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.product-section .product-card img {
    max-height: 200px;
    object-fit: contain;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    margin-bottom: 0.8rem;
}

.product-section .product-card h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-900);
    line-height: 1.4;
    min-height: 2.8rem;
    margin: 0.5rem 0 0.3rem;
}

.product-section .product-card .price {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    background: #fef2f4;
    padding: 0.2rem 1.2rem;
    border-radius: 40px;
    margin-top: 0.3rem;
}

/* ---- 移动端适配 ---- */
@media (max-width: 768px) {
    .products-hero {
        padding: 2.5rem 0 2rem;
    }
    .products-hero h1 {
        font-size: 2rem;
    }
    .products-hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .category-nav {
        top: var(--header-height);
        padding: 0.5rem 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .category-nav::-webkit-scrollbar {
        display: none;
    }
    .category-links {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 1rem;
        gap: 0.3rem 0.8rem;
    }
    .category-links a {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
        white-space: nowrap;
    }

    .product-section {
        padding: 2rem 0 1.5rem;
        scroll-margin-top: calc(var(--header-height) + 50px);
    }
    .product-section h2 {
        font-size: 1.6rem;
    }

    .product-section .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.2rem;
    }
    .product-section .product-card {
        padding: 0.8rem;
    }
    .product-section .product-card h3 {
        font-size: 0.85rem;
        min-height: 2.4rem;
    }
    .product-section .product-card img {
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .product-section .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    .product-section .product-card img {
        max-height: 120px;
    }
    .product-section .product-card .price {
        font-size: 0.95rem;
        padding: 0.1rem 0.8rem;
    }
}

/* =====================
   Blog Page 专属样式
   ===================== */

/* ---- 博客头部 ---- */
.blog-header {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}
.blog-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.blog-header p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- 博客文章网格 ---- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    padding: 3rem 0 2rem;
}

/* ---- 博客文章卡片 ---- */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

/* 卡片图标/图片区 */
.blog-card-img {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-size: 3.2rem;
    line-height: 1;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}
/* 如果使用真实图片 */
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 卡片内容区 */
.blog-card-content {
    padding: 1.5rem 1.5rem 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--gray-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.blog-card-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}
.blog-card-content h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}
.blog-card-content h3 a:hover {
    color: var(--primary);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
}
.read-more:hover {
    color: var(--primary-hover);
    transform: translateX(4px);
}

/* ---- 移动端适配 ---- */
@media (max-width: 768px) {
    .blog-header {
        padding: 2.5rem 0 2rem;
    }
    .blog-header h1 {
        font-size: 2rem;
    }
    .blog-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0 1.5rem;
    }

    .blog-card-img {
        font-size: 2.4rem;
        padding: 1.8rem 1rem;
        min-height: 70px;
    }
    .blog-card-content {
        padding: 1.2rem 1.2rem 1.5rem;
    }
    .blog-card-content h3 {
        font-size: 1.05rem;
    }
    .blog-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        gap: 1rem;
    }
    .blog-card-img {
        font-size: 2rem;
        padding: 1.2rem 0.8rem;
        min-height: 60px;
    }
    .blog-card-content {
        padding: 1rem 1rem 1.2rem;
    }
    .blog-card-content h3 {
        font-size: 0.95rem;
    }
    .blog-date {
        font-size: 0.7rem;
    }
    .blog-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    .read-more {
        font-size: 0.85rem;
    }
}

/* =====================
   About Page 专属样式
   ===================== */

/* ---- 关于页英雄区 ---- */
.about-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}
.about-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.about-hero p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- 关于页面通用章节 ---- */
.about-section {
    padding: 3.5rem 0;
}

/* ---- 关于网格布局（两列） ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* 内容区 */
.about-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.2rem;
}
.about-content p {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.about-content p:last-child {
    margin-bottom: 0;
}

/* 高亮文字 */
.highlight {
    color: var(--primary);
    font-weight: 600;
}

/* 图片/图标占位区 */
.about-image {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--gray-700);
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    line-height: 1.6;
}
/* 如果使用真实图片 */
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* ---- 统计数字网格 ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem 0 3rem;
}

.stat {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}
.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.3rem;
}
.stat-label {
    font-size: 0.95rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* ---- 价值观列表 ---- */
.values-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 0.5rem;
}

.value-item {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all 0.3s ease;
}
.value-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.value-icon {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    line-height: 1;
}
.value-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.value-item p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ---- 团队网格 ---- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 0.5rem;
}

.team-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all 0.3s ease;
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.team-avatar {
    font-size: 3.6rem;
    line-height: 1;
    margin-bottom: 0.8rem;
}
.team-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.2rem;
}
.team-card .role {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* ---- 移动端适配 ---- */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-grid .about-image {
        order: -1; /* 图片在上，文字在下 */
        min-height: 180px;
    }
    .about-content h2 {
        font-size: 1.6rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .values-list {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 2.5rem 0 2rem;
    }
    .about-hero h1 {
        font-size: 2rem;
    }
    .about-hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .about-section {
        padding: 2.5rem 0;
    }

    .about-content p {
        font-size: 0.95rem;
    }
    .about-image {
        font-size: 1rem;
        min-height: 140px;
        padding: 2rem 1rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }
    .stat-label {
        font-size: 0.85rem;
    }

    .value-item {
        padding: 1.5rem 1rem;
    }
    .value-icon {
        font-size: 2.2rem;
    }
    .value-item h3 {
        font-size: 1rem;
    }
    .value-item p {
        font-size: 0.85rem;
    }

    .team-avatar {
        font-size: 2.8rem;
    }
    .team-card h4 {
        font-size: 1rem;
    }
    .team-card .role {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .about-hero h1 {
        font-size: 1.6rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        padding: 1rem 0 2rem;
    }
    .stat {
        padding: 1rem 0.5rem;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .stat-label {
        font-size: 0.75rem;
    }

    .values-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-section .container {
        padding: 0 16px;
    }
}
/* =====================
   Contact Page 专属样式
   ===================== */

/* ---- 联系页英雄区 ---- */
.contact-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}
.contact-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.contact-hero p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- 联系网格（两列：信息 + 表单） ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem 0 2rem;
}

/* ===== 左侧：联系信息 ===== */
.contact-info h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.8rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.6rem;
    line-height: 1.3;
    flex-shrink: 0;
    width: 2.4rem;
    text-align: center;
}

.info-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.2rem;
}
.info-content p {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0;
}
.info-content a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
.info-content a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* 社交链接 */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    margin-top: 0.2rem;
}
.social-links a {
    font-size: 0.95rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.2s;
}
.social-links a:hover {
    color: var(--primary);
}

/* ===== 右侧：联系表单 ===== */
.contact-form {
    background: var(--white);
    padding: 2rem 2rem 2.2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}
.contact-form h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

/* 表单组 */
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.3rem;
}
.form-group label .required {
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--gray-900);
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.08);
    background: var(--white);
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--gray-400);
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.form-group select {
    appearance: auto;
    cursor: pointer;
}

/* 提交按钮 */
.btn-submit {
    display: inline-block;
    width: 100%;
    padding: 0.85rem 2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}
.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}
.btn-submit:active {
    transform: translateY(0);
}
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 表单状态消息 */
.form-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    display: none;
}
.form-status.success {
    display: block;
    background: #e6f7e6;
    color: #2e7d32;
    border: 1px solid #b8e0b8;
}
.form-status.error {
    display: block;
    background: #fde8e8;
    color: #c62828;
    border: 1px solid #f5c6c6;
}
.form-status.info {
    display: block;
    background: #e3f0fd;
    color: #0d47a1;
    border: 1px solid #b8d4f0;
}

/* ---- 地图占位区 ---- */
.map-placeholder {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 0;
    margin: 2rem 0 3rem;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}
.map-placeholder iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: none;
}

/* ---- 移动端适配 ---- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0 1.5rem;
    }

    .contact-form {
        order: 1;
    }
    .contact-info {
        order: 2;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 2.5rem 0 2rem;
    }
    .contact-hero h1 {
        font-size: 2rem;
    }
    .contact-hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .contact-grid {
        gap: 1.5rem;
        padding: 1.5rem 0 1rem;
    }

    .contact-info h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    .info-item {
        gap: 0.75rem;
        margin-bottom: 1.2rem;
    }
    .info-icon {
        font-size: 1.3rem;
        width: 2rem;
    }
    .info-content p {
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1.5rem 1.2rem 1.8rem;
    }
    .contact-form h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 0.9rem;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    .form-group textarea {
        min-height: 100px;
    }

    .btn-submit {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }

    .map-placeholder {
        margin: 1rem 0 2rem;
    }
    .map-placeholder iframe {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 1.6rem;
    }
    .contact-hero p {
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1rem 0.8rem 1.5rem;
    }
    .contact-form h2 {
        font-size: 1.2rem;
    }

    .info-item {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    .info-icon {
        font-size: 1.1rem;
        width: 1.6rem;
    }
    .info-content h3 {
        font-size: 0.9rem;
    }
    .info-content p {
        font-size: 0.85rem;
    }

    .social-links {
        gap: 0.5rem 0.8rem;
    }
    .social-links a {
        font-size: 0.85rem;
    }

    .map-placeholder iframe {
        height: 180px;
    }
}
