/* =========================================================
   17kk漫画网 · zbyibo.cn（米杏纸感 / 拼贴手账风）
   ========================================================= */

:root {
  --paper: #fdf9f2;
  --paper-2: #f8f1e5;
  --paper-3: #fffdf9;
  --ink: #2e2a26;
  --ink-soft: #4b443d;
  --muted: #7c7166;
  --line: rgba(46, 42, 38, .12);
  --line-2: rgba(46, 42, 38, .2);
  --brick: #c1493a;
  --brick-deep: #a3392c;
  --sage: #6f8368;
  --tape: rgba(240, 208, 133, .6);
  --shadow: 0 22px 44px -30px rgba(96, 70, 40, .5);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC",
           "SimSun", serif;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC",
          system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(193, 73, 58, .05) 1px, transparent 1.4px),
    linear-gradient(180deg, rgba(255, 255, 255, .5), transparent 30%);
  background-size: 22px 22px, 100% 100%;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--brick); color: #fff; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
  border-radius: 8px;
}

.shell {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 26px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- 顶部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 249, 242, .9);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px dashed var(--line-2);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 80px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand img { border-radius: 12px; box-shadow: var(--shadow); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt strong {
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: .04em;
}
.brand-txt em {
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: .2em;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--brick-deep);
  background: rgba(193, 73, 58, .08);
}

/* 顶部下载按钮 —— 明显 */
.btn-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 52px;
  padding: 12px 32px;
  border-radius: 12px;
  background: linear-gradient(160deg, #cf5142 0%, var(--brick) 52%, var(--brick-deep) 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .05em;
  box-shadow: 0 18px 32px -16px rgba(163, 57, 44, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .2s, box-shadow .25s;
  white-space: nowrap;
}
.btn-top:hover,
.btn-top:focus-visible {
  transform: translateY(-2px) rotate(-.6deg);
  box-shadow: 0 24px 40px -18px rgba(163, 57, 44, .85), inset 0 1px 0 rgba(255, 255, 255, .38);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--paper-3);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 52px 0 34px;
}
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 340px;
  background: radial-gradient(680px 360px at 78% 0%, rgba(193, 73, 58, .09), transparent 68%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 34px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brick-deep);
}
.k-line {
  width: 34px;
  height: 2px;
  background: var(--brick);
}
.hero h1 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.16;
  letter-spacing: -.01em;
  font-weight: 700;
}
.hero h1 .hand {
  display: inline-block;
  margin-top: 6px;
  padding: 0 10px 4px 2px;
  color: var(--brick-deep);
  background: linear-gradient(180deg, transparent 62%, rgba(240, 208, 133, .55) 62%);
}
.lede {
  margin-top: 18px;
  max-width: 520px;
  font-size: 15.5px;
  color: var(--muted);
}

/* Hero 主按钮 */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  min-width: 348px;
  padding: 16px 24px;
  border-radius: 14px;
  background: linear-gradient(160deg, #cf5142 0%, var(--brick) 52%, var(--brick-deep) 100%);
  color: #fff;
  box-shadow: 0 26px 48px -22px rgba(163, 57, 44, .9), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .2s, box-shadow .25s;
}
.btn-hero:hover,
.btn-hero:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 32px 56px -24px rgba(163, 57, 44, .95), inset 0 1px 0 rgba(255, 255, 255, .36);
}
.bh-txt { display: flex; flex-direction: column; line-height: 1.24; }
.bh-txt strong { font-size: 19px; font-weight: 800; letter-spacing: .06em; }
.bh-txt em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 500;
  opacity: .86;
  margin-top: 4px;
}
.bh-arrow {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}
.mini-stats {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.mini-stats li {
  padding: 6px 14px;
  border: 1px dashed var(--line-2);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, .55);
}
.mini-stats b { color: var(--ink); font-size: 13.5px; }

