/**
 * Amhancible 全站设计令牌（唯一配置入口）
 * 民用家居 DTC：亮底 + 暖中性主色 + 深色字
 * 改完后在主题目录执行: npm run build
 */

:root {
    --font-sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /*
     * 2026 DTC 低饱和白 + 暖燕麦体系
     * - 主背景：纯白占 70%+ 面积
     * - 次级区块：暖燕麦 #F5F4F0（高级感来源，但绝不发黄）
     * - 主文字：深炭石棕 #2B2927（替代纯黑）
     * - 主 CTA：极深灰 #1E1E1E（Add to Cart）
     * - 次 CTA：透明 + 边框 #7F756F
     * - 点缀：柔肉桂粉 #D9A07E（极少面积）
     */

    /* 主 CTA / 强调（极深灰） */
    --rgb-brand: 30 30 30;           /* #1E1E1E */
    --rgb-brand-hover: 43 41 39;     /* #2B2927 */

    /* 点缀（肉桂粉） */
    --rgb-brand-accent: 217 160 126;        /* #D9A07E */
    --rgb-brand-accent-hover: 199 140 109;  /* slightly deeper */

    /* 次级背景（暖燕麦）与轻 hover（接近白） */
    --rgb-brand-muted: 245 244 240;  /* #F5F4F0 */
    --rgb-brand-soft: 255 255 255;   /* 用纯白做轻 hover，不引入发黄底 */

    /* 主背景：纯白 */
    --color-surface: #ffffff;
    --color-surface-elevated: #ffffff;
    /* 燕麦底上的轻抬升块（比 #F5F4F0 略浅，非纯白） */
    --color-surface-raised: #faf9f6;
    --color-surface-dark: #1e1e1e;
    --color-text: #2b2927;
    --color-text-muted: #7f756f;
    --color-text-on-dark: #fafaf9;
    --color-border: #e6e4e1;
    --color-border-dark: #3a3532;
    /* 次要按钮边框（与文本同体系） */
    --color-border-button: #7f756f;

    /* 全站版心最大宽度（内容区，两侧留白由 .page-container 控制） */
    --layout-max-width: 1488px;

    /* PDP 详情吸顶导航：贴在主导航下方（JS 会按 .site-header 实测高度覆盖） */
    --site-sticky-header-height: calc(3.75rem + 1px);
    --pdp-sticky-nav-height: 3.25rem;
}

@media (min-width: 1024px) {
    :root {
        --site-sticky-header-height: calc(4rem + 1px);
    }
}

@layer base {
    body {
        font-family: var(--font-sans);
        color: var(--color-text);
        background-color: var(--color-surface);
        -webkit-font-smoothing: antialiased;
    }
}

/*
 * 按钮 / 版心：不用 @layer，且在 tailwind.css 之后加载，
 * 否则会被 Tailwind preflight 清掉 button 的 border/background。
 */
button.btn-primary,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    background-color: rgb(var(--rgb-brand));
    border: 1px solid rgb(var(--rgb-brand));
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

button.btn-primary:hover,
.btn-primary:hover {
    background-color: rgb(var(--rgb-brand-hover));
    border-color: rgb(var(--rgb-brand-hover));
}

/* 主题强调按钮：用于 Buy it now（更贴合肉桂主题） */
button.btn-accent,
.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    background-color: rgb(var(--rgb-brand-accent));
    border: 1px solid rgb(var(--rgb-brand-accent));
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

button.btn-accent:hover,
.btn-accent:hover {
    background-color: rgb(var(--rgb-brand-accent-hover));
    border-color: rgb(var(--rgb-brand-accent-hover));
}

button.btn-secondary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--color-text-muted);
    background-color: transparent;
    border: 1.5px solid var(--color-border-button);
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

button.btn-secondary:hover,
.btn-secondary:hover {
    background-color: rgb(var(--rgb-brand-muted) / 0.55);
    border-color: rgb(var(--rgb-brand) / 0.28);
    color: var(--color-text);
    box-shadow: none;
}

