:root {
    --page: #edf0f2;
    --paper: #fbfaf5;
    --paper-soft: #f4f2ea;
    --mist: #e3e8ec;
    --mist-soft: #eef1f3;
    --ink: #1e2833;
    --body: #3c4653;
    --muted: #5c6673;
    --line: #d3d8dc;
    --line-soft: #e2e6e9;
    --azure: #2f5d9e;
    --azure-deep: #1e4479;
    --azure-soft: #e2ebf6;
    --copper: #8a5426;
    --danger: #9d3434;
    --focus: #174a86;
    color-scheme: light;
    font-family: "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    min-width: 0;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: clip;
    background: var(--page);
    color: var(--body);
    font-size: 16px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
output {
    font-family: inherit;
}

a {
    color: var(--azure);
    text-decoration: none;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--azure-deep);
    text-decoration: underline;
}

button,
input {
    min-width: 0;
    font-size: 16px;
}

button {
    cursor: pointer;
}

img,
video,
iframe {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

h1 {
    font-size: clamp(1.7rem, 4.6vw, 2.5rem);
}

h2 {
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
}

h3 {
    font-size: 1.05rem;
}

.page-shell {
    width: min(calc(100% - 24px), 1140px);
    min-width: 0;
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    min-height: 44px;
    transform: translateY(-160%);
    border-radius: 8px;
    background: #1e4479;
    color: #f3f7fc;
    padding: 10px 16px;
}

.skip-link:focus {
    transform: translateY(0);
}

.skip-link:focus-visible,
.shelf-track a.is-active:focus-visible,
.shelf-track a[aria-current="page"]:focus-visible,
.pager [aria-current="page"]:focus-visible,
.book-actions .primary-action:focus-visible,
.global-search button:focus-visible,
.index-searchline button:focus-visible {
    outline: 0;
    box-shadow: inset 0 0 0 2px #d9e6f5;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 0;
    box-shadow: inset 0 0 0 2px var(--focus);
}

.top-header {
    border-top: 3px solid var(--azure);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.header-grid {
    display: grid;
    grid-template-areas:
        "brand history"
        "search search";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding-block: 13px;
}

.brand-lockup {
    grid-area: brand;
    display: inline-flex;
    min-width: 0;
    min-height: 44px;
    align-items: baseline;
    gap: 12px;
    overflow: hidden;
    color: var(--ink);
}

.brand-lockup:hover {
    color: var(--ink);
    text-decoration: none;
}

.brand-name {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    border-bottom: 3px solid var(--azure);
    font-size: clamp(1.5rem, 6vw, 2.1rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.25;
    padding-bottom: 2px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-tagline {
    display: none;
    min-width: 0;
    color: var(--muted);
    font-size: 0.84rem;
    letter-spacing: 0.1em;
}

.history-action {
    grid-area: history;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--mist-soft);
    color: var(--ink);
    padding: 8px 14px;
    white-space: nowrap;
}

.history-action:hover {
    border-color: var(--azure);
    background: var(--azure-soft);
    color: var(--azure-deep);
    text-decoration: none;
}

.global-search {
    position: relative;
    grid-area: search;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    min-width: 0;
}

.global-search input,
.global-search button {
    min-height: 46px;
    border: 1px solid var(--line);
}

.global-search input {
    width: 100%;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #fdfcf8;
    color: var(--ink);
    padding: 10px 14px;
}

.global-search input::placeholder,
.index-search input::placeholder {
    color: #67707c;
    opacity: 1;
}

.global-search button {
    border-color: var(--azure-deep);
    border-radius: 0 8px 8px 0;
    background: var(--azure-deep);
    color: #f3f7fc;
    font-weight: 700;
}

.global-search button:hover {
    background: var(--azure);
}

.global-search input:focus-visible,
.index-page form input:focus-visible {
    position: relative;
    z-index: 1;
    outline: 0;
    box-shadow: inset 0 0 0 2px var(--focus);
}

.form-message {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 2;
    color: var(--danger);
    font-size: 0.82rem;
}

.shelf-nav {
    border-top: 1px solid var(--line-soft);
    background: var(--mist);
}

.shelf-track {
    display: flex;
    min-width: 0;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    padding-block: 8px;
}

.shelf-track::-webkit-scrollbar {
    display: none;
}

.shelf-track a {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #414b58;
    padding: 8px 15px;
    white-space: nowrap;
}

.shelf-track a:hover {
    border-color: var(--line);
    background: var(--mist-soft);
    color: var(--azure-deep);
    text-decoration: none;
}

.shelf-track a.is-active,
.shelf-track a[aria-current="page"] {
    border-color: var(--azure-deep);
    background: var(--azure-deep);
    color: #f3f7fc;
    text-decoration: none;
}

.site-main {
    min-width: 0;
    padding-block: 22px 44px;
}

.masthead {
    display: grid;
    gap: 5px;
    justify-items: center;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
    padding-block: 6px 20px;
    text-align: center;
}

.masthead p,
.section-head p,
.index-kicker,
.section-kicker {
    margin-bottom: 3px;
    color: var(--copper);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.masthead h1 {
    margin-bottom: 2px;
    overflow-wrap: anywhere;
}

.masthead span {
    color: var(--muted);
}

.panel,
.index-panel,
.topic-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
}

.panel,
.index-panel {
    padding: 16px;
}

.section-head,
.index-heading,
.topic-card-head {
    display: flex;
    min-width: 0;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.section-head h2,
.index-heading h2,
.topic-card-head h3 {
    margin-bottom: 0;
}

.section-head > a,
.index-heading > span,
.topic-card-head > a {
    flex: 0 0 auto;
    font-size: 0.9rem;
}

.pick-section {
    margin-bottom: 18px;
}

.pick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pick-card {
    min-width: 0;
}

.pick-cover,
.book-cover {
    display: block;
    min-width: 0;
}

.pick-cover img,
.book-cover img,
.profile-cover,
.related-list img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 7;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--azure-soft);
    object-fit: cover;
}

.pick-cover img {
    transition: border-color 0.15s ease;
}

.pick-card:hover .pick-cover img {
    border-color: var(--azure);
}

.pick-copy {
    min-width: 0;
    padding-top: 8px;
}

.pick-copy h3 {
    margin-bottom: 4px;
    font-size: 0.98rem;
}

.pick-copy h3 a {
    display: block;
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pick-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.79rem;
}

.pick-meta a {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pick-meta a:hover {
    color: var(--azure-deep);
}

.pick-meta span {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--mist-soft);
    color: var(--muted);
    padding: 1px 7px;
    font-size: 0.72rem;
}

.home-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.update-list {
    min-width: 0;
    border-top: 1px solid var(--line-soft);
}

.update-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    gap: 2px;
    border-bottom: 1px solid var(--line-soft);
    padding-block: 10px;
}

.update-row > * {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.update-row > span:first-child {
    color: var(--azure);
    font-size: 0.75rem;
    font-weight: 700;
}

.update-row > a:nth-child(2) {
    color: var(--ink);
    font-weight: 700;
}

.update-row > :nth-child(3),
.update-row > :nth-child(4),
.update-row > :nth-child(5) {
    color: var(--muted);
    font-size: 0.8rem;
}

.rank-list {
    min-width: 0;
    border-top: 1px solid var(--line-soft);
}

.rank-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    border-bottom: 1px solid var(--line-soft);
    padding-block: 10px;
}

.rank-no {
    color: var(--muted);
    font-size: 1.02rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    text-align: center;
}

.rank-row:nth-child(-n + 3) .rank-no {
    color: var(--azure);
}

.rank-row > a {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row .rank-author {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 400;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-sections {
    margin-bottom: 0;
}

.category-block-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
}

.category-block {
    min-width: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 13px;
}

.category-block:last-child {
    border-bottom: 0;
}

.category-block > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.category-block h3 {
    margin-bottom: 0;
}

.category-block > div a {
    flex: 0 0 auto;
    font-size: 0.78rem;
}

.title-list,
.topic-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.title-list li,
.topic-card li {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line-soft);
    padding-block: 6px;
}

.title-list a,
.topic-card li a {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.title-list span,
.topic-card li span {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.75rem;
}

.breadcrumbs,
.index-crumbs {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 0.84rem;
}

.breadcrumbs [aria-current="page"],
.index-crumbs [aria-current="page"] {
    min-width: 0;
    overflow-wrap: anywhere;
}

.book-profile {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.profile-cover {
    width: 96px;
}

.profile-copy {
    min-width: 0;
}

.profile-copy h1 {
    overflow-wrap: anywhere;
    margin-bottom: 12px;
}

.book-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.book-facts div {
    min-width: 0;
    border-left: 3px solid var(--azure-soft);
    padding-left: 9px;
}

.book-facts dt {
    color: var(--muted);
    font-size: 0.74rem;
}

.book-facts dd {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
}

.profile-intro {
    color: var(--body);
}

.book-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.primary-action,
.secondary-action,
.index-return {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--azure-deep);
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 700;
}

.primary-action {
    background: var(--azure-deep);
    color: #f3f7fc;
}

.primary-action:hover {
    background: var(--azure);
    color: #f3f7fc;
    text-decoration: none;
}

.secondary-action,
.index-return {
    background: var(--mist-soft);
    color: var(--azure-deep);
}

.secondary-action:hover,
.index-return:hover {
    background: var(--azure-soft);
    text-decoration: none;
}

.chapter-section,
.related-section {
    margin-top: 18px;
}

.chapter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    gap: 1px;
    background: transparent;
}

.chapter-grid a {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink);
    padding: 9px 10px;
    overflow-wrap: anywhere;
}

