/* ================= 基础全局变量（暖白 + 主题红体系） ================= */
:root {
    --bg-color: #fafafa;
    --primary-red: #ff4d4f;
    --primary-blue: #3b82f6;
    --text-main: #2c3e50;
    --text-sub: #8c939d;
    --border-color: #f0ecec;
    --card-img-bg: #efebea;
    --content-max-width: 1220px;
}

/* 将浅底色放在 html，使 z-index: -1 的动态背景层位于底色之上、正文与抽屉之下 */
html {
    background-color: var(--bg-color);
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: transparent;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

#app {
    position: relative;
    min-height: 100vh;
}

/* ================= 辅助类 ================= */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* ================= 动态氛围背景层（左右呼吸柔光 + 鼠标跟随微光 + 星芒火花微粒） ================= */
.ambient-bg-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.ambient-bg-layer::before,
.ambient-bg-layer::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    will-change: transform, opacity;
}

.ambient-bg-layer::before {
    width: 520px;
    height: 520px;
    top: 22%;
    left: -160px;
    background: radial-gradient(circle, rgba(255, 77, 79, 0.13) 0%, rgba(255, 133, 117, 0.055) 45%, rgba(250, 250, 250, 0) 72%);
    animation: sideOrbFloatLeft 14s ease-in-out infinite;
}

.ambient-bg-layer::after {
    width: 560px;
    height: 560px;
    bottom: 8%;
    right: -170px;
    background: radial-gradient(circle, rgba(255, 77, 79, 0.13) 0%, rgba(255, 145, 110, 0.055) 45%, rgba(250, 250, 250, 0) 72%);
    animation: sideOrbFloatRight 16s ease-in-out infinite;
}

@keyframes sideOrbFloatLeft {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.85;
    }
    50% {
        transform: translate3d(34px, 40px, 0) scale(1.08);
        opacity: 1;
    }
}

@keyframes sideOrbFloatRight {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.85;
    }
    50% {
        transform: translate3d(-38px, -44px, 0) scale(1.1);
        opacity: 1;
    }
}

.ambient-top-wash {
    display: none;
}

/* 电脑端鼠标跟随淡红柔光 */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 520px;
    height: 520px;
    margin-left: -260px;
    margin-top: -260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 79, 0.2) 0%, rgba(255, 120, 117, 0.09) 36%, rgba(255, 77, 79, 0) 70%);
    filter: blur(14px);
    opacity: 0;
    transition: opacity 0.35s ease;
    will-change: transform;
    pointer-events: none;
}

.cursor-glow.active {
    opacity: 1;
}

/* 新版颗粒容器：四角星芒 / 拉丝火花 / 棱镜菱形 / 焦外光斑 */
.ambient-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ember-particle {
    position: absolute;
    bottom: -36px;
    opacity: 0;
    will-change: transform, opacity;
    animation: emberFloat linear infinite;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ember-particle.sparkle {
    line-height: 1;
    color: rgba(235, 59, 68, 0.72);
    text-shadow: 0 0 10px rgba(255, 77, 79, 0.42);
}

.ember-particle.sparkle.neutral {
    color: rgba(100, 116, 139, 0.52);
    text-shadow: none;
}

.ember-particle.diamond {
    line-height: 1;
    color: rgba(235, 59, 68, 0.58);
    text-shadow: 0 0 8px rgba(255, 77, 79, 0.28);
}

.ember-particle.diamond.neutral {
    color: rgba(100, 116, 139, 0.45);
    text-shadow: none;
}

.ember-particle.streak {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 169, 110, 0.95) 0%, rgba(255, 77, 79, 0.85) 55%, rgba(255, 77, 79, 0) 100%);
    box-shadow: 0 0 10px rgba(255, 77, 79, 0.45);
    animation-name: streakRise;
}

.ember-particle.bokeh {
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 79, 0.28) 0%, rgba(255, 120, 117, 0.12) 55%, rgba(255, 77, 79, 0) 100%);
    filter: blur(2.5px);
}

.ember-particle.bokeh.neutral {
    background: radial-gradient(circle, rgba(148, 163, 184, 0.24) 0%, rgba(148, 163, 184, 0.08) 55%, rgba(148, 163, 184, 0) 100%);
}

@keyframes emberFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(0.85) rotate(0deg);
        opacity: 0;
    }
    14% {
        opacity: var(--p-opacity, 0.65);
    }
    55% {
        transform: translate3d(var(--p-drift, 18px), -54vh, 0) scale(1.12) rotate(75deg);
        opacity: var(--p-opacity, 0.65);
    }
    86% {
        opacity: calc(var(--p-opacity, 0.65) * 0.55);
    }
    100% {
        transform: translate3d(calc(var(--p-drift, 18px) * -0.4), -108vh, 0) scale(0.75) rotate(160deg);
        opacity: 0;
    }
}