button.btn-cart-card,
.btn-cart-card {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

.page-container {
    width: 100%;
    max-width: var(--layout-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .page-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .page-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* 顶栏 + 主导航（DTC 紧凑高度） */
.site-topbar {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
    padding: 0.25rem 0;
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
    color: var(--color-text-muted);
}

.site-topbar__inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.25rem;
}

.site-topbar a:hover,
.site-topbar button:hover {
    color: rgb(var(--rgb-brand-accent));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 0 rgb(30 30 30 / 0.04);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.75rem;
}

@media (min-width: 1024px) {
    .site-header__inner {
        min-height: 4rem;
        gap: 1.5rem;
    }
}

.site-header__left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    min-width: 0;
}

@media (min-width: 1280px) {
    .site-header__left {
        gap: 2rem;
    }
}

.site-header__logo {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: rgb(var(--rgb-brand-accent));
    white-space: nowrap;
}

@media (min-width: 768px) {
    .site-header__logo {
        font-size: 1.375rem;
    }
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

@media (min-width: 1280px) {
    .site-header__nav {
        gap: 1.25rem;
    }
}

.site-header__link {
    display: inline-flex;
    align-items: center;
    color: var(--color-text);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.site-header__link:hover {
    color: rgb(var(--rgb-brand-accent));
}

.site-header__caret {
    margin-left: 0.125rem;
    font-size: 1rem;
    line-height: 1;
}

.site-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    max-width: 20rem;
}

.site-header__search-wrap {
    position: relative;
    width: 100%;
}

.site-header__search {
    width: 100%;
    padding: 0.4375rem 2.5rem 0.4375rem 1rem;
    font-size: 0.8125rem;
    line-height: 1.25;
    color: var(--color-text);
    background: rgb(var(--rgb-brand-muted));
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header__search::placeholder {
    color: var(--color-text-muted);
}

.site-header__search:focus {
    border-color: rgb(var(--rgb-brand-muted));
    box-shadow: 0 0 0 2px rgb(var(--rgb-brand-muted) / 0.85);
}

.site-header__search-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.site-header__search-btn:hover {
    color: rgb(var(--rgb-brand-accent));
}

.site-header__search-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.site-header__cart {
    position: relative;
    flex-shrink: 0;
    padding: 0.375rem;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.site-header__cart:hover {
    color: rgb(var(--rgb-brand-accent));
}

.site-header__cart svg {
    width: 1.375rem;
    height: 1.375rem;
}

.site-header__cart-badge {
    position: absolute;
    top: 0.125rem;
    right: 0.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1rem;
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: rgb(var(--rgb-brand-accent));
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.92);
    border-radius: 9999px;
}

/* Contact form: Safari-friendly select height and arrow */
.contact-select-fix {
    min-height: 2.875rem;
    line-height: 1.25;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgb(127 117 111 / 0.9) 50%),
        linear-gradient(135deg, rgb(127 117 111 / 0.9) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

/* Safari/Chrome: hide number input spinners in cart qty */
.qty-input[type="number"]::-webkit-outer-spin-button,
.qty-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox + modern engines */
.qty-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.max-w-layout-two-thirds {
    max-width: calc(var(--layout-max-width) * 2 / 3);
}

/* 首页首屏：版心内大图 + 左侧文案 */
.home-hero__wrap {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .home-hero__wrap {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

.home-hero__frame {
    position: relative;
    min-height: min(72vh, 40rem);
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 24px rgb(30 30 30 / 0.06);
}

.home-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-hero__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgb(30 30 30 / 0.5) 0%, rgb(30 30 30 / 0.12) 38%, transparent 62%),
        linear-gradient(90deg, rgb(30 30 30 / 0.28) 0%, transparent 55%);
    pointer-events: none;
}

.home-hero__copy {
    position: absolute;
    z-index: 1;
    left: 0;
    bottom: 0;
    max-width: 28rem;
    padding: 1.5rem;
    text-align: left;
}

/* 文案区局部蒙层：极淡左→右渐变，压窗户高光、提白字可读性 */
.home-hero__copy-veil {
    position: absolute;
    z-index: 0;
    left: -1.5rem;
    right: -5rem;
    bottom: -1.25rem;
    top: -0.75rem;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgb(30 30 30 / 0.2) 0%,
        rgb(30 30 30 / 0.08) 42%,
        transparent 78%
    );
}

@media (min-width: 768px) {
    .home-hero__copy {
        padding: 2rem 2.5rem;
    }

    .home-hero__copy-veil {
        left: -2.5rem;
        right: -6rem;
        bottom: -2rem;
        top: -1rem;
        background: linear-gradient(
            90deg,
            rgb(30 30 30 / 0.18) 0%,
            rgb(30 30 30 / 0.06) 45%,
            transparent 80%
        );
    }
}

.home-hero__title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 1px 16px rgb(30 30 30 / 0.28);
}

.home-hero__cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 0.6875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-text);
    background-color: rgb(255 255 255 / 0.6);
    border: 1px solid rgb(255 255 255 / 0.45);
    border-radius: 0.5rem;
    box-shadow: 0 2px 12px rgb(30 30 30 / 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-hero__cta:hover {
    background-color: rgb(255 255 255 / 0.78);
    border-color: rgb(255 255 255 / 0.65);
    transform: translateY(-1px);
}

@media (max-width: 639px) {
    .home-hero__frame {
        min-height: min(68vh, 28rem);
    }

    .home-hero__scrim {
        background:
            linear-gradient(0deg, rgb(30 30 30 / 0.55) 0%, rgb(30 30 30 / 0.2) 45%, transparent 70%),
            linear-gradient(90deg, rgb(30 30 30 / 0.35) 0%, transparent 70%);
    }

    .home-hero__copy {
        max-width: 16rem;
        padding: 1.25rem;
    }

    .home-hero__copy-veil {
        left: -1.25rem;
        right: -3rem;
        bottom: -1rem;
        background: linear-gradient(
            90deg,
            rgb(30 30 30 / 0.22) 0%,
            rgb(30 30 30 / 0.09) 40%,
            transparent 75%
        );
    }
}

/* 首页品牌信念（第四屏）：左图 688 + 右栏文案 */
.home-brand {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .home-brand {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

.home-brand__panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgb(30 30 30 / 0.06);
    background-color: var(--color-surface-raised);
}

.home-brand__media {
    overflow: hidden;
    background-color: rgb(var(--rgb-brand) / 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.home-brand__visual {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

@media (max-width: 767px) {
    .home-brand__media {
        max-height: 16rem;
    }

    .home-brand__visual {
        min-height: 14rem;
        object-position: center 40%;
    }
}

.home-brand__copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 1.25rem 1.125rem 1.375rem;
    background-color: var(--color-surface-raised);
}

.home-brand__heading {
    margin: 0 0 1rem;
    font-size: clamp(1.375rem, 2.2vw, 1.75rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.home-brand__pillars {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.home-brand__pillar-title {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 0 0.3125rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
}

.home-brand__pillar-icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
    font-size: 1.0625rem;
    line-height: 1;
    color: rgb(var(--rgb-brand-accent));
}

.home-brand__pillar-text {
    margin: 0;
    padding-left: 1.5625rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.home-brand__link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.home-brand__link:hover {
    color: rgb(var(--rgb-brand-hover));
}

@media (min-width: 768px) {
    /* 画板总高约 650px；左图宽 688px，竖图裁切压缩高度 */
    .home-brand__panel {
        flex-direction: row;
        align-items: stretch;
        height: clamp(24rem, 36vw, 40.625rem);
    }

    .home-brand__media {
        flex: 0 0 clamp(16rem, 46vw, 43rem);
        width: clamp(16rem, 46vw, 43rem);
        max-width: 43rem;
    }

    .home-brand__visual {
        object-position: center 38%;
    }

    .home-brand__copy {
        justify-content: center;
        min-width: 0;
        padding: 1.75rem 1.75rem 1.625rem;
    }

    .home-brand__heading {
        margin-bottom: 1.125rem;
        font-size: clamp(1.5rem, 1.8vw, 1.875rem);
    }

    .home-brand__pillars {
        gap: 1rem;
    }

    .home-brand__pillar-title {
        font-size: 1rem;
    }

    .home-brand__pillar-icon {
        font-size: 1.125rem;
    }

    .home-brand__pillar-text {
        padding-left: 1.625rem;
        font-size: 0.875rem;
        line-height: 1.55;
    }

    .home-brand__link {
        margin-top: 1.125rem;
    }
}

@media (min-width: 1280px) {
    .home-brand__panel {
        height: 40.625rem;
    }

    .home-brand__media {
        flex: 0 0 43rem;
        width: 43rem;
    }

    .home-brand__copy {
        padding: 2.25rem 2.5rem 2rem;
    }

    .home-brand__pillar-text {
        font-size: 0.9375rem;
    }
}

/* 首页博客（第五屏） */
.home-stories__eyebrow {
    margin-bottom: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgb(var(--rgb-brand-accent));
}

.home-stories__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

@media (min-width: 768px) {
    .home-stories__title {
        font-size: 1.875rem;
    }
}

.home-stories__all-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.home-stories__all-link:hover {
    color: var(--color-text);
}

.home-stories__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .home-stories__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .home-stories__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-stories-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    background: var(--color-surface-elevated);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-stories-card:hover {
    border-color: rgb(var(--rgb-brand-muted) / 0.8);
    box-shadow: 0 4px 16px rgb(30 30 30 / 0.06);
}

.home-stories-card__media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: rgb(var(--rgb-brand-muted));
}

.home-stories-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.home-stories-card:hover .home-stories-card__img {
    transform: scale(1.03);
}

.home-stories-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.875rem 1rem 1rem;
}

.home-stories-card__cat {
    margin-bottom: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgb(var(--rgb-brand-accent));
}

.home-stories-card__heading {
    margin: 0 0 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
}

.home-stories-card__heading a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: inherit;
    transition: color 0.2s ease;
}

.home-stories-card:hover .home-stories-card__heading a {
    color: rgb(var(--rgb-brand-hover));
}

.home-stories-card__excerpt {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--color-text-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.home-stories-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: auto 0 0;
    padding-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.home-stories-card__more {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.home-stories-card__more i {
    margin-left: 0.125rem;
    font-size: 0.875rem;
}

.home-stories-card__more:hover {
    color: rgb(var(--rgb-brand-hover));
}

.home-stories__empty {
    max-width: 28rem;
    margin-inline: auto;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px dashed var(--color-border);
    border-radius: 0.75rem;
    background: var(--color-surface-elevated);
}

.home-stories__empty-icon {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 2rem;
    color: rgb(var(--rgb-brand-accent));
}

.home-stories__empty-text {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.home-stories__empty-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    border-radius: 0.5rem;
}

/* 首页「按空间」场景编辑卡片（固定高度，object-fit 裁切不变形） */
.home-scene-card {
    position: relative;
    display: block;
    width: 100%;
    height: 20rem;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    background-color: rgb(var(--rgb-brand) / 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 12px rgb(30 30 30 / 0.04);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

@media (min-width: 768px) {
    .home-scene-card {
        height: 22rem;
    }
}

@media (min-width: 1024px) {
    .home-scene-card {
        height: 24rem;
    }
}

.home-scene-card:hover {
    border-color: rgb(var(--rgb-brand) / 0.2);
    box-shadow: 0 12px 32px rgb(30 30 30 / 0.1);
    transform: translateY(-2px);
}

.home-scene-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.55s ease;
}

.home-scene-card:hover .home-scene-card__img {
    transform: scale(1.04);
}

.home-scene-card__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgb(30 30 30 / 0.55) 0%,
        rgb(30 30 30 / 0.15) 42%,
        transparent 68%
    );
    pointer-events: none;
}

.home-scene-card__copy {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1.25rem 1.35rem;
}

@media (min-width: 768px) {
    .home-scene-card__copy {
        padding: 1.35rem 1.5rem 1.5rem;
    }
}

.home-scene-card__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 16px rgb(30 30 30 / 0.35);
}

.home-scene-card__cta {
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgb(255 255 255 / 0.88);
    transition: color 0.2s ease;
}

.home-scene-card:hover .home-scene-card__cta {
    color: #fff;
}

.home-scene-card__cta i {
    transition: transform 0.2s ease;
}

.home-scene-card:hover .home-scene-card__cta i {
    transform: translateX(3px);
}

@media (min-width: 1024px) {
    .home-scene-card__title {
        font-size: 1.375rem;
    }
}

/* 首页 Shop By Category：左下角半透明圆角标签（轻模糊透图，文字仍清晰） */
.home-series-card__label {
    position: absolute;
    z-index: 1;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: inline-block;
    max-width: calc(100% - 2rem);
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.35;
    color: var(--color-text);
    background-color: rgb(255 255 255 / 0.50);
    border: 1px solid rgb(255 255 255 / 0.45);
    border-radius: 0.625rem;
    box-shadow: 0 2px 10px rgb(28 25 23 / 0.1);
    backdrop-filter: blur(8px) saturate(1.05);
    -webkit-backdrop-filter: blur(8px) saturate(1.05);
}

.home-series-card__label,
.home-series-card__label .home-series-card__meta {
    text-shadow: 0 1px 2px rgb(255 255 255 / 0.85), 0 0 6px rgb(250 249 246 / 0.5);
}

@media (min-width: 768px) {
    .home-series-card__label {
        left: 1.25rem;
        right: auto;
        bottom: 1.25rem;
        max-width: 85%;
        padding: 0.625rem 1rem;
        font-size: 1rem;
        border-radius: 0.75rem;
    }
}

.home-series-card__name {
    font-weight: 600;
}

.home-series-card__meta {
    font-weight: 500;
    color: var(--color-text-muted);
}

.home-series-card:hover .home-series-card__label {
    background-color: rgb(255 255 255 / 0.65);
    border-color: rgb(var(--rgb-brand) / 0.22);
    box-shadow: 0 4px 12px rgb(28 25 23 / 0.14);
}

/* 分类列表页（PLP）：统一字体层级 */
.category-plp {
    font-size: 0.9375rem;
    line-height: 1.5;
    letter-spacing: -0.008em;
    color: var(--color-text);
}

.category-plp__aside-label {
    margin-bottom: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.category-plp__title {
    margin-bottom: 0.375rem;
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

@media (min-width: 768px) {
    .category-plp__title {
        font-size: 1.625rem;
    }
}

.category-plp__meta {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--color-text-muted);
}

.category-plp__sort {
    min-width: 10.5rem;
    padding: 0.4375rem 2rem 0.4375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--color-text);
    background-color: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    cursor: pointer;
}

.category-plp__sort:focus {
    outline: none;
    border-color: rgb(var(--rgb-brand) / 0.35);
    box-shadow: 0 0 0 2px rgb(var(--rgb-brand-muted) / 0.8);
}

.category-plp__product-name {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    color: rgb(var(--rgb-brand-hover) / 0.9);
}

.category-plp__product-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.category-plp__rating {
    color: rgb(var(--rgb-brand-accent) / 0.9);
    transition: color 0.18s ease;
}

.category-plp__card:hover .category-plp__rating {
    color: rgb(var(--rgb-brand-accent-hover));
}

.category-plp__price {
    font-size: 1.0625rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    color: rgb(var(--rgb-brand-hover));
}

.category-plp__price-old {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--color-text-muted);
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}

.category-plp__save {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgb(var(--rgb-brand-accent));
}

.category-plp__model {
    margin: 0.125rem 0 0.25rem;
    font-size: 0.6875rem;
    line-height: 1.35;
    color: var(--color-text-muted);
}

.category-plp__model-label {
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.category-plp__model-value {
    margin-left: 0.25rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--color-text);
}

/* PLP 卡片：内边距 + hover 底部加购条 */
.category-plp__card {
    position: relative;
    /* 纯覆盖式 hover CTA：卡片高度不因按钮出现而变化 */
    --plp-cartbar-h: 2.25rem; /* ≈36px */
    padding: 0.625rem 0.625rem 0.5rem;
    /* 约 400px：进一步收敛底部留白 */
    min-height: 24.5rem;
    overflow: hidden;
}

.category-plp__card .product-card__media {
    margin: 0.25rem 0 0.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

/* 列表页产品卡：放大图片高度，接近卡片可视区域 */
.category-plp__card.product-card--landscape .product-card__media {
    aspect-ratio: 4 / 3.6;
}

.category-plp__card .product-card__badge {
    top: 0.5rem;
    left: 0.5rem;
}

.category-plp__card .product-card__body {
    /* PLP 不让 body 撑满剩余高度，避免出现额外空白 */
    flex: 0 0 auto;
    padding: 0.625rem 0.125rem 0.375rem;
    padding-bottom: 0.375rem;
}

.category-plp__colors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.category-plp__color-swatch {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1.5px solid var(--color-border);
    border-radius: 50%;
    background-color: #d6d3d1;
    cursor: pointer;
    flex-shrink: 0;
    transform: translateZ(0);
    will-change: transform, box-shadow;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease;
}

.category-plp__color-swatch:hover,
.category-plp__color-swatch.is-preview {
    transform: scale(1.06);
    border-color: rgb(var(--rgb-brand-hover) / 0.65);
}

.category-plp__color-swatch.is-current,
.category-plp__color-swatch.is-preview {
    box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px rgb(var(--rgb-brand-hover) / 0.5);
}

.category-plp__card-image {
    transition: opacity 0.2s ease;
}

.category-plp__cart-btn {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--plp-cartbar-h);
    padding: 0 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-text);
    background-color: rgb(var(--rgb-brand-muted) / 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid var(--color-border);
    border-radius: 0;
    cursor: pointer;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, color 0.2s ease;
}

.category-plp__cart-btn:hover {
    background-color: rgb(var(--rgb-brand-muted) / 0.4);
    color: var(--color-text);
}

@media (hover: hover) and (pointer: fine) {
    .category-plp__card:hover .category-plp__cart-btn {
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .category-plp__cart-btn {
        position: relative;
        width: auto;
        margin: 0.625rem -0.625rem -0.5rem;
        transform: none;
        border-radius: 0 0 calc(1rem - 1px) calc(1rem - 1px);
    }
}

.category-plp__empty-title {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--color-text);
}

/* 产品卡片（通用骨架）：首页 / 分类 / PDP 推荐区复用，页面仅做轻微差异 */
.product-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgb(28 25 23 / 0.08);
    border-color: rgb(var(--rgb-brand) / 0.18);
}

.product-card__media {
    position: relative;
    overflow: hidden;
    background-color: rgb(var(--rgb-brand) / 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.product-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

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

.product-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background-color: rgb(239 68 68);
    border-radius: 0.5rem;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem;
}

.product-card__kicker {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgb(var(--rgb-brand-accent));
    margin-bottom: 0.25rem;
}

.product-card__title {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: rgb(28 25 23 / 0.84);
}

.product-card__meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.product-card__rating {
    color: rgb(var(--rgb-brand) / 0.62);
    transition: color 0.18s ease;
}

.product-card:hover .product-card__rating {
    color: rgb(var(--rgb-brand) / 0.9);
}

.product-card__price {
    font-size: 0.9375rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.product-card__price-old {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--color-text-muted);
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}

.product-card__save {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgb(var(--rgb-brand-accent));
}

.product-card--square .product-card__media {
    aspect-ratio: 1 / 1;
}

.product-card--landscape .product-card__media {
    aspect-ratio: 4 / 3;
}

/* 首页第三屏：精选商品（型号 + 评价，总高约 600px） */
.home-featured {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
}

@media (min-width: 768px) {
    .home-featured {
        padding-top: 3.75rem;
        padding-bottom: 3.75rem;
    }
}

@media (min-width: 1280px) {
    .home-featured {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

.home-featured__header {
    margin-bottom: 2.25rem;
}

@media (min-width: 768px) {
    .home-featured__header {
        margin-bottom: 2.5rem;
    }
}

.home-featured__grid {
    gap: 1rem;
}

@media (min-width: 768px) {
    .home-featured__grid {
        gap: 1.125rem;
    }
}

/* 首页精选：与分类 PLP 共用 .category-plp__card，仅保留区块标题间距 */
.product-card--compact {
    border-radius: 0.75rem;
    box-shadow: none;
}

.product-card--compact:hover {
    box-shadow: 0 6px 18px rgb(30 30 30 / 0.07);
}

.product-card--compact .product-card__body {
    padding: 0.625rem 0.75rem 0.75rem;
    gap: 0.5rem;
}

.product-card--compact .product-card__title {
    font-size: 0.875rem;
    line-height: 1.4;
    min-height: 2.8em;
}

.product-card--compact .product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
    margin-top: auto;
}

.product-card--compact .product-card__prices {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.product-card--compact .product-card__price {
    font-size: 0.8125rem;
    font-weight: 600;
}

.product-card--compact .product-card__price-old {
    font-size: 0.6875rem;
}

.product-card--compact .product-card__badge {
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.625rem;
    border-radius: 0.375rem;
}

.product-card__badge--accent {
    background-color: rgb(var(--rgb-brand-accent));
}

.product-card--compact .btn-cart-card {
    flex-shrink: 0;
    width: auto;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0;
}

.product-card--compact .btn-cart-card i {
    margin: 0;
}

/* 分类列表页：左侧目录导航（轻量 DTC，无灰底飞层） */
.category-nav__link,
.category-nav__sublink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 2.1875rem;
    border-radius: 0.5rem;
    color: var(--color-text-muted);
    font-weight: 400;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.category-nav__link {
    padding: 0.4375rem 0.625rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.category-nav__sublink {
    padding: 0.4375rem 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.category-nav__link:hover,
.category-nav__sublink:hover {
    color: var(--color-text);
    background-color: rgb(var(--rgb-brand-soft));
}

.category-nav__link.is-active,
.category-nav__sublink.is-active {
    color: rgb(var(--rgb-brand-hover));
    background-color: rgb(var(--rgb-brand-muted) / 0.55);
    font-weight: 500;
}

/* 有子级：整行（名称 + 折叠箭头）共用底色 */
.category-nav__summary {
    display: flex;
    align-items: stretch;
    list-style: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.category-nav__summary::-webkit-details-marker {
    display: none;
}

.category-nav__summary:hover {
    background-color: rgb(var(--rgb-brand-soft));
}

.category-nav__details.is-active > .category-nav__summary {
    background-color: rgb(var(--rgb-brand-muted) / 0.55);
}

.category-nav__link--in-summary {
    flex: 1;
    min-width: 0;
    background-color: transparent !important;
}

.category-nav__link--in-summary:hover,
.category-nav__details.is-active > .category-nav__summary .category-nav__link--in-summary {
    background-color: transparent !important;
}

.category-nav__details.is-active > .category-nav__summary .category-nav__link--in-summary {
    color: rgb(var(--rgb-brand-hover));
    font-weight: 500;
}

.category-nav__summary::after {
    content: '';
    flex-shrink: 0;
    align-self: center;
    width: 0.375rem;
    height: 0.375rem;
    margin-right: 0.625rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    opacity: 0.4;
    transform: rotate(45deg);
    transition: transform 0.2s ease, opacity 0.15s ease;
}

.category-nav__summary:hover::after,
.category-nav__details.is-active > .category-nav__summary::after {
    opacity: 0.65;
}

.category-nav__details[open] > .category-nav__summary::after {
    transform: rotate(225deg);
}

.category-nav__count {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}

.category-nav__link.is-active .category-nav__count,
.category-nav__sublink.is-active .category-nav__count,
.category-nav__details.is-active > .category-nav__summary .category-nav__count {
    color: rgb(var(--rgb-brand) / 0.85);
}

.category-nav__sublist {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin: 0.375rem 0 0.625rem 0.5rem;
    padding-left: 0.875rem;
}

.category-nav__sublist--nested {
    gap: 0.125rem;
    margin-top: 0.25rem;
    margin-bottom: 0.375rem;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left-color: rgb(231 229 228 / 0.65);
}

.category-nav__filters {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.category-nav__filter-option {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.4375rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.category-nav__filter-option input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.category-nav__filter-option span {
    flex: 1;
    min-width: 0;
}

.category-nav__filter-option:hover {
    color: var(--color-text);
    background-color: rgb(var(--rgb-brand-soft));
}

.category-nav__filter-option:has(input:checked) {
    color: rgb(var(--rgb-brand-hover));
    background-color: rgb(var(--rgb-brand-muted) / 0.55);
    font-weight: 500;
}

.category-nav__filter-option:has(input:focus-visible) {
    outline: 2px solid rgb(var(--rgb-brand-accent) / 0.65);
    outline-offset: 2px;
}

/* 产品详情：DTC 纵向内容区（仅有内容的块才渲染，每块独立卡片底色） */
.pdp-page {
    font-size: 0.9375rem;
    line-height: 1.6;
    letter-spacing: -0.008em;
    color: var(--color-text);
}

.pdp-hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgb(var(--rgb-brand-accent));
    margin-bottom: 0.5rem;
}

.pdp-hero__title {
    margin: 0 0 0.5rem;
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: rgb(28 25 23 / 0.9);
}

@media (min-width: 768px) {
    .pdp-hero__title {
        font-size: 1.75rem;
    }
}

.pdp-hero__sku {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--color-text-muted);
}

.pdp-hero__sku-label {
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.6875rem;
    color: rgb(var(--rgb-brand) / 0.45);
}

.pdp-hero__sku-value {
    margin-left: 0.375rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    color: var(--color-text-muted);
}

.pdp-hero__meta {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--color-text-muted);
}

.pdp-hero__rating {
    color: rgb(var(--rgb-brand) / 0.7);
}

.pdp-hero__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgb(43 41 39 / 0.1);
}

.pdp-hero__price {
    font-size: 2rem;
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: rgb(var(--rgb-brand-hover));
}

@media (min-width: 768px) {
    .pdp-hero__price {
        font-size: 2.25rem;
    }
}

.pdp-hero__price--sale {
    color: rgb(var(--rgb-brand-hover));
}

.pdp-hero__price-old {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}

.pdp-hero__save {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(var(--rgb-brand-accent));
    background-color: rgb(var(--rgb-brand-accent) / 0.12);
    border: 1px solid rgb(var(--rgb-brand-accent) / 0.28);
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    font-variant-numeric: tabular-nums;
}

.pdp-sections {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .pdp-sections {
        gap: 1.5rem;
    }
}

.pdp-section {
    background-color: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgb(28 25 23 / 0.04);
    scroll-margin-top: calc(var(--site-sticky-header-height, 4.0625rem) + var(--pdp-sticky-nav-height, 3.25rem) + 0.75rem);
}

@media (min-width: 768px) {
    .pdp-section {
        border-radius: 1.25rem;
        padding: 2rem 2.25rem;
    }
}

.pdp-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    letter-spacing: -0.02em;
}

.pdp-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.pdp-section__head .pdp-section-title {
    margin-bottom: 0;
}

.pdp-section--reviews .pdp-section-title {
    border-bottom-color: rgb(43 41 39 / 0.06);
}

.pdp-review-list {
    padding: 0.25rem 0;
}

.pdp-review-empty {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.pdp-review-empty i {
    font-size: 1rem;
    color: rgb(var(--rgb-brand-accent) / 0.7);
}

@media (min-width: 768px) {
    .pdp-section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .pdp-section__head {
        margin-bottom: 1.5rem;
    }
}

/* 详情内容吸顶导航 */
.pdp-sections-sticky-nav-wrap {
    position: relative;
    margin: 0 0 1rem;
    min-height: var(--pdp-sticky-nav-height, 3.25rem);
}

.pdp-sections-sticky-nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgb(43 41 39 / 0.1);
    border-radius: 0.875rem;
    background-color: rgb(255 255 255 / 0.95);
    backdrop-filter: blur(6px);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/*
 * PDP：取消主导航 sticky，仅保留详情区吸顶条（避免双 sticky 叠层冲突）
 * body.is-pdp-page 由 product.js 注入
 */
body.is-pdp-page .site-header {
    position: relative;
    top: auto;
    z-index: 40;
}

body.is-pdp-page .pdp-sections-sticky-nav {
    z-index: 45;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: 0 1px 0 rgb(43 41 39 / 0.08), 0 4px 16px rgb(28 25 23 / 0.06);
}

body.is-pdp-page .pdp-sections-sticky-nav.is-floating {
    position: fixed;
    top: 0;
    margin: 0;
}

body.is-pdp-page .pdp-section {
    scroll-margin-top: calc(var(--pdp-sticky-nav-height, 3.25rem) + 0.75rem);
}

.pdp-sections-sticky-nav__tabs {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.pdp-sections-sticky-nav__tabs::-webkit-scrollbar {
    display: none;
}

.pdp-sections-sticky-nav__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 2rem;
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.pdp-sections-sticky-nav__tab:hover {
    color: rgb(var(--rgb-brand-hover));
    background-color: rgb(var(--rgb-brand-soft) / 0.85);
}

.pdp-sections-sticky-nav__tab.is-active {
    color: rgb(var(--rgb-brand-hover));
    border-color: rgb(var(--rgb-brand-accent) / 0.55);
    background-color: rgb(var(--rgb-brand-muted) / 0.9);
}

.pdp-sections-sticky-nav__cta {
    flex-shrink: 0;
}

.pdp-sticky-cart-btn {
    flex-shrink: 0;
}

.pdp-back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.5rem;
    z-index: 46;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgb(43 41 39 / 0.18);
    border-radius: 9999px;
    background-color: rgb(255 255 255 / 0.96);
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    box-shadow: 0 8px 20px rgb(28 25 23 / 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.2s ease;
}

.pdp-back-to-top:hover {
    background-color: rgb(var(--rgb-brand-soft) / 0.96);
}

.pdp-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 767.98px) {
    .pdp-sections-sticky-nav {
        padding: 0.5rem 0.625rem;
    }

    .pdp-sections-sticky-nav__cta .pdp-sticky-cart-btn {
        min-width: auto;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .pdp-back-to-top {
        right: 0.875rem;
        bottom: 1rem;
    }
}

/* 首屏右侧：Color / Specifications 等模块标题（统一层级） */
.pdp-hero-section__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--color-text);
}

.pdp-hero-section__meta {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text-muted);
}

/* 首屏右侧：规格参数（颜色与加购之间） */
.pdp-hero-specs {
    display: flex;
    flex-direction: column;
}

/* 紧随颜色区：与颜色同属信息区，间距略紧于父级 space-y-6 */
.pdp-hero-specs--after-colors {
    margin-top: 1rem;
}

.pdp-hero-specs__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.pdp-hero-specs__list {
    padding-top: 0.375rem;
    padding-bottom: 0.25rem;
}

.pdp-hero-specs__toggle {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    color: rgb(var(--rgb-brand-accent));
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-color: rgb(var(--rgb-brand-accent) / 0.45);
}

.pdp-hero-specs__toggle:hover {
    color: rgb(var(--rgb-brand-accent-hover));
    text-decoration-color: rgb(var(--rgb-brand-accent-hover) / 0.55);
}

.pdp-hero-specs--collapsible:not(.is-expanded) .pdp-hero-specs__row:nth-child(n+6) {
    display: none;
}

.pdp-hero-specs__row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.625rem 0;
    border-bottom: 1px dashed rgb(43 41 39 / 0.14);
}

.pdp-hero-specs__row:first-child {
    padding-top: 0;
}

.pdp-hero-specs__name {
    flex: 0 0 40%;
    max-width: 40%;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--color-text);
}

.pdp-hero-specs__value {
    flex: 0 0 60%;
    max-width: 60%;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--color-text-muted);
    word-break: break-word;
}

/* 首屏右侧：加购区与上方信息做模块分隔 */
.pdp-hero-cta {
    border-top: 1px solid rgb(43 41 39 / 0.1);
    padding-top: 1rem;
}

/* PDP 购买控件：数量 + 加购 / Buy Now / 吸顶加购（统一圆角与高度） */
.pdp-cta-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 640px) {
    .pdp-cta-row {
        flex-direction: row;
        align-items: stretch;
    }
}

.pdp-cta-row__qty {
    flex-shrink: 0;
    width: 100%;
    max-width: 10rem;
}

.pdp-cta-row__actions {
    display: flex;
    flex: 1;
    align-items: stretch;
    gap: 0.75rem;
    min-width: 0;
}

.pdp-qty {
    display: flex;
    align-items: stretch;
    height: 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #fff;
}

.pdp-qty__btn {
    flex: 0 0 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pdp-qty__btn:first-child {
    border-right: 1px solid var(--color-border);
}

.pdp-qty__btn:last-child {
    border-left: 1px solid var(--color-border);
}

.pdp-qty__btn:hover:not(:disabled) {
    background-color: rgb(var(--rgb-brand-soft) / 0.9);
}

.pdp-qty__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pdp-qty__value {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--color-text);
    user-select: none;
}

.pdp-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    height: 2.5rem;
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 0.5rem;
    white-space: nowrap;
}

