.body-home {
    background: #f6eddd;
    color: #251d16;
}

.body-home .page-container {
    max-width: none;
    padding: 0;
}

.body-home main.pb-3 {
    padding-bottom: 0 !important;
}

.body-home footer {
    background: #f0e4cf;
}

.body-home header {
    background: rgba(250, 244, 232, 0.96);
    border-bottom: 1px solid rgba(196, 171, 130, 0.6);
    box-shadow: 0 2px 14px rgba(45, 33, 21, 0.08);
}

.body-home .navbar {
    min-height: 66px;
}

.body-home .navbar .container-fluid {
    max-width: 1360px;
    padding-left: 34px !important;
    padding-right: 34px !important;
}

.body-home .navbar-brand {
    color: #201913 !important;
    font-family: KaiTi, STKaiti, "Songti SC", SimSun, serif;
    font-size: 1.55rem;
    font-weight: 700;
}

.body-home .navbar-brand::before {
    background: #a7362d;
    box-shadow: inset 0 0 0 2px rgba(255, 246, 229, 0.84);
    color: #fff8ea;
    content: "卢";
    font-family: KaiTi, STKaiti, "Songti SC", SimSun, serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-right: 14px;
    padding: 7px 8px;
    vertical-align: 1px;
}

.body-home .navbar-nav .nav-link {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    color: #251d16 !important;
    font-family: KaiTi, STKaiti, "Songti SC", SimSun, serif;
    font-size: 1.08rem;
    font-weight: 700;
    min-height: auto;
    padding: 8px 10px 10px;
}

.body-home .navbar-nav .nav-link:hover,
.body-home .navbar-nav .nav-link.is-active {
    background: transparent !important;
    color: #8f2d27 !important;
}

.body-home .navbar-nav .nav-link.is-active::after {
    background: #9f2f28;
    content: "";
    display: block;
    height: 2px;
    margin: 7px auto 0;
    width: 28px;
}

.body-home .nav-main {
    justify-content: center;
}

.body-home .nav-main .nav-item {
    align-items: center;
    display: flex;
}

.body-home .nav-main .nav-item + .nav-item::before {
    color: #8a7d68;
    content: "|";
    font-family: SimSun, serif;
    margin: 0 12px 0 8px;
}

.body-home .nav-utility {
    justify-content: flex-end;
    min-width: 90px;
}

.body-home .site-gear-link {
    font-family: "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif !important;
    font-size: 1.2rem !important;
}

.body-home .site-gear-link::after {
    content: " 后台";
    font-size: 0.82rem;
    margin-left: 5px;
    vertical-align: 2px;
}

.home-page {
    --home-ink: #241b14;
    --home-muted: #71604c;
    --home-red: #9f2f28;
    --home-red-deep: #7c211d;
    --home-jade: #35584e;
    --home-line: #cfba96;
    --home-line-soft: rgba(207, 186, 150, 0.56);
    --home-paper: #f8efdd;
    --home-gold: #b78c44;
    font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
    overflow: hidden;
}

.home-inner {
    margin: 0 auto;
    width: min(1580px, calc(100vw - 136px));
}

.home-hero {
    background: #f6eddd;
    border-bottom: 1px solid #d7c3a2;
    isolation: isolate;
    min-height: 560px;
    overflow: hidden;
    position: relative;
}