@keyframes streakRise {
    0% {
        transform: translate3d(0, 0, 0) rotate(14deg) scaleY(0.75);
        opacity: 0;
    }
    15% {
        opacity: var(--p-opacity, 0.72);
    }
    60% {
        transform: translate3d(var(--p-drift, 24px), -58vh, 0) rotate(10deg) scaleY(1.15);
        opacity: var(--p-opacity, 0.72);
    }
    88% {
        opacity: calc(var(--p-opacity, 0.72) * 0.45);
    }
    100% {
        transform: translate3d(calc(var(--p-drift, 24px) * 1.4), -110vh, 0) rotate(8deg) scaleY(0.6);
        opacity: 0;
    }
}

/* ================= 顶部 Logo 动态艺术舞台（笔锋流光 + 炽热余烬呼吸 + 星火漂浮） ================= */
.logo-art-stage {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: logoArtFloat 4.2s ease-in-out infinite;
    will-change: transform, filter;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.site-logo-link:hover .logo-art-stage,
.mobile-logo-link:active .logo-art-stage {
    filter: drop-shadow(0 4px 16px rgba(255, 77, 79, 0.52));
}

/* 按 header-logo.png 透明轮廓精准遮罩的流光高光层 */
.logo-shimmer-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    -webkit-mask-image: url('./header-logo.png');
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-image: url('./header-logo.png');
    mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    background: linear-gradient(
        108deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 36%,
        rgba(255, 232, 185, 0.65) 46%,
        rgba(255, 255, 255, 0.94) 50%,
        rgba(255, 166, 120, 0.48) 56%,
        rgba(255, 255, 255, 0) 68%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 260% 100%;
    animation: logoLiquidSweep 4.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    opacity: 0.92;
}

/* 笔尖微火星点缀 */
.logo-spark {
    position: absolute;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.logo-spark.s1 {
    top: -3px;
    right: -2px;
    font-size: 9px;
    color: #ff4d4f;
    text-shadow: 0 0 8px rgba(255, 77, 79, 0.8);
    animation: logoSparkTwinkle 3.4s ease-in-out infinite;
}

.logo-spark.s2 {
    bottom: 2px;
    left: 14%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffd591 0%, #ff4d4f 75%);
    box-shadow: 0 0 7px rgba(255, 77, 79, 0.78);
    animation: logoEmberRise 3.8s ease-out infinite;
}

.drawer-logo-stage {
    animation-duration: 5s;
}

@keyframes logoArtFloat {
    0%, 100% {
        transform: translateY(0px);
        filter: drop-shadow(0 2px 6px rgba(220, 38, 38, 0.2));
    }
    50% {
        transform: translateY(-2px);
        filter: drop-shadow(0 4px 12px rgba(255, 77, 79, 0.4)) drop-shadow(0 0 18px rgba(255, 138, 101, 0.2));
    }
}

@keyframes logoLiquidSweep {
    0% {
        background-position: 100% 0;
    }
    36% {
        background-position: 0% 0;
    }
    100% {
        background-position: 0% 0;
    }
}

@keyframes logoSparkTwinkle {
    0%, 100% {
        opacity: 0.15;
        transform: scale(0.75) rotate(0deg);
    }
    45% {
        opacity: 0.95;
        transform: scale(1.2) rotate(45deg);
    }
    70% {
        opacity: 0.35;
        transform: scale(0.9) rotate(90deg);
    }
}

@keyframes logoEmberRise {
    0% {
        opacity: 0;
        transform: translate3d(0, 2px, 0) scale(0.6);
    }
    25% {
        opacity: 0.9;
    }
    80% {
        opacity: 0.35;
    }
    100% {
        opacity: 0;
        transform: translate3d(8px, -16px, 0) scale(0.2);
    }
}

/* ================= 固定顶部导航栏（顶部透明融入淡红渐变，滚动切换纯白毛玻璃） ================= */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.top-header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: rgba(240, 242, 245, 0.95);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.header-top-row {
    display: grid;
    grid-template-columns: 1fr minmax(0, auto) 1fr;
    align-items: center;
    width: 100%;
    padding: 10px 28px;
    gap: 16px;
    box-sizing: border-box;
    min-height: 66px;
}

/* 电脑端最左侧横版 Logo */
.site-logo-link {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    height: 46px;
    width: auto;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.site-logo-link:hover {
    transform: scale(1.03);
}

.site-logo-img {
    height: 44px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
    display: block;
}

/* 顶栏中间区域：顶部时为空白预留位，下滑后切为绝对居中的紧凑圆形类目栏 */
.header-center-area {
    justify-self: center;
    max-width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-future-slot {
    width: 100%;
    min-height: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-header.is-scrolled .header-future-slot {
    display: none;
}

/* 下滑态：嵌在顶栏正中间的紧凑圆形类目导航 */
.sticky-categories-nav {
    display: none;
    align-items: flex-start;
    gap: 12px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 4px;
    box-sizing: border-box;
}

.sticky-categories-nav::-webkit-scrollbar {
    display: none;
}

.top-header.is-scrolled .sticky-categories-nav {
    display: flex;
    animation: fadeSlideDown 0.22s ease;
}

.sticky-categories-nav > :first-child {
    margin-left: auto;
}

.sticky-categories-nav > :last-child {
    margin-right: auto;
}

.sticky-categories-nav .filter-btn {
    width: 56px;
    gap: 4px;
}

.sticky-categories-nav .filter-circle {
    width: 42px;
    height: 42px;
    padding: 5px;
}

.sticky-categories-nav .filter-label {
    font-size: 11px;
}

.sticky-categories-nav .filter-divider {
    height: 26px;
    margin-top: 8px;
}

/* 下滑态第 2 行：位于类目正下方、始终居中的吸顶搜索栏 */
.sticky-search-row {
    display: none;
    width: 100%;
    padding: 0 28px 10px;
    box-sizing: border-box;
    justify-content: center;
}

.top-header.is-scrolled .sticky-search-row {
    display: flex;
    animation: fadeSlideDown 0.22s ease;
}

.sticky-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
}

.sticky-search-row .search-box {
    flex: 1;
    min-width: 0;
}

.sticky-search-row .search-box input {
    height: 40px;
    padding: 8px 18px 8px 40px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 13.5px;
    box-shadow: none;
}

.sticky-search-row .search-box input:focus {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= 页面顶部主体区域（不设 z-index，确保手机端筛选抽屉可盖过顶栏） ================= */
.page-body {
    position: relative;
    padding-top: 0;
}

.hero-nav-area {
    position: relative;
    width: 100%;
    padding: 92px 24px 18px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(242, 232, 232, 0.85);
    background:
        radial-gradient(ellipse 64% 150px at 50% 0%, rgba(255, 77, 79, 0.14) 0%, rgba(255, 132, 128, 0.08) 46%, rgba(250, 250, 250, 0) 82%),
        linear-gradient(
            180deg,
            rgba(255, 198, 198, 0.38) 0px,
            rgba(255, 224, 224, 0.28) 68px,
            rgba(255, 240, 240, 0.16) 136px,
            rgba(250, 250, 250, 0) 210px
        );
}

.hero-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 820px;
    width: 100%;
    margin: 0 auto 18px;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.search-box input {
    width: 100%;
    height: 46px;
    padding: 10px 20px 10px 42px;
    border-radius: 14px;
    border: 1px solid rgba(236, 224, 224, 0.95);
    background: rgba(255, 255, 255, 0.96);
    outline: none;
    font-size: 14px;
    color: var(--text-main);
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(255, 77, 79, 0.05), 0 2px 6px rgba(0, 0, 0, 0.025);
    transition: all 0.25s ease;
}

.search-box input:focus {
    background: #ffffff;
    border-color: rgba(255, 77, 79, 0.35);
    box-shadow: 0 6px 20px rgba(255, 77, 79, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-sub);
    pointer-events: none;
}

/* ================= 右侧操作区（电脑端无框纯文字 + 斜杠分隔 + 红色优惠券胶囊） ================= */
.action-buttons {
    justify-self: end;
    display: flex;
    gap: 14px;
    flex-shrink: 0;
    align-items: center;
}

.nav-slash {
    color: #c7c3c3;
    font-size: 16px;
    font-weight: 300;
    line-height: 1;
    user-select: none;
    flex-shrink: 0;
}

.nav-text-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    cursor: pointer;
    padding: 4px 2px;
    position: relative;
    transition: color 0.2s ease;
}

.nav-text-link:hover {
    color: var(--primary-red);
}

.nav-text-link::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 0;
    height: 1.5px;
    background-color: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
}

.nav-text-link:hover::after {
    transform: scaleX(1);
}

.btn {
    height: 44px;
    padding: 6px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.2;
}

.btn:hover {
    transform: translateY(-2px);
}

/* 主题红渐变胶囊 30% 优惠券按钮 */
.btn-invite {
    height: 46px;
    padding: 5px 15px 5px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 6px 16px rgba(255, 77, 79, 0.26);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    min-width: 256px;
}

.btn-invite:hover {
    box-shadow: 0 8px 22px rgba(255, 77, 79, 0.38);
}

.invite-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 3px;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.invite-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.invite-icon-fallback {
    font-size: 11px;
    font-weight: 900;
    color: var(--primary-red);
    letter-spacing: -0.4px;
}

.invite-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    flex: 1;
}

.invite-title {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    white-space: nowrap;
}

.invite-sub {
    font-size: 10.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.25;
    margin-top: 2px;
    white-space: nowrap;
}

.invite-sparkle {
    width: 17px;
    height: 17px;
    color: rgba(255, 255, 255, 0.92);
    flex-shrink: 0;
    margin-left: 2px;
}

/* ================= 电脑端无边框语言 & 货币文字切换 + 下拉菜单 ================= */
.settings-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.settings-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 4px 2px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    cursor: pointer;
    box-shadow: none;
    transition: color 0.2s ease;
    height: auto;
    white-space: nowrap;
}

.settings-btn:hover {
    color: var(--primary-red);
    background: transparent;
}

.lang-curr-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: block;
}