/* 拼贴板 */
.board {
  position: relative;
  height: 486px;
}
.polaroid {
  position: absolute;
  margin: 0;
  padding: 10px 10px 40px;
  background: #fff;
  border: 1px solid rgba(46, 42, 38, .07);
  box-shadow: 0 26px 44px -26px rgba(96, 70, 40, .55);
}
.polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.polaroid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11px;
  text-align: center;
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--ink-soft);
  letter-spacing: .04em;
}
.p-a {
  width: 210px;
  height: 300px;
  right: 92px;
  top: 14px;
  transform: rotate(-4.5deg);
  z-index: 3;
}
.p-b {
  width: 172px;
  height: 248px;
  right: 0;
  bottom: 52px;
  transform: rotate(6.5deg);
  z-index: 2;
}
.tape {
  position: absolute;
  width: 84px;
  height: 26px;
  background: var(--tape);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
  clip-path: polygon(3% 8%, 97% 0%, 100% 92%, 0% 100%);
}
.t-a { left: -24px; top: -12px; transform: rotate(-24deg); }
.t-b { right: -20px; top: -10px; transform: rotate(18deg); }
.sticky {
  position: absolute;
  left: 0;
  top: 66px;
  width: 168px;
  padding: 18px 16px 20px;
  background: #f4e6b8;
  box-shadow: 0 16px 30px -20px rgba(96, 70, 40, .55);
  transform: rotate(-3deg);
  z-index: 4;
}
.sticky b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #7a6320;
}
.sticky strong {
  display: block;
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1.1;
  color: #4a3b12;
}
.sticky span { font-size: 11.5px; color: #7a6320; }
.board-note {
  position: absolute;
  left: 26px;
  bottom: 30px;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  transform: rotate(-1.5deg);
  padding-left: 14px;
  border-left: 2px solid rgba(193, 73, 58, .35);
}

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(248, 241, 229, .9), rgba(253, 249, 242, .4));
  border-top: 1px dashed var(--line-2);
  border-bottom: 1px dashed var(--line-2);
}
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}
.sec-head h2 {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(25px, 2.6vw, 33px);
  font-weight: 700;
  letter-spacing: .02em;
}
.sec-head h2::after {
  content: "";
  position: absolute;
  left: 2px;
  right: -6px;
  bottom: -7px;
  height: 7px;
  background: rgba(240, 208, 133, .55);
  transform: rotate(-1deg);
  z-index: -1;
}
.sec-head p { font-size: 13px; color: var(--muted); }

/* 拼贴网格 */
.collage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 22px;
}
.clip {
  position: relative;
  padding: 9px 9px 12px;
  background: #fff;
  border: 1px solid rgba(46, 42, 38, .08);
  box-shadow: var(--shadow);
  transform: rotate(-.8deg);
  transition: transform .25s ease, box-shadow .25s ease;
}
.clip:nth-child(2n) { transform: rotate(.9deg); }
.clip:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 30px 52px -30px rgba(96, 70, 40, .55);
}
.clip img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--paper-2);
}
.clip h3 {
  margin-top: 11px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}
.clip p {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

/* 小抄便签 */
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.note {
  position: relative;
  padding: 30px 26px 26px;
  box-shadow: 0 18px 36px -26px rgba(96, 70, 40, .55);
  border-radius: 2px;
}
.note h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}
.note p {
  margin-top: 10px;
  font-size: 13.8px;
  color: rgba(46, 42, 38, .72);
}
.pin {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brick);
  box-shadow: 0 2px 5px rgba(103, 40, 32, .5), inset 0 -2px 3px rgba(0, 0, 0, .18);
}
.n-a { background: #f6ecd2; transform: rotate(-1.2deg); }
.n-b { background: #e6ecdf; transform: rotate(.8deg); }
.n-c { background: #f6e2dc; transform: rotate(-.6deg); }

/* 手账步骤 */
.notebook {
  padding: 12px 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--paper-3);
  background-image:
    linear-gradient(rgba(46, 42, 38, .06) 1px, transparent 1px);
  background-size: 100% 34px;
  box-shadow: var(--shadow);
}
.notebook li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0 26px;
  border-bottom: 1px dashed var(--line-2);
}
.notebook li:last-child { border-bottom: 0; }
.nb-no {
  flex: none;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--brick);
  line-height: 1.2;
  padding-top: 2px;
}
.notebook h3 { font-size: 17px; font-weight: 800; }
.notebook p { margin-top: 6px; font-size: 13.8px; color: var(--muted); }
.nb-tick {
  margin-left: auto;
  flex: none;
  font-size: 20px;
  color: var(--sage);
  opacity: .8;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.faq details {
  padding: 4px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-3);
  box-shadow: 0 12px 26px -24px rgba(96, 70, 40, .6);
}
.faq summary {
  position: relative;
  padding: 16px 30px 16px 0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brick);
  font-size: 19px;
  font-weight: 600;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p {
  padding: 0 0 18px;
  font-size: 13.5px;
  color: var(--muted);
}

