.detail-main { overflow: clip; }
.detail-main section[id] { scroll-margin-top: 24px; }
.detail-hero { min-height: min(850px, calc(100svh - 100px)); position: relative; isolation: isolate; display: flex; align-items: center; color: var(--paper); background: var(--forest); }
.detail-hero > img, .detail-end > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.detail-hero::after, .detail-end::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 22, 16, .87), rgba(9, 25, 17, .62) 47%, rgba(9, 25, 17, .15)); }
.detail-hero-copy { padding-block: 120px; max-width: 1280px; }
.detail-hero .eyebrow, .detail-end .eyebrow { color: #d7d0b9; }
.detail-hero h1 { font-size: clamp(3.6rem, 7vw, 7.2rem); line-height: 1.22; margin-bottom: 26px; }
.detail-hero-line { max-width: 680px; font-family: 'Noto Serif TC', serif; font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.85; letter-spacing: .05em; }
.detail-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 36px; }
.detail-hero-actions .text-link { color: var(--paper); }
.detail-hero-foot { position: absolute; left: max(64px, calc((100% - 1280px) / 2)); right: 4.5%; bottom: 30px; display: flex; justify-content: space-between; gap: 18px; color: #e7e9dc; font-size: .72rem; letter-spacing: .13em; }
.detail-story { padding-block: clamp(85px, 11vw, 160px); background: #f5f3ed; }
.detail-story-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(48px, 7vw, 115px); }
.detail-story-copy { max-width: 500px; }
.detail-story-copy > p:not(.eyebrow) { color: #516057; }
.detail-story-copy .story-lead { color: var(--ink) !important; font-family: 'Noto Serif TC', serif; font-size: clamp(1.2rem, 1.65vw, 1.6rem); line-height: 1.9; }
.detail-story-figure { margin: 0; overflow: hidden; background: #e8e7dd; }
.detail-story-figure img { aspect-ratio: 1.08; object-fit: cover; }
.detail-story-figure figcaption { padding: 12px 4px 0; color: var(--muted); font-size: .7rem; letter-spacing: .13em; }
.detail-chapters { padding-block: clamp(85px, 10vw, 145px); background: var(--forest); color: var(--paper); }
.detail-chapters .eyebrow { color: #bfc9bb; }
.detail-chapters h2 { max-width: 850px; }
.detail-chapters > .wrap > p:last-of-type { max-width: 700px; color: #cad2c7; }
.detail-chapter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 50px); margin-top: 62px; }
.detail-chapter-grid article { border-top: 1px solid #bac7b64f; padding-top: 23px; }
.detail-chapter-grid article > span { color: #c3b393; font-size: .76rem; letter-spacing: .15em; }
.detail-chapter-grid h3 { margin: 30px 0 18px; font-size: clamp(1.45rem, 2.1vw, 2.1rem); }
.detail-chapter-grid p { color: #cad2c7; margin-bottom: 0; }
.detail-end { position: relative; isolation: isolate; min-height: 620px; display: flex; align-items: center; color: var(--paper); background: var(--forest); }
.detail-end::after { background: linear-gradient(90deg, rgba(7, 22, 16, .9), rgba(7, 22, 16, .55) 65%, rgba(7, 22, 16, .3)); }
.detail-end-copy { padding-block: 110px; }
.detail-end h2 { max-width: 830px; font-size: clamp(2.6rem, 4.4vw, 4.6rem); line-height: 1.45; }
.detail-end p:not(.eyebrow) { max-width: 700px; color: #dde3d7; }
.detail-end-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; margin-top: 34px; }
.detail-end-actions .underlined { border-color: #dae0d4; }
.detail-rail { position: fixed; z-index: 12; top: 50%; right: 20px; transform: translateY(-50%); display: grid; gap: 13px; padding: 15px 10px; border-radius: 28px; background: #f5f3edcf; backdrop-filter: blur(12px); }
.detail-rail a { position: relative; width: 20px; height: 20px; display: grid; place-items: center; }
.detail-rail i { width: 5px; height: 5px; border-radius: 50%; background: var(--forest); opacity: .45; transition: transform .25s, opacity .25s; }
.detail-rail a[aria-current] i, .detail-rail a:hover i { transform: scale(1.7); opacity: 1; }
.detail-rail span { position: absolute; right: 31px; padding: 5px 10px; background: var(--paper); white-space: nowrap; font-size: .76rem; opacity: 0; pointer-events: none; }
.detail-rail a:hover span, .detail-rail a:focus-visible span { opacity: 1; }
.detail-page .header nav a[aria-current='page'] { border-bottom: 1px solid var(--ink); }
.detail-page .mobile-book { background: var(--forest); color: var(--paper); }
@media (max-width: 900px) {
  .detail-story-inner { grid-template-columns: 1fr; }
  .detail-story-copy { max-width: 700px; }
  .detail-chapter-grid { grid-template-columns: 1fr; gap: 28px; }
  .detail-chapter-grid h3 { margin: 18px 0 10px; }
  .detail-rail { display: none; }
}
@media (max-width: 760px) {
  .detail-hero { min-height: 730px; }
  .detail-hero > img { object-position: 61% center; }
  .detail-hero::after { background: linear-gradient(90deg, rgba(7,22,16,.85), rgba(7,22,16,.42)), linear-gradient(0deg, rgba(7,22,16,.45), transparent 45%); }
  .detail-hero-copy { padding-block: 100px; }
  .detail-hero h1 { font-size: clamp(3.2rem, 12vw, 5.2rem); }
  .detail-hero-line { font-size: 1.25rem; }
  .detail-hero-foot { left: 24px; right: 24px; font-size: .65rem; }
  .detail-hero-foot span:last-child { display: none; }
  .detail-story, .detail-chapters { padding-block: 78px; }
  .detail-story-inner { gap: 34px; }
  .detail-story-figure img { aspect-ratio: 1.12; }
  .detail-end { min-height: 560px; }
  .detail-end-copy { padding-block: 80px 130px; }
  .detail-end h2 { font-size: 2.5rem; }
  .detail-end-actions { align-items: stretch; flex-direction: column; }
  .detail-end-actions .button { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .detail-rail i { transition: none; } }
