/* ==========================================================
   BL漫画 · scpyt.cn
   信纸书卷 / 暖棕 + 米黄
   ========================================================== */

:root {
  --brown: #8a5a44;
  --brown-deep: #57392c;
  --brown-soft: #f0e2d6;
  --blue: #7f9bb5;
  --paper: #f8f3e8;
  --paper-2: #fffdf7;
  --ink: #33291f;
  --ink-soft: #6b5c50;
  --ink-faint: #9d8f82;
  --line: #ddd0bf;
  --line-soft: #eae0d1;
  --serif: "Songti SC", "Noto Serif SC", SimSun, "宋体", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius: 6px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.78;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 31px,
    rgba(138, 90, 68, .045) 31px,
    rgba(138, 90, 68, .045) 32px
  );
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; letter-spacing: .01em; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 99;
  background: var(--brown-deep);
  color: #fff;
  padding: 10px 16px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 243, 232, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.head-row { display: flex; align-items: center; gap: 24px; height: 74px; }

.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand-txt strong { font-family: var(--serif); font-size: 19px; letter-spacing: .04em; }
.brand-txt em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--ink-faint);
  margin-top: 2px;
}

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--brown); border-color: var(--brown); }

.btn-top {
  flex: 0 0 auto;
  background: var(--brown);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 4px;
  transition: background .2s;
}
.btn-top:hover { background: var(--brown-deep); }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 11px 9px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.burger span { display: block; height: 1.5px; background: var(--ink); }

/* ---------- hero ---------- */

.hero { padding: 64px 0 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  gap: 54px;
  align-items: center;
}

.kicker {
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--brown);
  border-bottom: 1px solid var(--brown);
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(50px, 7.4vw, 86px);
  line-height: 1.02;
  letter-spacing: .02em;
  margin-bottom: 12px;
}

.hero-sub {
  font-family: var(--serif);
  font-size: clamp(18px, 2.1vw, 24px);
  color: var(--brown-deep);
  margin-bottom: 18px;
}

.lede { font-size: 15.5px; color: var(--ink-soft); max-width: 33em; line-height: 1.95; }

.dl-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 30px; }

.btn-main {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  background: var(--brown-deep);
  color: #fdf8ee;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 13px 33px;
  border-radius: 4px;
  transition: background .2s, transform .2s;
}
.btn-main span { font-size: 11px; font-weight: 400; letter-spacing: .05em; opacity: .78; }
.btn-main:hover { background: var(--brown); transform: translateY(-1px); }

