/* ========================================
   移动端适配 - 仅移动端生效，不影响PC端
   ======================================== */

/* --- 容器自适应 --- */
@media (max-width: 1200px) {
    .container {
        width: 100% !important;
    }
}

/* PC端隐藏移动端按钮 */
.mobile-search-btn,
.mobile-menu-btn,
.mobile-promo-btn {
    display: none;
}

/* PC端默认隐藏用户触发区头像 */
.user-avatar-trigger {
    display: none;
}

.mobile-category-entry {
    display: none !important;
}

/* --- 移动端切换断点 --- */
@media (max-width: 992px) {
    /* 隐藏PC端头部 */
    .logo-wrapper {
        display: none !important;
    }

    /* 隐藏PC端导航 */
    .navi-wrapper {
        display: none !important;
    }

    /* --- 轮播图响应式 --- */
    .banner-box {
        display: block !important;
    }

    .carousel .slick img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        object-fit: contain !important;
    }

    /* --- 最新动态 + 即买即用 --- */
    .news-wrapper {
        display: block !important;
    }

    .news-wrapper .news-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .news-wrapper .news-left {
        width: 100%;
        flex-shrink: var(--z-base);
    }

    .news-wrapper .news-label {
        display: none;
    }

    .news-wrapper .news-item {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .news-wrapper .service-features {
        width: 100%;
        justify-content: center;
        padding: 0 10px;
        box-sizing: border-box;
    }

    /* 隐藏PC端悬浮服务侧边栏 */
    .sidebar {
        display: none !important;
    }

    /* --- 顶部栏适配 --- */
    .top-bar {
        padding: 0 10px;
        min-height: 44px;
    }

    .top-desktop-welcome {
        display: none;
    }
    .top-mobile-logo {
        display: block;
        height: var(--space-lg);
        width: auto;
    }

    .top-right a span {
        display: none;
    }

    .top-right > a {
        width: var(--space-xl);
        height: var(--space-xl);
        padding: 0 !important;
        border: none !important;
        background: #f7f8fb !important;
        justify-content: center;
        border-radius: 50% !important;
        margin-left: 0;
    }

    .top-right {
        gap: 6px;
    }

    .top-right i {
        font-size: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .top-right a.btn-cart {
        display: none;
    }

    .mobile-site-btn {
        display: none;
    }

    .user-trigger {
        width: var(--space-xl);
        height: var(--space-xl);
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .user-trigger .fa-user {
        display: none;
    }
    .user-trigger span {
        display: none;
    }
    .user-avatar-trigger {
        display: inline-block;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        object-fit: cover;
    }

    /* --- 移动端图标按钮（PC隐藏） --- */
    .mobile-search-btn,
    .mobile-menu-btn,
    .mobile-desktop-btn {
        display: flex;
        width: var(--space-xl);
        height: var(--space-xl);
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border-radius: 50%;
        background: #f7f8fb;
        transition: background 0.2s;
    }

    .mobile-search-btn:hover,
    .mobile-menu-btn:hover,
    .mobile-desktop-btn:hover {
        background: #f5f5f5;
    }

    .mobile-search-btn i,
    .mobile-menu-btn i,
    .mobile-desktop-btn i,
    .mobile-promo-btn i {
        font-size: var(--font-size-card-title);
        color: var(--color-primary);
    }

    .mobile-promo-btn {
        display: flex;
        width: var(--space-xl);
        height: var(--space-xl);
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border-radius: 50%;
        background: #f7f8fb;
        transition: background 0.2s;
        position: relative;
        animation: promoPulse 2s ease-in-out infinite;
    }

    .mobile-promo-btn:hover {
        background: #f5f5f5;
        animation: none;
    }

    .mobile-promo-btn .promo-dot {
        position: absolute;
        top: -4px;
        right: -4px;
        width: 18px;
        height: 18px;
        background: var(--color-primary);
        color: var(--color-bg-card);
        font-size: 10px;
        font-weight: var(--font-weight-bold);
        line-height: 18px;
        text-align: center;
        border-radius: 50%;
        box-shadow: 0 2px 6px var(--color-primary-shadow);
        pointer-events: none;
        z-index: var(--z-base);
    }

    @keyframes promoPulse {
        0%, 100% { box-shadow: 0 0 0 0 var(--color-primary-shadow); }
        50% { box-shadow: 0 0 0 6px rgba(216, 55, 62, 0); }
    }

    /* --- 商品列表响应式 --- */
    .goods-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-base);
    }
    .goods-img-box {
        height: 170px;
    }
    .title-text {
        font-size: var(--font-size-h2);
    }

    /* --- FAQ常见问题页面响应式 --- */
    .faq-main {
        background: none !important;
    }
    .faq-main .faq-header {
        padding: 0px 12px;
        border: none;
        border-radius: 0;
        background: none;
        transition: none;
    }
    .faq-main .faq-header h1 {
        font-size: var(--font-size-h3);
        margin-bottom: 8px;
    }
    .faq-main .faq-header p {
        font-size: 15px;
    }
    .faq-main .faq-list {
        gap: var(--space-md);
    }
    .faq-main .faq-card {
        padding: 15px var(--space-md);
        border-radius: var(--radius-xl);
    }
    .faq-main .faq-number {
        font-size: var(--font-size-h2);
        min-width: 35px;
        margin-right: var(--space-md);
    }
    .faq-main .faq-icon-container {
        width: 60px;
        height: 45px;
        margin-right: var(--space-md);
        border-radius: var(--radius-md);
    }
    .faq-main .faq-title {
        font-size: 15px;
        gap: 6px;
    }
    .faq-main .faq-title .question-icon {
        font-size: var(--font-size-btn);
    }
    .faq-main .faq-meta {
        gap: 15px;
        font-size: var(--font-size-label);
        margin-top: 6px;
    }
    .faq-main .faq-status {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: var(--font-size-mini);
    }
    .faq-main .faq-content-area {
        padding: 15px 0;
    }
    .faq-main .faq-end-tip {
        padding: 20px 15px;
        font-size: var(--font-size-btn);
        margin-top: 5px;
    }

    /* FAQ页面隐藏底部链接栏，保留二维码 */
    body:has(.faq-main) .link-column {
        display: none;
    }
    body:has(.faq-main) .qrcode-section {
        border-top: none;
    }

    /* 文章详情页隐藏底部链接栏，保留二维码 */
    body:has(.article-container) .link-column {
        display: none;
    }
    body:has(.article-container) .qrcode-section {
        border-top: none;
    }

    /* 个人中心、我的订单、购物车、修改密码页面隐藏底部链接栏 */
    body:has(.user-center-wrapper) .link-column {
        display: none;
    }
    body:has(.user-center-wrapper) .qrcode-section {
        border-top: none;
    }
}