.settings-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.1px;
}

.settings-inner-slash {
    opacity: 0.7;
}

.lang-label-mobile {
    display: none;
}

.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1001;
}

.settings-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 220px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 12px 0;
    z-index: 1002;
    animation: popupZoom 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-section-title {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1px;
    padding: 4px 16px 8px;
}

.settings-option {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    margin: 2px 8px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 8px;
}

.settings-option:hover {
    background: #f8fafc;
    color: #1e293b;
}

.settings-option.active {
    background: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
}

.opt-icon {
    width: 20px;
    display: inline-block;
    color: #64748b;
    font-weight: 600;
}

.settings-option.active .opt-icon {
    color: #0f172a;
}

.opt-label {
    flex: 1;
}

.opt-check {
    display: flex;
    align-items: center;
    color: #3b82f6;
}

.settings-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 10px 0;
}

/* ================= QCBook 风格圆形图片一级类目栏（顶部大尺寸居中） ================= */
.filter-container {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 4px 0 2px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: var(--content-max-width);
    margin: 0 auto;
    box-sizing: border-box;
}

.filter-container::-webkit-scrollbar {
    display: none;
}

.filter-container > :first-child {
    margin-left: auto;
}

.filter-container > :last-child {
    margin-right: auto;
}

.filter-divider {
    width: 1px;
    height: 36px;
    background-color: #e8e2e2;
    margin-top: 10px;
    flex-shrink: 0;
}

.filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    width: 68px;
    outline: none;
    transition: opacity 0.2s ease;
}

.filter-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(244, 241, 240, 0.94);
    border: 1.5px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
    box-sizing: border-box;
    color: #1f2937;
    transition: all 0.2s ease;
}

.filter-circle-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

.filter-circle-fallback {
    font-size: 16px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
}

.filter-label {
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    transition: color 0.2s ease;
}

.filter-btn:hover .filter-circle {
    background-color: #efe9e8;
    border-color: #d8cece;
}

.filter-btn:hover .filter-circle-img {
    transform: scale(1.08);
}

.filter-btn:hover .filter-label {
    color: #111827;
}

.filter-btn.active .filter-circle {
    background-color: #ffffff;
    border: 2px solid #111827;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
}

.filter-btn.active .filter-label {
    color: #111827;
    font-weight: 700;
}

/* ================= 主内容区容器（保持在 1220px 内，两侧留白） ================= */
.main-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 24px 0 60px;
    box-sizing: border-box;
}

/* ================= 主页分栏目区域 ================= */
.home-sections {
    display: flex;
    flex-direction: column;
    gap: 46px;
}

.home-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section-header-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.section-eyebrow-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: #8c939d;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.section-eyebrow-line {
    flex: 1;
    height: 1px;
    background-color: #ece8e8;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.section-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.4px;
    line-height: 1.25;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 2px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.view-all-btn:hover {
    color: #1e293b;
    transform: translateX(3px);
}

/* 点击 View all 进入完整类目时的顶部返回栏 */
.category-detail-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.category-detail-bar {
    display: flex;
    align-items: center;
    gap: 14px;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid #e6e0e0;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-home-btn:hover {
    background: #f8f5f5;
    color: var(--text-main);
    border-color: #d6cccc;
}

.category-detail-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
}

/* ================= QCBook 风格左侧四段式筛选栏 + 右侧网格布局 ================= */
.catalog-layout {
    display: block;
}

.catalog-layout.has-sidebar {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.filter-sidebar {
    width: 232px;
    flex-shrink: 0;
    position: sticky;
    top: 148px;
    max-height: calc(100vh - 166px);
    overflow-y: auto;
    padding-right: 8px;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.filter-sidebar::-webkit-scrollbar {
    width: 4px;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.filter-mobile-header,
.filter-mobile-footer,
.mobile-filter-bar,
.filter-drawer-overlay {
    display: none;
}

.sidebar-cat-header {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 0 0 12px;
    margin-bottom: 2px;
    cursor: pointer;
}

.sidebar-cat-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.sidebar-cat-total {
    font-size: 14px;
    font-weight: 500;
    color: #8c939d;
    font-variant-numeric: tabular-nums;
}

.sidebar-type-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ece8e8;
}

.sidebar-type-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 8px;
    margin: 0 -8px;
    width: calc(100% + 16px);
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s ease, color 0.15s ease;
    box-sizing: border-box;
}

.sidebar-type-item:hover {
    background-color: #f4efef;
}

.sidebar-type-item.active {
    background-color: #f1eaea;
}

.sidebar-type-item.muted {
    opacity: 0.45;
}

.sidebar-type-name {
    font-size: 13.5px;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-type-item:hover .sidebar-type-name {
    color: #0f172a;
}

.sidebar-type-item.active .sidebar-type-name {
    font-weight: 700;
    color: #0f172a;
}

.sidebar-type-count {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.sidebar-type-item.active .sidebar-type-count {
    color: #475569;
    font-weight: 700;
}

.filter-reset-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ece8e8;
}

.filter-active-summary {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.filter-clear-btn {
    border: none;
    background: transparent;
    color: var(--primary-red);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 4px;
}

.filter-clear-btn:hover {
    text-decoration: underline;
}

.filter-group {
    padding: 14px 0;
    border-bottom: 1px solid #ece8e8;
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-group-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: #1e293b;
}

.filter-group-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.1px;
}

.filter-chevron {
    color: #64748b;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.filter-chevron.collapsed {
    transform: rotate(180deg);
}

.filter-group-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
}

.filter-check-row:hover {
    background-color: #f4efef;
}

.filter-check-row.muted {
    opacity: 0.45;
}

.filter-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.filter-custom-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.filter-check-row:hover .filter-custom-box {
    border-color: #64748b;
}

.filter-check-row.checked .filter-custom-box {
    background: #1e293b;
    border-color: #1e293b;
}

.filter-label-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
    overflow: hidden;
}

