/* 出版社匿名首页：编辑部书房 × 数字出版工作台。仅由 publisher/layout.html 在首页加载。 */
.publisher-portal-shell--home {
    --portal-ink: #102f3d;
    --portal-ink-soft: #355462;
    --portal-paper: #f5f0e6;
    --portal-paper-deep: #e8dfcf;
    --portal-ivory: #fffdf8;
    --portal-jade: #2f675e;
    --portal-cinnabar: #bb4d3d;
    --portal-line: rgba(16, 47, 61, 0.14);
    min-height: 100vh;
    color: var(--portal-ink);
    background:
        radial-gradient(circle at 9% 24%, rgba(187, 77, 61, 0.08), transparent 27rem),
        linear-gradient(180deg, #f8f5ee 0%, #f2eee6 62%, #ece6dc 100%);
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.publisher-portal-shell--home .business-shell-header--banner-fill {
    background: linear-gradient(105deg, #123748 0%, #194c60 54%, #173c4a 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.publisher-portal-shell--home .business-shell-navbar__brand.business-shell-nav-link.active,
.publisher-portal-shell--home .business-shell-nav-link.active {
    background: rgba(255, 253, 248, 0.12) !important;
    box-shadow: inset 0 -2px 0 #e2b764;
}

.publisher-portal-shell--home main.portal-home-page {
    width: 100%;
    max-width: 1280px;
    padding: 28px 28px 0;
}

.publisher-portal-shell--home .portal-home-shell {
    overflow: visible;
    border: 1px solid rgba(16, 47, 61, 0.11);
    border-radius: 26px 26px 8px 8px;
    background: var(--portal-ivory);
    box-shadow: 0 30px 80px rgba(31, 49, 48, 0.12);
}

.publisher-portal-shell--home .portal-home-hero {
    position: relative;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
    background:
        linear-gradient(rgba(16, 47, 61, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 47, 61, 0.045) 1px, transparent 1px),
        linear-gradient(125deg, #fffdf8 0%, #f6f0e4 58%, #ebe0cc 100%);
    background-size: 46px 46px, 46px 46px, auto;
}

.publisher-portal-shell--home .portal-home-hero::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -130px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(47, 103, 94, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 66px rgba(47, 103, 94, 0.035), 0 0 0 132px rgba(47, 103, 94, 0.025);
    pointer-events: none;
}

.publisher-portal-shell--home .portal-home-stage {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
    align-items: center;
    gap: clamp(34px, 6vw, 84px);
    min-height: 465px;
    padding: clamp(48px, 6vw, 78px) clamp(34px, 7vw, 92px) 66px;
    background: transparent;
}

.publisher-portal-shell--home .portal-home-copy {
    max-width: 650px;
    animation: portal-rise-in 0.72s cubic-bezier(.2, .7, .25, 1) both;
}

.publisher-portal-shell--home .portal-home-kicker {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
    color: var(--portal-jade);
    font-size: 0.82rem;
    font-weight: 760;
    letter-spacing: 0.18em;
}

.publisher-portal-shell--home .portal-home-kicker > span {
    width: 34px;
    height: 1px;
    background: var(--portal-cinnabar);
}

.publisher-portal-shell--home .portal-home-title {
    margin: 0;
    color: var(--portal-ink);
    font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
    font-size: clamp(2.5rem, 5vw, 4.9rem);
    font-weight: 760;
    line-height: 1.13;
    letter-spacing: -0.035em;
}

.publisher-portal-shell--home .portal-home-title em {
    position: relative;
    color: var(--portal-cinnabar);
    font-style: normal;
    white-space: nowrap;
}

.publisher-portal-shell--home .portal-home-title em::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, rgba(187, 77, 61, 0), rgba(187, 77, 61, 0.58) 15%, rgba(187, 77, 61, 0.16));
    clip-path: polygon(0 45%, 99% 0, 100% 68%, 2% 100%);
}

.publisher-portal-shell--home .portal-home-intro {
    max-width: 590px;
    margin-top: 30px;
    color: var(--portal-ink-soft);
    font-size: 1rem;
    font-weight: 430;
    line-height: 1.9;
}

.publisher-portal-shell--home .portal-home-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

.publisher-portal-shell--home .portal-home-capabilities span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(47, 103, 94, 0.18);
    border-radius: 999px;
    color: #2c5a54;
    background: rgba(255, 253, 248, 0.68);
    font-size: 0.82rem;
    font-weight: 650;
}

.publisher-portal-shell--home .portal-home-capabilities span::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--portal-cinnabar);
}