/* ========================================
   移动端侧边栏菜单
   ======================================== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--color-bg-card);
    z-index: var(--z-max);
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.show {
    left: 0;
}

.sidebar-header {
    padding: 15px 20px;
    background: var(--color-bg-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sidebar-logo {
    height: 40px;
    width: auto;
}

.sidebar-close {
    font-size: 20px;
    cursor: pointer;
    color: var(--color-primary);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 侧边栏快捷入口 / 常用功能 通用网格 */
.sidebar-shortcuts {
    margin-top: 8px;
    padding: 16px 20px 24px;
    border-top: 1px solid var(--color-border-light);
    flex-shrink: 0;
}
.sidebar-shortcuts-title {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: 12px;
}
.sidebar-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 4px;
}
.sidebar-shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 4px;
    text-decoration: none;
    color: var(--color-text-body);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-md);
    transition: 0.2s;
}
.sidebar-shortcut:active { background: #f5f5f5; }
.sidebar-shortcut .sc-icon {
    font-size: 22px;
    line-height: 1;
    color: var(--color-text-tertiary);
}
.sidebar-shortcut:active .sc-icon { color: var(--color-primary); }
.sidebar-shortcut.active { color: var(--color-primary); }
.sidebar-shortcut.active .sc-icon { color: var(--color-primary); }

/* 侧边栏底部推广标语卡片 */
.sidebar-promo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 8px 20px 24px;
    padding: 16px 18px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-top: auto;
}
.sidebar-promo:active { transform: scale(0.98); }
.sidebar-promo .promo-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    font-size: 22px;
    color: #ffd700;
}
.sidebar-promo .promo-icon-wrap svg {
    width: 22px;
    height: 22px;
    color: #ffd700;
}
.sidebar-promo .promo-text {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
}
.sidebar-promo .promo-text h4 {
    font-size: 13px;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 4px;
    line-height: 1.3;
}
.sidebar-promo .promo-text p {
    font-size: 13px;
    color: #e67e22;
    line-height: 1.4;
}
.sidebar-promo .deco-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}
.sidebar-promo .deco-1 {
    width: 100px; height: 100px;
    background: linear-gradient(135deg, rgba(231,76,60,0.1) 0%, rgba(192,57,43,0.05) 100%);
    top: -30px; right: -10px;
}