.chapter-grid > .empty-note {
    grid-column: 1 / -1;
}

.chapter-grid a:hover {
    background: var(--azure-soft);
    color: var(--azure-deep);
    text-decoration: none;
}

.related-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.related-list article {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    min-width: 0;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 10px;
}

.related-list h3,
.related-list p {
    margin-bottom: 3px;
}

.related-list p {
    color: var(--muted);
    font-size: 0.82rem;
}

.keyword-links {
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding-top: 17px;
}

.keyword-links h2 {
    font-size: 1.2rem;
}

.keyword-links > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.keyword-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--mist-soft);
    padding: 5px 11px;
}

.index-page {
    min-width: 0;
}

.index-hero {
    display: flex;
    min-width: 0;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.index-hero h1,
.index-hero p {
    margin-bottom: 3px;
}

.index-hero > div {
    min-width: 0;
}

.index-hero h1 {
    overflow-wrap: anywhere;
}

.index-hero > div > p:last-child {
    color: var(--muted);
}

.book-stack {
    min-width: 0;
    border-top: 1px solid var(--line-soft);
}

.book-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    min-width: 0;
    gap: 13px;
    border-bottom: 1px solid var(--line-soft);
    padding-block: 13px;
}

.book-row .book-cover {
    width: 74px;
}

