/* 沿用已确认的详情原型：竖封面、双列资料、独立简介、章节目录与推荐。 */
.detail-page { max-width: 1120px; margin: 28px auto 0; --detail-surface: oklch(.975 .01 280); }
.detail-hero { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: start; gap: 20px 24px; padding: 24px; border-radius: 12px; background: var(--detail-surface); }
.detail-cover { width: 180px; height: 248px; border-radius: 10px; box-shadow: 0 2px 4px oklch(.25 .04 280 / .055); }
.detail-cover::after { display: none; }
.detail-info { min-width: 0; display: grid; gap: 14px; }
.detail-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.detail-title-row h1 { font-size: 28px; line-height: 1.4; margin: 0; overflow-wrap: anywhere; text-wrap: balance; }
.detail-status { padding: 4px 8px; border: 1px solid oklch(.78 .035 280); border-radius: 8px; background: oklch(.92 .035 280); color: oklch(.36 .10 280); font-size: 12px; white-space: nowrap; }
.detail-subtitle { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.detail-facts > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; }
.detail-facts dt { color: var(--muted); font-size: 12px; line-height: 28px; }
.detail-facts dd { margin: 0; min-width: 0; font-size: 13px; line-height: 28px; overflow-wrap: anywhere; }
.detail-facts a { color: var(--primary); }
.detail-fact-rating dd { display: flex; align-items: baseline; gap: 6px; }
.detail-fact-rating strong { font-size: 18px; }
.detail-fact-rating span { font-size: 12px; color: var(--muted); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.detail-tags span { padding: 2px 8px; border: 1px solid oklch(.85 .025 280); border-radius: 8px; font-size: 12px; color: oklch(.43 .085 280); background: white; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; min-width: 156px; padding: 0 20px; border-radius: 8px; font-size: 14px; }
.detail-button.primary { color: white; background: var(--primary); min-width: 190px; }
.detail-button.secondary { border: 1px solid var(--line); background: white; color: var(--ink); }
.detail-button.unavailable { color: var(--muted); background: var(--surface); }
.detail-button[aria-pressed="true"] { color: var(--primary); border-color: var(--primary); }
.detail-button:hover { filter: brightness(.96); }
.detail-synopsis { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; min-width: 0; }
.detail-synopsis h2 { font-size: 13px; margin: 0 0 8px; line-height: 24px; }
.detail-description { margin: 0; font-size: 14px; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; color: oklch(.41 .025 280); }
.detail-description.is-collapsed { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.description-toggle { min-height: 44px; padding: 0 8px; margin: 4px 0 -8px -8px; border: 0; background: none; color: var(--primary); font-size: 12px; }
.detail-content { display: grid; grid-template-columns: minmax(0, 1fr) 256px; gap: 28px; padding-top: 24px; align-items: start; }
.detail-content.without-related { grid-template-columns: 1fr; }
.chapter-section, .detail-related { min-width: 0; }
.chapter-heading, .related-heading { display: flex; align-items: center; gap: 8px; min-height: 60px; margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px dashed var(--line); }
.chapter-heading { justify-content: space-between; }
.chapter-heading h2 { margin: 0; font-size: 20px; }
.chapter-heading button { border: 0; background: none; }
.chapter-ranges { display: flex; flex-wrap: wrap; gap: 12px; }
.chapter-ranges button { min-height: 48px; width: 144px; padding: 10px; border: 1px solid var(--line); background: white; border-radius: 8px; font-size: 13px; }
.chapter-ranges button[aria-pressed="true"] { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 2px 3px 0 var(--comic-outline); }
.chapter-range-status { color: var(--muted); font-size: 12px; margin: 14px 0; }
.chapter-range-status:empty { display: none; }
.chapters-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.chapters-grid > a { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 7px; min-height: 74px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.chapters-grid > a:hover { color: var(--primary); border-color: var(--primary); background: var(--lavender); }
.chapters-grid > a.current { border: 2px solid var(--primary); background: var(--lavender); color: var(--primary); box-shadow: 2px 3px 0 var(--comic-outline); }
.chapter-last-read { font-size: 11px; color: white; background: var(--primary); padding: 3px 6px; border-radius: 6px; }
.related-heading { justify-content: space-between; flex-wrap: wrap; }
.related-heading h2 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 16px; }
.related-heading button { border: 0; background: none; padding: 0 4px; color: var(--primary); }
.related-list { display: grid; gap: 14px; }
.related-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; background: var(--detail-surface); }
.related-cover { position: relative; flex: 0 0 64px; width: 64px; height: 88px; background: var(--lavender) url("../images/logo.svg") center / 30px no-repeat; border-radius: 8px; }
.related-cover img { border-radius: 8px; }
.related-cover .cover-feedback { padding: 0; font-size: 11px; }
.related-cover .cover-retry { padding: 4px; min-width: 44px; }
.related-copy { min-width: 0; }
.related-copy h3 { font-size: 13px; margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.related-copy p, .related-copy > span { font-size: 11px; color: var(--muted); line-height: 1.8; margin: 6px 0 0; }
.detail-empty { padding: 32px 20px; background: var(--surface); border-radius: 10px; line-height: 1.9; color: var(--muted); }
.detail-empty a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.comic-notice { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 8px; background: var(--ink); color: white; z-index: 40; font-size: 13px; }
.comic-notice:empty { display: none; }
@media (max-width: 1100px) {
    .detail-facts { grid-template-columns: 1fr; gap: 8px; }
    .chapters-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .detail-page { margin-top: 20px; }
    .detail-hero { grid-template-columns: 96px minmax(0, 1fr); padding: 20px 16px; gap: 16px 14px; }
    .detail-cover { width: 96px; height: 132px; }
    .detail-info { display: contents; }
    .detail-heading { min-width: 0; }
    .detail-title-row h1 { font-size: 22px; }
    .detail-subtitle { font-size: 12px; }
    .detail-facts, .detail-actions { grid-column: 1 / -1; }
    .detail-button, .detail-button.primary { min-width: 0; padding: 0 8px; flex: 1; font-size: 13px; }
    .detail-content { grid-template-columns: 1fr; gap: 24px; }
    .chapters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chapter-ranges button { width: 126px; font-size: 12px; }
}