.filter-label-main {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-check-row.checked .filter-label-main {
    font-weight: 700;
    color: #0f172a;
}

.filter-label-sub {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-count {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    margin-left: auto;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.filter-check-row.checked .filter-count {
    color: #475569;
    font-weight: 700;
}

.brand-search-wrap {
    position: relative;
    margin-bottom: 10px;
}

.brand-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.brand-search-input {
    width: 100%;
    height: 36px;
    padding: 0 28px 0 32px;
    border-radius: 10px;
    border: 1px solid #e6e0e0;
    background: #ffffff;
    font-size: 13px;
    color: #334155;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.brand-search-input::placeholder {
    color: #94a3b8;
}

.brand-search-input:focus {
    border-color: #94a3b8;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.brand-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-search-clear:hover {
    color: #334155;
}

.brand-list-scroll {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.brand-list-scroll::-webkit-scrollbar {
    width: 4px;
}

.brand-list-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.brand-empty-tip {
    padding: 16px 8px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}

.catalog-grid-area {
    flex: 1;
    min-width: 0;
}

/* ================= 暖调画廊展台商品卡片 ================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 18px;
}

.catalog-layout.has-sidebar .grid-container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #efe9e9;
    box-shadow: 0 2px 10px rgba(28, 25, 23, 0.03), 0 6px 20px rgba(28, 25, 23, 0.025);
    height: 100%;
    position: relative;
    box-sizing: border-box;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 77, 79, 0.28);
    box-shadow: 0 14px 30px rgba(255, 77, 79, 0.09), 0 4px 12px rgba(28, 25, 23, 0.05);
}

.product-card > a {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.image-box {
    width: calc(100% - 16px);
    margin: 8px 8px 0;
    padding-top: calc(100% - 16px);
    position: relative;
    background: radial-gradient(circle at 50% 42%, #f6f3f2 0%, #ede8e6 68%, #e5dfdd 100%);
    border-radius: 13px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
    transition: background 0.3s ease;
}

.product-card:hover .image-box {
    background: radial-gradient(circle at 50% 42%, #fff8f7 0%, #f5e9e9 68%, #eedfdf 100%);
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    box-sizing: border-box;
    filter: drop-shadow(0 8px 12px rgba(28, 25, 23, 0.09));
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), filter 0.32s ease;
}

.product-card:hover .product-img {
    transform: scale(1.045) translateY(-2px);
    filter: drop-shadow(0 12px 16px rgba(28, 25, 23, 0.13));
}

.info-box {
    padding: 12px 14px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
}

.product-title {
    font-size: 14px;
    color: #292524;
    margin: 0;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* ================= 价格与同行品质标签 ================= */
.price-version-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.product-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary-red);
    margin: 0;
    white-space: nowrap;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.version-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.1;
    white-space: nowrap;
    background-color: #1e293b;
    color: #ffffff;
}

.version-tag.top {
    background-color: var(--primary-red);
    color: #ffffff;
}

.version-tag.standard {
    background-color: #334155;
    color: #ffffff;
}

.version-tag.budget {
    background-color: #059669;
    color: #ffffff;
}

.version-tag.v-1-1 {
    background-color: #111827;
    color: #ffffff;
}

/* ================= QC 按钮 ================= */
.qc-btn-container {
    padding: 0 12px 12px;
    text-align: center;
}

.btn-check-more {
    width: 100%;
    padding: 8px 0;
    background: #f6f3f2;
    color: #44403c;
    border: 1px solid #eae4e3;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
}

.btn-check-more:hover {
    background: #fff2f2;
    color: var(--primary-red);
    border-color: rgba(255, 77, 79, 0.3);
    transform: translateY(-1px);
}

/* ================= 笔记本 / 中等宽屏自适应 ================= */
@media (max-width: 1600px) {
    .sticky-categories-nav {
        gap: 8px;
    }

    .sticky-categories-nav .filter-btn {
        width: 50px;
    }

    .sticky-categories-nav .filter-circle {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 1280px) {
    .header-top-row {
        padding: 10px 20px;
        gap: 14px;
    }

    .sticky-search-row {
        padding: 0 20px 10px;
    }

    .main-content {
        padding: 20px 24px 56px;
    }
}

@media (max-width: 1199px) {
    .grid-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px 16px;
    }

    .catalog-layout.has-sidebar .grid-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .site-logo-img {
        height: 36px;
        max-width: 165px;
    }

    .settings-btn,
    .nav-text-link {
        font-size: 13px;
    }

    .action-buttons {
        gap: 10px;
    }

    .btn-invite {
        min-width: 215px;
        padding: 5px 12px 5px 7px;
    }
}

/* ================= 平板 & 手机端：左侧筛选栏切换为抽屉模式 ================= */
@media (max-width: 900px) {
    .catalog-layout.has-sidebar {
        display: block;
    }

    .mobile-filter-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 12px;
    }

    .mobile-filter-trigger {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 36px;
        padding: 0 14px;
        border-radius: 10px;
        border: 1px solid #e6e0e0;
        background: #ffffff;
        color: #1e293b;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    }

    .mobile-filter-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: var(--primary-red);
        color: #ffffff;
        font-size: 11px;
        font-weight: 800;
    }

    .mobile-filter-count {
        font-size: 12px;
        color: #64748b;
        font-weight: 600;
    }

    .filter-drawer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(2px);
        z-index: 2000;
    }

    .filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        max-width: 85vw;
        max-height: none;
        background: #ffffff;
        z-index: 2001;
        padding: 0 18px;
        display: flex;
        flex-direction: column;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 6px 0 30px rgba(0, 0, 0, 0.15);
    }

    .filter-sidebar.mobile-open {
        transform: translateX(0);
    }

    .filter-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: max(16px, env(safe-area-inset-top)) 0 12px;
        border-bottom: 1px solid #ece8e8;
        font-size: 16px;
        font-weight: 800;
        color: #1e293b;
        flex-shrink: 0;
    }

    .filter-close-btn {
        width: 32px;
        height: 32px;
        border: none;
        border-radius: 8px;
        background: #f1f5f9;
        color: #475569;
        font-size: 20px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-cat-header {
        padding-top: 12px;
    }

    .brand-list-scroll {
        max-height: 220px;
    }

    .filter-mobile-footer {
        display: block;
        margin-top: auto;
        padding: 12px 0 18px;
        border-top: 1px solid #ece8e8;
        background: #ffffff;
        position: sticky;
        bottom: 0;
    }

    .filter-apply-btn {
        width: 100%;
        height: 42px;
        border: none;
        border-radius: 12px;
        background: #1e293b;
        color: #ffffff;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

    .grid-container,
    .catalog-layout.has-sidebar .grid-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px 14px;
    }
}

