/* ========== 红姨首页 · 画廊式全新布局 ========== */
:root {
    --hy-ink: #12201c;
    --hy-ink-soft: #2e403a;
    --hy-mute: #5f726b;
    --hy-line: #d5e3de;
    --hy-paper: #eef6f3;
    --hy-snow: #f5faf8;
    --hy-lacquer: #0f8a78;
    --hy-lacquer-deep: #0a6b5d;
    --hy-mist: #cfe8e1;
    --hy-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
    --hy-sans: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
    --hy-wrap: min(1180px, calc(100% - 48px));
    --hy-header-h: 72px;
}

.page-home {
    background: var(--hy-snow);
    color: var(--hy-ink);
    font-family: var(--hy-sans);
    overflow-x: hidden;
}

.page-home a { font-size: inherit; color: inherit; }
.page-home a:hover { color: var(--hy-lacquer); }

.hy-wrap {
    width: var(--hy-wrap);
    margin: 0 auto;
}

/* ---- Header：悬浮细条，非红条分类栏 ---- */
.hy-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--hy-header-h);
    transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
    background: transparent;
}

.hy-header.is-solid {
    background: rgba(250, 249, 247, .92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--hy-line);
}

.hy-header__inner {
    width: var(--hy-wrap);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}

.hy-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none !important;
    max-width: 280px;
}

.hy-logo__name {
    font-family: var(--hy-serif);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #fff;
    transition: color .3s;
    line-height: 1.25;
    white-space: nowrap;
}

.hy-header.is-solid .hy-logo__name { color: var(--hy-ink); }

.hy-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
    min-width: 0;
}

.hy-nav > a {
    font-size: 14px;
    color: rgba(255,255,255,.88);
    letter-spacing: .04em;
    white-space: nowrap;
    transition: color .25s, opacity .25s;
}

.hy-header.is-solid .hy-nav > a { color: var(--hy-ink-soft); }
.hy-nav > a:hover,
.hy-nav > a.cur { color: #fff; opacity: 1; }
.hy-header.is-solid .hy-nav > a:hover,
.hy-header.is-solid .hy-nav > a.cur { color: var(--hy-lacquer); }

.hy-nav__cats { position: relative; }

.hy-nav__cats-btn {
    border: 1px solid rgba(255,255,255,.45);
    background: transparent;
    color: #fff;
    font-family: var(--hy-sans);
    font-size: 13px;
    padding: 6px 14px;
    cursor: pointer;
    letter-spacing: .04em;
    transition: all .25s;
}

.hy-header.is-solid .hy-nav__cats-btn {
    border-color: var(--hy-line);
    color: var(--hy-ink);
}

.hy-nav__cats-btn.is-open,
.hy-nav__cats-btn:hover {
    background: var(--hy-lacquer);
    border-color: var(--hy-lacquer);
    color: #fff;
}

.hy-cats-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 520px;
    max-width: 720px;
    background: #fff;
    border: 1px solid var(--hy-line);
    padding: 22px 24px;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 28px;
    box-shadow: 0 16px 40px rgba(20,20,20,.08);
}

.hy-cats-panel.is-open { display: grid; }

.hy-cats-col__title {
    display: block;
    font-family: var(--hy-serif);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--hy-ink) !important;
}

.hy-cats-col__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.hy-cats-col__links a {
    font-size: 13px !important;
    color: var(--hy-mute) !important;
}

.hy-cats-col__links a:hover { color: var(--hy-lacquer) !important; }

.hy-header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.hy-search {
    display: flex;
    align-items: center;
    height: 36px;
    border: 1px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.08);
    overflow: hidden;
    transition: border-color .25s, background .25s;
}

.hy-header.is-solid .hy-search {
    border-color: var(--hy-line);
    background: #fff;
}

.hy-search__input {
    width: 140px;
    height: 100%;
    border: 0;
    background: transparent;
    padding: 0 12px;
    font-size: 13px;
    color: #fff;
    font-family: var(--hy-sans);
}

.hy-header.is-solid .hy-search__input { color: var(--hy-ink); }
.hy-search__input::placeholder { color: rgba(255,255,255,.55); }
.hy-header.is-solid .hy-search__input::placeholder { color: #999; }

.hy-search__btn {
    height: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 0 12px;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--hy-sans);
}

.hy-header.is-solid .hy-search__btn { color: var(--hy-ink-soft); }
.hy-search__btn:hover { color: var(--hy-lacquer) !important; }

.hy-cart {
    font-size: 13px !important;
    color: #fff !important;
    white-space: nowrap;
}

