/* Homepage visual system: scoped so inner pages retain their existing styling. */
.home-page {
    --home-ink: #18342b;
    --home-muted: #68736d;
    --home-jade: #245947;
    --home-jade-dark: #143c30;
    --home-rust: #aa4735;
    --home-gold: #bd8b39;
    --home-paper: #fbfaf6;
    --home-paper-deep: #f3eee3;
    --home-line: #ddd2bf;
    --home-radius: 18px;
    --home-shadow: 0 18px 44px rgba(35, 54, 45, .09);
    color: var(--home-ink);
    background: var(--home-paper);
}

.home-page .container {
    width: min(1180px, calc(100% - 40px));
}

.home-page .navbar {
    padding: 9px 0;
    border-bottom: 1px solid rgba(45, 79, 66, .12);
    background: rgba(251, 250, 246, .94) !important;
    box-shadow: 0 8px 30px rgba(33, 51, 44, .05);
    backdrop-filter: blur(16px);
}

.home-page .nav-container {
    width: min(1320px, calc(100% - 32px));
    max-width: 1320px;
    padding: 0;
    gap: clamp(10px, 1.4vw, 22px);
}
.home-page .nav-logo h1 {
    color: var(--home-ink);
    font-size: clamp(1.35rem, 1.7vw, 1.7rem);
    white-space: nowrap;
}
.home-page .nav-menu {
    justify-content: flex-end;
    gap: clamp(2px, .55vw, 10px);
}
.home-page .nav-link {
    padding: .55rem .5rem;
    color: #344b42;
    font-size: .88rem;
    line-height: 1.2;
    white-space: nowrap;
}
.home-page .nav-link:hover,
.home-page .nav-link.active { color: var(--home-rust); }
.home-page .nav-link::after { background: var(--home-rust); }
.home-page .bookmark-btn,
.home-page .bookmark-manage-btn { border-color: rgba(36, 89, 71, .18); background: #f6f1e8; }

.home-page .hero-image-section {
    /* The site header is fixed. Keep the photograph fully below it instead of
       allowing the first 50-70px of the portrait to sit behind the header. */
    padding: 108px 0 28px;
    background: linear-gradient(180deg, #f8f4eb 0%, var(--home-paper) 100%) !important;
}

.home-page .hero-image-container {
    width: min(1180px, calc(100% - 40px));
    aspect-ratio: 16 / 7.15;
    overflow: hidden;
    border: 1px solid rgba(142, 118, 79, .22);
    border-radius: var(--home-radius);
    background: #e9e1d3;
    box-shadow: var(--home-shadow);
}

.home-page .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.home-page .intro-section,
.home-page .home-classics,
.home-page .home-herbs,
.home-page .home-library-entry,
.home-page .home-ziwu-section,
.home-page .breath-trainer,
.home-page .paid-materials-section {
    padding-top: clamp(60px, 6vw, 82px);
    padding-bottom: clamp(60px, 6vw, 82px);
}

.home-page .intro-section {
    padding-top: clamp(48px, 5vw, 64px);
}

.home-page .intro-section,
.home-page .home-herbs,
.home-page .breath-trainer {
    background: var(--home-paper) !important;
}

.home-page .home-classics,
.home-page .home-library-entry,
.home-page .paid-materials-section {
    background: var(--home-paper-deep) !important;
}

.home-page .home-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
    gap: 34px;
    align-items: end;
    margin-bottom: 34px;
}

.home-page .home-section-kicker {
    grid-column: 1 / -1;
    margin: 0 0 -22px;
    color: var(--home-rust);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .2em;
}

.home-page .home-section-heading .section-title {
    margin: 0;
    color: var(--home-ink);
    font: 700 clamp(2.35rem, 4vw, 3.5rem)/1.12 KaiTi, STKaiti, serif;
    letter-spacing: .03em;
    text-align: left;
}
.home-page .home-section-heading .section-title::after { display: none; }

.home-page .home-section-heading > p:last-child {
    margin: 0;
    padding: 3px 0 3px 24px;
    border-left: 1px solid rgba(36, 89, 71, .28);
    color: var(--home-muted);
    font-size: .92rem;
    line-height: 1.85;
}

.home-page .timeline-container {
    max-width: 980px;
    margin: 18px auto 0;
    padding: 8px 0 0;
}
.home-page .timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 0 0 0 62px;
    list-style: none;
}
.home-page .timeline::before {
    content: '';
    position: absolute;
    z-index: 0;
    top: 22px;
    bottom: 22px;
    left: 20px;
    width: 2px;
    background: linear-gradient(180deg, rgba(174, 137, 68, .32), rgba(36, 89, 71, .58), rgba(174, 137, 68, .32));
}
.home-page .timeline-item::before { display: none; }
.home-page .timeline-item {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    align-items: center;
    min-width: 0;
    min-height: 118px;
    margin: 0;
    padding: 24px 30px;
    border: 1px solid var(--home-line);
    border-left: 3px solid rgba(174, 137, 68, .48);
    border-radius: 16px;
    background: linear-gradient(100deg, rgba(251, 247, 238, .92), rgba(255, 255, 255, .78));
    box-shadow: 0 10px 28px rgba(38, 52, 45, .045);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.home-page .timeline-step {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: -63px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    transform: translateY(-50%);
    border: 5px solid var(--home-paper);
    border-radius: 50%;
    background: var(--home-jade);
    box-shadow: 0 5px 14px rgba(22, 67, 52, .2);
    color: #fff;
    font: 700 .72rem/1 Georgia, serif;
    letter-spacing: .03em;
}
.home-page .timeline-item::after { display: none; }
.home-page .timeline-item:hover {
    transform: translateX(4px);
    border-color: rgba(170, 71, 53, .35);
    border-left-color: var(--home-rust);
    box-shadow: 0 16px 32px rgba(38, 52, 45, .08);
}
.home-page .timeline-date {
    margin: 0;
    padding-right: 24px;
    color: var(--home-rust);
    font: 700 .88rem/1.35 Georgia, serif;
    letter-spacing: .08em;
}
.home-page .timeline-content {
    padding: 0 0 0 28px;
    border-left: 1px solid rgba(36, 89, 71, .16);
}
.home-page .timeline-content h3 {
    margin: 0 0 6px;
    color: var(--home-ink);
    font: 700 1.22rem/1.3 KaiTi, STKaiti, serif;
}
.home-page .timeline-content p { margin: 0; color: var(--home-muted); font-size: .85rem; line-height: 1.75; }

.home-page .home-classics-card,
.home-page .home-herbs-catalog,
.home-page .home-library-grid,
.home-page .home-ziwu-card,
.home-page .breath-trainer-card,
.home-page .paid-material-card,
.home-page .paid-purchase-panel { border-radius: var(--home-radius); }

.home-page .home-herbs-grid { gap: 10px; }
.home-page .home-herb-item {
    overflow: hidden;
    border: 1px solid rgba(118, 104, 77, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .62);
}

.home-page .home-library-grid {
    padding: clamp(32px, 5vw, 60px);
    border: 1px solid var(--home-line);
    background: rgba(255, 255, 255, .66);
    box-shadow: var(--home-shadow);
}
.home-page .home-library-primary,
.home-page .home-herbs-all { border-radius: 9px; background: var(--home-jade); }

.home-page .home-ziwu-section {
    background: linear-gradient(180deg, #f8f5ed 0%, var(--home-paper) 100%) !important;
}
.home-page .home-ziwu-card { box-shadow: 0 22px 46px rgba(20, 60, 48, .16); }

.home-page .breath-trainer-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
    gap: 18px 34px;
    align-items: end;
    max-width: none;
    margin: 0 0 34px;
    text-align: left;
}
.home-page .breath-trainer-kicker {
    grid-column: 1 / -1;
    margin: 0 0 -7px;
    padding: 0;
    color: var(--home-rust);
    background: transparent;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .2em;
}
.home-page .breath-trainer-heading h2 {
    margin: 0;
    color: var(--home-ink);
    font: 700 clamp(2.35rem, 4vw, 3.5rem)/1.12 KaiTi, STKaiti, serif;
    letter-spacing: .03em;
}
.home-page .breath-trainer-heading p {
    margin: 0;
    padding: 3px 0 3px 24px;
    border-left: 1px solid rgba(36, 89, 71, .28);
    color: var(--home-muted);
    font-size: .92rem;
    line-height: 1.85;
}
.home-page .breath-trainer-card {
    overflow: hidden;
    border: 1px solid var(--home-line);
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--home-shadow);
}
.home-page .breath-visual {
    background: radial-gradient(circle at 50% 42%, #fffdf8 0 33%, #f1eadc 34% 100%);
}
.home-page .breath-orbit {
    border-color: rgba(36, 89, 71, .22);
    background: rgba(255, 255, 255, .46);
    box-shadow: 0 0 0 28px rgba(189, 139, 57, .07), 0 0 70px rgba(36, 89, 71, .12);
}
.home-page .breath-orbit::before { border-color: rgba(189, 139, 57, .3); }
.home-page .breath-orb {
    border-color: rgba(243, 213, 140, .72);
    color: #fff;
    background: linear-gradient(145deg, #2e6a55, var(--home-jade-dark));
    box-shadow: 0 18px 45px rgba(36, 89, 71, .24);
}
.home-page .breath-orbit[data-phase="inhale"] .breath-orb,
.home-page .breath-orbit[data-phase="hold"] .breath-orb,
.home-page .breath-orbit[data-phase="exhale"] .breath-orb {
    border-color: rgba(243, 213, 140, .82);
    background: linear-gradient(145deg, #2e6a55, var(--home-jade-dark));
    box-shadow: 0 18px 48px rgba(36, 89, 71, .28);
}
.home-page .breath-phase,
.home-page .breath-count { color: #fff; }
.home-page .breath-unit { color: #dbe8e1; }
.home-page .breath-phase-track span.active { color: var(--home-rust); }
.home-page .breath-phase-track i { background: var(--home-line); }
.home-page .breath-button-primary { background: var(--home-jade); box-shadow: 0 10px 22px rgba(36, 89, 71, .18); }
.home-page .breath-button-primary:hover { background: var(--home-jade-dark); }
.home-page .breath-button-secondary { color: var(--home-jade); border-color: rgba(36, 89, 71, .25); background: #faf7f0; }
.home-page .breath-settings { background: #f4eee2; }
.home-page .breath-rounds,
.home-page .breath-safety-note { border-color: rgba(189, 139, 57, .25); background: #fbf5e7; }
.home-page .breath-presets button { border-color: rgba(36, 89, 71, .18); color: #43564e; background: #fffdf8; }
.home-page .breath-presets button.active { border-color: var(--home-jade); color: #fff; background: var(--home-jade); }
.home-page .breath-fields > label { border-color: rgba(94, 79, 55, .13); background: rgba(255, 255, 255, .7); }
.home-page .breath-input-wrap input:focus-visible,
.home-page .breath-button:focus-visible,
.home-page .breath-presets button:focus-visible { outline-color: var(--home-gold); }

.home-page .paid-materials-heading h2,
.home-page .paid-purchase-copy h3 { color: var(--home-ink); font-family: KaiTi, STKaiti, serif; }
.home-page .paid-material-card { box-shadow: 0 14px 34px rgba(35, 54, 45, .07); }
.home-page .paid-purchase-panel { box-shadow: 0 18px 40px rgba(35, 54, 45, .08); }

.home-page .footer {
    margin-top: 0;
    border-top: 0;
    color: #dbe5e0;
    background: var(--home-jade-dark) !important;
}
.home-page .footer-content {
    grid-template-columns: minmax(0, 1.15fr) minmax(190px, .8fr) minmax(210px, .8fr);
    gap: clamp(30px, 5vw, 72px);
}
.home-page .footer .footer-section {
    padding: 0;
    border: 0;
    background: transparent !important;
    box-shadow: none;
}
.home-page .footer-section h3 { color: #f3d58c; }
.home-page .footer-section p,
.home-page .footer-section a,
.home-page .footer-bottom { color: #c7d5ce; }
.home-page .footer-section a:hover { color: #fff; }
.home-page .footer-bottom { border-color: rgba(255, 255, 255, .13); }
.home-page .footer .qr-code { width: 112px; height: 112px; }
.home-page .footer-contact-qr .contact-email { overflow-wrap: anywhere; }

.home-page .back-to-top {
    right: clamp(18px, 3vw, 34px);
    bottom: clamp(18px, 3vw, 34px);
    width: 46px;
    height: 46px;
    color: #fff;
    background: var(--home-jade) !important;
    box-shadow: 0 12px 28px rgba(20, 60, 48, .24);
}
.home-page .back-to-top:hover { background: var(--home-jade-dark) !important; }

@media (max-width: 1180px) and (min-width: 769px) {
    .home-page .nav-container { width: min(100% - 24px, 1320px); }
    .home-page .nav-logo h1 { font-size: 1.28rem; }
    .home-page .nav-link { padding-inline: .34rem; font-size: .8rem; }
    .home-page .bookmark-text { display: none; }
    .home-page .bookmark-btn { min-width: 42px; padding-inline: 10px; }
}

@media (max-width: 768px) {
    .home-page .navbar { padding: 10px 0; }
    .home-page .nav-container { width: min(100% - 28px, 1320px); }
    .home-page .hamburger {
        display: flex;
        flex: 0 0 auto;
        padding: 7px 4px;
    }
    .home-page .bookmark-text { display: none; }
    .home-page .bookmark-btn { min-width: 40px; padding-inline: 9px; }
    .home-page .nav-menu {
        display: flex;
        top: 68px;
        gap: 2px;
        padding: 16px 14px 24px;
        background: rgba(20, 60, 48, .98);
    }
    .home-page .nav-menu .nav-item {
        display: block;
        width: 100%;
    }
    .home-page .nav-menu .nav-link {
        width: 100%;
        padding: 12px 18px;
        color: #f6f1e7;
        font-size: .95rem;
    }
    .home-page .nav-menu .nav-link:hover,
    .home-page .nav-menu .nav-link.active { color: #fff; background: rgba(255, 255, 255, .1); }
    .home-page .nav-menu .dropdown-menu {
        display: none;
        width: calc(100% - 28px);
        margin: 0 auto 8px;
        padding: 4px;
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 12px;
        opacity: 0;
        visibility: hidden;
        background: rgba(255, 255, 255, .055);
    }
    .home-page .nav-menu .dropdown.open .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }
    .home-page .nav-menu .dropdown-item {
        margin: 0;
        padding: 10px 14px;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        border-radius: 8px;
        color: #e6eee9;
        font-size: .88rem;
        text-align: center;
    }
    .home-page .nav-menu .dropdown-item:last-child { border-bottom: 0; }
    .home-page .nav-menu .dropdown-item:hover,
    .home-page .nav-menu .dropdown-item.active { color: #fff; background: rgba(255, 255, 255, .1); }
    .home-page .nav-menu .dropdown.open > .dropdown-toggle::after { transform: rotate(180deg); }
    .home-page .hamburger .bar { background: var(--home-jade); }
    .home-page .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .home-page .footer .footer-section { text-align: center; }
    .home-page .footer .wechat-qr { display: grid; justify-items: center; }
    .home-page .footer-section ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
    .home-page .footer-section ul li { margin: 0; }
}

@media (max-width: 960px) {
    .home-page .home-section-heading { grid-template-columns: 1fr; gap: 16px; }
    .home-page .home-section-kicker { margin-bottom: -8px; }
    .home-page .home-section-heading > p:last-child { max-width: 620px; }
    .home-page .breath-trainer-heading { grid-template-columns: 1fr; gap: 16px; }
    .home-page .breath-trainer-kicker { margin-bottom: -8px; }
    .home-page .breath-trainer-heading p { max-width: 620px; }
}

@media (max-width: 650px) {
    .home-page .container,
    .home-page .hero-image-container { width: min(100% - 28px, 1180px); }
    .home-page .hero-image-section { padding: 108px 0 22px; }
    .home-page .hero-image-container { aspect-ratio: 4 / 3; border-radius: 14px; }
    .home-page .hero-image { object-position: center top; }
    .home-page .intro-section,
    .home-page .home-classics,
    .home-page .home-herbs,
    .home-page .home-library-entry,
    .home-page .home-ziwu-section,
    .home-page .breath-trainer,
    .home-page .paid-materials-section { padding-top: 52px; padding-bottom: 52px; }
    .home-page .intro-section { padding-top: 42px; }
    .home-page .home-section-heading { margin-bottom: 24px; }
    .home-page .home-section-heading .section-title { font-size: 2.15rem; }
    .home-page .home-section-heading > p:last-child { padding-left: 16px; }
    .home-page .timeline-container {
        margin-top: 8px;
        padding-top: 8px;
    }
    .home-page .timeline {
        gap: 14px;
        padding-left: 44px;
    }
    .home-page .timeline::before { left: 15px; }
    .home-page .timeline-item {
        display: block;
        min-height: 0;
        padding: 20px 18px;
        border-left-width: 2px;
    }
    .home-page .timeline-step {
        top: 24px;
        left: -45px;
        width: 34px;
        height: 34px;
        transform: none;
        border-width: 4px;
    }
    .home-page .timeline-date { margin-bottom: 8px; padding-right: 0; }
    .home-page .timeline-content { padding: 0; border-left: 0; }
    .home-page .home-library-grid { padding: 28px 22px; }
    .home-page .home-library-actions { align-items: stretch; }
    .home-page .home-library-actions a { text-align: center; }
    .home-page .breath-trainer-card { border-radius: 14px; }
    .home-page .breath-trainer-heading { margin-bottom: 24px; }
    .home-page .breath-trainer-heading h2 { font-size: 2.15rem; }
    .home-page .breath-trainer-heading p { padding-left: 16px; }
}

/* 2026-10 首页中草药：植物实拍与名称档案 */
.home-page .home-herbs {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 14%, rgba(185, 106, 71, .07), transparent 28%),
        linear-gradient(180deg, #f7f1e5 0%, #fbf9f3 100%) !important;
}
.home-page .home-herbs::before {
    content: "草";
    position: absolute;
    right: -1.2rem;
    top: -4.6rem;
    color: rgba(27, 86, 67, .035);
    font: 700 clamp(14rem, 25vw, 25rem)/1 KaiTi, STKaiti, serif;
    pointer-events: none;
}
.home-page .home-herbs-layout {
    position: relative;
    z-index: 1;
    display: block;
}
.home-page .home-herbs-showcase {
    display: grid;
    grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
    min-height: 460px;
    overflow: hidden;
    border: 1px solid rgba(145, 112, 67, .22);
    border-radius: 22px;
    background: rgba(255, 253, 247, .86);
    box-shadow: 0 22px 54px rgba(51, 65, 52, .1);
}
.home-page .home-herbs-heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 64px);
}
.home-page .home-herbs-heading::before {
    left: clamp(34px, 5vw, 64px);
    top: clamp(34px, 5vw, 64px);
    width: 58px;
    height: 3px;
    border-radius: 3px;
    background: var(--home-rust);
}
.home-page .home-herbs-kicker {
    margin: 20px 0 12px;
    color: var(--home-rust);
    font-size: .75rem;
    letter-spacing: .18em;
}
.home-page .home-herbs-heading h2 {
    color: var(--home-ink);
    font-size: clamp(3.5rem, 6.5vw, 5.7rem);
    line-height: 1;
    letter-spacing: .04em;
}
.home-page .home-herbs-intro {
    max-width: 540px;
    margin-top: 24px;
    color: var(--home-muted);
    font-size: .95rem;
    line-height: 1.9;
}
.home-page .home-herbs-scope {
    grid-template-columns: auto 1fr;
    gap: 4px 14px;
    margin: 25px 0 24px;
    padding: 15px 0;
    border-color: rgba(143, 118, 80, .24);
}
.home-page .home-herbs-scope span { grid-row: 1 / 3; align-self: center; }
.home-page .home-herbs-scope strong { color: var(--home-ink); }
.home-page .home-herbs-all {
    align-self: flex-start;
    border: 1px solid rgba(17, 68, 53, .12);
    background: var(--home-jade);
}
.home-page .home-herbs-visual {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(150px, .65fr);
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    min-width: 0;
    min-height: 460px;
    margin: 0;
    padding: 16px 16px 44px;
    background: linear-gradient(145deg, #1e5a47 0%, #113f32 100%);
}
.home-page .home-herbs-visual::before {
    content: "本草";
    position: absolute;
    right: 18px;
    bottom: -7px;
    color: rgba(255, 245, 218, .07);
    font: 700 5.5rem/1 KaiTi, STKaiti, serif;
}
.home-page .home-herbs-visual-item {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 245, 218, .22);
    border-radius: 11px;
    background: #eee6d6;
}
.home-page .home-herbs-visual-main { grid-row: 1 / -1; }
.home-page .home-herbs-visual-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}
.home-page .home-herbs-visual-main img {
    padding: 18px;
    object-fit: contain;
    background: #f7f1e4;
}
.home-page .home-herbs-visual-item span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    color: #fffaf0;
    background: rgba(14, 67, 52, .84);
    backdrop-filter: blur(6px);
    font-size: .71rem;
    letter-spacing: .06em;
}
.home-page .home-herbs-visual:hover .home-herbs-visual-item img { transform: scale(1.025); }
.home-page .home-herbs-visual figcaption {
    position: absolute;
    left: 18px;
    bottom: 14px;
    color: rgba(255, 248, 230, .72);
    font-size: .68rem;
    letter-spacing: .08em;
}
.home-page .home-herbs-catalog {
    margin-top: clamp(34px, 4vw, 48px);
    border-radius: 0;
}
.home-page .home-herbs-catalog-title {
    margin-bottom: 20px;
    padding-bottom: 13px;
    border-color: rgba(143, 118, 80, .26);
}
.home-page .home-herbs-catalog-title strong {
    color: var(--home-ink);
    font-size: 1.4rem;
}
.home-page .home-herbs-catalog-title span { color: var(--home-muted); }
.home-page .home-herbs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    border: 0;
}
.home-page .home-herb-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26px;
    grid-template-rows: auto 1fr;
    gap: 0;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(145, 112, 67, .23);
    border-radius: 14px;
    background: rgba(255, 253, 248, .9);
    box-shadow: 0 12px 28px rgba(44, 57, 46, .07);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.home-page .home-herb-card:hover,
.home-page .home-herb-card:focus-visible {
    transform: translateY(-5px);
    border-color: rgba(29, 96, 73, .42);
    background: #fffdf8;
    box-shadow: 0 18px 34px rgba(44, 57, 46, .13);
}
.home-page .home-herb-image {
    grid-column: 1 / -1;
    display: block;
    aspect-ratio: 4 / 2.55;
    overflow: hidden;
    border-bottom: 1px solid rgba(145, 112, 67, .18);
    background: #e9e0cf;
}
.home-page .home-herb-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.home-page .home-herb-card--plate .home-herb-image { background: #f5f0e5; }
.home-page .home-herb-card--plate .home-herb-image img {
    padding: 12px;
    object-fit: contain;
}
.home-page .home-herb-card:hover .home-herb-image img,
.home-page .home-herb-card:focus-visible .home-herb-image img { transform: scale(1.045); }
.home-page .home-herb-index {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 1;
    min-width: 30px;
    padding: 6px 8px;
    border-radius: 999px;
    color: #fff8e9;
    background: rgba(17, 67, 52, .9);
    box-shadow: 0 5px 14px rgba(17, 67, 52, .2);
    text-align: center;
}
.home-page .home-herb-copy {
    padding: 18px 0 19px 18px;
}
.home-page .home-herb-copy small { margin-bottom: 5px; color: #967552; }
.home-page .home-herb-card h3 {
    color: var(--home-ink);
    font-size: 1.45rem;
}
.home-page .home-herb-copy p { margin-top: 7px; color: var(--home-muted); }
.home-page .home-herb-arrow {
    align-self: end;
    margin: 0 14px 19px 0;
    color: var(--home-rust);
}

@media (max-width: 980px) {
    .home-page .home-herbs-showcase { grid-template-columns: 1fr; }
    .home-page .home-herbs-heading { min-height: 0; }
    .home-page .home-herbs-intro { max-width: 680px; }
    .home-page .home-herbs-visual { min-height: 390px; }
}

@media (max-width: 760px) {
    .home-page .home-herbs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .home-page .home-herbs-showcase { border-radius: 16px; }
    .home-page .home-herbs-heading { padding: 30px 24px 34px; }
    .home-page .home-herbs-heading::before { left: 24px; top: 30px; }
    .home-page .home-herbs-heading h2 { font-size: 3.25rem; }
    .home-page .home-herbs-intro { font-size: .88rem; }
    .home-page .home-herbs-scope { grid-template-columns: 1fr; }
    .home-page .home-herbs-scope span { grid-row: auto; }
    .home-page .home-herbs-visual {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 128px;
        min-height: 392px;
        padding: 12px 12px 40px;
    }
    .home-page .home-herbs-visual-main { grid-column: 1 / -1; grid-row: 1; }
    .home-page .home-herbs-visual-item span { left: 8px; bottom: 8px; padding: 5px 8px; font-size: .63rem; }
    .home-page .home-herbs-grid { grid-template-columns: 1fr; gap: 14px; }
    .home-page .home-herb-card { grid-template-columns: 38% minmax(0, 1fr) 24px; grid-template-rows: 1fr; min-height: 132px; }
    .home-page .home-herb-image { grid-column: 1; aspect-ratio: auto; height: 100%; border-right: 1px solid rgba(145, 112, 67, .18); border-bottom: 0; }
    .home-page .home-herb-copy { grid-column: 2; padding: 22px 8px 18px 16px; }
    .home-page .home-herb-arrow { grid-column: 3; margin-right: 10px; }
    .home-page .home-herb-index { top: 10px; left: 10px; }
    .home-page .home-herb-card h3 { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .home-herbs-visual-item img,
    .home-page .home-herb-image img,
    .home-page .home-herb-card { transition: none; }
}

/* 2026-11 首页三部经典：低饱和排行榜卡片 */
.home-page .home-classics {
    position: relative;
    overflow: hidden;
    background: #f3eee4 !important;
}
.home-page .home-classics::before {
    content: "书";
    position: absolute;
    right: -1.2rem;
    bottom: -4.2rem;
    width: auto;
    height: auto;
    border: 0;
    color: rgba(65, 78, 67, .028);
    background: none;
    font: 700 clamp(15rem, 24vw, 25rem)/1 KaiTi, STKaiti, serif;
    transform: rotate(-7deg);
    pointer-events: none;
}
.home-page .home-classics-shelf-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: clamp(28px, 3.5vw, 42px);
}
.home-page .home-classics-kicker {
    margin: 0 0 9px;
    color: #9b5c49;
    font-size: .75rem;
    letter-spacing: .2em;
}
.home-page .home-classics-shelf-heading h2 {
    max-width: 900px;
    margin: 0;
    color: var(--home-ink);
    font: 700 clamp(2.2rem, 4vw, 3.35rem)/1.1 KaiTi, STKaiti, serif;
    letter-spacing: .02em;
}
.home-page .home-classics-more {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    flex: 0 0 auto;
    padding: 10px 0 8px 18px;
    color: #415c4f;
    font: 700 1.05rem/1 KaiTi, STKaiti, serif;
    text-decoration: none;
}
.home-page .home-classics-more span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(65, 92, 79, .28);
    border-radius: 50%;
    font: 400 1.8rem/1 Arial, sans-serif;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}
.home-page .home-classics-more:hover span,
.home-page .home-classics-more:focus-visible span {
    color: #fff;
    background: #415c4f;
    transform: translateX(4px);
}
.home-page .home-classics-shelf {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 30px);
}
.home-page .home-classic-book {
    --book-cover: #3f6254;
    --book-accent: #d7c29a;
    --book-ink: #f8f2e7;
    --book-stage: #e9e2d5;
    --book-band: #385849;
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d8ccb8;
    border-radius: 18px;
    background: rgba(255, 253, 248, .8);
    box-shadow: 0 14px 30px rgba(74, 62, 42, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.home-page .home-classic-book:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(74, 62, 42, .12);
}
.home-page .home-classic-book-shanghan {
    --book-cover: #856354;
    --book-accent: #dfc8ac;
    --book-ink: #faf3e8;
    --book-stage: #e9dfd3;
    --book-band: #765647;
}
.home-page .home-classic-book-bencao {
    --book-cover: #77704e;
    --book-accent: #ddd0aa;
    --book-ink: #fbf5e7;
    --book-stage: #e8e1d3;
    --book-band: #676244;
}
.home-page .home-classic-rank {
    position: absolute;
    z-index: 5;
    top: 14px;
    left: 14px;
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border: 4px solid #f7f2e8;
    border-radius: 50%;
    color: #fffaf0;
    background: var(--book-band);
    box-shadow: 0 4px 10px rgba(54, 47, 34, .18);
    font: 800 .78rem/1 Georgia, serif;
    letter-spacing: .04em;
}
.home-page .home-classic-cover {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3.15;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid #d8ccb8;
    border-radius: 0;
    color: inherit;
    background:
        linear-gradient(135deg, rgba(255,255,255,.42), transparent 50%),
        var(--book-stage);
    text-decoration: none;
    box-shadow: inset 0 -18px 36px rgba(87, 68, 39, .05);
}
.home-page .home-classic-cover::before {
    content: "";
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 6%;
    height: 10%;
    border-radius: 50%;
    background: rgba(48, 41, 30, .18);
    filter: blur(14px);
}
.home-page .home-classic-cover-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr auto;
    width: 50%;
    height: 82%;
    padding: 18px 16px 16px 27px;
    overflow: hidden;
    border: 1px solid rgba(246, 235, 211, .72);
    color: var(--book-ink);
    background:
        linear-gradient(90deg, rgba(0,0,0,.16), transparent 11%),
        radial-gradient(circle at 82% 18%, rgba(255,255,255,.1), transparent 30%),
        var(--book-cover);
    box-shadow: 13px 15px 24px rgba(49, 40, 28, .2), inset 4px 0 0 rgba(255,255,255,.06);
    transform: rotate(-.6deg);
    transition: transform .32s ease, box-shadow .32s ease;
}
.home-page .home-classic-cover-inner::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(229, 208, 166, .42);
    pointer-events: none;
}
.home-page .home-classic-cover-inner small {
    grid-column: 1 / -1;
    position: relative;
    z-index: 1;
    color: rgba(248, 242, 231, .76);
    font-size: .62rem;
    letter-spacing: .15em;
}
.home-page .home-classic-cover-inner strong {
    grid-column: 2;
    grid-row: 2;
    position: relative;
    z-index: 1;
    align-self: center;
    color: var(--book-ink);
    font: 700 clamp(1.65rem, 2.35vw, 2.2rem)/1.12 KaiTi, STKaiti, serif;
    letter-spacing: .11em;
    writing-mode: vertical-rl;
}
.home-page .home-classic-cover-inner i {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    justify-self: start;
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--book-accent);
    color: var(--book-accent);
    font: 700 1.05rem/1 KaiTi, STKaiti, serif;
    font-style: normal;
}
.home-page .home-classic-cover-inner em {
    grid-column: 1 / -1;
    position: relative;
    z-index: 1;
    color: rgba(248, 242, 231, .72);
    font-size: .61rem;
    font-style: normal;
    letter-spacing: .13em;
}
.home-page .home-classic-cover-spine {
    position: absolute;
    z-index: 2;
    left: calc(25% - 2px);
    top: 9%;
    bottom: 9%;
    display: grid;
    place-items: center;
    width: 23px;
    color: rgba(248, 242, 231, .88);
    background: rgba(41, 50, 43, .55);
    font: 700 .65rem/1.5 KaiTi, STKaiti, serif;
    letter-spacing: .08em;
    writing-mode: vertical-rl;
    box-shadow: 4px 0 9px rgba(0,0,0,.12);
}
.home-page .home-classic-cover:hover .home-classic-cover-inner,
.home-page .home-classic-cover:focus-visible .home-classic-cover-inner {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 12px 23px 34px rgba(49, 40, 28, .3), inset 4px 0 0 rgba(255,255,255,.07);
}
.home-page .home-classic-book-copy { padding: 0 20px 22px; }
.home-page .home-classic-book-copy h3 {
    margin: 0 -20px 16px;
    padding: 13px 20px 12px;
    background: var(--book-band);
    text-align: center;
}
.home-page .home-classic-book-copy h3 a {
    color: #fffaf0;
    font: 700 1.45rem/1.25 KaiTi, STKaiti, serif;
    text-decoration: none;
}
.home-page .home-classic-book-copy h3 a:hover,
.home-page .home-classic-book-copy h3 a:focus-visible { color: #f1dfbd; }
.home-page .home-classic-book-copy p {
    min-height: 1.5em;
    margin: 0 0 12px;
    color: var(--home-muted);
    font-size: .82rem;
}
.home-page .home-classic-book-copy > span {
    display: block;
    margin-bottom: 14px;
    color: #7d7468;
    font-size: .74rem;
}
.home-page .home-classic-book-copy > span b { color: #5b5949; font-size: .92rem; }
.home-page .home-classic-book-entry {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(65, 92, 79, .34);
    color: #415c4f;
    font-size: .77rem;
    font-weight: 800;
    text-decoration: none;
}
.home-page .home-classic-book-entry i { font-style: normal; transition: transform .2s ease; }
.home-page .home-classic-book-entry:hover i,
.home-page .home-classic-book-entry:focus-visible i { transform: translateX(4px); }

@media (max-width: 860px) {
    .home-page .home-classics-shelf {
        grid-auto-flow: column;
        grid-auto-columns: minmax(260px, 72vw);
        grid-template-columns: none;
        gap: 18px;
        margin-right: calc((100vw - 100%) / -2);
        padding-right: max(28px, calc((100vw - 100%) / 2));
        padding-bottom: 18px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
        scrollbar-color: rgba(25, 77, 60, .36) transparent;
        scrollbar-width: thin;
    }
    .home-page .home-classic-book { scroll-snap-align: start; }
}

@media (max-width: 620px) {
    .home-page .home-classics-shelf-heading { align-items: center; margin-bottom: 28px; padding-bottom: 15px; }
    .home-page .home-classics-kicker { margin-bottom: 8px; font-size: .68rem; }
    .home-page .home-classics-shelf-heading h2 { max-width: 255px; font-size: 2rem; }
    .home-page .home-classics-more { gap: 8px; padding-left: 0; font-size: 1rem; }
    .home-page .home-classics-more span { width: 29px; height: 29px; font-size: 1.5rem; }
    .home-page .home-classics-shelf { grid-auto-columns: minmax(252px, 82vw); }
    .home-page .home-classic-cover { aspect-ratio: 4 / 3.15; }
    .home-page .home-classic-cover-inner { width: 54%; }
    .home-page .home-classic-cover-spine { left: calc(23% - 2px); }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .home-classics-more span,
    .home-page .home-classic-book,
    .home-page .home-classic-cover-inner,
    .home-page .home-classic-book-entry i { transition: none; }
}
