/* ==========================================================================
   肥猫云 · 图书馆高塔 (Design Spec 01 — Watercolor Magazine Spread)
   BEM Architecture | System Fonts Only | WCAG AA >= 4.5:1 | Flat Assets
   ========================================================================== */

:root {
  --bg-paper: #F8F4EC;
  --bg-paper-deep: #EFE7D8;
  --bg-card: #FFFDF8;
  --ink-warm: #5C4A32;
  --wash-amber: #E8C07A;
  --wash-amber-soft: rgba(232, 192, 122, 0.34);
  --accent-terra: #B54E1C;
  --accent-terra-hover: #943D13;
  --accent-terra-decor: #C45C26;
  --text-main: #2A2118;
  --text-muted: #665645;
  --border-hairline: rgba(138, 122, 104, 0.34);
  --border-strong: rgba(92, 74, 50, 0.45);
  --light-beam: rgba(255, 248, 230, 0.65);
  --shadow-soft: 0 12px 32px rgba(42, 33, 24, 0.06);
  --shadow-card: 0 6px 20px rgba(92, 74, 50, 0.07);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --container-max: 1160px;
  --header-height: 74px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--text-main);
  background-color: var(--bg-paper);
  background-image:
    radial-gradient(ellipse 68% 42% at 86% 6%, rgba(232, 192, 122, 0.24), transparent 68%),
    radial-gradient(ellipse 52% 38% at 8% 36%, rgba(196, 92, 38, 0.07), transparent 70%),
    radial-gradient(ellipse 56% 42% at 88% 76%, rgba(232, 192, 122, 0.18), transparent 70%),
    repeating-linear-gradient(0deg, rgba(92, 74, 50, 0.016) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(92, 74, 50, 0.012) 0 1px, transparent 1px 5px);
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-terra);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-terra-hover);
}

:focus-visible {
  outline: 2px solid var(--accent-terra);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text-main);
  color: #FFFDF8;
  padding: 12px 18px;
  z-index: 200;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ==========================================================================
   Header — 图书馆高塔刊头与借书卡日期戳
   ========================================================================== */

.tower-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 244, 236, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hairline);
}

.tower-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tower-header__brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tower-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.06em;
  min-height: 44px;
  padding: 4px 2px;
}

.tower-header__brand:hover {
  color: var(--accent-terra);
}

.tower-header__crest {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.tower-header__stamp {
  display: none;
  font-size: 12px;
  line-height: 1.2;
  color: var(--ink-warm);
  border: 1px dashed var(--border-strong);
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  background: rgba(255, 253, 248, 0.65);
}

.tower-header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.tower-header__nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 253, 248, 0.98);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
  padding: 14px 20px 20px;
}

.tower-header__nav--open {
  display: block;
}

.tower-header__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tower-header__link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.tower-header__link:hover,
.tower-header__link--active {
  background: var(--wash-amber-soft);
  color: var(--accent-terra-hover);
}

.tower-header__floor {
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border-hairline);
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(248, 244, 236, 0.85);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.tower-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.tower-btn--primary {
  background-color: var(--accent-terra);
  color: #FFFDF9;
  box-shadow: 0 6px 18px rgba(181, 78, 28, 0.22);
}

.tower-btn--primary:hover {
  background-color: var(--accent-terra-hover);
  color: #FFFDF9;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(148, 61, 19, 0.28);
}

.tower-btn--secondary {
  background-color: var(--bg-card);
  color: var(--ink-warm);
  border-color: var(--border-strong);
}

.tower-btn--secondary:hover {
  background-color: var(--bg-paper-deep);
  color: var(--text-main);
  border-color: var(--ink-warm);
}

.tower-btn--block {
  width: 100%;
}

/* ==========================================================================
   Hero — 杂志跨页大图与暖色光斑
   ========================================================================== */

.spread-hero {
  position: relative;
  padding: 44px 20px 56px;
  border-bottom: 1px solid var(--border-hairline);
  overflow: hidden;
}

.spread-hero__beam {
  position: absolute;
  inset: -10% -10% auto auto;
  width: 72%;
  height: 115%;
  background: linear-gradient(125deg, transparent 15%, var(--light-beam) 46%, rgba(232, 192, 122, 0.22) 64%, transparent 86%);
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  animation: towerBeamDrift 14s ease-in-out infinite alternate;
}

@keyframes towerBeamDrift {
  0% {
    transform: translate3d(-1.5%, -1%, 0) rotate(-1deg);
    opacity: 0.72;
  }
  100% {
    transform: translate3d(2%, 1.5%, 0) rotate(1deg);
    opacity: 0.96;
  }
}

.spread-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.spread-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-warm);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-hairline);
}