.book-copy {
    min-width: 0;
}

.book-titleline {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.book-titleline h3 {
    min-width: 0;
    margin-bottom: 5px;
}

.book-titleline h3 a {
    overflow-wrap: anywhere;
}

.book-titleline > span {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--azure-soft);
    color: var(--azure-deep);
    padding: 2px 7px;
    font-size: 0.72rem;
}

.book-summary {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.book-meta,
.book-links {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.79rem;
}

.book-links span,
.book-links a {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.index-search {
    position: relative;
    min-width: 0;
}

.index-search > label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-weight: 700;
}

.index-searchline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
    min-width: 0;
}

.index-searchline input,
.index-searchline button {
    min-height: 46px;
    border: 1px solid var(--line);
}

.index-searchline input {
    width: 100%;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #fdfcf8;
    color: var(--ink);
    padding: 9px 12px;
}

.index-searchline button {
    border-color: var(--azure-deep);
    border-radius: 0 8px 8px 0;
    background: var(--azure-deep);
    color: #f3f7fc;
    font-weight: 700;
}

.index-searchline button:hover {
    background: var(--azure);
}

.search-sheet {
    margin-bottom: 18px;
}

.index-notice {
    margin-bottom: 18px;
    border: 1px solid #d8b9b3;
    border-radius: 8px;
    background: #f7e9e6;
    color: var(--danger);
    padding: 10px 13px;
}

.empty-note {
    min-width: 0;
    color: var(--muted);
    padding: 18px 8px;
    text-align: center;
}