.hy-header.is-solid .hy-cart { color: var(--hy-ink) !important; }
.hy-cart em {
    font-style: normal;
    color: var(--hy-lacquer);
    font-weight: 600;
    margin-left: 2px;
}

.hy-account {
    display: flex;
    gap: 10px;
    font-size: 13px;
}

.hy-account a { color: rgba(255,255,255,.85) !important; }
.hy-header.is-solid .hy-account a { color: var(--hy-mute) !important; }
.hy-account a:hover { color: var(--hy-lacquer) !important; }

/* ---- Hero：全屏一幕，品牌先行 ---- */
.hy-hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    max-height: 920px;
    overflow: hidden;
    color: #fff;
}

.hy-hero__slides,
.hy-hero .slidebanner,
.hy-hero .bd,
.hy-hero .bd ul,
.hy-hero .bd li,
.hy-hero .bd a {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hy-hero .bd a {
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hy-hero .bd ul li { display: none; }
.hy-hero .bd ul li:first-child { display: block; }

.hy-hero .hd {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
}

.hy-hero .hd li {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: rgba(255,255,255,.35);
    margin: 0 4px;
    text-indent: -9999px;
    cursor: pointer;
    transition: background .3s, width .3s;
}

.hy-hero .hd li.on {
    background: #fff;
    width: 40px;
}

.hy-hero__veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(105deg, rgba(8,42,36,.78) 0%, rgba(10,56,48,.42) 48%, rgba(12,70,60,.18) 100%),
        linear-gradient(0deg, rgba(6,32,28,.5) 0%, transparent 42%);
    pointer-events: none;
    animation: hyVeilIn 1.2s ease both;
}

.hy-hero__content {
    position: relative;
    z-index: 3;
    width: var(--hy-wrap);
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 40px;
    max-width: 640px;
    margin-left: max(24px, calc((100% - var(--hy-wrap)) / 2));
    animation: hyRise .9s .15s ease both;
}

.hy-hero__brand {
    font-family: var(--hy-serif);
    font-size: clamp(28px, 4.2vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .1em;
    margin-bottom: 18px;
    text-shadow: 0 2px 24px rgba(0,0,0,.25);
}

.hy-hero__title {
    font-family: var(--hy-serif);
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 500;
    letter-spacing: .08em;
    margin-bottom: 12px;
    color: #fff;
}

.hy-hero__desc {
    font-size: 15px;
    color: rgba(255,255,255,.78);
    letter-spacing: .06em;
    margin-bottom: 32px;
    max-width: 28em;
}

.hy-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    height: 46px;
    padding: 0 22px;
    font-size: 14px !important;
    letter-spacing: .08em;
    text-decoration: none !important;
    transition: transform .25s ease, background .25s, color .25s, border-color .25s;
}

.hy-btn:hover { transform: translateY(-2px); }

.hy-btn--solid {
    background: var(--hy-lacquer);
    color: #fff !important;
    border: 1px solid var(--hy-lacquer);
}

.hy-btn--solid:hover {
    background: var(--hy-lacquer-deep);
    border-color: var(--hy-lacquer-deep);
    color: #fff !important;
}

.hy-btn--ghost {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.65);
}

.hy-btn--ghost:hover {
    background: rgba(255,255,255,.12);
    color: #fff !important;
}

.hy-hero__scroll {
    position: absolute;
    bottom: 28px;
    right: max(24px, calc((100% - var(--hy-wrap)) / 2));
    z-index: 4;
    width: 28px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.45);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
}

.hy-hero__scroll span {
    width: 4px;
    height: 8px;
    background: #fff;
    animation: hyScrollDot 1.4s ease-in-out infinite;
}

@keyframes hyRise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hyVeilIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hyScrollDot {
    0%, 100% { opacity: .35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(14px); }
}

/* ---- Section heads ---- */
.hy-section-head {
    margin-bottom: 28px;
}

.hy-section-head h2 {
    font-family: var(--hy-serif);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--hy-ink);
    margin-bottom: 8px;
}

.hy-section-head p {
    font-size: 14px;
    color: var(--hy-mute);
    letter-spacing: .06em;
}

.hy-section-head--split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* ---- 分类章节带 ---- */
.hy-chapters {
    padding: 72px 0 36px;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, var(--hy-mist) 0%, transparent 55%),
        var(--hy-snow);
}