.spread-hero__title {
  margin: 0 0 20px;
  font-size: clamp(32px, 5.4vw, 54px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.spread-hero__wash {
  display: inline;
  background-image: linear-gradient(180deg, transparent 54%, rgba(232, 192, 122, 0.56) 54%, rgba(232, 192, 122, 0.42) 94%, transparent 94%);
  padding: 0 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.spread-hero__subtitle {
  margin: 0 0 28px;
  font-size: clamp(16.5px, 2vw, 19px);
  line-height: 1.75;
  color: var(--ink-warm);
  max-width: 34em;
}

.spread-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.spread-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-hairline);
  font-size: 13px;
  color: var(--text-muted);
}

.spread-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.spread-hero__meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-terra-decor);
  flex-shrink: 0;
}

.spread-hero__visual {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.spread-hero__visual::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(196, 92, 38, 0.16);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

.spread-hero__artwork {
  width: 100%;
  border-radius: var(--radius-md);
}

.spread-hero__caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 0 4px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   Scroll Sections & 卷轴展开 Signature Animation
   ========================================================================== */

.scroll-section {
  padding: 64px 20px;
  border-bottom: 1px solid var(--border-hairline);
  position: relative;
}

.scroll-section--tinted {
  background: linear-gradient(180deg, rgba(239, 231, 216, 0.42), rgba(248, 244, 236, 0.18));
}

.scroll-section--pending {
  opacity: 0.02;
  clip-path: inset(0 12% 0 12% round 8px);
  transform: scaleX(0.96);
  will-change: clip-path, opacity, transform;
}

.scroll-section--revealed {
  opacity: 1;
  clip-path: inset(0 0 0 0 round 0);
  transform: scaleX(1);
  transition: clip-path 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.65s ease,
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.scroll-section__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-hairline);
}

.scroll-section__folio {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-terra);
}

.scroll-section__title {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 30px);
  line-height: 1.32;
  font-weight: 600;
  color: var(--text-main);
}

.scroll-section__lead {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 46em;
}

/* ==========================================================================
   Module 1: Features — 今日推荐书架（翻开书页卡片）
   ========================================================================== */

.bookshelf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.book-spread {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 26px 24px 26px 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.book-spread:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.book-spread__spine {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 12px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--wash-amber), var(--accent-terra-decor));
}

.book-spread__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(232, 192, 122, 0.24);
  color: var(--ink-warm);
}

.book-spread__title {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-main);
}

.book-spread__desc {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Module 2: Scenarios — 塔楼不同时段阅读日志
   ========================================================================== */

.reading-log {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.log-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-top: 3px solid var(--wash-amber);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.log-card--noon {
  border-top-color: var(--accent-terra-decor);
}

.log-card--dusk {
  border-top-color: var(--ink-warm);
}

.log-card__time {
  display: inline-block;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-warm);
  background: var(--bg-paper-deep);
  padding: 3px 10px;
  border-radius: 99px;
}

.log-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}

.log-card__device {
  margin: 0;
  font-size: 13.5px;
  color: var(--accent-terra);
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-hairline);
}

.log-card__desc {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Module 3: Streaming — 放映室片单（统一单色内联图标）
   ========================================================================== */

.media-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.media-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card);
}

.media-chip__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.media-chip__icon {
  width: 28px;
  height: 28px;
  color: var(--ink-warm);
  flex-shrink: 0;
}

.media-chip__name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.media-chip__desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.media-gallery__note {
  margin: 22px 0 0;
  padding: 14px 18px;
  background: rgba(232, 192, 122, 0.16);
  border-left: 3px solid var(--accent-terra-decor);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
  color: var(--ink-warm);
}

/* ==========================================================================
   Module 4: Pricing — 三种借阅权限卡
   ========================================================================== */

.library-pass {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

.pass-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.pass-card--featured {
  border: 2px solid var(--accent-terra-decor);
  background: linear-gradient(180deg, #FFFDF8 0%, #FDF6E8 100%);
  box-shadow: 0 14px 34px rgba(181, 78, 28, 0.13);
}

.pass-card__badge {
  position: absolute;
  top: -13px;
  right: 20px;
  background: var(--accent-terra);
  color: #FFFDF9;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.06em;
}

.pass-card__code {
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.pass-card__tier {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}

.pass-card__audience {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--accent-terra);
  font-weight: 600;
}

.pass-card__price-box {
  padding: 16px 0;
  margin-bottom: 18px;
  border-top: 1px dashed var(--border-strong);
  border-bottom: 1px dashed var(--border-strong);
}

.pass-card__price {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.pass-card__unit {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.pass-card__list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.pass-card__item {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--ink-warm);
}

.pass-card__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wash-amber);
  border: 2px solid var(--accent-terra-decor);
}

.pass-card__note {
  margin: 22px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Module 5: AI Tools — 智能参考室
   ========================================================================== */

.ai-folio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.ai-item {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-item__name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.ai-item__tag {
  font-size: 12px;
  color: var(--ink-warm);
  background: var(--wash-amber-soft);
  padding: 2px 9px;
  border-radius: 99px;
}

.ai-item__desc {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
}

.ai-folio__notice {
  margin: 22px 0 0;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Module 6: Benefits — 杂志分栏核心优势
   ========================================================================== */

.benefit-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.benefit-column {
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}

.benefit-column__num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-terra);
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--wash-amber);
}

.benefit-column__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}