/* 遮罩层 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.sidebar-overlay.show {
    opacity: var(--z-base);
    visibility: visible;
}

/* ========================================
   移动端底部导航
   ======================================== */
.mobile-footer-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border-light);
    z-index: var(--z-sticky);
}

@media (max-width: 992px) {
    body {
        padding-bottom: 40px;
    }
    .mobile-footer-nav {
        display: block;
    }
}

.mobile-footer-nav .nav-list {
    display: flex;
    height: 100%;
}

.mobile-footer-nav .nav-item {
    flex: var(--z-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-label);
    color: var(--color-text-secondary);
    text-decoration: none;
    gap: var(--space-xs);
}

.mobile-footer-nav .nav-item.active {
    color: var(--color-primary);
}

.mobile-footer-nav .nav-item i {
    font-size: var(--font-size-h3);
}

/* ========================================
   移动端搜索弹窗
   ======================================== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-max);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.show {
    opacity: var(--z-base);
    visibility: visible;
}

.search-modal-content {
    width: 90%;
    max-width: 400px;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 25px 20px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-modal.show .search-modal-content {
    transform: translateY(0);
}

.search-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: var(--font-size-h3);
    color: var(--color-text-secondary);
    cursor: pointer;
    width: var(--space-lg);
    height: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal-close:hover {
    color: var(--color-primary);
}

.search-modal-title {
    text-align: center;
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-body);
    margin-bottom: 20px;
}

/* ========================================
   移动端搜索抽屉（底部弹出）
   外壳已收敛至 components.css 第 11 节（.drawer / .drawer-overlay / .drawer-panel 等），
   此处不再重复定义；.search-drawer-body 仅作为 JS 选择器保留（mobile.js 按它绑定分类行展开）
   ======================================== */

/* ========================================
   移动端中屏适配（平板及以下）
   ======================================== */