.publisher-portal-shell--home .portal-home-visual {
    position: relative;
    min-height: 350px;
    perspective: 1000px;
    animation: portal-rise-in 0.8s 0.1s cubic-bezier(.2, .7, .25, 1) both;
}

.publisher-portal-shell--home .portal-home-orbit {
    position: absolute;
    border: 1px solid rgba(47, 103, 94, 0.18);
    border-radius: 50%;
}

.publisher-portal-shell--home .portal-home-orbit--one {
    inset: 7% 5% 3% 11%;
    transform: rotate(-14deg);
}

.publisher-portal-shell--home .portal-home-orbit--two {
    inset: 14% 11% 11% 1%;
    border-style: dashed;
    transform: rotate(11deg);
}

.publisher-portal-shell--home .portal-home-book {
    position: absolute;
    overflow: hidden;
    border-radius: 4px 13px 13px 4px;
    transform-style: preserve-3d;
}

.publisher-portal-shell--home .portal-home-book::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 14px;
    width: 1px;
    background: rgba(255, 255, 255, 0.28);
}

.publisher-portal-shell--home .portal-home-book--back {
    top: 15px;
    right: 16px;
    width: 230px;
    height: 286px;
    padding: 28px;
    color: #e9dfce;
    background: #315d58;
    box-shadow: 0 24px 45px rgba(22, 47, 46, 0.18);
    transform: rotate(9deg) translateZ(-30px);
}

.publisher-portal-shell--home .portal-home-book--back span {
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
}

.publisher-portal-shell--home .portal-home-book--back i {
    display: block;
    width: 72%;
    height: 1px;
    margin-top: 22px;
    background: rgba(255, 255, 255, 0.25);
}

.publisher-portal-shell--home .portal-home-book--front {
    right: 92px;
    bottom: 9px;
    width: 250px;
    height: 316px;
    padding: 34px 30px;
    color: #fff8e9;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.1), transparent 34%),
        #123b4b;
    box-shadow: -18px 28px 60px rgba(16, 47, 61, 0.29), inset -8px 0 0 rgba(0, 0, 0, 0.08);
    transform: rotate(-5deg) translateZ(16px);
}

.publisher-portal-shell--home .portal-home-book-mark {
    display: inline-block;
    margin-bottom: 43px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 248, 233, 0.5);
    color: #f1d79f;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
}

.publisher-portal-shell--home .portal-home-book strong,
.publisher-portal-shell--home .portal-home-book small {
    display: block;
}

.publisher-portal-shell--home .portal-home-book strong {
    width: 5em;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.08em;
}