/* 结尾 */
.final { padding: 72px 0; }
.final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 42px 46px;
  border-radius: 8px;
  background:
    radial-gradient(520px 240px at 92% 10%, rgba(255, 255, 255, .16), transparent 70%),
    linear-gradient(130deg, #7d3a2e 0%, #5a3550 52%, #3a3129 100%);
  color: #fff;
  box-shadow: 0 34px 66px -38px rgba(70, 45, 30, .85);
}
.final-inner h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: .02em;
}
.final-inner p {
  margin-top: 9px;
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
}
.btn-final {
  margin-top: 0;
  background: #fff;
  color: var(--brick-deep);
  box-shadow: 0 20px 36px -18px rgba(0, 0, 0, .5);
}
.btn-final:hover,
.btn-final:focus-visible {
  box-shadow: 0 26px 44px -18px rgba(0, 0, 0, .55);
}

/* 页脚 */
.site-footer {
  border-top: 1px dashed var(--line-2);
  padding: 32px 0 44px;
  background: var(--paper-3);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.f-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15.5px;
}
.f-brand img { border-radius: 9px; }
.f-note { font-size: 12.5px; color: var(--muted); }
.f-copy { margin-left: auto; font-size: 12.5px; color: var(--muted); }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .nav a { padding: 0 10px; font-size: 14px; }
  .collage { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(253, 249, 242, .98);
    box-shadow: 0 24px 44px -28px rgba(96, 70, 40, .6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { min-height: 46px; padding: 0 14px; font-size: 15px; }
  .burger { display: flex; }
  .header-row { min-height: 72px; gap: 12px; }
  .btn-top { min-height: 46px; padding: 10px 20px; font-size: 15.5px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding-top: 36px; }
  .board { height: 430px; max-width: 460px; margin: 0 auto; width: 100%; }
  .p-a { right: 88px; }
  .note-grid { grid-template-columns: 1fr; }
  .note { transform: none; }
  .faq { grid-template-columns: 1fr; }
  .final-inner { flex-direction: column; align-items: flex-start; padding: 34px 26px; }
  .f-copy { margin-left: 0; }
  .notebook { padding: 8px 22px; }
}

@media (max-width: 620px) {
  .shell { padding: 0 18px; }
  .brand img { width: 38px; height: 38px; }
  .brand-txt strong { font-size: 16px; }
  .btn-top { padding: 10px 15px; font-size: 15px; }
  .hero h1 { font-size: 35px; }
  .btn-hero { width: 100%; min-width: 0; }
  .board { height: 386px; }
  .p-a { width: 178px; height: 254px; right: 74px; top: 10px; }
  .p-b { width: 144px; height: 206px; bottom: 46px; }
  .sticky { width: 142px; padding: 14px 13px 16px; top: 52px; }
  .sticky strong { font-size: 38px; }
  .board-note { left: 6px; bottom: 20px; font-size: 12.5px; }
  .section { padding: 54px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .notebook li { gap: 14px; padding: 20px 0 22px; }
  .nb-no { font-size: 22px; }
  .nb-tick { display: none; }
}