.benefit-column__text {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Module 7: FAQ — 书页批注手风琴
   ========================================================================== */

.margin-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.margin-faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-left: 4px solid var(--wash-amber);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.margin-faq__item--open {
  border-left-color: var(--accent-terra-decor);
  box-shadow: var(--shadow-card);
}

.margin-faq__heading {
  margin: 0;
  font-size: inherit;
}

.margin-faq__trigger {
  width: 100%;
  min-height: 54px;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

.margin-faq__trigger:hover {
  background: rgba(232, 192, 122, 0.14);
}

.margin-faq__label {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.margin-faq__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-terra);
  flex-shrink: 0;
}

.margin-faq__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--ink-warm);
  font-size: 16px;
  line-height: 1;
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.margin-faq__trigger[aria-expanded="true"] .margin-faq__icon {
  transform: rotate(45deg);
  background: var(--accent-terra);
  border-color: var(--accent-terra);
  color: #FFFDF9;
}

.margin-faq__panel {
  padding: 0 20px 18px 44px;
  color: var(--ink-warm);
  font-size: 15.5px;
  line-height: 1.75;
}

.margin-faq__panel[hidden] {
  display: none;
}

.margin-faq__answer {
  margin: 0;
}

/* ==========================================================================
   Final CTA — 办理借阅印章框
   ========================================================================== */

.borrow-cta {
  padding: 68px 20px;
}

.borrow-cta__stamp-frame {
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 2px solid var(--accent-terra-decor);
  border-radius: var(--radius-lg);
  padding: 36px 26px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.borrow-cta__stamp-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(196, 92, 38, 0.45);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

.borrow-cta__seal {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-terra);
  border: 1.5px solid var(--accent-terra-decor);
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
  background: rgba(232, 192, 122, 0.2);
}

.borrow-cta__title {
  margin: 0 0 14px;
  font-size: clamp(23px, 3.2vw, 32px);
  line-height: 1.32;
  font-weight: 700;
  color: var(--text-main);
}

.borrow-cta__desc {
  margin: 0 auto 26px;
  max-width: 38em;
  font-size: 16px;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer — 刊末页码与合规声明
   ========================================================================== */

.tower-footer {
  background: var(--bg-paper-deep);
  border-top: 1px solid var(--border-strong);
  padding: 38px 20px 44px;
}

.tower-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tower-footer__top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-hairline);
}

.tower-footer__brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.06em;
}

.tower-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.tower-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14.5px;
  color: var(--ink-warm);
  text-decoration: none;
}

.tower-footer__link:hover {
  color: var(--accent-terra);
  text-decoration: underline;
}

.tower-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.tower-footer__disclosure {
  margin: 0;
  color: var(--ink-warm);
}

/* ==========================================================================
   Mobile Sticky Bottom CTA Bar (<= 768px only)
   ========================================================================== */

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-strong);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -6px 20px rgba(42, 33, 24, 0.08);
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.sticky-bar--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-bar__text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.sticky-bar__btn {
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 14.5px;
}

/* ==========================================================================
   Subpages: Breadcrumb, Guides Catalog, Articles, Legal, Sitemap
   ========================================================================== */

.page-shell {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.page-shell--narrow {
  max-width: 860px;
}

.breadcrumb {
  margin-bottom: 24px;
}

.breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--border-strong);
}

.breadcrumb__link {
  color: var(--ink-warm);
  text-decoration: none;
  padding: 6px 2px;
}

.breadcrumb__link:hover {
  color: var(--accent-terra);
  text-decoration: underline;
}

.breadcrumb__current {
  color: var(--text-muted);
}

.subpage-head {
  margin-bottom: 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-hairline);
}

.subpage-head__folio {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-terra);
  margin-bottom: 10px;
}

.subpage-head__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.26;
  font-weight: 700;
  color: var(--text-main);
}

.subpage-head__desc {
  margin: 0;
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 46em;
}

.guide-catalog {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.guide-card__media {
  background: var(--bg-paper-deep);
  border-bottom: 1px solid var(--border-hairline);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.guide-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.guide-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.guide-card__title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.38;
  font-weight: 600;
  color: var(--text-main);
}

.guide-card__title-link {
  color: inherit;
  text-decoration: none;
}

.guide-card__title-link:hover {
  color: var(--accent-terra);
}

.guide-card__excerpt {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--text-muted);
  flex: 1;
}