.publisher-portal-shell--home .portal-home-book small {
    margin-top: 15px;
    color: rgba(255, 248, 233, 0.68);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.publisher-portal-shell--home .portal-home-book-lines {
    position: absolute;
    right: 25px;
    bottom: 25px;
}

.publisher-portal-shell--home .portal-home-book-lines i {
    display: block;
    width: 45px;
    height: 1px;
    margin-top: 6px;
    background: rgba(241, 215, 159, 0.58);
}

.publisher-portal-shell--home .portal-home-visual-note {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(16, 47, 61, 0.12);
    border-radius: 8px;
    color: var(--portal-ink);
    background: rgba(255, 253, 248, 0.91);
    box-shadow: 0 14px 34px rgba(16, 47, 61, 0.12);
    font-size: 0.76rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.publisher-portal-shell--home .portal-home-visual-note .bi {
    color: var(--portal-cinnabar);
}

.publisher-portal-shell--home .portal-home-visual-note--top { top: 46px; left: -4px; }
.publisher-portal-shell--home .portal-home-visual-note--bottom { right: 2px; bottom: 45px; }

.publisher-portal-shell--home .portal-home-search-form {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin: 0 clamp(24px, 7vw, 92px);
    padding: 11px 11px 11px 22px;
    border: 1px solid rgba(16, 47, 61, 0.16);
    border-radius: 13px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 20px 42px rgba(16, 47, 61, 0.13);
    transform: translateY(26px);
}

.publisher-portal-shell--home .portal-home-search-label {
    padding-right: 18px;
    border-right: 1px solid var(--portal-line);
    color: var(--portal-jade);
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.publisher-portal-shell--home .portal-home-search-input > .bi {
    color: var(--portal-cinnabar);
}

.publisher-portal-shell--home .portal-home-search-input .form-control {
    min-height: 48px;
    padding-left: 42px;
    border: 0;
    color: var(--portal-ink);
    background: transparent;
    box-shadow: none;
}

.publisher-portal-shell--home .portal-home-search-input .form-control::placeholder { color: #788a8d; }
.publisher-portal-shell--home .portal-home-search-input .form-control:focus { box-shadow: none; }

.publisher-portal-shell--home .portal-home-search-submit {
    gap: 10px;
    min-width: 142px;
    min-height: 50px;
    border: 1px solid var(--portal-ink);
    border-radius: 9px;
    color: #fffaf0;
    background: var(--portal-ink);
    box-shadow: none;
    font-weight: 720;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.publisher-portal-shell--home .portal-home-search-submit:hover,
.publisher-portal-shell--home .portal-home-search-submit:focus {
    border-color: var(--portal-cinnabar);
    color: #ffffff;
    background: var(--portal-cinnabar);
    transform: translateY(-1px);
}

.publisher-portal-shell--home .portal-home-search-form:focus-within {
    border-color: rgba(47, 103, 94, 0.52);
    box-shadow: 0 20px 42px rgba(16, 47, 61, 0.13), 0 0 0 3px rgba(47, 103, 94, 0.1);
}

.publisher-portal-shell--home .portal-home-section-divider {
    position: relative;
    height: 72px;
    margin: 0;
    background: transparent;
}

.publisher-portal-shell--home .portal-home-section-divider span {
    position: absolute;
    right: clamp(28px, 7vw, 92px);
    bottom: 14px;
    left: clamp(28px, 7vw, 92px);
    height: 1px;
    background: linear-gradient(90deg, var(--portal-line), rgba(187, 77, 61, 0.45), var(--portal-line));
}

.publisher-portal-shell--home .portal-home-recommend {
    padding: 18px clamp(28px, 7vw, 92px) 68px;
}

.publisher-portal-shell--home .portal-home-section-head {
    align-items: center;
    margin-bottom: 26px;
}

.publisher-portal-shell--home .portal-home-section-eyebrow {
    margin-bottom: 6px;
    color: var(--portal-cinnabar);
    font-size: 0.73rem;
    font-weight: 760;
    letter-spacing: 0.2em;
}

.publisher-portal-shell--home .portal-search-result-title {
    color: var(--portal-ink);
    font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 720;
    letter-spacing: -0.02em;
}

.publisher-portal-shell--home .portal-home-section-note {
    margin: 7px 0 0;
    color: #6f7d7f;
    font-size: 0.9rem;
}

.publisher-portal-shell--home .portal-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-bottom: 1px solid rgba(16, 47, 61, 0.32);
    color: var(--portal-ink);
    font-size: 0.86rem;
    font-weight: 700;
}

.publisher-portal-shell--home .portal-more-link:hover,
.publisher-portal-shell--home .portal-more-link:focus {
    border-color: var(--portal-cinnabar);
    color: var(--portal-cinnabar);
}

.publisher-portal-shell--home .portal-home-recommend-grid .row { row-gap: 22px; }

.publisher-portal-shell--home .portal-home-recommend-grid .portal-book-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(16, 47, 61, 0.12) !important;
    border-radius: 14px;
    background: #fffdf9;
    box-shadow: 0 12px 28px rgba(16, 47, 61, 0.07) !important;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.publisher-portal-shell--home .portal-home-recommend-grid .portal-book-card::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--portal-cinnabar);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.publisher-portal-shell--home .portal-home-recommend-grid .portal-book-card:hover,
.publisher-portal-shell--home .portal-home-recommend-grid .portal-book-card:focus-within {
    border-color: rgba(47, 103, 94, 0.35) !important;
    box-shadow: 0 20px 40px rgba(16, 47, 61, 0.12) !important;
    transform: translateY(-4px);
}

.publisher-portal-shell--home .portal-home-recommend-grid .portal-book-card:hover::after,
.publisher-portal-shell--home .portal-home-recommend-grid .portal-book-card:focus-within::after { opacity: 1; }

.publisher-portal-shell--home .portal-home-recommend-grid .col-md-6:first-child .portal-book-card {
    border-color: rgba(187, 77, 61, 0.25) !important;
    background: linear-gradient(145deg, #fffdf9, #f7f0e6);
}

.publisher-portal-shell--home .portal-home-recommend-grid .portal-book-card .portal-book-card-inner {
    gap: 18px;
    padding: 18px;
}

.publisher-portal-shell--home .portal-book-card--home .portal-book-cover-box {
    overflow: hidden;
    border: 1px solid rgba(16, 47, 61, 0.08);
    border-radius: 8px 12px 12px 8px;
    background: #eee8dc;
    box-shadow: 7px 8px 18px rgba(16, 47, 61, 0.11);
}

.publisher-portal-shell--home .portal-book-card--home .portal-book-cover-image {
    transition: transform 0.45s cubic-bezier(.2, .7, .25, 1);
}

.publisher-portal-shell--home .portal-book-card:hover .portal-book-cover-image { transform: scale(1.035); }

.publisher-portal-shell--home .portal-book-card--home .portal-book-title {
    color: var(--portal-ink);
    font-family: "Noto Serif SC", "Songti SC", STSong, serif;
    font-size: 1.08rem;
    line-height: 1.55;
}

.publisher-portal-shell--home .portal-book-card--home .portal-book-meta { color: #65787d; }
.publisher-portal-shell--home .portal-book-card--home .portal-book-meta .bi { color: var(--portal-jade); }
.publisher-portal-shell--home .portal-book-card--home .portal-book-summary { color: #425b64; }

.publisher-portal-shell--home .portal-book-card--home .portal-book-tags span {
    border: 1px solid rgba(47, 103, 94, 0.12);
    color: #41675f;
    background: #edf3ee;
}

.publisher-portal-shell--home .portal-book-card--home .portal-book-cta {
    color: var(--portal-cinnabar);
    font-weight: 740;
}

.publisher-portal-shell--home .portal-footer {
    margin-top: 34px !important;
    border-color: rgba(16, 47, 61, 0.12) !important;
    background: #102f3d !important;
    color: rgba(255, 253, 248, 0.72);
}

.publisher-portal-shell--home .portal-footer a,
.publisher-portal-shell--home .portal-footer .text-dark { color: #fffdf8 !important; }

@keyframes portal-rise-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991.98px) {
    .publisher-portal-shell--home main.portal-home-page { padding: 20px 18px 0; }
    .publisher-portal-shell--home .portal-home-stage {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 22px;
        min-height: 410px;
        padding: 48px 34px 58px;
    }
    .publisher-portal-shell--home .portal-home-title { font-size: clamp(2.25rem, 6vw, 3.6rem); }
    .publisher-portal-shell--home .portal-home-visual { min-height: 310px; transform: scale(0.9); transform-origin: center; }
    .publisher-portal-shell--home .portal-home-book--front { right: 42px; }
    .publisher-portal-shell--home .portal-home-book--back { right: 0; }
    .publisher-portal-shell--home .portal-home-visual-note--bottom { right: -10px; }
}

@media (max-width: 767.98px) {
    .publisher-portal-shell--home main.portal-home-page { padding: 14px 12px 0; }
    .publisher-portal-shell--home .portal-home-shell { border-radius: 20px 20px 7px 7px; }
    .publisher-portal-shell--home .portal-home-hero { border-radius: 19px 19px 0 0; }
    .publisher-portal-shell--home .portal-home-stage {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 40px 24px 24px;
    }
    .publisher-portal-shell--home .portal-home-kicker { margin-bottom: 15px; font-size: 0.72rem; }
    .publisher-portal-shell--home .portal-home-title { font-size: clamp(2.15rem, 11vw, 3.25rem); }
    .publisher-portal-shell--home .portal-home-intro { margin-top: 24px; font-size: 0.93rem; line-height: 1.8; }
    .publisher-portal-shell--home .portal-home-visual { display: none; }
    .publisher-portal-shell--home .portal-home-search-form {
        grid-template-columns: 1fr auto;
        gap: 8px;
        margin: 0 16px;
        padding: 8px;
        transform: translateY(22px);
    }
    .publisher-portal-shell--home .portal-home-search-label { display: none; }
    .publisher-portal-shell--home .portal-home-search-submit { width: auto; min-width: 54px; padding: 0 15px; }
    .publisher-portal-shell--home .portal-home-search-submit span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .publisher-portal-shell--home .portal-home-section-divider { height: 62px; }
    .publisher-portal-shell--home .portal-home-recommend { padding: 12px 18px 38px; }
    .publisher-portal-shell--home .portal-home-section-head { align-items: flex-start; flex-direction: row; gap: 14px; }
    .publisher-portal-shell--home .portal-home-section-note { display: none; }
    .publisher-portal-shell--home .portal-more-link { flex-shrink: 0; padding: 7px 2px; }
    .publisher-portal-shell--home .portal-more-link span { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
    .publisher-portal-shell--home .portal-home-copy,
    .publisher-portal-shell--home .portal-home-visual { animation: none; }
    .publisher-portal-shell--home .portal-book-card--home .portal-book-cover-image,
    .publisher-portal-shell--home .portal-home-recommend-grid .portal-book-card,
    .publisher-portal-shell--home .portal-home-search-submit { transition: none; }
}