.pdp-cta-row__actions .pdp-cta-btn {
    flex: 1;
    min-width: 0;
}

.pdp-cta-btn--buy {
    box-shadow: 0 1px 2px rgb(28 25 23 / 0.06);
}

.pdp-cta-btn i {
    font-size: 1.125rem;
    line-height: 1;
}

/* Reviews 弹窗 */
.pdp-review-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
}

.pdp-review-modal.is-open {
    display: block;
}

.pdp-review-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgb(0 0 0 / 0.45);
}

.pdp-review-modal__dialog {
    position: relative;
    margin: 6vh auto 0;
    width: min(92vw, 680px);
    max-height: 88vh;
    overflow: auto;
    border-radius: 1rem;
    border: 1px solid rgb(43 41 39 / 0.14);
    background-color: #fff;
    box-shadow: 0 20px 55px rgb(0 0 0 / 0.22);
    padding: 1rem 1rem 1.25rem;
}

.pdp-review-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.pdp-review-modal__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 650;
    color: var(--color-text);
}

.pdp-review-modal__close {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 1px solid rgb(43 41 39 / 0.14);
    background-color: #fff;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pdp-review-modal__close:hover {
    background-color: rgb(var(--rgb-brand-soft) / 0.8);
}

.pdp-review-modal-open {
    overflow: hidden;
}