.hy-chapter-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.hy-chapter-rail::-webkit-scrollbar { height: 3px; }
.hy-chapter-rail::-webkit-scrollbar-thumb { background: #ccc; }

.hy-chapter-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 160px;
    padding: 22px 24px;
    background: #fff;
    border-bottom: 3px solid transparent;
    text-decoration: none !important;
    transition: border-color .25s, transform .25s;
}

.hy-chapter-pill:hover {
    border-bottom-color: var(--hy-lacquer);
    transform: translateY(-3px);
    color: inherit;
}

.hy-chapter-pill__idx {
    display: block;
    font-size: 12px;
    color: var(--hy-mute);
    letter-spacing: .12em;
    margin-bottom: 8px;
}

.hy-chapter-pill__name {
    font-family: var(--hy-serif);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .06em;
}

/* ---- 精选时刻：横向大图带 ---- */
.hy-moments {
    padding: 24px 0 48px;
}

.hy-moments__track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: var(--hy-wrap);
    margin: 0 auto;
}

.hy-moment {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--hy-paper);
}

.hy-moment img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.hy-moment:hover img { transform: scale(1.06); }

.hy-moment__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 16px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
    color: #fff;
    font-size: 14px;
    letter-spacing: .04em;
    transform: translateY(8px);
    opacity: .85;
    transition: transform .3s, opacity .3s;
}

.hy-moment:hover .hy-moment__caption {
    transform: translateY(0);
    opacity: 1;
}

/* ---- 杂志式分类陈列 ---- */
.hy-collection {
    padding: 56px 0;
    background: var(--hy-snow);
}

.hy-collection--1,
.hy-collection--3,
.hy-collection--5,
.hy-collection--7,
.hy-collection--9 {
    background: linear-gradient(180deg, #e3f2ee 0%, var(--hy-snow) 100%);
}

.hy-collection__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 36px;
    align-items: start;
}

.hy-collection--1 .hy-collection__grid,
.hy-collection--3 .hy-collection__grid,
.hy-collection--5 .hy-collection__grid,
.hy-collection--7 .hy-collection__grid,
.hy-collection--9 .hy-collection__grid {
    grid-template-columns: 1.4fr 0.9fr;
}

.hy-collection--1 .hy-collection__spotlight,
.hy-collection--3 .hy-collection__spotlight,
.hy-collection--5 .hy-collection__spotlight,
.hy-collection--7 .hy-collection__spotlight,
.hy-collection--9 .hy-collection__spotlight {
    order: 2;
}

.hy-spotlight {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #1a1f1d;
    text-decoration: none !important;
}

.hy-spotlight img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .88;
    transition: transform .8s ease, opacity .4s;
}

.hy-spotlight:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.hy-spotlight__meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 24px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
}

.hy-spotlight__meta h2 {
    font-family: var(--hy-serif);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: .1em;
    margin-bottom: 8px;
    color: #fff;
}

.hy-spotlight__meta span {
    font-size: 13px;
    letter-spacing: .08em;
    opacity: .85;
}

.hy-collection__subs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 16px;
}

.hy-collection__subs a {
    font-size: 13px !important;
    color: var(--hy-mute) !important;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.hy-collection__subs a:hover {
    color: var(--hy-lacquer) !important;
    border-bottom-color: var(--hy-lacquer);
}

.hy-collection__rail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 18px;
}

.hy-product {
    animation: hyRise .6s ease both;
}

.hy-product__media {
    display: block;
    position: relative;
    aspect-ratio: 1;
    background: #fff;
    overflow: hidden;
    margin-bottom: 12px;
}

.hy-product__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform .45s ease;
}

.hy-product:hover .hy-product__media img { transform: scale(1.06); }

.hy-tag {
    position: absolute;
    top: 12px;
    left: 0;
    z-index: 1;
    background: var(--hy-lacquer);
    color: #fff;
    font-size: 11px;
    letter-spacing: .06em;
    padding: 4px 10px;
}