.empty-note h2 {
    margin-bottom: 6px;
    font-size: 1.25rem;
}

.empty-note p {
    margin-bottom: 12px;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}

.pager a {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--mist-soft);
    padding: 7px 11px;
}

.pager a[aria-current="page"] {
    border-color: var(--azure-deep);
    background: var(--azure-deep);
    color: #f3f7fc;
}

.topic-section {
    margin-top: 18px;
}

.topic-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.topic-card {
    padding: 14px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--mist);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-block: 22px;
    color: var(--muted);
    font-size: 0.84rem;
}

.footer-inner strong {
    color: var(--ink);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.footer-inner p {
    margin-bottom: 0;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

@media (min-width: 700px) {
    .page-shell {
        width: min(calc(100% - 40px), 1140px);
    }

    .header-grid {
        grid-template-areas: "brand search history";
        grid-template-columns: auto minmax(320px, 1fr) auto;
        gap: 24px;
        padding-block: 16px;
    }

    .global-search {
        max-width: 720px;
        justify-self: center;
        width: 100%;
    }

    .site-main {
        padding-block: 30px 58px;
    }

    .panel,
    .index-panel {
        padding: 20px;
    }

    .pick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .update-row {
        grid-template-columns: 62px minmax(90px, 0.9fr) minmax(140px, 1.5fr) minmax(70px, 0.7fr) 74px;
        gap: 10px;
        align-items: center;
        padding-block: 8px;
    }

    .update-row > span:first-child,
    .update-row > :nth-child(3),
    .update-row > :nth-child(4),
    .update-row > :nth-child(5) {
        font-size: 0.78rem;
    }

    .category-block-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-block:nth-child(odd) {
        border-right: 1px solid var(--line-soft);
    }

    .category-block:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .book-profile {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 28px;
        padding: 26px;
    }

    .profile-cover {
        width: 180px;
    }

    .book-facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .chapter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .chapter-grid a:nth-child(odd) {
        border-right: 1px solid var(--line-soft);
    }

    .related-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .book-row {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 18px;
    }

    .book-row .book-cover {
        width: 84px;
    }

    .topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 24px;
    }
}

@media (min-width: 960px) {
    .brand-tagline {
        display: inline;
    }

    .pick-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .home-columns {
        grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
        align-items: start;
    }

    .chapter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .chapter-grid a:nth-child(odd) {
        border-right: 0;
    }

    .chapter-grid a:not(:nth-child(3n)) {
        border-right: 1px solid var(--line-soft);
    }

    .index-panel {
        padding: 24px 28px;
    }
}

@media (min-width: 1200px) {
    .pick-copy h3 {
        font-size: 1.02rem;
    }

    .book-summary {
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 520px) {
    .index-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .index-hero .index-return {
        width: 100%;
    }

    .book-profile {
        align-items: start;
    }

    .book-actions > * {
        flex: 1 1 140px;
    }
}

@media (max-width: 390px) {
    .page-shell {
        width: min(calc(100% - 20px), 1140px);
    }

    .header-grid {
        gap: 10px;
    }

    .brand-name {
        font-size: 1.45rem;
    }

    .history-action {
        padding-inline: 10px;
        font-size: 0.86rem;
    }

    .global-search {
        grid-template-columns: minmax(0, 1fr) 70px;
    }

    .shelf-track a {
        padding-inline: 13px;
    }

    .site-main {
        padding-top: 18px;
    }

    .panel,
    .index-panel {
        padding: 14px;
    }

    .pick-grid {
        gap: 11px;
    }

    .book-profile {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 12px;
    }

    .profile-cover {
        width: 84px;
    }

    .book-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .book-row {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 11px;
    }

    .book-row .book-cover {
        width: 72px;
    }

    .book-titleline {
        display: block;
    }

    .book-titleline > span {
        display: inline-block;
        margin-bottom: 5px;
    }

    .book-summary {
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 360px) {
    .page-shell {
        width: min(calc(100% - 16px), 1140px);
    }

    .pick-copy h3 {
        font-size: 0.92rem;
    }

    .book-row {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .book-row .book-cover,
    .profile-cover {
        width: 68px;
    }

    .book-profile {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .global-search input,
    .index-searchline input {
        padding-inline: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
