/* Homepage: promo strip + compact nav + full-bleed hero (static background) */

:root {
    --brand-accent: #d7411e;
    --brand-accent-hover: #c23818;
    --brand-promo-bar-bg: #d84315;
    --brand-hero-text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
    --brand-promo-carousel-duration: 12s;
    --brand-promo-font-size: 12px;
    --brand-promo-slide-font-size: 12px;
    --brand-promo-pad-y: 8px;
    --brand-promo-pad-x: 12px;
}

body {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

/* Hide legacy top bar + desktop nav for brand layout */
.brand-layout .top-bar,
.brand-layout .main-header {
    display: none !important;
}

.brand-promo-banner {
    background-color: var(--brand-promo-bar-bg);
    color: #ffffff;
    padding: 0;
    font-size: var(--brand-promo-font-size);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.25;
    overflow: hidden;
}

.brand-promo-viewport {
    overflow: hidden;
    width: 100%;
}

.brand-promo-track {
    display: flex;
    width: 200%;
    font-size: var(--brand-promo-font-size);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.25;
    animation: brand-promo-carousel var(--brand-promo-carousel-duration) ease-in-out infinite;
}

.brand-promo-slide {
    flex: 0 0 50%;
    box-sizing: border-box;
    width: 50%;
    margin: 0;
    padding: var(--brand-promo-pad-y) var(--brand-promo-pad-x);
    color: #ffffff;
    text-align: center;
    font-size: var(--brand-promo-slide-font-size);
    line-height: 1.35;
}

@keyframes brand-promo-carousel {
    0%,
    38% {
        transform: translateX(0);
    }
    45%,
    83% {
        transform: translateX(-50%);
    }
    90%,
    100% {
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-promo-track {
        animation: none;
        width: 100%;
    }

    .brand-promo-slide {
        flex: 0 0 100%;
        width: 100%;
    }

    .brand-promo-slide:not(:first-of-type) {
        display: none;
    }
}

.brand-top-header {
    padding: 3px 8px !important;
    background: #fff !important;
    border-bottom: 1px solid #eee !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
}

.brand-top-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3px 8px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 4px;
}

.brand-nav-left,
.brand-nav-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0;
}

.brand-nav-left {
    justify-self: start;
}

.brand-nav-right {
    justify-self: end;
}

.brand-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #111;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 8px;
    text-decoration: none;
}

.brand-icon-btn svg {
    display: block;
    width: 20px;
    height: 20px;
}

.brand-icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.brand-cart-icon {
    position: relative;
}