/* 首屏右侧：信任条（免运费 / 质保 / 退货） */
.pdp-hero-trust {
    margin-top: 1.25rem;
    padding: 0.6rem 0.9rem;
    border-radius: 9999px;
    background-color: rgb(var(--rgb-brand-muted) / 0.9);
    border: 1px solid rgb(var(--rgb-brand) / 0.08);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pdp-hero-trust__icon {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--rgb-brand-accent));
    box-shadow: 0 4px 10px rgb(15 23 42 / 0.08);
    font-size: 1rem;
}

.pdp-hero-trust__text {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
}

.pdp-rich-content {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.8;
}

.pdp-rich-content h2,
.pdp-rich-content h3,
.pdp-rich-content h4 {
    color: var(--color-text);
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.pdp-rich-content p {
    margin-bottom: 1rem;
}

.pdp-rich-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.25rem auto;
    border-radius: 0.75rem;
}

.pdp-rich-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.pdp-rich-content th,
.pdp-rich-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
    text-align: left;
}

.pdp-rich-content th {
    color: var(--color-text);
    font-weight: 600;
    background-color: rgb(var(--rgb-brand-soft));
}

.pdp-rich-content ul,
.pdp-rich-content ol {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
}

.pdp-rich-content li {
    margin-bottom: 0.5rem;
}