/* ================= 手机端核心优化区（居中 Logo + 右菜单 / 优惠券并排在搜索栏右侧） ================= */
@media (max-width: 768px) {
    .site-logo-link {
        display: none;
    }

    .ember-particle.desktop-only-ember {
        display: none;
    }

    .header-top-row {
        display: flex;
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 8px;
        min-height: 52px;
    }

    /* 手机端顶栏三列绝对居中：左留白 36px / 中间动态艺术 Logo / 右侧三道杠菜单 */
    .action-buttons {
        order: 1;
        width: 100%;
        display: grid;
        grid-template-columns: 36px 1fr 36px;
        align-items: center;
        gap: 6px;
    }

    /* 手机端顶栏隐藏电脑端文字项与顶栏优惠券（优惠券移至搜索栏右侧） */
    .action-buttons .settings-dropdown,
    .action-buttons .nav-slash,
    .action-buttons .nav-text-link,
    .action-buttons .desktop-header-invite {
        display: none !important;
    }

    /* 中间：绝对居中动态艺术 Logo */
    .mobile-logo-link {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 34px;
        width: auto;
        flex-shrink: 0;
    }

    .mobile-logo-img {
        height: 27px;
        width: auto;
        max-width: 136px;
        object-fit: contain;
        display: block;
    }

    .mobile-logo-stage .logo-spark.s1 {
        font-size: 8px;
        top: -2px;
        right: -3px;
    }

    /* 右侧：三道杠菜单图标 */
    .mobile-menu-btn {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        width: 36px;
        height: 36px;
        border: none;
        border-radius: 10px;
        background: transparent;
        color: #111827;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        cursor: pointer;
    }

    .mobile-menu-btn:active {
        background: rgba(15, 23, 42, 0.06);
    }

    /* 手机端下滑时，类目栏单独排在顶栏下方、搜索+优惠券栏上方 */
    .header-center-area {
        order: 2;
        flex: 0 0 100%;
        width: 100%;
        display: none;
    }

    .top-header.is-scrolled .header-center-area {
        display: flex;
    }

    .sticky-categories-nav {
        gap: 10px;
        padding: 0;
    }

    .sticky-categories-nav .filter-btn {
        width: 50px;
        gap: 3px;
    }

    .sticky-categories-nav .filter-circle {
        width: 36px;
        height: 36px;
        padding: 4px;
    }

    .sticky-categories-nav .filter-label {
        font-size: 10px;
    }

    .sticky-categories-nav .filter-divider {
        height: 22px;
        margin-top: 7px;
    }

    /* 手机端搜索栏 + 优惠券按钮并排（顶部在类目上方，下滑后在类目下方） */
    .sticky-search-row {
        padding: 0 12px 9px;
    }

    .sticky-search-bar {
        max-width: none;
        gap: 7px;
    }

    .sticky-search-row .search-box input {
        height: 36px;
        padding: 6px 10px 6px 32px;
        font-size: 12.5px;
    }

    .sticky-search-row .search-icon {
        left: 10px;
        font-size: 13px;
    }

    .hero-nav-area {
        padding: 64px 12px 12px;
        background:
            radial-gradient(ellipse 80% 110px at 50% 0%, rgba(255, 77, 79, 0.14) 0%, rgba(255, 132, 128, 0.08) 48%, rgba(250, 250, 250, 0) 84%),
            linear-gradient(
                180deg,
                rgba(255, 198, 198, 0.36) 0px,
                rgba(255, 224, 224, 0.25) 56px,
                rgba(255, 240, 240, 0.14) 112px,
                rgba(250, 250, 250, 0) 168px
            );
    }

    .hero-search-wrap {
        margin-bottom: 12px;
        gap: 7px;
    }

    .hero-search-wrap .search-box input {
        height: 40px;
        padding: 8px 10px 8px 34px;
        font-size: 13px;
    }

    .hero-search-wrap .search-icon {
        left: 11px;
        font-size: 13.5px;
    }

    /* 搜索栏右侧的手机端红色优惠券胶囊 */
    .mobile-search-invite {
        flex-shrink: 0;
        min-width: 0;
        max-width: 146px;
        height: 40px;
        padding: 4px 10px 4px 5px;
        gap: 6px;
        border-radius: 999px;
        box-shadow: 0 4px 12px rgba(255, 77, 79, 0.26);
    }

    .sticky-search-row .mobile-search-invite {
        height: 36px;
        max-width: 138px;
        padding: 3px 9px 3px 4px;
        gap: 5px;
    }

    .mobile-search-invite .invite-icon-box {
        width: 26px;
        height: 26px;
        border-radius: 7px;
        padding: 2px;
    }

    .sticky-search-row .mobile-search-invite .invite-icon-box {
        width: 24px;
        height: 24px;
    }

    .mobile-search-invite .invite-icon-fallback {
        font-size: 9px;
    }

    .mobile-search-invite .invite-text-group {
        overflow: hidden;
    }

    .mobile-search-invite .invite-title {
        font-size: 10.5px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-search-invite .invite-sub {
        font-size: 8.5px;
        margin-top: 1px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .filter-container {
        gap: 12px;
    }

    .filter-divider {
        height: 28px;
        margin-top: 9px;
    }

    .filter-btn {
        width: 58px;
        gap: 5px;
    }

    .filter-circle {
        width: 46px;
        height: 46px;
        padding: 5px;
    }

    .filter-label {
        font-size: 11px;
    }

    .main-content {
        padding: 14px 10px 30px;
    }

    .home-sections {
        gap: 30px;
    }

    .home-section {
        gap: 12px;
    }

    .section-eyebrow {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .section-title {
        font-size: 20px;
    }

    .view-all-btn {
        font-size: 12px;
    }

    .category-detail-header {
        margin-bottom: 12px;
    }

    .grid-container,
    .catalog-layout.has-sidebar .grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 10px;
    }

    .product-card {
        border-radius: 14px;
    }

    .image-box {
        width: calc(100% - 12px);
        margin: 6px 6px 0;
        padding-top: calc(100% - 12px);
        border-radius: 10px;
    }

    .product-img {
        padding: 11px;
    }

    .info-box {
        padding: 10px 10px 8px;
        gap: 6px;
    }

    .product-title {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .price-version-row {
        gap: 6px;
    }

    .product-price {
        font-size: 15px;
    }

    .version-tag {
        padding: 2px 7px;
        font-size: 9px;
    }

    .qc-btn-container {
        padding: 0 8px 8px;
    }

    .btn-check-more {
        padding: 7px 0;
        font-size: 12px;
    }
}

/* ================= 手机端右侧滑出菜单抽屉（居中 Logo + 图四同款货币语言清单） ================= */
.mobile-menu-overlay {
    display: none;
}

.mobile-menu-drawer {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.42);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 2100;
    }

    .mobile-menu-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 300px;
        max-width: 84vw;
        background: #ffffff;
        z-index: 2101;
        transform: translateX(100%);
        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: -8px 0 32px rgba(15, 23, 42, 0.14);
        box-sizing: border-box;
    }

    .mobile-menu-drawer.open {
        transform: translateX(0);
    }

    /* 抽屉顶部对称三列：Logo 绝对居中，关闭按钮靠最右 */
    .mobile-drawer-header {
        display: grid;
        grid-template-columns: 34px 1fr 34px;
        align-items: center;
        padding: max(16px, env(safe-area-inset-top)) 18px 16px;
        border-bottom: 1px solid #f0ecec;
        flex-shrink: 0;
    }

    .mobile-drawer-brand {
        grid-column: 2;
        justify-self: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-drawer-logo {
        height: 26px;
        width: auto;
        max-width: 140px;
        object-fit: contain;
        display: block;
    }

    .mobile-drawer-close {
        grid-column: 3;
        justify-self: end;
        width: 34px;
        height: 34px;
        border: none;
        border-radius: 8px;
        background: transparent;
        color: #1f2937;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .mobile-drawer-close:active {
        background: #f4f1f0;
    }

    .mobile-drawer-body {
        flex: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .mobile-drawer-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        border-bottom: 1px solid #f0ecec;
        font-size: 18px;
        font-weight: 700;
        color: #111827;
        letter-spacing: -0.2px;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    .mobile-drawer-link svg {
        color: #9ca3af;
        flex-shrink: 0;
    }

    .mobile-drawer-link:active {
        background: #faf7f7;
        color: var(--primary-red);
    }

    /* 复刻电脑端图四的 DEVISE / LANGUE 列表卡片 */
    .mobile-drawer-settings-card {
        margin: 18px 16px 24px;
        padding: 12px 2px;
        background: #ffffff;
        border: 1px solid #f1f5f9;
        border-radius: 16px;
        box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
    }
}

/* ================= 迎新优惠弹窗（圆形 logo.png 正方形比例） ================= */
@keyframes popupZoom {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(3deg);
    }
}

.promo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-popup-wrapper {
    width: 310px;
    max-width: 88vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: popupZoom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-card {
    width: 100%;
    border-radius: 26px;
    overflow: visible;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    position: relative;
}

.promo-top {
    background: linear-gradient(135deg, #ffffff 0%, #f4f5f7 100%);
    padding: 24px 22px 38px 22px;
    border-radius: 26px 26px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.promo-welcome-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.promo-welcome-sub {
    font-size: 11px;
    font-weight: 800;
    color: #909399;
    letter-spacing: 1.2px;
}

.promo-brand-name {
    font-size: 20px;
    font-weight: 900;
    color: #111;
    margin: 3px 0 8px 0;
}

.promo-slogan {
    display: inline-block;
    background: #ffeef0;
    color: #ff4757;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.promo-logo-img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    object-fit: contain;
    background: #fff;
    border-radius: 18px;
    padding: 6px;
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.18);
    animation: floatLogo 3s ease-in-out infinite;
}

.promo-bottom {
    background: linear-gradient(160deg, #1e1e24 0%, #111115 100%);
    color: #fff;
    padding: 26px 22px 24px 22px;
    border-radius: 24px;
    margin-top: -22px;
    position: relative;
    z-index: 2;
    text-align: center;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-discount-tag {
    font-size: 10px;
    font-weight: 800;
    color: #ff6b81;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.promo-big-title {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 4px;
    text-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.promo-big-title .highlight-num {
    background: linear-gradient(135deg, #ff4757 0%, #ff8f50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promo-sub-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.promo-cta-btn {
    display: block;
    width: 85%;
    margin: 0 auto;
    padding: 12px 0;
    background: linear-gradient(90deg, #ff4757 0%, #ff6b81 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.promo-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.55);
}

.promo-close-circle {
    margin: 18px auto 0 auto !important;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.promo-close-circle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

@media (min-width: 768px) {
    .promo-popup-wrapper {
        width: 440px;
    }

    .promo-card {
        border-radius: 34px;
    }

    .promo-top {
        padding: 34px 34px 52px 34px;
        border-radius: 34px 34px 0 0;
    }

    .promo-welcome-sub {
        font-size: 14px;
        letter-spacing: 1.8px;
    }

    .promo-brand-name {
        font-size: 28px;
        margin: 5px 0 12px 0;
    }

    .promo-slogan {
        font-size: 15px;
        padding: 6px 16px;
    }

    .promo-logo-img {
        width: 88px;
        height: 88px;
        border-radius: 24px;
        padding: 8px;
    }

    .promo-bottom {
        padding: 36px 34px 34px 34px;
        border-radius: 32px;
        margin-top: -28px;
    }

    .promo-discount-tag {
        font-size: 13px;
        letter-spacing: 2.5px;
        margin-bottom: 6px;
    }

    .promo-big-title {
        font-size: 56px;
        margin-bottom: 6px;
    }

    .promo-sub-title {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .promo-cta-btn {
        padding: 16px 0;
        font-size: 19px;
        border-radius: 40px;
    }

    .promo-close-circle {
        margin-top: 24px !important;
        width: 44px;
        height: 44px;
        font-size: 26px;
    }
}