.brand-logo-center {
    justify-self: stretch;
    text-align: center;
    min-width: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo-link {
    font-size: clamp(13px, 3.5vw, 22px);
    font-weight: 800;
    letter-spacing: 0.035em;
    color: var(--brand-accent);
    text-decoration: none;
    line-height: 1.1;
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.brand-logo-link:hover {
    color: var(--brand-accent-hover);
}

.brand-nav-drawer-input:checked ~ .brand-nav-drawer-panel {
    transform: translateX(0);
    visibility: visible;
}

.brand-nav-drawer-input:checked ~ .brand-nav-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.brand-nav-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.brand-nav-drawer-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: min(300px, 88vw);
    height: 100%;
    background: #fff;
    z-index: 201;
    padding: 24px 20px;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.brand-nav-drawer-panel ul {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
}

.brand-nav-drawer-panel li {
    border-bottom: 1px solid #f0f0f0;
}

.brand-nav-drawer-panel a {
    display: block;
    padding: 16px 0;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.brand-nav-drawer-panel a:hover {
    color: var(--brand-accent);
}

.brand-nav-drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    color: #333;
}

.brand-nav-drawer-close:hover {
    background: #f5f5f5;
}

/* --- Static hero --- */
.hero-section--static-brand {
    min-height: 0;
    overflow: visible;
}

.hero-section--static-brand .hero-top {
    min-height: min(92vh, 880px);
}

.hero-section--static-brand .hero-background {
    background: linear-gradient(160deg, #a5d8ff 0%, #4da3ef 55%);
}

.hero-section--static-brand .hero-static-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    box-shadow: none;
    filter: none;
}

.hero-section--static-brand .hero-carousel-click-layer {
    display: none;
}

.brand-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(20px, 5vh, 48px) 24px 48px;
    pointer-events: none;
}

.brand-hero-copy {
    text-align: center;
    max-width: 340px;
    pointer-events: auto;
}

.brand-hero-line1,
.brand-hero-line2 {
    margin: 0;
    color: #fff;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: var(--brand-hero-text-shadow);
}

.brand-hero-line1 {
    font-size: clamp(28px, 8vw, 40px);
    letter-spacing: -0.02em;
}

.brand-hero-line2 {
    font-size: clamp(34px, 10vw, 48px);
    margin-top: 6px;
    letter-spacing: -0.03em;
}

.brand-hero-sub {
    margin: 20px 0 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.brand-hero-cta {
    display: inline-block;
    margin-top: 28px;
    padding: 10px 44px;
    border-radius: 999px;
    background: var(--brand-accent);
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 20px rgba(215, 65, 30, 0.45);
    transition: background 0.2s, transform 0.2s;
}

.brand-hero-cta:hover {
    background: var(--brand-accent-hover);
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .brand-hero-copy {
        max-width: 420px;
    }

    .brand-hero-sub {
        font-size: 16px;
    }

    .hero-section--static-brand .hero-top {
        min-height: min(88vh, 980px);
    }
}

/* —— Trending Now（#heroSection 底部，商品价格链横向滚动） —— */
.hero-trending {
    display: block;
    background: #faf8f3;
    padding: 22px 0 26px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-trending-status {
    margin: 0;
    padding: 12px 8px 4px;
    font-size: 13px;
    color: #8b4d45;
    text-align: center;
    line-height: 1.45;
}

.hero-trending-status a {
    color: var(--brand-accent);
    font-weight: 600;
}

.hero-trending-skeleton {
    padding: 4px 0 8px;
}

.hero-trending-skeleton-row {
    display: flex;
    gap: 14px;
    align-items: stretch;
}

.hero-trending-skeleton-card {
    flex: 0 0 min(78vw, 280px);
    width: min(78vw, 280px);
    height: min(72vw, 260px);
    max-height: 280px;
    border-radius: 14px;
    background: linear-gradient(100deg, #ede8e0 0%, #ede8e0 40%, #f7f4ee 50%, #ede8e0 60%, #ede8e0 100%);
    background-size: 200% 100%;
    animation: hero-trending-skeleton-shimmer 1.35s ease-in-out infinite;
}

@keyframes hero-trending-skeleton-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-trending-skeleton-card {
        animation: none;
        background: #ede8e0;
    }
}

.hero-trending-inner {
    max-width: 1200px;
    margin: 0 auto;
    /* 与参考稿一致：标题与 #heroTrendingTrack 首张卡片左缘对齐，并留出舒适边距 */
    padding: 0 max(22px, env(safe-area-inset-right, 0px)) 0 max(22px, env(safe-area-inset-left, 0px));
}

.hero-trending-header {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.hero-trending-title {
    margin: 0;
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 5.2vw, 1.9rem);
    font-weight: 700;
    color: #6b2e26;
}

.hero-trending-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-inline: max(22px, env(safe-area-inset-left, 0px)) max(22px, env(safe-area-inset-right, 0px));
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* 负 margin 抵消 inner 水平 padding，内层再 padding，首卡与标题左对齐 */
    margin: 0 calc(-1 * max(22px, env(safe-area-inset-right, 0px))) 0 calc(-1 * max(22px, env(safe-area-inset-left, 0px)));
    padding: 0 max(22px, env(safe-area-inset-right, 0px)) 12px max(22px, env(safe-area-inset-left, 0px));
}

.hero-trending-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.hero-trending-track {
    display: flex;
    gap: 14px;
    align-items: stretch;
}

.hero-trending-card {
    flex: 0 0 min(78vw, 280px);
    width: min(78vw, 280px);
    scroll-snap-align: start;
}

.hero-trending-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-trending-media {
    position: relative;
    background: #f5f0e8;
    border-radius: 14px;
    aspect-ratio: 1;
    overflow: hidden;
}

.hero-trending-media a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.hero-trending-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-trending-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e8dff5;
    color: #4a3560;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 1;
    pointer-events: none;
}

.hero-trending-body {
    padding: 12px 2px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hero-trending-name {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 6px;
    color: #6b2e26;
}

.hero-trending-name a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.hero-trending-name a:hover {
    text-decoration: underline;
}

.hero-trending-sub {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 12px;
    color: #8b4d45;
    line-height: 1.35;
    margin: 0 0 12px;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-trending-add {
    width: 100%;
    margin-top: auto;
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    background: var(--brand-accent);
    color: #fff;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.hero-trending-add:hover {
    background: var(--brand-accent-hover);
}

/* 品牌故事条（紧接 Trending Now 下方） */
.brand-story-callout {
    background: #d3431d;
    color: #fff;
    text-align: center;
    padding: clamp(2rem, 6vw, 3.25rem) clamp(1.25rem, 5vw, 2rem);
    width: 100%;
    position: relative;
    z-index: 2;
}

.brand-story-callout-inner {
    max-width: 36rem;
    margin: 0 auto;
}

.brand-story-kicker {
    margin: 0 0 1rem;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: clamp(11px, 2.8vw, 12px);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.35;
    color: #fff;
}

.brand-story-body {
    margin: 0;
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-size: clamp(17px, 4.2vw, 21px);
    font-weight: 400;
    line-height: 1.6;
    color: #fff;
}

.brand-story-body em {
    font-style: italic;
    font-weight: 600;
}

/* Find Your Shade（图一素材 + 图二布局：白底、圆角图、标题 + 正文） */
.brand-find-shade {
    background: #ffffff;
    padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 5vw, 2rem) clamp(2.25rem, 7vw, 4rem);
    width: 100%;
    position: relative;
    z-index: 2;
}

.brand-find-shade-inner {
    max-width: 26.5rem;
    margin: 0 auto;
    text-align: center;
}

.brand-find-shade-img {
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto 1.35rem;
    display: block;
    border-radius: 18px;
    object-fit: cover;
    aspect-ratio: 1;
    box-shadow: 0 8px 32px rgba(107, 46, 38, 0.1);
}

.brand-find-shade-title {
    margin: 0 0 0.75rem;
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 5.5vw, 2.05rem);
    font-weight: 700;
    line-height: 1.2;
    color: #6b2e26;
}

.brand-find-shade-text {
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: clamp(14px, 3.4vw, 17px);
    font-weight: 500;
    line-height: 1.55;
    color: #6b2e26;
}