.home-hero::before {
    background-image: url("/media/hero-book-left-opening-approved-20260701.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    content: "";
    inset: 0;
    opacity: 0.82;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.home-hero::after {
    background:
        linear-gradient(90deg, rgba(247, 239, 224, 0.22) 0%, rgba(247, 239, 224, 0.16) 36%, rgba(247, 239, 224, 0.07) 64%, rgba(247, 239, 224, 0.02) 100%),
        radial-gradient(circle at 77% 42%, rgba(122, 83, 38, 0.08), rgba(122, 83, 38, 0) 36%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 86px minmax(0, 690px) minmax(420px, 1fr);
    min-height: 560px;
    position: relative;
    z-index: 1;
}

.home-vertical-title {
    align-self: start;
    background: rgba(255, 249, 235, 0.42);
    border: 1px solid rgba(159, 47, 40, 0.62);
    color: #8f2d27;
    font-family: KaiTi, STKaiti, "Songti SC", SimSun, serif;
    font-size: 1rem;
    justify-self: start;
    line-height: 1.6;
    margin-top: 58px;
    padding: 12px 7px;
    text-align: center;
    writing-mode: vertical-rl;
}

.home-copy {
    align-self: center;
    min-width: 0;
    padding: 8px 0 28px;
    text-shadow: 0 1px 0 rgba(255, 249, 235, 0.78);
}

.home-title-row {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.home-mark {
    align-items: center;
    border: 1px solid var(--home-red);
    color: var(--home-red);
    display: inline-flex;
    font-family: KaiTi, STKaiti, "Songti SC", SimSun, serif;
    font-size: 1.35rem;
    height: 40px;
    justify-content: center;
    line-height: 1;
    width: 40px;
}

.home-small-title {
    color: var(--home-jade);
    font-family: "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
}

.home-copy h1 {
    color: var(--home-ink);
    font-family: KaiTi, STKaiti, "Songti SC", SimSun, serif;
    font-size: 5.05rem;
    font-weight: 700;
    line-height: 1.06;
    margin: 0 0 14px;
}

.home-subtitle {
    color: var(--home-red);
    font-family: KaiTi, STKaiti, "Songti SC", SimSun, serif;
    font-size: 1.48rem;
    line-height: 1.65;
    margin: 0 0 18px;
}

.home-lead {
    color: var(--home-muted);
    font-size: 1.02rem;
    line-height: 2.05;
    margin: 0;
    max-width: 42em;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.home-action {
    align-items: center;
    border: 1px solid var(--home-line);
    color: var(--home-ink);
    display: inline-flex;
    font-family: "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    min-height: 40px;
    padding: 0 20px;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.home-action:hover {
    background: #efe0c4;
    border-color: #b58f55;
    color: var(--home-red-deep);
}

.home-action.primary {
    background: var(--home-ink);
    border-color: var(--home-ink);
    color: #fff8e8;
}

.home-action.primary:hover {
    background: #3b3024;
    color: #fff8e8;
}

.home-visual-space {
    min-height: 560px;
    position: relative;
    z-index: 2;
}

.home-hero-books {
    filter: drop-shadow(0 24px 34px rgba(69, 45, 24, 0.24));
    height: auto;
    max-width: none;
    mix-blend-mode: multiply;
    opacity: 0.98;
    position: absolute;
    right: clamp(92px, 8vw, 168px);
    top: 44px;
    width: min(330px, 22vw);
}

.home-preface {
    background-image:
        linear-gradient(180deg, rgba(250, 245, 235, 0.94), rgba(250, 245, 235, 0.96)),
        url("/media/home-source-motif.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom: 1px solid var(--home-line-soft);
    padding: 38px 0 42px;
}

.home-section-head {
    margin: 0 auto 30px;
    max-width: 760px;
    position: relative;
    text-align: center;
}

.home-section-head::before,
.home-section-head::after {
    background: linear-gradient(90deg, rgba(189, 164, 122, 0), rgba(189, 164, 122, 0.72));
    content: "";
    height: 1px;
    position: absolute;
    top: 30px;
    width: 180px;
}

.home-section-head::before {
    left: 0;
}

.home-section-head::after {
    right: 0;
    transform: scaleX(-1);
}

.home-section-head span,
.home-entry-title p,
.home-entry span {
    color: var(--home-red);
    font-family: "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
    font-size: 0.84rem;
    font-weight: 800;
}

.home-section-head h2,
.home-entry-title h2 {
    color: var(--home-ink);
    font-family: KaiTi, STKaiti, "Songti SC", SimSun, serif;
    font-size: 2.12rem;
    line-height: 1.2;
    margin: 2px 0 8px;
}

.home-section-head h2::after,
.home-entry-title h2::after {
    background: var(--home-red);
    content: "";
    display: block;
    height: 2px;
    margin: 12px auto 0;
    width: 34px;
}

.home-section-head p {
    color: var(--home-muted);
    font-size: 0.98rem;
    line-height: 1.8;
    margin: 0;
}

.home-preface-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.home-preface-item {
    color: inherit;
    display: block;
    min-height: 214px;
    padding: 8px 26px 18px;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease;
}

.home-preface-item + .home-preface-item {
    border-left: 1px solid var(--home-line-soft);
}

.home-preface-icon {
    display: block;
    height: 86px;
    margin: 0 auto 12px;
    width: 124px;
}

.home-preface-icon img,
.home-entry-icon img {
    display: block;
    filter: saturate(0.82) contrast(1.02);
    height: 100%;
    mix-blend-mode: multiply;
    object-fit: contain;
    width: 100%;
}

.home-preface-no {
    color: var(--home-gold);
    display: block;
    font-family: KaiTi, STKaiti, "Songti SC", SimSun, serif;
    font-size: 1.3rem;
    line-height: 1;
    margin-bottom: 10px;
}

.home-preface-item h3 {
    color: var(--home-red-deep);
    font-family: KaiTi, STKaiti, "Songti SC", SimSun, serif;
    font-size: 1.42rem;
    line-height: 1.25;
    margin: 0 0 10px;
}

.home-preface-item p {
    color: #5f5547;
    font-size: 0.92rem;
    line-height: 1.75;
    margin: 0 auto;
    max-width: 12em;
}

.home-preface-item:hover,
.home-preface-item:focus-visible {
    background: rgba(255, 248, 235, 0.46);
    color: inherit;
}

.home-preface-item em {
    color: var(--home-red);
    display: inline-block;
    font-family: "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
    margin-top: 12px;
}

.home-quotes {
    background:
        linear-gradient(90deg, rgba(247, 238, 222, 0.92), rgba(246, 235, 214, 0.96)),
        url("/media/home-source-motif.png");
    background-position: left center;
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom: 1px solid var(--home-line-soft);
    padding: 18px 0;
}

.home-quote-grid {
    border-bottom: 1px solid var(--home-line-soft);
    border-top: 1px solid var(--home-line-soft);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.home-quote-grid blockquote {
    color: var(--home-jade);
    font-family: KaiTi, STKaiti, "Songti SC", SimSun, serif;
    font-size: 1.28rem;
    line-height: 1.7;
    margin: 0;
    padding: 22px 28px;
    text-align: center;
}

.home-quote-grid blockquote + blockquote {
    border-left: 1px dashed rgba(139, 119, 84, 0.55);
}

.home-entryway {
    background-image:
        linear-gradient(180deg, rgba(250, 244, 234, 0.84), rgba(246, 237, 221, 0.88)),
        url("/media/home-source-motif.png");
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    isolation: isolate;
    overflow: hidden;
    padding: 28px 0 58px;
    position: relative;
}

.home-entryway::before {
    background-image: url("/media/home-vine-band.png");
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    content: "";
    inset: 0;
    mix-blend-mode: multiply;
    opacity: 0.9;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.home-entryway > .home-inner {
    position: relative;
    z-index: 1;
}

.home-entry-title {
    margin-bottom: 24px;
    text-align: center;
}

.home-entry-title h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.home-entry-title p {
    color: var(--home-muted);
    font-weight: 500;
    margin: 0;
}

.home-entry-grid {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, 1fr);
}

.home-entry {
    align-items: center;
    color: inherit;
    display: grid;
    gap: 10px;
    grid-template-columns: 72px 1fr;
    min-height: 134px;
    padding: 22px 34px;
    text-decoration: none;
}

.home-entry + .home-entry {
    border-left: 1px solid var(--home-line-soft);
}

.home-entry:hover {
    background: rgba(255, 248, 235, 0.46);
    color: inherit;
}

.home-entry-icon {
    display: block;
    grid-row: 1 / span 3;
    height: 58px;
    place-self: center start;
    width: 58px;
}

.home-entry span:not(.home-entry-icon) {
    display: block;
    margin-bottom: 0;
}

.home-entry strong {
    color: var(--home-ink);
    display: block;
    font-family: KaiTi, STKaiti, "Songti SC", SimSun, serif;
    font-size: 1.3rem;
    line-height: 1.3;
}

.home-entry em {
    color: #655b4d;
    display: block;
    font-size: 0.9rem;
    font-style: normal;
    line-height: 1.5;
}

@media (max-width: 1180px) {
    .body-home .navbar .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .body-home .nav-main .nav-item + .nav-item::before {
        margin: 0 7px 0 4px;
    }

    .home-inner {
        width: min(1000px, calc(100vw - 44px));
    }

    .home-hero-grid {
        grid-template-columns: 62px minmax(0, 540px) minmax(250px, 1fr);
    }

    .home-copy h1 {
        font-size: 3.5rem;
    }

    .home-hero-books {
        right: clamp(34px, 5vw, 86px);
        top: 58px;
        width: min(310px, 24vw);
    }

    .home-section-head::before,
    .home-section-head::after {
        width: 126px;
    }

    .home-preface-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 26px;
    }

    .home-preface-item:nth-child(4) {
        border-left: 0;
    }

    .home-entry {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 760px) {
    .body-home .navbar .container-fluid {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .body-home .site-gear-link::after {
        content: "";
    }

    .body-home .nav-main .nav-item + .nav-item::before {
        display: none;
    }

    .home-inner {
        width: min(calc(100% - 28px), 620px);
    }

    .home-hero {
        background-position: center top;
        min-height: auto;
    }

    .home-hero-grid {
        display: block;
        min-height: auto;
        padding: 42px 0 44px;
    }

    .home-vertical-title,
    .home-visual-space,
    .home-section-head::before,
    .home-section-head::after {
        display: none;
    }

    .home-copy h1 {
        font-size: 2.45rem;
    }

    .home-subtitle {
        font-size: 1.2rem;
    }

    .home-lead {
        font-size: 0.98rem;
    }

    .home-section-head h2 {
        margin-top: 8px;
    }

    .home-preface-grid,
    .home-quote-grid,
    .home-entry-grid {
        grid-template-columns: 1fr;
    }

    .home-preface-item,
    .home-preface-item + .home-preface-item,
    .home-preface-item:nth-child(4),
    .home-quote-grid blockquote + blockquote,
    .home-entry + .home-entry {
        border-left: 0;
        border-top: 1px solid var(--home-line-soft);
    }

    .home-preface-item:first-child,
    .home-quote-grid blockquote:first-child,
    .home-entry:first-child {
        border-top: 0;
    }
}