.guide-card__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-terra);
  text-decoration: none;
  align-self: flex-start;
  padding: 4px 0;
  border-bottom: 1.5px solid var(--wash-amber);
}

.guide-card__link:hover {
  border-bottom-color: var(--accent-terra);
}

/* Article Layout */

.editorial-article {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 28px 22px 34px;
  box-shadow: var(--shadow-soft);
}

.editorial-article__header {
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-hairline);
}

.editorial-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.editorial-article__title {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-main);
}

.editorial-article__lead {
  margin: 0;
  font-size: 17px;
  color: var(--ink-warm);
}

.editorial-article__figure {
  margin: 0 0 26px;
  background: var(--bg-paper);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.editorial-article__img {
  width: 100%;
  height: auto;
}

.editorial-article__figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-hairline);
}

.editorial-article__body h2 {
  margin: 32px 0 14px;
  font-size: 23px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-main);
  padding-left: 12px;
  border-left: 4px solid var(--wash-amber);
}

.editorial-article__body h3 {
  margin: 22px 0 10px;
  font-size: 18.5px;
  font-weight: 600;
  color: var(--ink-warm);
}

.editorial-article__body p {
  margin: 0 0 16px;
}

.editorial-article__body ul,
.editorial-article__body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.editorial-article__body li {
  margin-bottom: 8px;
}

.editorial-table-wrap {
  overflow-x: auto;
  margin: 18px 0 22px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
}

.editorial-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 480px;
}

.editorial-table th,
.editorial-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-hairline);
}

.editorial-table th {
  background: var(--bg-paper-deep);
  color: var(--text-main);
  font-weight: 600;
}

.editorial-article__faq {
  margin-top: 28px;
  padding-top: 8px;
}

.editorial-article__faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.editorial-article__faq-item {
  background: var(--bg-paper);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.editorial-article__faq-q {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.editorial-article__faq-a {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-warm);
}

.editorial-article__cta {
  margin-top: 30px;
  padding: 24px 22px;
  background: linear-gradient(180deg, rgba(232, 192, 122, 0.22), rgba(248, 244, 236, 0.65));
  border: 1.5px dashed var(--accent-terra-decor);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.editorial-article__cta-text {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-warm);
}

.editorial-article__related {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
}

.editorial-article__related-title {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-main);
}

.editorial-article__related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.editorial-article__related-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--bg-paper);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  color: var(--ink-warm);
  text-decoration: none;
  font-weight: 500;
}

.editorial-article__related-link:hover {
  border-color: var(--accent-terra-decor);
  color: var(--accent-terra);
}

/* Legal & Sitemap */

.legal-sheet {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 28px 24px 36px;
  box-shadow: var(--shadow-soft);
}

.legal-sheet__meta {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.legal-sheet h2 {
  margin: 28px 0 12px;
  font-size: 21px;
  font-weight: 600;
  color: var(--text-main);
  padding-left: 10px;
  border-left: 3px solid var(--accent-terra-decor);
}

.legal-sheet p,
.legal-sheet li {
  color: var(--ink-warm);
}

.legal-sheet__notice {
  background: rgba(232, 192, 122, 0.22);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 18px 0 24px;
  color: var(--text-main);
}

.sitemap-index {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.sitemap-index__group {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.sitemap-index__title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-hairline);
}

.sitemap-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sitemap-index__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15.5px;
  color: var(--ink-warm);
  text-decoration: none;
}

.sitemap-index__link:hover {
  color: var(--accent-terra);
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile-First)
   ========================================================================== */

@media (min-width: 640px) {
  .media-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ai-folio__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .guide-catalog {
    grid-template-columns: repeat(2, 1fr);
  }

  .editorial-article {
    padding: 38px 36px 42px;
  }

  .editorial-article__cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .editorial-article__related-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 769px) {
  .tower-header__stamp {
    display: inline-block;
  }

  .tower-header__toggle {
    display: none;
  }

  .tower-header__nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .tower-header__list {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .sticky-bar {
    display: none !important;
  }

  .tower-footer__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .tower-footer__meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .sitemap-index {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .spread-hero {
    padding: 64px 24px 76px;
  }

  .spread-hero__inner {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 48px;
  }

  .scroll-section {
    padding: 80px 24px;
  }

  .reading-log,
  .library-pass,
  .benefit-columns,
  .ai-folio__grid,
  .guide-catalog {
    grid-template-columns: repeat(3, 1fr);
  }

  .borrow-cta__stamp-frame {
    padding: 46px 44px;
  }

  .legal-sheet {
    padding: 40px 44px 48px;
  }
}

/* ==========================================================================
   Reduced Motion Compliance
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .spread-hero__beam {
    animation: none !important;
  }

  .scroll-section--pending,
  .scroll-section--revealed {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
  }
}