@media (max-width: 768px) {
    .carousel .slick img {
        height: auto !important;
        min-height: 0 !important;
    }

    .slick-prev,
    .slick-next {
        width: 26px;
        height: 46px;
        background-size: 52px 46px;
    }
    .slick-prev {
        background-position: 0 -46px;
    }
    .slick-next {
        background-position: -26px -46px;
    }

    .news-wrapper .news-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .news-wrapper .news-left {
        width: 100%;
    }

    .news-wrapper .news-label {
        display: none;
    }

    .news-wrapper .news-item {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .news-wrapper .news-item a:hover,
    .news-wrapper .news-item a:active {
        color: var(--color-primary);
    }

    .advantages {
        display: none;
    }

    /* 非首页隐藏底部内容（修复多余空白） */
    body:not(:has(.carousel)) .footer .container {
        display: none;
    }
    body:not(:has(.carousel)) .footer {
        margin-top: 0;
        padding: 0;
        border-top: none;
    }

    .news-wrapper .service-features {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        justify-content: center;
        gap: 10px 14px;
        text-align: center;
        padding: 0;
        box-sizing: border-box;
    }

}

@media (min-width: 480px) {
    .news-wrapper .service-features {
        grid-template-columns: repeat(4, 1fr);
        justify-content: center;
        justify-items: center;
    }
}

@media (max-width: 768px) {

    /* --- 底部手风琴 --- */
    .footer {
        padding: 20px 0 15px;
        margin-top: 30px;
    }

    .footer .content {
        flex-direction: column;
        gap: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .link-column {
        width: 100%;
        min-width: unset;
        margin-left: 0;
        border: 1px solid var(--color-border-light);
        border-radius: var(--radius-md);
        margin-bottom: 10px;
        overflow: hidden;
    }

    .link-column h4 {
        width: 100%;
        margin: 0;
        padding: var(--space-md) 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        font-size: var(--font-size-card-title);
    }

    .link-column h4::after {
        display: none;
    }

    .link-column .arrow {
        transition: transform 0.3s ease;
    }

    .link-column.active .arrow {
        transform: rotate(180deg);
    }

    .link-column ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0 20px;
    }

    .link-column.active ul {
        max-height: 200px;
        padding: 10px 20px;
    }

    .qrcode-section {
        width: 100%;
        justify-content: space-around;
        margin-top: 20px;
        padding-top: 20px;
        /* border-top: 1px solid var(--color-border-light); */
    }

    .qrcode-item .qrcode-wrap {
        width: 120px;
        height: 120px;
    }

    /* --- 商品列表响应式 --- */
    .goods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
        margin-bottom: 28px;
    }

    .goods-item {
        display: flex;
        flex-direction: column;
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(25, 29, 38, 0.06);
    }

    .goods-img-box {
        height: auto;
        aspect-ratio: 4 / 3;
        border-bottom: 1px solid var(--color-border-light);
    }

    .goods-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .goods-info {
        display: flex;
        flex: var(--z-base);
        flex-direction: column;
        padding: 10px 10px 10px;
    }

    .title-text {
        font-size: 20px;
        background-size: var(--font-size-h2);
        padding-left: 26px;
    }
    .more-btn {
        padding: 4px 12px;
        font-size: var(--font-size-label);
    }
    .price {
        font-size: 15px;
    }

    .goods-name {
        display: -webkit-box;
        min-height: 36px;
        margin-bottom: var(--space-sm);
        overflow: hidden;
        font-size: var(--font-size-caption);
        line-height: 18px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .price-tag-wrapper {
        min-height: var(--radius-2xl);
        margin-bottom: var(--space-sm);
        gap: 6px;
        align-items: center;
        flex-direction: row;
    }

    .goods-item .tags {
        min-width: 0;
        overflow: hidden;
        gap: var(--space-xs);
        flex: 1 1 auto;
        flex-wrap: nowrap;
    }

    .goods-item .tag {
        flex: 0 1 auto;
        max-width: 54px;
        overflow: hidden;
        padding: 3px 6px;
        font-size: var(--font-size-mini);
        line-height: 1.1;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .price {
        flex: 0 0 auto;
        font-size: var(--font-size-btn);
        line-height: 20px;
        white-space: nowrap;
    }

    .meta-separator {
        margin: 6px -10px;
    }

    .meta {
        min-height: 34px;
        margin-top: auto;
        align-items: center;
        gap: 6px;
        font-size: var(--font-size-mini);
    }

    .meta > span:first-child {
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: var(--space-2xs);
        line-height: 1.25;
    }

    .meta-time {
        display: none;
    }
    .meta-read {
        display: block;
        margin-right: 0;
        font-size: var(--font-size-mini);
        white-space: nowrap;
    }

    .read-more {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 30px;
        padding: 0;
        border-radius: 8px;
        font-size: 0;
        white-space: nowrap;
    }

    .read-more::after {
        content: "详情";
        font-size: var(--font-size-label);
    }

    /* --- 文章详情页响应式 --- */
    .article-container {
        padding: 5px 10px;
    }
    .article-title {
        font-size: var(--font-size-h3);
    }
    .decor-line-text .text-wrapper {
        font-size: 15px;
    }
    .article-content {
        font-size: 15px;
    }
    .article-meta {
        gap: 15px;
        font-size: var(--font-size-caption);
    }
}

/* ========================================
   移动端小屏适配（手机竖屏）
   ======================================== */
@media (max-width: 480px) {
    .goods-grid {
        gap: 10px;
    }

    .goods-img-box {
        height: auto;
        aspect-ratio: 4 / 3;
    }
    .goods-item img {
        height: 100%;
    }
    .title-text {
        font-size: var(--font-size-h3);
        background-size: var(--container-padding);
        padding-left: var(--space-lg);
    }

    .read-more {
        padding: 0;
        font-size: 0;
    }
    .section-title {
        padding-bottom: 10px;
        margin-bottom: var(--space-md);
    }

    /* 空购物车/空订单移动端适配 */
    .empty-cart,
    .empty-state {
        padding: 40px var(--space-base);
    }

    .empty-cart i,
    .empty-state i {
        font-size: 36px;
        width: 72px;
        height: 72px;
        margin-bottom: 14px;
    }

    .empty-cart h3,
    .empty-state h3 {
        font-size: 15px;
    }

    .empty-cart p,
    .empty-state p {
        font-size: var(--font-size-caption);
        margin-bottom: 18px;
    }

    .go-shopping {
        padding: 0 10px;
        font-size: var(--font-size-label);
        height: var(--space-xl);
        min-width: 74px;
        width: auto;
        border-radius: 6px;
    }
}

/* --- 移动端无限滚动 --- */
@media (max-width: 768px) {
    .pagination-wrapper {
        display: none !important;
    }
}

.scroll-loader {
    text-align: center;
    padding: 20px;
    color: var(--color-text-tertiary);
    font-size: var(--font-size-btn);
}

.scroll-end {
    text-align: center;
    padding: 20px;
    color: var(--color-text-disabled);
    font-size: var(--font-size-caption);
}

/* ========================================
   移动端邀请赚钱弹窗
   ======================================== */
.promo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-max);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.promo-modal.show {
    opacity: var(--z-base);
    visibility: visible;
}

.promo-modal-content {
    width: 88%;
    max-width: 360px;
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.promo-modal.show .promo-modal-content {
    transform: translateY(0);
}

.promo-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    z-index: var(--z-base);
    font-size: var(--font-size-h3);
    transition: background 0.2s;
}

.promo-modal-close:hover {
    background: rgba(0, 0, 0, 0.3);
}

.desktop-modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.desktop-btn-copy {
    flex: none;
    padding: 5px var(--space-lg);
    background: var(--color-primary);
    color: var(--color-bg-card);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-label);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.2s;
}

