/* v37.18.6 Sun Aug  2 16:57:23 UTC 2026 */
/* v37.18.5 Sun Aug  2 16:35:49 UTC 2026 */
/* v37.18.4 Sun Aug  2 16:34:40 UTC 2026 */
/* v37.18.3 Sun Aug  2 16:33:29 UTC 2026 */
/* v37.18.2 forced refresh Sun Aug  2 16:31:09 UTC 2026 */
/* ========== Reset & Base ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Hiragino Sans GB', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
    background: #faf8f3;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 500;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

:root {
    --color-ink: #631c24;           /* MAIXUN 品牌主色 - 勃艮第酒红 */
    --color-ink-soft: #3a1218;      /* 文字深色 */
    --color-ink-mute: #8a4a4f;      /* 文字次级 */
    --color-mute: #9a8a82;          /* 辅助灰 */
    --color-line: #e8dfd1;
    --color-line-soft: #f0e8d8;
    --color-bg: #faf8f3;            /* 米白 */
    --color-bg-soft: #f3e9e0;       /* 酒红调米色 */
    --color-bg-card: #ffffff;
    --color-gold: #c9a961;          /* 金 - 辅色 */
    --color-gold-soft: #e8d9b3;
    --color-standard: #2c5f7f;      /* 蓝 - 标准 */
    --color-new: #5c7a3a;            /* 绿 - 新品 */
    --color-fab: #b8693a;            /* 橙 - FAB */
    --shadow-sm: 0 1px 2px rgba(99,28,36,0.04);
    --shadow-md: 0 4px 16px rgba(99,28,36,0.08);
    --shadow-lg: 0 12px 40px rgba(99,28,36,0.12);
    --radius: 4px;
}

/* ========== Top Bar ========== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 243, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-line);
}
.topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    flex-direction: column;        /* 垂直堆叠：LOGO 一行 + nav 一行 */
    align-items: center;
    gap: 10px;
}
.brand {
    display: flex;
    align-items: center;
    justify-content: center;        /* LOGO 居中 */
    gap: 12px;
    flex-shrink: 0;
    width: 100%;
}
.brand:has(.brand-mark:only-child) {
    margin-right: 0;
}
.brand-mark {
    height: 36px;
    width: auto;
    max-width: 200px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}
.brand-title {
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0.02em;
}
.brand-sub {
    font-size: 10px;
    color: var(--color-mute);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 2px;
}
.nav-modules {
    display: flex;
    gap: 12px;                       /* 5 tab 间距（色块紧凑） */
    flex: 1;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}
.nav-modules a {
    flex: 1;                          /* 5 tab 平均分布 */
    text-align: center;               /* 文字居中 */
    padding: 10px 8px;                /* 撑起色块高度 */
    font-size: 15px;
    color: white;                      /* 文字白（在色块上） */
    background: var(--color-ink);      /* 品牌酒红色块 #631c24 */
    border-radius: var(--radius);
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.nav-modules a:hover {
    background: var(--color-ink-soft); /* hover 加深 */
    color: white;
}
.nav-search {
    position: relative;
    flex-shrink: 0;
}
.nav-search input {
    width: 240px;
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--color-line);
    background: white;
    font-size: 13px;
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.nav-search input:focus {
    border-color: var(--color-ink);
}
.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-mute);
    font-size: 16px;
    pointer-events: none;
}

/* ========== Hero ========== */
.hero {
    background: linear-gradient(180deg, #faf8f3 0%, #f3e9e0 100%);
    padding: 80px 32px 60px;
    border-bottom: 1px solid var(--color-line);
}
.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.hero-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: 24px;
    padding: 4px 0;
    border-top: 1px solid var(--color-gold);
    border-bottom: 1px solid var(--color-gold);
    padding: 6px 0;
}
.hero-title {
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 48px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}
.hero-desc {
    font-size: 16px;
    color: var(--color-ink-soft);
    max-width: 620px;
    line-height: 1.75;
}
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-line);
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-num {
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
}
.stat-label {
    font-size: 12px;
    color: var(--color-mute);
    letter-spacing: 0.1em;
    margin-top: 8px;
    text-transform: uppercase;
}