.read-link {
  font-size: 14.5px;
  color: var(--brown-deep);
  border-bottom: 1px solid var(--brown);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.read-link:hover { color: var(--brown); border-color: var(--blue); }

.hero-foot { font-size: 12.5px; color: var(--ink-faint); margin-top: 24px; }
.hero-foot b { color: var(--brown); }

/* 手记卡 */

.note-card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brown);
  padding: 22px 22px 20px;
  box-shadow: 0 22px 40px -30px rgba(51, 41, 31, .7);
  transform: rotate(-1.2deg);
}
.note-card::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(138, 90, 68, .35);
  border-radius: 50%;
}
.note-top {
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--brown);
  margin-bottom: 14px;
}
.note-body { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
.note-body img { width: 96px; border: 1px solid var(--line); }
.note-quote { font-family: var(--serif); font-size: 15.5px; line-height: 1.85; color: var(--ink); }
.note-meta { font-size: 11.5px; color: var(--ink-faint); margin-top: 10px; }
.note-sign {
  font-family: var(--serif);
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: right;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

/* ---------- 分隔条 ---------- */

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.strip-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 11px 0;
  font-family: var(--serif);
  font-size: 13.5px;
  letter-spacing: .18em;
  color: var(--brown);
}
.strip-row i { width: 3px; height: 3px; border-radius: 50%; background: var(--blue); }

/* ---------- 通用 ---------- */

.section { padding: 74px 0; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.sec-head h2 { font-size: clamp(26px, 3.2vw, 34px); }
.sec-head h2 span {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-faint);
  margin-left: 12px;
  letter-spacing: .04em;
}
.sec-note { font-size: 13px; color: var(--ink-faint); }

/* ---------- 书架 ---------- */

.list { border-bottom: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: 52px 92px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px 4px;
  border-top: 1px solid var(--line-soft);
  transition: background .2s;
}
.row:first-child { border-top: none; }
.row:hover { background: rgba(255, 253, 247, .8); }

.row-no {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-faint);
  letter-spacing: .06em;
}
.row-pic { display: block; width: 92px; border: 1px solid var(--line); background: #fff; }
.row-pic img { width: 100%; }
.row-meta { font-size: 11.5px; color: var(--brown); letter-spacing: .06em; margin-bottom: 5px; }
.row-txt h3 { font-size: 21px; margin-bottom: 5px; }
.row-txt h3 a:hover { color: var(--brown); }
.row-txt > p:last-child { font-size: 14px; color: var(--ink-soft); line-height: 1.8; max-width: 48em; }

.row-go {
  font-size: 13px;
  color: var(--brown-deep);
  border-bottom: 1px solid var(--brown);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color .2s;
}
.row-go:hover { color: var(--blue); }

/* 完结区 */

.done-row {
  display: flex;
  align-items: stretch;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.done-label {
  align-self: center;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: .08em;
  padding-right: 6px;
}
.done-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 8px 14px 8px 8px;
  transition: border-color .2s, transform .2s;
}
.done-item:hover { border-color: var(--brown); transform: translateY(-2px); }
.done-item img { width: 38px; }
.done-item span { display: flex; flex-direction: column; line-height: 1.3; }
.done-item b { font-size: 13.5px; }
.done-item em { font-style: normal; font-size: 10.5px; color: var(--ink-faint); margin-top: 2px; }

/* ---------- 读者长信 ---------- */

.sec-letters {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.letter {
  background: #fffdf6;
  border: 1px solid var(--line);
  padding: 26px 26px 22px;
  position: relative;
}
.letter::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(138, 90, 68, .22);
  pointer-events: none;
}
.l-to { font-family: var(--serif); font-size: 13px; color: var(--brown); margin-bottom: 10px; }
.letter h3 { font-size: 19px; line-height: 1.45; margin-bottom: 14px; }
.l-body { font-size: 14px; color: var(--ink-soft); line-height: 1.95; }
.l-sign { font-family: var(--serif); font-size: 12px; color: var(--ink-faint); text-align: right; margin-top: 16px; }

/* ---------- 阅读指南 ---------- */

.guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--brown);
}
.guide li { padding: 22px 22px 24px 0; }
.guide li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.g-no {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--brown);
  letter-spacing: .1em;
  display: block;
  margin-bottom: 10px;
}
.guide h3 { font-size: 18px; margin-bottom: 7px; }
.guide p { font-size: 13px; color: var(--ink-soft); }

/* 更新节奏 */

.rhythm {
  display: grid;
  grid-template-columns: 1.32fr .68fr;
  gap: 34px;
  align-items: start;
  margin-top: 46px;
}
.rhythm table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rhythm caption {
  text-align: left;
  font-family: var(--serif);
  font-size: 17px;
  margin-bottom: 12px;
  color: var(--ink);
}
.rhythm th, .rhythm td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}
.rhythm thead th {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-faint);
  font-weight: 500;
}
.rhythm tbody th { font-weight: 600; font-family: var(--serif); }
.rhythm td { color: var(--ink-soft); }
.rhythm-note { font-size: 12.5px; color: var(--ink-faint); line-height: 1.9; border-left: 2px solid var(--line); padding-left: 14px; }

.rhythm-side {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brown);
  padding: 20px 20px 20px;
}
.rs-title { font-family: var(--serif); font-size: 15px; color: var(--brown-deep); margin-bottom: 10px; }
.rhythm-side p:not(.rs-title) { font-size: 12.5px; color: var(--ink-soft); line-height: 1.9; }
.rhythm-side p + p { margin-top: 8px; }

