@media (min-width: 1400px) {
    .container-xxl {
        max-width: 100%;
    }
}

/* ========== 全局变量与基础 ========== */
:root {
    /* 主色调：明亮红 + 深红渐变 */
    --primary: #E64B4B;
    --primary-dark: #C53030;
    --primary-glow: rgba(230, 75, 75, 0.3);
    /* 金色点缀提升高端感 */
    --gold: #F5A623;
    --gold-light: #FFD966;
    /* 文字色 */
    --secondary: #6B7280;
    --dark: #1F2937;
    /* 明亮背景 */
    --light: #FFFFFF;
    --gray-100: #F8F9FC;
    --gray-200: #F1F3F8;
    --gray-800: #374151;
    --transition-smooth: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    /* 轻盈阴影 */
    --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 15px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 25px 40px -12px rgba(0, 0, 0, 0.1);
    --border-radius-card: 1.5rem;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--secondary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
.ff-secondary {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--dark);
}

/* 标题装饰线 */
.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-title.text-primary {
    color: var(--primary) !important;
}

.section-title::before,
.section-title::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    margin-top: -1px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
}

.section-title::before {
    left: -55px;
}

.section-title::after {
    right: -55px;
}

.section-title.text-start::before,
.section-title.text-end::after {
    display: none;
}

.subtitle {
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ========== 按钮样式 ========== */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 40px;
    padding: 0.85rem 2rem;
    transition: var(--transition-smooth);
    border: none;
}

.btn-square {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(230, 75, 75, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(230, 75, 75, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-outline-light {
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
    background: white;
    color: var(--dark);
    border-color: white;
}

/* ========== 导航栏 ========== */
.navbar-dark {
    transition: all 0.3s ease;
}

.sticky-top.navbar-dark {
    background: rgba(31, 41, 55, 0.92) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.navbar-dark .navbar-nav .nav-link {
    font-weight: 500;
    margin-left: 28px;
    padding: 30px 0;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    color: var(--light) !important;
    text-transform: uppercase;
}

.navbar-dark .navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover:after,
.navbar-dark .navbar-nav .nav-link.active:after {
    width: 100%;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary) !important;
    /* 激活时字体变为主色 */
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    /* 可选：悬停时也变为主色 */
}

.navbar-dark .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-brand img {
    max-height: 45px;
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 999;
        background: transparent !important;
    }

    .sticky-top.navbar-dark {
        position: fixed;
        background: var(--dark) !important;
    }
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
    }

    .navbar-dark .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, .1);
    }

    .navbar-dark .navbar-nav .nav-link,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
    }

    .navbar-dark .navbar-brand img {
        max-height: 45px;
    }
}

/* 手机端下划线 */
@media (max-width: 991.98px) {
    .navbar-nav {
        /* 让菜单项左对齐，宽度自适应内容 */
        align-items: flex-start;
    }

    .navbar-dark .navbar-nav .nav-link {
        display: inline-block;
        /* 使宽度收缩到内容 */
        padding: 10px 0;
        margin-left: 0;
        position: relative;
    }

    .navbar-dark .navbar-nav .nav-link:after {
        bottom: 0;
        /* 下划线紧贴底部 */
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: width 0.3s;
    }

    .navbar-dark .navbar-nav .nav-link.active:after,
    .navbar-dark .navbar-nav .nav-link:hover:after {
        width: 100%;
    }
}

@media (max-width: 991.98px) {

    /* 为电话按钮增加左边距，避免与导航项紧贴 */
    .navbar .btn-primary {
        /* 可根据实际调整数值 */
        margin-top: 10px;
        /* 防止按钮文字折行 */
        white-space: nowrap;
    }
}