/* ========== Hero 最新更新 ========== */
.hero-recent {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-line);
    max-width: 720px;
}
.hero-recent-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-ink);
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.hero-recent-title::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--color-ink);
}
.hero-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hero-recent-list li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-ink);
    transition: all 0.2s;
}
.hero-recent-list li a:hover {
    border-color: var(--color-ink);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}
.recent-new {
    background: #c0392b;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 2px;
    letter-spacing: 0.1em;
    flex-shrink: 0;
    line-height: 1.4;
}
.recent-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* ========== Main ========== */
.main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 32px;
}

/* ========== Module ========== */
.module {
    margin-bottom: 96px;
    scroll-margin-top: 100px;
}
.module:last-child { margin-bottom: 0; }

.module-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-line);
    gap: 24px;
}
.module-head-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.module-num {
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: var(--color-ink);
    line-height: 1;
}
.module-title {
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}
.module-desc {
    font-size: 13px;
    color: var(--color-ink-mute);
    line-height: 1.5;
    font-weight: 500;
}
.module-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.module-tag {
    font-size: 11px;
    padding: 4px 10px;
    background: var(--color-ink);
    color: white;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.tag-new, .tag-fab {
    background: var(--color-ink);
}
.module-count {
    font-size: 13px;
    color: var(--color-mute);
    font-variant-numeric: tabular-nums;
}
.module-count::before { content: "共 "; }
.module-count::after { content: " 份文件"; }

/* ========== Cards Grid ========== */
/* 全 5 模块 PC 端统一：基础 grid（5 个 1 行）+ PC 端横滑（5 个不溢出，6+ 时溢出 + 左右箭头） */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    grid-auto-rows: 1fr;
}

/* PC 端（> 768px）5 模块统一横滑 carousel */
@media (min-width: 769px) {
    [data-grid-for="newproduct"].cards-grid,
    [data-grid-for="lookbook"].cards-grid,
    [data-grid-for="fab"].cards-grid,
    [data-grid-for="marketing"].cards-grid,
    [data-grid-for="standard"].cards-grid {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 16px;
        padding: 4px 60px 8px;  /* 左右各 60px padding：箭头在 wrap 边缘不压卡片 */
        grid-template-columns: none !important;
        position: relative;
        scroll-padding-left: 60px;  /* snap 目标在 60px 起（不自动滚到 padding 内） */
    }
    [data-grid-for="newproduct"].cards-grid::-webkit-scrollbar,
    [data-grid-for="lookbook"].cards-grid::-webkit-scrollbar,
    [data-grid-for="fab"].cards-grid::-webkit-scrollbar,
    [data-grid-for="marketing"].cards-grid::-webkit-scrollbar,
    [data-grid-for="standard"].cards-grid::-webkit-scrollbar { display: none; }
    [data-grid-for="newproduct"].cards-grid > .card,
    [data-grid-for="lookbook"].cards-grid > .card,
    [data-grid-for="fab"].cards-grid > .card,
    [data-grid-for="marketing"].cards-grid > .card,
    [data-grid-for="standard"].cards-grid > .card,
    [data-grid-for="lookbook"].cards-grid > .card-block,
    [data-grid-for="fab"].cards-grid > .card-block {
        flex: 0 0 calc((100% - 4 * 16px) / 5) !important;  /* 强制 5 个严格等分 → 第 6 个溢出 */
        scroll-snap-align: start;
        margin: 0;
    }
    /* PC 端 scroll-hint-wrap 延伸到全宽（让箭头能放在卡片外侧，不压在卡片上） */
    .scroll-hint-wrap { margin: 0 -32px; position: relative; }

    /* PC 端：右侧渐变遮罩 */
    .scroll-hint-gradient {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 60px;
        background: linear-gradient(to right, transparent, rgba(250, 248, 243, 0.95) 50%, rgba(250, 248, 243, 1));
        pointer-events: none;
        z-index: 4;
        transition: opacity 0.3s;
    }
    .scroll-hint-gradient.hidden { opacity: 0; }
    /* PC 端：左箭头（贴近视口左边缘，避开卡片） */
    .scroll-hint-left {
        position: absolute;
        right: auto;
        left: 4px;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        background: rgba(99, 28, 36, 0.92);
        color: #fff;
        border-radius: 50%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        font-weight: 600;
        line-height: 1;
        z-index: 5;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        animation: scrollHintBounceLeft 1.6s ease-in-out infinite;
        transition: opacity 0.3s;
    }
    .scroll-hint-left.hidden { opacity: 0; }
    /* PC 端：右箭头（贴近视口右边缘，避开卡片） */
    .scroll-hint {
        position: absolute;
        right: 4px;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        background: rgba(99, 28, 36, 0.92);
        color: #fff;
        border-radius: 50%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        font-weight: 600;
        line-height: 1;
        z-index: 5;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        animation: scrollHintBounce 1.6s ease-in-out infinite;
        transition: opacity 0.3s;
    }
    .scroll-hint.hidden { opacity: 0; }
    /* v37.229 PC 端：箭头到达边界时变灰（不隐藏，让 user 知道已到边界） */
    .scroll-hint.at-bound,
    .scroll-hint-left.at-bound {
        opacity: 0.3;
        cursor: default;
    }
    .scroll-hint-gradient.at-bound { opacity: 0.3; }
    @keyframes scrollHintBounceLeft {
        0%, 100% { transform: translate(0, -50%); }
        50% { transform: translate(-5px, -50%); }
    }
    @keyframes scrollHintBounce {
        0%, 100% { transform: translate(0, -50%); }
        50% { transform: translate(5px, -50%); }
    }
    /* v37.229 PC 端：5 个卡片已填满，不需要"滑动查看更多"底部提示（移动端保留） */
    .scroll-hint-bottom { display: none !important; }
}
.cards-grid > .card {
    height: auto;
    aspect-ratio: 1 / 1;  /* PC 端正方形卡片 */
}