.hy-tag--alt { background: #0d7377; }

.hy-product__name {
    font-size: 13px;
    line-height: 1.5;
    height: 2.9em;
    overflow: hidden;
    margin-bottom: 6px;
    font-weight: 400;
}

.hy-product__name a {
    color: var(--hy-ink-soft) !important;
    font-size: 13px !important;
}

.hy-product__price {
    font-family: var(--hy-sans);
    font-size: 18px;
    font-weight: 600;
    color: var(--hy-lacquer);
    letter-spacing: .02em;
}

/* ---- 热卖马赛克 ---- */
.hy-hot {
    padding: 64px 0 48px;
    background:
        linear-gradient(135deg, #0a2e28 0%, #134840 55%, #0c332c 100%);
    color: #fff;
}

.hy-hot .hy-section-head h2 { color: #fff; }
.hy-hot .hy-section-head p { color: rgba(255,255,255,.6); }

.hy-hot__mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hy-hot-item {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
    transition: border-color .3s, transform .3s;
}

.hy-hot-item:hover {
    border-color: rgba(255,255,255,.28);
    transform: translateY(-4px);
}

.hy-hot-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.hy-hot-item__pic {
    display: block;
    aspect-ratio: 1;
    background: rgba(255,255,255,.06);
    overflow: hidden;
}

.hy-hot-item:nth-child(1) .hy-hot-item__pic { aspect-ratio: 1.15; }

.hy-hot-item__pic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform .5s ease;
}

.hy-hot-item:hover .hy-hot-item__pic img { transform: scale(1.05); }

.hy-hot-item__body { padding: 14px 16px 18px; }

.hy-hot-item__body h3 {
    font-size: 14px;
    line-height: 1.45;
    height: 2.9em;
    overflow: hidden;
    margin-bottom: 10px;
}

.hy-hot-item__body h3 a {
    color: rgba(255,255,255,.92) !important;
    font-size: 14px !important;
}

.hy-hot-item:nth-child(1) .hy-hot-item__body h3 {
    font-family: var(--hy-serif);
    font-size: 20px;
    height: auto;
    max-height: 2.8em;
}

.hy-hot-item:nth-child(1) .hy-hot-item__body h3 a { font-size: 20px !important; }

.hy-hot-item__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.hy-hot .hy-product__price { color: #5eead4; }

.hy-hot-item__sold {
    font-size: 12px;
    color: rgba(255,255,255,.45);
}

/* ---- 信任条 / 页脚 ---- */
.hy-trust {
    padding: 36px 0;
    border-bottom: 1px solid var(--hy-line);
    background: #fff;
}

.hy-trust__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.hy-trust__row strong {
    display: block;
    font-family: var(--hy-serif);
    font-size: 16px;
    margin-bottom: 6px;
    letter-spacing: .06em;
}

.hy-trust__row span {
    font-size: 13px;
    color: var(--hy-mute);
}

.hy-footer {
    background: #fff;
    padding: 48px 0 36px;
}

.hy-footer__cols {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 48px;
    margin-bottom: 36px;
}

.hy-footer__cols dl { min-width: 120px; }

.hy-footer__cols dt {
    margin-bottom: 12px;
}

.hy-footer__cols dt a {
    font-family: var(--hy-serif);
    font-size: 15px !important;
    font-weight: 700;
    color: var(--hy-ink) !important;
}

.hy-footer__cols dd a {
    display: block;
    font-size: 13px !important;
    color: var(--hy-mute) !important;
    line-height: 1.9;
}

.hy-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: center;
    padding: 20px 0;
    border-top: 1px solid var(--hy-line);
}

.hy-footer__links a {
    font-size: 13px !important;
    color: var(--hy-mute) !important;
}

.hy-footer__copy {
    text-align: center;
    font-size: 12px;
    color: #999;
    padding-top: 8px;
}

/* ---- Reveal on scroll ---- */
.hy-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.hy-reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .hy-moments__track { grid-template-columns: repeat(2, 1fr); }
    .hy-collection__grid,
    .hy-collection--1 .hy-collection__grid,
    .hy-collection--3 .hy-collection__grid {
        grid-template-columns: 1fr;
    }
    .hy-collection--1 .hy-collection__spotlight,
    .hy-collection--3 .hy-collection__spotlight {
        order: 0;
    }
    .hy-spotlight { aspect-ratio: 16 / 9; max-height: 360px; }
    .hy-hot__mosaic { grid-template-columns: repeat(2, 1fr); }
    .hy-hot-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
    .hy-nav > a:nth-child(n+4) { display: none; }
    .hy-search__input { width: 100px; }
}

@media (max-width: 760px) {
    :root { --hy-header-h: 64px; --hy-wrap: calc(100% - 32px); }
    .hy-logo__name { font-size: 15px; letter-spacing: .04em; }
    .hy-logo { max-width: 200px; }
    .hy-logo__name { white-space: normal; }
    .hy-nav { display: none; }
    .hy-account { display: none; }
    .hy-hero { min-height: 520px; max-height: none; height: 88vh; }
    .hy-collection__rail { grid-template-columns: repeat(2, 1fr); }
    .hy-trust__row { grid-template-columns: repeat(2, 1fr); }
    .hy-moments__track { grid-template-columns: 1fr 1fr; }
}