/* ========== Hero 区 ========== */
.hero-header {
    background: linear-gradient(105deg, rgba(31, 41, 55, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%), url(../img/bg-hero.webp);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-header .container {
    width: 100%;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-header img {
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.2));
    animation: rotate 20s infinite linear;
}

@media (max-width: 991.98px) {
    .hero-header {
        min-height: 100vh;
        padding: 6rem 0;
    }
}

/* 内页 Hero */
.page-header {
    background: linear-gradient(105deg, rgba(31, 41, 55, 0.7) 0%, rgba(0, 0, 0, 0.55) 100%), url(../img/bg-hero.webp);
    background-size: cover;
    background-position: center 30%;
    padding: 8rem 0 6rem;
    position: relative;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}

/* ========== 深色表单区 ========== */
.bg-dark-form {
    background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
    color: #fff;
}

.bg-dark-form .form-floating label {
    color: #A0AEC0;
}

.bg-dark-form .form-floating input::placeholder,
.bg-dark-form .form-floating textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ========== 二维码悬浮卡片 ========== */
.social-qr-wrapper {
    position: relative;
    display: inline-block;
}

.qr-hover-card {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    padding: 12px 8px;
    border-radius: 20px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    display: none;
    text-align: center;
    border: 1px solid rgba(230, 75, 75, 0.2);
    pointer-events: none;
}

.wechat-dual-qr {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.qr-hover-card img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #eee;
}

.qr-hover-card span {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
    color: var(--gray-800);
}

@media (hover: hover) and (pointer: fine) {
    .social-qr-wrapper:hover .qr-hover-card {
        display: block;
        animation: fadeInUp 0.2s ease;
    }
}

.touch-device .qr-hover-card {
    display: none !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ========== 页脚 ========== */
.footer {
    background: #1F2937;
    border-top: 1px solid rgba(245, 166, 35, 0.2);
}

.footer .btn-link {
    color: #CBD5E0;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer .btn-link:hover {
    color: var(--gold);
    letter-spacing: 1px;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--gold);
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* ========== 返回顶部 ========== */
.back-to-top {
    position: fixed;
    display: none;
    right: 35px;
    bottom: 35px;
    z-index: 99;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* 使用 flex 居中，替代 line-height */
    display: flex;
    align-items: center;
    justify-content: center;
    /* 移除原有的 line-height 和 text-align */
    line-height: 1;
    text-align: center;
}

.stat-number {
    white-space: nowrap;
}

/* ========== 服务卡片 ========== */
.service-item {
    background: #FFFFFF;
    border-radius: var(--border-radius-card);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    text-align: center;
    padding: 2rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.service-item i {
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.service-item h5 {
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    margin-bottom: 0.8rem;
}

/* ========== 门店卡片 ========== */
.store-card {
    background: #FFFFFF;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.2);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.store-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.store-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.store-card:hover .store-img {
    transform: scale(1.05);
}

.store-info {
    padding: 1.25rem;
    flex: 1;
}

.store-info h5 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.store-info p {
    color: #6B7280;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.store-address {
    font-size: 0.8rem;
    color: var(--primary-dark);
    border-top: 1px solid #EDF2F7;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

/* ========== 动态模块 ========== */
.dynamic-item {
    background: var(--gray-100);
    border-radius: 1.2rem;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.2rem;
    transition: all 0.35s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.02);
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    cursor: pointer;
}

.dynamic-item:hover {
    transform: translateX(8px);
    background: #FFFFFF;
    border-color: var(--primary);
}

.dynamic-date {
    min-width: 80px;
    background: rgba(230, 75, 75, 0.1);
    border-radius: 2rem;
    padding: 0.3rem 1rem;
    text-align: center;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.9rem;
    margin-right: 1.5rem;
}

.dynamic-content {
    flex: 1;
}

.dynamic-content h5 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.dynamic-content p {
    color: #6B7280;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.dynamic-arrow {
    color: var(--primary);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.dynamic-item:hover .dynamic-arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 992px) {
    .dynamic-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .dynamic-arrow {
        align-self: flex-end;
        opacity: 1;
        transform: translateX(0);
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* ========== 视频播放按钮（响应式增强版） ========== */
.video {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    /* 默认最小高度 */
    background: linear-gradient(rgba(15, 23, 43, .1), rgba(15, 23, 43, .1)), url(../img/bj1.webp);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 大屏设备 (≥1200px) */
@media (min-width: 1200px) {
    .video {
        min-height: 500px;
    }
}

/* 平板设备 (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .video {
        min-height: 420px;
    }
}

/* 手机横屏/小屏 (576px - 767px) */
@media (max-width: 767px) {
    .video {
        min-height: 350px;
    }
}

/* 手机竖屏 (≤575px) */
@media (max-width: 575px) {
    .video {
        min-height: 280px;
    }
}

/* 播放按钮在手机上的缩放 */
@media (max-width: 576px) {
    .video .btn-play {
        transform: translateX(-50%) translateY(-50%) scale(0.8);
    }

    .video .btn-play:before,
    .video .btn-play:after {
        width: 70px;
        height: 70px;
    }

    .video .btn-play span {
        border-left: 24px solid var(--light);
        border-top: 16px solid transparent;
        border-bottom: 16px solid transparent;
    }
}

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
    cursor: pointer;
    background: transparent;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    transition: all 200ms;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid var(--light);
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

/* 弹窗响应式（可选，增强体验） */
#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

@media (max-width: 768px) {
    #videoModal .modal-dialog {
        max-width: 90%;
        margin: 30px auto;
    }
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
    border: none;
    cursor: pointer;
}

@media (max-width: 576px) {
    #videoModal .close {
        right: -10px;
        top: -35px;
        width: 25px;
        height: 25px;
        font-size: 25px;
    }
}

/* 导航按钮脉冲动画 - 红色调 */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(230, 75, 75, 0.6);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(230, 75, 75, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(230, 75, 75, 0);
    }
}

.navbar .btn-primary {
    animation: pulse 1.5s infinite;
}

/* 硬件加速 */
.wow {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

/* ========== 新增公共卡片基类（供后续扩展） ========== */
.card-base {
    background: white;
    border-radius: var(--border-radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-base:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.gradient-icon {
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    display: inline-block;
}

.gradient-icon-sm {
    font-size: 2rem;
}

.gradient-icon-md {
    font-size: 2.5rem;
}

.gradient-icon-lg {
    font-size: 3rem;
}

/* ========== 合并小屏幕按钮样式（原 index.css 中 397px 媒体查询） ========== */
@media (max-width: 397px) {
    .hero-header .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .hero-header .btn-primary {
        margin-right: 0 !important;
    }
}

/* 悬浮大图浮层样式 - 优雅卡片效果 */
.menu-hover-zoom {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(230, 75, 75, 0.2);
    padding: 8px;
    backdrop-filter: blur(2px);
    transition: opacity 0.2s ease;
    opacity: 0;
    transform: translateY(8px);
    animation: zoomFadeIn 0.2s forwards;
}

@keyframes zoomFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-hover-zoom img {
    width: 480px;
    height: 480px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 卡片光标提示 */
.menu-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s;
}

.menu-card:active {
    transform: scale(0.98);
}

/* 移动端/触摸优化: 禁用悬停动画避免误触 */
@media (hover: none) and (pointer: coarse) {
    .menu-card {
        cursor: pointer;
    }

    .menu-hover-zoom {
        display: none !important;
    }
}

/* 大图模态框图片自适应 */
#menuImageModal .modal-content {
    background: transparent;
}

#menuImageModal .btn-close-white {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}


/* ========== 修复手机端横向滚动 ========== */
/* 手机端隐藏标题装饰线（根治溢出） */
@media (max-width: 768px) {

    .section-title::before,
    .section-title::after {
        display: none !important;
    }
}

/* ========== 分类导航滚动组件 (窄屏优化) ========== */
.category-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

/* 滚动按钮默认样式（宽屏下隐藏） */
.scroll-btn {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e9ecef;
    color: var(--primary, #E64B4B);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.scroll-btn:hover {
    background-color: var(--primary, #E64B4B);
    color: white;
    border-color: var(--primary, #E64B4B);
}

.scroll-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* 滚动容器 */
.nav-scroll-container {
    flex: 1;
    overflow-x: visible;
}

/* 分类列表基础样式 (宽屏换行居中) */
.category-nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: all 0.1s;
}

.category-nav-list .nav-item {
    display: inline-flex;
}

.category-nav-list .nav-link {
    white-space: nowrap;
}

/* 窄屏专用 (≤768px) 切换为滚动模式，隐藏滚动条 */
@media (max-width: 768px) {
    .scroll-btn {
        display: inline-flex;
    }

    .nav-scroll-container {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        /* 完全隐藏滚动条 */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .nav-scroll-container::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .category-nav-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: max-content;
        min-width: 100%;
        gap: 0.75rem;
        padding-bottom: 6px;
        /* 保持底部空间，避免裁剪 */
    }

    .category-nav-list .nav-item {
        flex-shrink: 0;
    }
}