/* ---------- FAQ ---------- */

.sec-faq { border-top: 1px solid var(--line); }

.faq { max-width: 880px; }
.faq details {
  border-left: 2px solid var(--brown);
  padding: 0 0 0 18px;
  margin-bottom: 18px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 16px;
  padding: 3px 26px 3px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋";
  position: absolute;
  right: 0;
  top: 1px;
  font-size: 16px;
  color: var(--brown);
  font-family: var(--sans);
}
.faq details[open] summary::after { content: "－"; }
.faq details p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.9; padding: 6px 20px 0 0; }

/* ---------- 结尾 ---------- */

.final { background: var(--brown-deep); color: #f6eddc; padding: 56px 0; }
.final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.final-kicker { font-size: 11px; letter-spacing: .24em; color: rgba(246, 237, 220, .45); margin-bottom: 10px; }
.final h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.final p { font-size: 14px; color: rgba(246, 237, 220, .7); max-width: 36em; }
.btn-final { background: #f6eddc; color: var(--brown-deep); flex: 0 0 auto; }
.btn-final span { color: rgba(87, 57, 44, .68); }
.btn-final:hover { background: #fff; color: var(--brown-deep); }

/* ---------- 页脚 ---------- */

.site-footer {
  background: #3a2a21;
  color: rgba(246, 237, 220, .5);
  padding: 25px 0;
  font-size: 12.5px;
}
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.f-brand { color: rgba(246, 237, 220, .88); font-family: var(--serif); letter-spacing: .04em; }

/* ---------- 响应式 ---------- */

@media (max-width: 1020px) {
  .shell { width: calc(100% - 40px); }

  .hero { padding: 46px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .note-card { max-width: 470px; }

  .row { grid-template-columns: 40px 82px 1fr; gap: 18px; }
  .row-pic { width: 82px; }
  .row-go { display: none; }

  .guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide li { padding: 20px 20px 22px 0; }
  .guide li:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .guide li:nth-child(2n+1) { border-left: none; }
  .guide li:nth-child(n+3) { border-top: 1px solid var(--line); }

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

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 14px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }

  .burger { display: flex; margin-left: 2px; }
  .btn-top { padding: 10px 16px; font-size: 13px; }
  .brand-txt em { display: none; }

  .hero h1 { font-size: clamp(44px, 14vw, 60px); }
  .hero-sub { font-size: 17px; }
  .dl-row { gap: 16px; }
  .btn-main { width: 100%; align-items: center; }
  .note-card { transform: none; padding: 18px; }
  .note-body { grid-template-columns: 80px 1fr; gap: 13px; }
  .note-body img { width: 80px; }
  .note-quote { font-size: 14px; }

  .section { padding: 50px 0; }
  .sec-head { margin-bottom: 24px; }
  .sec-head h2 span { display: block; margin: 5px 0 0; }
  .sec-note { display: none; }

  .row { grid-template-columns: 72px 1fr; gap: 15px; padding: 16px 0; align-items: start; }
  .row-no { display: none; }
  .row-pic { width: 72px; grid-row: span 2; }
  .row-txt h3 { font-size: 18px; }
  .row-txt > p:last-child {
    font-size: 12.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .row-meta { font-size: 10.5px; }

  .done-row { gap: 10px; margin-top: 22px; }
  .done-label { width: 100%; }
  .done-item { flex: 1 1 46%; }

  .letters { grid-template-columns: 1fr; }
  .letter { padding: 20px 20px 18px; }

  .guide { grid-template-columns: 1fr; }
  .guide li { padding: 16px 0; border-left: none !important; border-top: 1px solid var(--line); }
  .guide li:first-child { border-top: none; }

  .rhythm th, .rhythm td { padding: 9px 6px; font-size: 12.5px; }

  .final { padding: 42px 0; }
  .btn-final { width: 100%; align-items: center; }
  .foot-row { flex-direction: column; align-items: flex-start; gap: 7px; }
}

@media (max-width: 380px) {
  .done-item { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
