/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #0d1117;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: #1a2332;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.nav-title {
    font-size: 1.4rem;
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

/* 导航栏内电话按钮 */
.nav-call-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: white !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    transition: all 0.3s ease !important;
}
.nav-call-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.5);
    color: white !important;
}

/* 首页横幅 */
.hero {
    background:
        linear-gradient(rgba(10, 15, 25, 0.72), rgba(13, 17, 27, 0.78)),
        url('./images/hero-banner.jpg');
    background-size: cover;
    background-position: center center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s 0.3s;
    animation-fill-mode: both;
}

.btn-primary {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    animation: fadeInUp 1s 0.6s;
    animation-fill-mode: both;
}

.btn-primary:hover {
    background: #c0392b;
}

/* 滚动引导 - 在hero区域内 */
.scroll-hint {
    margin-top: 2.5rem;
}

.scroll-hint-content {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    animation: fadeInUp 1s ease both;
}

.scroll-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 2px;
    white-space: nowrap;
}

.scroll-arrow {
    color: rgba(255,255,255,0.35);
    animation: bounceDown 1.8s ease infinite;
    line-height: 1;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); opacity: 0.35; }
    50% { transform: translateY(6px); opacity: 0.7; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 产品展示 */
.products-section {
    padding: 80px 0;
    background: #111827;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

/* 平板以上恢复更宽松的布局 */
@media (min-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

/* 大屏每行3个 */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* 年份筛选标签栏 */
.year-filter-bar {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* 产品搜索栏 */
.product-search-bar {
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.product-search-bar input {
    width: 100%;
    padding: 12px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    color: #f1f5f9;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.product-search-bar input::placeholder {
    color: #64748b;
}

.product-search-bar input:focus {
    border-color: #f39c12;
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 16px rgba(243,156,18,0.15);
}

.year-filter-btn {
    padding: 10px 28px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    background: rgba(255,255,255,0.05);
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 1px;
    flex: 0 0 calc(33.333% - 0.67rem);
    text-align: center;
}

.year-filter-btn:hover {
    border-color: #f39c12;
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.year-filter-btn.active {
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.4);
}

.product-card {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.product-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: 65% center; /* 向右偏移，聚焦门体 */
    display: block;
    transition: transform 0.6s ease;
}

/* 图片悬停放大效果 */
.product-card:hover .product-image {
    transform: scale(1.08);
}

/* 产品信息 - 浮在图片底部的渐变遮罩层 */
.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.8rem 1.8rem;
    /* 从透明到深色的渐变背景 */
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(30, 41, 59, 0.85) 50%,
        rgba(51, 65, 85, 0.4) 80%,
        transparent 100%
    );
    color: white;
}

.product-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* 门型标签 */
.door-type-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    white-space: nowrap;   /* 标签文字禁止换行 */
    flex-shrink: 0;        /* flex容器里不被压缩 */
}

.door-type-tag.type-single {
    background: rgba(52, 152, 219, 0.85);
    color: #fff;
}

.door-type-tag.type-double {
    background: rgba(231, 76, 60, 0.85);
    color: #fff;
}

.door-type-tag.type-cast-aluminum {
    background: linear-gradient(135deg, #d4a574, #b8860b);
    color: #fff;
}

.door-type-tag.type-smart-lock {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: #fff;
}

/* 年份标签（蓝色系） */
.door-type-tag.type-year {
    background: rgba(59,130,246,0.85);
    color: #fff;
}

.product-info p {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* 产品分类 */
.categories-section {
    padding: 80px 0;
    background: #16213e;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    background: rgba(255,255,255,0.12);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 年份徽章 */
.year-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    padding: 6px 20px;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
}

/* 铸铝门专属徽章（金色金属感） */
.cast-aluminum-badge {
    background: linear-gradient(135deg, #d4a574, #b8860b, #daa520);
    box-shadow: 0 2px 12px rgba(218, 165, 32, 0.4);
}

/* 铸铝门分类卡片（金色边框+微光效果） */
.cast-aluminum-card {
    background: rgba(218, 165, 32, 0.08) !important;
    border: 1px solid rgba(218, 165, 32, 0.25) !important;
}

.cast-aluminum-card:hover {
    border-color: rgba(218, 165, 32, 0.5) !important;
    box-shadow: 0 8px 24px rgba(218, 165, 32, 0.15) !important;
}

.year-count {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 4px 14px;
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.category-card p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    margin: 0.5rem 0;
}

/* 关于我们 */
.about-section {
    padding: 80px 0;
    background: #0d1b2a;
}

.about-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.about-text ul {
    list-style: none;
    margin-top: 1rem;
}

.about-text p {
    color: #cbd5e1;
}

.about-text li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: #cbd5e1;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.about-visual {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    display: block;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* 联系我们 */
.contact-section {
    padding: 80px 0;
    background: #111827;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #cbd5e1;
}

.contact-info a {
    color: #f39c12;
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

/* ===== 智能锁系列 ===== */
.smart-locks-section {
    padding: 80px 0;
    background: #0d1117;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.smart-locks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.smart-lock-card {
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.smart-lock-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.smart-lock-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.smart-lock-card:hover .smart-lock-image {
    transform: scale(1.05);
}

.smart-lock-info {
    padding: 1.5rem;
}

.smart-lock-info h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.smart-lock-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.feature-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.smart-lock-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255,255,255,0.06);
    color: #ffffff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #f39c12;
    background: rgba(255,255,255,0.1);
}

/* 联系表单按钮 */
.contact-form .btn-primary {
    margin-top: 0.5rem;
}

/* 页脚 */
.footer {
    background: #1a2332;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.92);
    /* flex 布局：内容整体上移，靠近关闭按钮 */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;     /* 从顶部开始排列 */
    padding: 48px 16px 16px;       /* 顶部留出关闭按钮空间即可 */
    box-sizing: border-box;
    overflow-y: auto;
}

.modal.show {
    display: flex;
}

.modal-content {
    display: block;
    max-width: 92%;
    max-height: 62vh;      /* 放大图片 */
    width: auto;
    height: auto;
    border-radius: 6px;
    transition: opacity 0.25s ease;
    margin-bottom: 4px;    /* 图片和caption固定间距 */
    flex-shrink: 0;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    width: 48px;
    height: 48px;
    line-height: 44px;
    text-align: center;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    z-index: 2001;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(231,76,60,0.9);
}

.modal-caption {
    margin: 0;             /* 去掉auto，防止flex分配多余空间 */
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    padding: 4px 0;
    height: auto;
    flex-shrink: 0;
}

/* 弹窗产品名 */
.modal-product-name {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* 弹窗寓意文字 */
.modal-meaning-text {
    font-size: 1.05rem;
    color: #e2e8f0;
    line-height: 1.7;
    margin-top: 0.6rem;
    text-align: justify;
    padding: 0 0.5rem;
}

/* 寓意标签 */
.meaning-label {
    display: inline-block;
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
    letter-spacing: 1px;
}

/* 弹窗内单门/子母门切换按钮 */
.door-switch-bar {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.door-switch-btn {
    padding: 8px 28px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    letter-spacing: 2px;
    white-space: nowrap;   /* 禁止按钮文字换行 */
}

.door-switch-btn:hover {
    color: #f8fafc;
    background: rgba(243,156,18,0.15);
}

.door-switch-btn.active {
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: #ffffff;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 回到顶部按钮 ===== */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 80px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: none; /* 默认隐藏，JS控制显示 */
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 899;
}
.back-to-top.show {
    display: flex;
    animation: fadeInUp 0.3s ease both;
}
.back-to-top:hover {
    background: rgba(243, 156, 18, 0.25);
    border-color: rgba(243, 156, 18, 0.4);
    color: #f39c12;
    transform: translateY(-2px);
}

/* ===== 懒加载占位样式 ===== */
.lazy-img {
    opacity: 0;
    transition: opacity 0.5s ease;
    min-height: 200px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.lazy-img.loaded,
.lazy-img[src]:not([data-src]) {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-logo {
        height: 24px;
    }

    .nav-title {
        font-size: 0.85rem;
        letter-spacing: 0;
    }

    /* 手机端：两行布局 - 第一行logo+标题，第二行导航 */
    .nav-container-mobile {
        display: flex;
        flex-direction: column !important;
        align-items: center;
        gap: 6px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .navbar {
        padding: 6px 0;
    }

    .nav-brand {
        flex-shrink: 0;
        gap: 8px;
        justify-content: center;
    }

    .nav-menu {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 0;
        width: 100%;
    }

    .nav-menu li {
        border: none;
    }

    .nav-menu li a {
        display: block;
        padding: 5px 7px;
        font-size: 0.78rem;
        border-radius: 14px;
        background: rgba(255,255,255,0.08);
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .nav-menu li a:hover,
    .nav-menu li a:focus {
        background: rgba(243,156,18,0.25);
        color: #f39c12;
    }

    .hero {
        height: 70vh;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* 手机上图片完整显示 */
    .product-image {
        height: 200px;
        object-fit: contain;
        object-position: center center;
    }

    /* 手机端卡片信息区精简 */
    .product-info {
        padding: 0.8rem 1rem 1rem;
        background: linear-gradient(
            to top,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(30, 41, 59, 0.8) 60%,
            transparent 100%
        );
    }

    .product-info h3 {
        font-size: 0.95rem;
        margin-bottom: 0;
        flex-wrap: wrap !important;  /* 空间不够时标签换到下一行 */
        gap: 4px;
        align-items: center;
    }

    .product-name-text {
        white-space: nowrap;  /* 产品系列名本身不换行 */
    }

    /* 手机端门型标签 */
    .door-type-tag {
        font-size: 0.6rem;
        padding: 1px 5px;
        letter-spacing: 0;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* 手机端弹窗切换按钮缩小内边距，防止溢出 */
    .door-switch-btn {
        padding: 6px 14px;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .product-info p {
        display: none; /* 手机端隐藏寓意描述 */
    }

    /* 手机端弹窗寓意排版优化 */
    .modal-product-name {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
        letter-spacing: 1px;
    }

    .modal-meaning-text {
        font-size: 0.88rem;
        line-height: 1.55;
        margin-top: 0.4rem;
        padding: 0 0.3rem;
        text-align: left;      /* 手机端左对齐更易读 */
        text-indent: 0;        /* 取消缩进 */
    }

    .meaning-label {
        font-size: 0.65rem;
        padding: 1px 6px;
        margin-right: 4px;
        border-radius: 3px;
    }

    .modal {
        padding: 42px 12px 8px;  /* 顶部紧贴关闭按钮，底部更少 */
    }

    .modal-content {
        max-width: 96%;
        max-height: 62vh;         /* 手机端图片最大化 */
        border-radius: 4px;
        margin-bottom: 2px;
    }

    .modal-caption {
        width: 96%;
        padding: 2px 0;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        margin-top: 2rem;
    }

    .stat-item {
        padding: 1rem 0.5rem;   /* 缩小内边距，让文字紧凑 */
        border-radius: 8px;
        text-align: center;
    }

    .stat-number {
        font-size: 1.8rem;      /* 手机端缩小数字 */
        font-weight: 800;
    }

    .stat-label {
        font-size: 0.78rem;     /* 手机端缩小标签 */
        margin-top: 0.3rem;
        white-space: nowrap;     /* 标签文字禁止换行 */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 确保手机上产品卡片两列 */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem;
    }

    /* 手机端去掉产品卡片圆角 */
    .product-card {
        border-radius: 4px !important;
    }

    /* 手机端年份筛选标签 - 去圆角，方正风格 */
    .year-filter-bar {
        gap: 0.5rem;
        margin-bottom: 0.6rem;
    }

    .product-search-bar {
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .product-search-bar input {
        padding: 10px 14px;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .year-filter-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
        border-radius: 4px !important;
        flex: 1 1 auto !important;
    }
}