.desktop-btn-copy:hover {
    opacity: 0.9;
}

.desktop-btn-close {
    flex: none;
    padding: 5px var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    font-size: var(--font-size-label);
    cursor: pointer;
    transition: all 0.2s;
}

.desktop-btn-close:hover {
    background: #fff8f8;
}

/* ========================================
   帮助中心 · 分类标签（原内联样式迁至此统一管理）
   ======================================== */
.help-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 4px;
    justify-content: center;
}
.help-category-tag {
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 450;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #f2f4f8;
    color: #666666;
    border: 1px solid transparent;
    line-height: 1.6;
    letter-spacing: 0.2px;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}
.help-category-tag.active,
.help-category-tag.active:hover {
    background: #d8373e;
    color: #fff;
    border-color: #d8373e;
    box-shadow: 0 6px 14px rgba(216, 55, 62, 0.18);
    font-weight: 500;
}
.help-category-tag:not(.active):hover {
    background: #fef5f5;
    color: #b52a30;
    border-color: rgba(216, 55, 62, 0.18);
}

/* ========================================
   帮助中心 · 手机竖屏（分类横滑 + FAQ 卡片收紧）
   ======================================== */
@media (max-width: 480px) {
    /* 分类标签：一行横排、可左右滑动，不换行 */
    .help-category-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 6px;
        padding: 2px 4px 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .help-category-tags::-webkit-scrollbar { display: none; }
    .help-category-tag {
        flex: 0 0 auto;
        padding: 6px 16px;
        font-size: 12px;
        border-radius: 6px;
    }

    /* FAQ 卡片：序号 + banner + 间距全收紧，给标题更多空间 */
    .faq-main .faq-card { padding: 12px; gap: 0; }
    .faq-main .faq-number { font-size: var(--font-size-h3); min-width: 26px; margin-right: 10px; }
    .faq-main .faq-icon-container { width: 44px; height: 34px; margin-right: 10px; border-radius: 6px; }
    .faq-main .faq-title { font-size: 14px; line-height: 1.4; }
    .faq-main .faq-meta { gap: 10px; margin-top: 4px; }
    .faq-main .faq-status { top: 8px; right: 8px; padding: 3px 8px; }
    .faq-main .faq-content { padding-right: 60px; }

    /* header 底部渐变分隔线左右各缩 40px，窄屏下悬在中间不好看，直接隐藏 */
    .faq-main .faq-header::after { display: none; }
}