/* 分页：renderAmhancible / renderAmhancibleAdmin（PHP 输出，不依赖 Tailwind 扫描） */
.pagination-amhancible,
.pagination-amhancible-admin {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pagination-amhancible {
    margin-top: 3rem;
}

.pagination-amhancible-admin {
    margin-top: 0;
}

.pagination-amhancible__control,
.pagination-amhancible__page,
.pagination-amhancible-admin__control,
.pagination-amhancible-admin__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pagination-amhancible__control,
.pagination-amhancible__page {
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    color: var(--color-text-muted);
    background-color: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgb(28 25 23 / 0.05);
}

.pagination-amhancible__control:hover,
.pagination-amhancible__page:hover {
    border-color: rgb(var(--rgb-brand) / 0.45);
    color: rgb(var(--rgb-brand-hover));
    background-color: rgb(var(--rgb-brand-soft));
}

.pagination-amhancible__page.is-active,
.pagination-amhancible__page.is-active:hover {
    color: rgb(var(--rgb-brand-hover));
    font-weight: 600;
    background-color: rgb(var(--rgb-brand-muted) / 0.85);
    border-color: rgb(var(--rgb-brand-accent) / 0.55);
    box-shadow: 0 0 0 1px rgb(var(--rgb-brand-accent) / 0.22);
    cursor: default;
}

.pagination-amhancible-admin__control,
.pagination-amhancible-admin__page {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    border-radius: 0.5rem;
}

.pagination-amhancible-admin__control {
    color: #d6d3d1;
    background: transparent;
    border: 1px solid transparent;
}

.pagination-amhancible-admin__control:hover {
    color: rgb(var(--rgb-brand-hover));
    background-color: rgb(var(--rgb-brand-soft));
}

.pagination-amhancible-admin__page {
    color: var(--color-text-muted);
    background-color: var(--color-surface-elevated);
    border: 1px solid transparent;
}

.pagination-amhancible-admin__page:hover {
    color: rgb(var(--rgb-brand-hover));
    background-color: rgb(var(--rgb-brand-soft));
}

.pagination-amhancible-admin__page.is-active,
.pagination-amhancible-admin__page.is-active:hover {
    color: rgb(var(--rgb-brand-hover));
    font-weight: 600;
    background-color: rgb(var(--rgb-brand-muted) / 0.85);
    border: 1px solid rgb(var(--rgb-brand-accent) / 0.55);
    box-shadow: 0 0 0 1px rgb(var(--rgb-brand-accent) / 0.22);
    cursor: default;
}

/* 详情页颜色：圆点 30px，标题与色名同一行 */
.pdp-colors__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.375rem 0.5rem;
    margin-bottom: 0.75rem;
}