.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}
.card:hover {
    transform: scale(1.04);
}

.card-cover {
    flex: 2 1 0;
    min-height: 120px;
    background: #f5f1e8;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;  /* PC 端正方形 */
}
.card-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover; object-position: top;
}
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover; object-position: top;
}
.card-cover-placeholder {
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 64px;
    color: var(--color-gold-soft);
    font-weight: 300;
}
.card-cover-type {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    padding: 3px 8px;
    background: rgba(255,255,255,0.92);
    color: var(--color-ink);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    backdrop-filter: blur(4px);
}
.card-new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #c0392b;
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    font-weight: 600;
    letter-spacing: 0.1em;
    /* 呼吸灯由 JS 强制实现（startNewBadgeBreathe），CSS 不要再加 animation 防止双重动画 */
}
.card-lookbook-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(99, 28, 36, 0.9);
    color: white;
    font-size: 11px;
    padding: 4px 10px;
    font-weight: 600;
    border-radius: 2px;
}
.card-lookbook {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.card-footer-lookbook {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.card-lookbook-action {
    font-size: 13px;
    color: var(--color-ink);
    font-weight: 600;
}

.card-body {
    padding: 8px 10px 8px;
    flex: 1 1 0;
    min-height: 110px;
    display: flex;
    flex-direction: column;
}
.card-compact .card-body {
    padding: 8px 10px 8px;
}
.card-meta-top {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.card-season {
    font-size: 11px;
    color: var(--color-mute);
    letter-spacing: 0.05em;
    font-weight: 500;
}
.card-title {
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    color: var(--color-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
    flex: 0 0 auto;          /* 不让 flex 压缩 */
    max-height: none;         /* 移除可能的高度限制 */
}
.card-desc {
    font-size: 14px;
    color: var(--color-ink-soft);
    line-height: 1.65;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.card-tag {
    font-size: 11px;
    padding: 2px 8px;
    background: #f5f1e8;
    color: var(--color-ink-soft);
    border-radius: 2px;
}
.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--color-line);
}
.card-date {
    font-size: 12px;
    color: var(--color-mute);
    font-variant-numeric: tabular-nums;
}
.card-actions {
    display: flex;
    gap: 8px;
}
.card-action-view {
    display: block;
    width: 60%;
    margin: 0 auto;
    text-align: center;
    background: var(--color-ink);
    color: #fff;
    padding: 4px 0;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 500;
    border-bottom: none;
}
.card-action-view:hover { background: #000; border-bottom: none; }
.btn {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.btn-primary {
    background: var(--color-ink);
    color: white;
}
.btn-primary:hover { background: #000; }
.btn-ghost {
    background: transparent;
    border-color: var(--color-line);
    color: var(--color-ink);
}
.btn-ghost:hover {
    border-color: var(--color-ink);
    background: var(--color-ink);
    color: white;
}

/* ========== Empty State ========== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-mute);
}
.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

/* ===== v37.215 marketing 模块：文件更新中空状态（高度校准跟其他模块一致） ===== */
[data-grid-for="marketing"].cards-grid {
    height: 219px;  /* PC 端固定高度，跟其他模块 1:1 卡片一致 */
}
.empty-state-marketing {
    flex: 1;
    height: 100%;
    min-height: 219px;  /* PC 端 1:1 卡片高度 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #8a7a72;
}
.empty-state-marketing .empty-icon-marketing {
    margin-bottom: 16px;
    opacity: 0.65;
}
.empty-state-marketing .empty-text-marketing {
    font-size: 16px;
    font-weight: 500;
    color: #631c24;
    letter-spacing: 0.05em;
    margin: 0 0 6px;
}
.empty-state-marketing .empty-sub-marketing {
    font-size: 12px;
    color: #a89890;
    margin: 0;
    letter-spacing: 0.03em;
}
@media (max-width: 768px) {
    [data-grid-for="marketing"].cards-grid { height: 113px; }  /* mobile 1:1 卡片高度 */
    .empty-state-marketing { min-height: 113px; }
    .empty-state-marketing .empty-icon-marketing svg { width: 36px; height: 36px; }
    .empty-state-marketing .empty-text-marketing { font-size: 14px; }
    .empty-state-marketing .empty-sub-marketing { font-size: 11px; }
}

/* ========== Footer ========== */
.footer {
    background: var(--color-ink);
    color: #f0d9c0;
    padding: 32px;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-brand {
    color: #faf8f3;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 14px;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}
.footer-tip {
    font-size: 12px;
    color: #d4b8a0;
}
.footer-right {
    font-size: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    color: #d4b8a0;
}
.footer-right a {
    color: var(--color-gold);
    border-bottom: 1px solid var(--color-gold);
    padding-bottom: 1px;
    transition: opacity 0.2s;
}
.footer-right a:hover { opacity: 0.7; }

/* ========== Module accent colors (统一黑色，不再用三色) ========== */
.module[data-module="standard"] .module-num,
.module[data-module="newproduct"] .module-num,
.module[data-module="fab"] .module-num {
    color: var(--color-ink);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .topbar-inner { gap: 20px; padding: 14px 20px; }
    .nav-modules a { padding: 6px 10px; font-size: 13px; }
    .nav-search input { width: 180px; }
    .hero { padding: 60px 20px 40px; }
    .hero-title { font-size: 42px; }
    .main { padding: 60px 20px; }
    .module { margin-bottom: 72px; }
    .module-num { font-size: 36px; }
    .module-title { font-size: 22px; }
    .hero-stats { gap: 32px; }
}

@media (max-width: 768px) {
    /* ===== 顶部（LOGO 居中 + nav 5 tab 强制 1 行完整呈现） ===== */
    .topbar-inner { gap: 8px; padding: 10px 4px; }
    .brand-mark { height: 28px; }
    .brand-text { display: none; }
    .nav-modules {
        gap: 0;
        padding: 0;
        width: 100%;
        justify-content: space-around;
        overflow: visible;
    }
    .nav-modules a {
        padding: 6px 1px;
        font-size: 10px;                 /* 缩字号让 7 字也能装下 */
        flex: 1 1 0;                     /* 每个 tab 等宽 */
        text-align: center;
        min-width: 0;
        overflow: hidden;
        text-overflow: clip;             /* 防止文字溢出到下一个 tab */
        white-space: nowrap;
    }

    /* ===== 1 行 3 个卡片 + 1:1 ===== */
    .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .card { aspect-ratio: 1 / 1; }
    .card-cover { aspect-ratio: 1 / 1; padding-top: 0; min-height: 0; flex: 1; }
    .format-block-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }

    /* ===== 移动端卡片 1 行 3 个 + 1:1 + 小标题 ===== */
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);  /* 1 行 3 个 */
        gap: 6px;  /* 缩 gap */
    }
    .card { aspect-ratio: 1 / 1; }  /* 1:1 正方形 */
    .card-cover { 
        aspect-ratio: 1 / 1; 
        padding-top: 0;  /* 不用 padding-top */
        min-height: 0;
        flex: 1;
    }
    .card-block { 
        padding: 8px;  /* 缩内边距 */
    }
    .block-title { 
        font-size: 10px;  /* 缩标题（原 24px → 20px） */
        line-height: 1.2;
    }
    .format-block-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .nav-search input { width: 100%; font-size: 13px; padding: 7px 30px 7px 10px; }
    .nav-modules { order: 2; flex: 1 1 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 6px; padding-bottom: 2px; }
    .nav-modules::-webkit-scrollbar { display: none; }
    .nav-modules a { padding: 6px 2px; font-size: 10px; line-height: 1.2; }

    /* ===== Hero ===== */
    .hero { padding: 32px 20px 24px; }
    .hero-title { font-size: 26px; line-height: 1.25; word-break: keep-all; }
    .hero-desc { font-size: 13px; line-height: 1.65; max-width: 100%; word-break: keep-all; }
    .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; padding-top: 20px; }
    .stat-num { font-size: 26px; }
    .stat-label { font-size: 11px; }

    /* 最新更新 (mobile) */
    .hero-recent { margin-top: 28px; padding-top: 20px; }
    .hero-recent-title { font-size: 12px; margin-bottom: 12px; }
    .hero-recent-list { gap: 10px; }
    .hero-recent-list li a { padding: 12px 14px; gap: 10px; }
    .recent-new { font-size: 10px; padding: 3px 8px; }
    .recent-title { font-size: 13px; }

    /* ===== 主体 ===== */
    .main { padding: 32px 16px; }
    .module { margin-bottom: 40px; }
    .module-head { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 14px; margin-bottom: 16px; }
    .module-head-left { gap: 12px; }
    .module-num { font-size: 26px; min-width: 40px; }
    .module-title { font-size: 19px; }
    .module-desc { font-size: 14px; }
    .module-meta { display: none; }  /* 移动端隐藏模块右侧的"共 X 份文件" */

    /* ===== 01/02/03/04 模块：横滑 carousel（1 行 3 张 + peek 下一张） ===== */
    /* wrap 容器：负责相对定位，承载渐变 + 箭头 */
    .scroll-hint-wrap {
        position: relative;
        margin: 0 -16px;   /* 让渐变/箭头能延伸到容器边缘 */
    }
    [data-grid-for="newproduct"].cards-grid,
    [data-grid-for="lookbook"].cards-grid,
    [data-grid-for="fab"].cards-grid,
    [data-grid-for="marketing"].cards-grid,
    [data-grid-for="standard"].cards-grid {
        display: flex !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 12px;
        padding: 4px 16px 8px;
        grid-template-columns: none !important;
        scroll-padding-left: 16px;  /* 防 snap 把 padding 滚没 */
        position: relative;
    }
    /* 右侧渐变遮罩（独立 div，由 JS 注入到 wrap） */
    .scroll-hint-gradient {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 50px;
        background: linear-gradient(to right, transparent, rgba(250, 248, 243, 0.95) 60%, rgba(250, 248, 243, 1));
        pointer-events: none;
        z-index: 4;
        transition: opacity 0.3s;
    }
    .scroll-hint-gradient.hidden { opacity: 0; }
    /* 右箭头（独立 div，由 JS 注入到 wrap） */
    .scroll-hint {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 28px;
        height: 28px;
        background: rgba(99, 28, 36, 0.92);
        color: #fff;
        border-radius: 50%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 19px;
        font-weight: 600;
        line-height: 1;
        z-index: 5;
        pointer-events: none;
        box-shadow: 0 2px 6px rgba(0,0,0,0.25);
        animation: scrollHintBounce 1.6s ease-in-out infinite;
        transition: opacity 0.3s;
    }
    .scroll-hint.hidden { opacity: 0; }
    /* PC 端左箭头（> 768px 才生效） */
    .scroll-hint-left {
        right: auto;
        left: 10px;
        animation: scrollHintBounceLeft 1.6s ease-in-out infinite;
    }
    @keyframes scrollHintBounceLeft {
        0%, 100% { transform: translate(0, -50%); }
        50% { transform: translate(-5px, -50%); }
    }
    @keyframes scrollHintBounce {
        0%, 100% { transform: translate(0, -50%); }
        50% { transform: translate(5px, -50%); }
    }
    [data-grid-for="newproduct"].cards-grid::-webkit-scrollbar,
    [data-grid-for="lookbook"].cards-grid::-webkit-scrollbar,
    [data-grid-for="fab"].cards-grid::-webkit-scrollbar,
    [data-grid-for="marketing"].cards-grid::-webkit-scrollbar { display: none; }
    [data-grid-for="newproduct"].cards-grid > .card,
    [data-grid-for="lookbook"].cards-grid > .card,
    [data-grid-for="fab"].cards-grid > .card,
    [data-grid-for="marketing"].cards-grid > .card,
    [data-grid-for="standard"].cards-grid > .card {
        flex: 0 0 calc(33.333% - 8px);  /* 1 行 3 张 + peek */
        max-width: calc(33.333% - 8px);
        scroll-snap-align: start;
        aspect-ratio: 1 / 1;
        margin: 0;
    }
    [data-grid-for="lookbook"].cards-grid > .card-block,
    [data-grid-for="fab"].cards-grid > .card-block {
        flex: 0 0 calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
    }

    /* ===== 其他 3 个模块（新品/营销/品牌标准）保持 1 行 3 个 ===== */
    .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .format-block-cards { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .card { aspect-ratio: 1 / 1; }
    .card-cover { height: auto; min-height: 0; flex: 1; }
    .card-body { padding: 4px 6px 6px; }
    .card-meta-top { font-size: 10px; margin-bottom: 3px; }
    .card-title { font-size: 10px; line-height: 1.3; margin-bottom: 2px; word-break: keep-all; overflow-wrap: anywhere; }
    .card-desc { font-size: 10px; line-height: 1.3; -webkit-line-clamp: 2; margin-bottom: 4px; word-break: keep-all; }
    .card-tags { gap: 2px; margin-bottom: 4px; }
    .card-tag { font-size: 10px; padding: 2px 6px; }
    .card-footer { padding-top: 10px; flex-direction: column; align-items: stretch; gap: 8px; }
    .card-date { font-size: 11px; text-align: center; }
    .card-actions { justify-content: center; gap: 6px; }
    .btn { padding: 5px 10px; font-size: 11px; }
    .card-new-badge { font-size: 9px; padding: 2px 6px; }
    .card-cover-type { font-size: 9px; padding: 2px 5px; }

    /* ===== standard 模块(mobile 端)：卡片 1:1 总高，cover 缩 28px 给 bottom-bar 腾位置 ===== */
    a.card-clickable[data-module="standard"] .card-bottom-bar {
        flex: 0 0 28px;
        font-size: 11px;
    }

    /* ===== Compact 卡片(mobile 居中标题) ===== */
    .card.card-compact .card-body { padding: 8px 10px 10px; }
    .card.card-compact .card-title { font-size: 14px; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
    .card.card-compact .card-footer { padding-top: 10px; margin-top: 10px; }

    /* ===== 格式块(品牌陈列标准 5 形象) ===== */
    .format-block { padding: 16px; margin-bottom: 24px; }
    .format-block-head { flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 12px; margin-bottom: 12px; }
    .format-block-num { font-size: 22px; min-width: auto; }
    .format-block-title { font-size: 15px; margin-right: 0; display: block; margin-bottom: 4px; }
    .format-block-desc { font-size: 12px; display: block; }
    .format-block-cards { grid-template-columns: 1fr 1fr; gap: 12px; }

    /* ===== Footer ===== */
    .footer { padding: 20px 16px; margin-top: 40px; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-tip { font-size: 11px; }
    /* v37.229 保险：mobile 端显式让底部提示显示（基础 display: flex + padding 16px 0 4px） */
    .scroll-hint-bottom { display: flex; }
}

/* ===== 小屏(mobile < 480px)再压缩 ===== */
@media (max-width: 480px) {
    .topbar-inner { padding: 10px 12px; }
    .hero { padding: 24px 16px 20px; }
    .hero-title { font-size: 22px; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-num { font-size: 22px; }
    .cards-grid { gap: 10px; }
    .card-cover { height: auto; min-height: 0; flex: 0 0 auto; display: block; position: relative; padding-top: 75%; }    /* 移动端：横版 4:3 = 75% padding-top = height/width = 3/4 */
    .card-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; }
    .card-cover-type, .card-cover-placeholder { position: absolute; }
    .card-body { padding: 0 10px; min-height: 80px; display: flex; flex-direction: column; justify-content: space-around; }
    .card.card-compact .card-body { min-height: 80px; }
    .card-title { font-size: 11px; line-height: 1.3; margin: 0; min-height: 0; -webkit-line-clamp: 2; }
    .card.card-compact .card-title { font-size: 11px; line-height: 1.3; min-height: 0; -webkit-line-clamp: 2; display: block; }   /* 覆盖基础 -webkit-box */
    .card-actions { margin: 0; }
    .card.card-compact .card-actions { margin: 0; }
    .card-action-view { width: 100%; padding: 4px 0; font-size: 11px; }
    .format-block-cards { grid-template-columns: 1fr 1fr; gap: 10px; }

    /* ===== 小屏（< 480px）01/02/03/04 卡片：1 行 3 张 + peek（继承 768px 规则） ===== */
    [data-grid-for="newproduct"].cards-grid > .card,
    [data-grid-for="lookbook"].cards-grid > .card,
    [data-grid-for="fab"].cards-grid > .card,
    [data-grid-for="marketing"].cards-grid > .card,
    [data-grid-for="lookbook"].cards-grid > .card-block,
    [data-grid-for="fab"].cards-grid > .card-block {
        flex: 0 0 calc(33.333% - 6px);
        max-width: calc(33.333% - 6px);
    }
    /* 05 品牌标准：保持 grid 1 行 2 个 */
    .format-block-cards { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
}

/* ========== Animation ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.card {
    animation: fadeInUp 0.4s ease;  /* 不要 both（fill mode forwards 会让 transform 永久占用，覆盖 :hover） */
}

/* ========== Compact 卡片(只显示封面+标题+按钮) ========== */
.card.card-compact .card-body {
    padding: 8px 10px 8px;
    text-align: center;
}
.card.card-compact .card-title {
    font-size: 11px !important;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0;
    display: block !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
    height: auto;
    text-overflow: ellipsis;
}
.card.card-compact .card-footer {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    justify-content: center;
}
.card.card-compact .card-actions {
    width: 100%;
    justify-content: center;
}

/* ========== FAB 多款产品卡（一个批次 = 一张大卡 + N 款缩略图） ========== */
.card-fab {
    /* 完全仿照 .card-lookbook 排版：cover 上 + body 下 */
}
.card-fab:hover { box-shadow: var(--shadow); }

.card-fab-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #faf6f4 0%, #f3eaea 100%);
}
.card-fab-head-left { flex: 1; min-width: 0; }
.card-fab-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-ink);
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}
.card-fab-subtitle {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}
.card-fab-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.card-fab-count {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}
.card-fab-top-count {
    font-size: 12px;
    color: #2d6a4f;
    background: #e8f5ed;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}
.card-fab-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    padding: 18px 22px;
}
@media (max-width: 1280px) {
    .card-fab-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 900px) {
    .card-fab-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
    .card-fab-grid { grid-template-columns: repeat(2, 1fr); }
}
.fab-cell {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.fab-cell:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--color-ink);
}
.fab-cell-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f5f5f5;
    overflow: hidden;
}
.fab-cell-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.fab-cell-top {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--color-ink);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.fab-cell-meta {
    padding: 6px 8px 2px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.fab-cell-code {
    font-size: 10px;
    font-weight: 600;
    color: var(--text);
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.3px;
}
.fab-cell-cat {
    font-size: 9px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fab-cell-grade {
    padding: 3px 8px 6px;
    font-size: 10px;
    font-weight: 600;
    text-align: right;
}
.fab-cell-grade-top {
    color: #2d6a4f;
}
.fab-cell-grade-normal {
    color: #8a8a8a;
}

/* ========== Format Blocks (已废弃,品牌陈列标准改用普通 cards-grid) ========== */
/* 保留类名以防 HTML 中残留引用,但不再使用 */


/* ===== 整张图可点击（仅 TOP 款 + 产品FAB 2 个模块）===== */
a.card-clickable {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
a.card-clickable:hover {
    transform: scale(1.04);
    box-shadow: none;
}
a.card-clickable[data-module="lookbook"] .card-body,
a.card-clickable[data-module="fab"] .card-body { display: none; }
a.card-clickable[data-module="lookbook"] .card-cover,
a.card-clickable[data-module="fab"] .card-cover {
    aspect-ratio: 3 / 4;
    padding-top: 0;
    flex: 1;
    background: #f5f1e8;
}
a.card-clickable[data-module="lookbook"] .card-cover-img,
a.card-clickable[data-module="fab"] .card-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
a.card-clickable[data-module="lookbook"] .card-cover-type,
a.card-clickable[data-module="fab"] .card-cover-type { position: absolute; }

/* ===== v37.229 standard 模块：cover 占满 1:1 + 32px 半透明酒红 overlay 标签条（跟其他模块卡片尺寸完全一致） ===== */
a.card-clickable[data-module="standard"] {
    /* 不再 flex column，让 cover 占满整个 1:1（跟 01-04 一致） */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}
a.card-clickable[data-module="standard"] .card-cover {
    /* cover 占满整个卡片（绝对定位铺满） */
    position: absolute !important;
    inset: 0;
    aspect-ratio: 1 / 1 !important;
    flex: none !important;
    min-height: 0;
    border-radius: 0;
}
a.card-clickable[data-module="standard"] .card-bottom-bar {
    /* 32px 半透明酒红 overlay，浮在 cover 底部 */
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 32px;
    background: linear-gradient(to top, rgba(74, 18, 25, 0.92), rgba(99, 28, 36, 0.88));
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* ===== v37.213 standard 模块：底部滑动提示（SVG 长箭头 + 文案） ===== */
.scroll-hint-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 0 4px;
    color: #8a7a72;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}
.scroll-hint-bottom.hidden { opacity: 0; pointer-events: none; }
.scroll-hint-bottom .hint-text { color: #8a7a72; }
.scroll-hint-bottom .hint-arrow-svg {
    display: inline-block;
    vertical-align: middle;
}

/* ===== v37.146 纯色块卡片（2 个模块专用）===== */
/* 纯色块卡片（2 个模块专用）— 必须 display:flex 占满 grid 格子 */
.card-block {
    aspect-ratio: 1 / 1;
    color: #ffffff;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.card-block:hover {
    transform: scale(1.04);
}

/* ===== v37.192 02/03 卡片：磨砂玻璃风格（酒红 + 光影 + 透明）正式应用 ===== */

/* 卡片：酒红渐变 + 顶部高光 + 底部阴影 + 内高光 + 内阴影 */
.card-block {
    /* 顶部高光（光泽） */
    /* 底部阴影（深度） */
    /* 主色：酒红渐变 */
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 35%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0%, transparent 40%),
        linear-gradient(135deg, #8a2530 0%, #631c24 50%, #4a1219 100%);
    /* 边框用半透明白（光影） */
    border: 1px solid rgba(255, 255, 255, 0.25);
    /* 浮雕阴影：内顶部高光 + 内底部阴影（无外阴影避免底部色块） */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}
/* 高光斜线（光影流动感） */
.card-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
/* FAB 模块用更深的酒红渐变区分 */
.card-block[data-module="fab"] {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 35%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0%, transparent 40%),
        linear-gradient(135deg, #6b1d27 0%, #4a1219 50%, #2d0a10 100%);
}
/* 标题：白字 + 多层文字阴影（光影） */
.block-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
    text-align: center;
    word-break: keep-all;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(0, 0, 0, 0.4);
}