.pdp-colors__swatches.category-plp__colors {
    gap: 0.625rem;
    margin-bottom: 0;
}

.pdp-colors .category-plp__color-swatch {
    width: 30px;
    height: 30px;
    border-width: 2px;
}

.pdp-colors .category-plp__color-swatch.is-current,
.pdp-colors .category-plp__color-swatch.is-preview {
    box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px rgb(var(--rgb-brand-accent) / 0.55);
}

/* 产品详情图库 */
.pdp-gallery__main {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background-color: rgb(var(--rgb-brand) / 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--color-border);
    aspect-ratio: 1 / 1;
}

.pdp-gallery__main .main-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pdp-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-top: -1.375rem;
    color: rgb(28 25 23 / 0.72);
    background-color: rgb(255 255 255 / 0.42);
    border: 1px solid rgb(255 255 255 / 0.28);
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgb(28 25 23 / 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    opacity: 0.38;
    transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdp-gallery__main:hover .pdp-gallery__arrow {
    opacity: 0.62;
    background-color: rgb(255 255 255 / 0.58);
}

.pdp-gallery__arrow:focus-visible {
    opacity: 0.75;
    outline: 2px solid rgb(var(--rgb-brand) / 0.35);
    outline-offset: 2px;
}

.pdp-gallery__arrow:hover {
    opacity: 0.88;
    color: rgb(var(--rgb-brand-hover));
    background-color: rgb(255 255 255 / 0.82);
    border-color: rgb(255 255 255 / 0.55);
    box-shadow: 0 2px 6px rgb(28 25 23 / 0.1);
}

.pdp-gallery__arrow--prev {
    left: 0.75rem;
}

.pdp-gallery__arrow--next {
    right: 0.75rem;
}

.pdp-gallery__thumbs {
    position: relative;
}

.pdp-gallery__thumbs.has-nav .thumbnail-container {
    padding-left: 2rem;
    padding-right: 2rem;
}

.pdp-gallery__thumbs .thumbnail-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.25rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pdp-gallery__thumbs .thumbnail-container::-webkit-scrollbar {
    display: none;
}

.pdp-gallery__thumbs .thumbnail-container.is-centered {
    justify-content: center;
}

.pdp-gallery__thumbs .thumbnail {
    width: 4.5rem;
    min-width: 4.5rem;
    height: 4.5rem;
    border: 2px solid var(--color-border);
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdp-gallery__thumbs .thumbnail:hover {
    border-color: rgb(var(--rgb-brand-accent) / 0.45);
}

.pdp-gallery__thumbs .thumbnail.active {
    border-color: rgb(var(--rgb-brand-accent) / 0.7);
    box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px rgb(var(--rgb-brand-accent) / 0.45);
}

.pdp-gallery__thumbs .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdp-gallery__thumb-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 3.5rem;
    margin-top: -1.75rem;
    color: var(--color-text);
    background: linear-gradient(90deg, var(--color-surface-elevated) 70%, rgb(255 255 255 / 0));
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    box-shadow: 0 1px 4px rgb(28 25 23 / 0.08);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.pdp-gallery__thumb-arrow--prev {
    left: 0;
    background: linear-gradient(90deg, var(--color-surface-elevated) 65%, transparent);
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.pdp-gallery__thumb-arrow--next {
    right: 0;
    background: linear-gradient(270deg, var(--color-surface-elevated) 65%, transparent);
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.pdp-gallery__thumb-arrow:hover:not(.is-disabled) {
    color: rgb(var(--rgb-brand-hover));
    border-color: rgb(var(--rgb-brand) / 0.4);
}

.pdp-gallery__thumb-arrow.is-hidden {
    display: none;
}

.pdp-gallery__thumb-arrow.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

