:root {
  --night: #0b0e1c;
  --night-2: #141a33;
  --paper: #f5f3ee;
  --white: #ffffff;
  --ink: #1d2025;
  --soft: #5d636d;
  --faint: #9aa0a8;
  --line: #e6e2da;
  --g1: #13866f;
  --g1-bg: #e6f4f0;
  --g4: #4553c4;
  --g4-bg: #eceefb;
  --accent: #e0702c;
  --gold: #f3b562;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { width: min(1160px, 100% - 48px); margin: 0 auto; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: 0;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  color: #fff; background: linear-gradient(135deg, #f08a3e, #d9531e);
  box-shadow: 0 10px 30px -8px rgba(224, 112, 44, .65);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(224, 112, 44, .75); }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-ghost { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }

/* 顶栏 */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(18px, 4vw, 48px); color: #fff;
  transition: background .3s, box-shadow .3s, color .3s;
}
.nav.scrolled { background: rgba(11, 14, 28, .92); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: .5px; }
.logo {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, #f08a3e, #d9531e); color: #fff; font-size: 19px;
  box-shadow: 0 6px 18px -6px rgba(224,112,44,.8);
}
.links { display: flex; gap: 24px; margin-left: auto; }
.links a { text-decoration: none; font-size: 14px; opacity: .75; transition: opacity .2s; }
.links a:hover { opacity: 1; }

/* 首屏 */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 80% at 50% 0%, var(--night-2), var(--night) 70%);
  padding: 140px 0 0; min-height: 100vh; display: flex; flex-direction: column;
}
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; animation: drift 16s ease-in-out infinite alternate; }
.glow.g1 { width: 520px; height: 520px; background: #d9531e; top: -160px; right: 8%; opacity: .35; }
.glow.g2 { width: 460px; height: 460px; background: #4553c4; bottom: -120px; left: -80px; }
.glow.g3 { width: 360px; height: 360px; background: #13866f; top: 40%; right: -120px; opacity: .35; animation-delay: -6s; }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
}
.hero-inner {
  position: relative; flex: 1; width: min(1160px, 100% - 48px); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  padding: 7px 16px 7px 12px; border-radius: 999px; font-size: 13px; color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px rgba(61,220,151,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(61,220,151,0); } }
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 900;
  font-size: clamp(40px, 5.6vw, 76px); line-height: 1.15; letter-spacing: 2px;
}
.hero h1 span { white-space: nowrap; }
.shine {
  background: linear-gradient(100deg, #ffd29a 0%, #f08a3e 35%, #ffe2b8 50%, #f08a3e 65%, #ffd29a 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -220% center; } }
.lead { margin: 28px 0 0; max-width: 34em; font-size: 18px; line-height: 1.9; color: rgba(255,255,255,.72); }
.lead b { color: #fff; font-weight: 700; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-note { margin: 18px 0 0; font-size: 13px; color: rgba(255,255,255,.45); letter-spacing: .5px; }

.hero-stage {
  position: relative; height: 520px; perspective: 1200px;
  --rx: 0deg; --ry: 0deg;
}
.qcard {
  position: absolute; width: min(400px, 88%); padding: 26px 28px; border-radius: 22px;
  background: rgba(255,255,255,.97); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.4);
  transform-style: preserve-3d; transition: transform .25s ease-out;
  border-top: 6px solid var(--c);
}
.qcard.front { --c: var(--g1); z-index: 2; left: 0; top: 150px; transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(-3deg); animation: float 7s ease-in-out infinite; }
.qcard.back { --c: var(--g4); right: 0; top: 0; transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(4deg); filter: brightness(.9); animation: float 8s ease-in-out -3s infinite; }
@keyframes float { 50% { translate: 0 -12px; } }
.qtop { display: flex; gap: 8px; align-items: center; }
.qbadge { display: inline-block; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--g1); }
.qbadge.g4 { background: var(--g4); }
.qtype { font-size: 12px; font-weight: 700; color: var(--t, var(--accent)); padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--t, var(--accent)) 12%, #fff); }
.qcard h3 { margin: 16px 0 8px; font-size: 22px; line-height: 1.35; }
.qcard p { margin: 0; font-size: 15px; line-height: 1.8; color: #3b4048; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.qhint { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--g1-bg); font-size: 14px; line-height: 1.6; }
.qhint:empty { display: none; }
.qhint span { display: block; font-size: 11px; font-weight: 700; color: var(--g1); letter-spacing: 1px; margin-bottom: 2px; }
.bubble {
  position: absolute; padding: 10px 16px; border-radius: 16px; font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  max-width: 260px; line-height: 1.5; z-index: 3;
}
.bubble:empty { display: none; }
.bubble.b1 { left: 4%; bottom: 36px; max-width: 220px; border-bottom-left-radius: 4px; animation: float 6s ease-in-out -1s infinite; }
.bubble.b2 { right: 0; bottom: 0; max-width: 220px; border-top-right-radius: 4px; color: var(--gold); animation: float 9s ease-in-out -4s infinite; }

.stats {
  position: relative; width: min(1160px, 100% - 48px); margin: 56px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.1);
}
.stats div { padding: 28px 8px 36px; }
.stats div + div { border-left: 1px solid rgba(255,255,255,.1); padding-left: 28px; }
.stats b { display: block; font-family: var(--serif); font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: 1px; }
.stats small { font-size: 16px; margin-left: 4px; font-family: -apple-system, "PingFang SC", sans-serif; }
.stats span { display: block; margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.55); }

/* 通用分区 */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.kicker { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: 3px; color: var(--accent); }
.section h2, .final h2 {
  margin: 0; font-family: var(--serif); font-weight: 900;
  font-size: clamp(32px, 4.2vw, 52px); line-height: 1.3; letter-spacing: 1px;
}
.section h2 em, .final h2 em { font-style: normal; color: var(--accent); }
.sub { margin: 22px 0 0; max-width: 46em; font-size: 17px; line-height: 1.9; color: var(--soft); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* 理念 */
.why { background: var(--paper); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.pillar {
  padding: 32px 30px; border-radius: 22px; background: var(--white);
  border: 1px solid var(--line); box-shadow: 0 10px 40px -20px rgba(40,30,10,.2);
}
.pnum { font-family: var(--serif); font-size: 46px; font-weight: 900; color: transparent; -webkit-text-stroke: 1.2px var(--accent); }
.pillar h3 { margin: 14px 0 10px; font-size: 21px; }
.pillar p { margin: 0; font-size: 15px; line-height: 1.85; color: var(--soft); }

/* 十二种思考 */
.types { background: var(--night); color: #fff; }
.types .sub { color: rgba(255,255,255,.6); }
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 52px; }
.tcard {
  position: relative; display: block; min-height: 214px; border-radius: 20px; overflow: hidden; text-decoration: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--t) 22%, var(--night-2)), var(--night-2) 70%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.tcard::after {
  content: ""; position: absolute; width: 140px; height: 140px; right: -40px; top: -40px; border-radius: 50%;
  background: var(--t); filter: blur(50px); opacity: .35; transition: opacity .3s;
}
.tface, .tback { position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; transition: opacity .35s, transform .35s; }
.tback { opacity: 0; transform: translateY(14px); background: color-mix(in srgb, var(--t) 18%, var(--night)); }
.tcard:hover .tface, .tcard:focus-visible .tface { opacity: 0; transform: translateY(-14px); }
.tcard:hover .tback, .tcard:focus-visible .tback { opacity: 1; transform: none; }
.tcard:hover::after { opacity: .6; }
.tnum { font-family: var(--serif); font-size: 15px; font-weight: 900; color: var(--t); }
.tface h3 { margin: auto 0 8px; font-size: 26px; font-family: var(--serif); font-weight: 900; letter-spacing: 1px; }
.tface p { margin: 0; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.66); }
.tcount { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.4); }
.tlabel { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--t); filter: brightness(1.4); }
.tback h4 { margin: 8px 0 6px; font-size: 17px; line-height: 1.4; }
.tback p { margin: 0; font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.75); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tgo { margin-top: auto; font-size: 13px; font-weight: 700; }

/* 拆开一道题 */
.anatomy { background: var(--white); }
.switch { display: inline-flex; margin-top: 36px; padding: 4px; border-radius: 999px; background: #efece5; }
.switch button { border: 0; background: none; padding: 9px 24px; border-radius: 999px; font-size: 15px; color: var(--soft); }
.switch button[aria-selected="true"] { background: var(--white); color: var(--ink); font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.anatomy-body {
  margin-top: 24px; padding: 34px clamp(20px, 4vw, 48px) 38px; border-radius: 26px;
  background: var(--paper); border: 1px solid var(--line);
}
.atag { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--soft); margin-bottom: 18px; }
.arow {
  display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 22px 0;
  border-top: 1px dashed #d8d3c8; animation: rise .5s both; animation-delay: var(--d);
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.alabel { display: flex; gap: 14px; align-items: flex-start; }
.anum {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: var(--t, var(--accent));
}
.alabel b { display: block; font-size: 16px; }
.alabel small { display: block; margin-top: 2px; font-size: 12px; color: var(--faint); }
.acontent h3 { margin: 0 0 8px; font-size: 24px; }
.acontent p { margin: 0; font-size: 16px; line-height: 1.85; }
.acontent .aq { font-size: 18px; }
.acontent .strong { font-weight: 700; }
.acontent ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.acontent li { padding: 10px 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.anatomy-body > .btn { margin-top: 16px; }

/* 怎么用 */
.how { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; counter-reset: step; }
.step { position: relative; padding: 30px 28px 32px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); counter-increment: step; }
.step::before {
  content: counter(step); position: absolute; right: 22px; top: 6px;
  font-family: var(--serif); font-size: 80px; font-weight: 900; color: #f1ede4; line-height: 1;
}
.time { position: relative; display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--accent); background: #fcebdf; }
.step h3 { position: relative; margin: 18px 0 8px; font-size: 21px; }
.step p { position: relative; margin: 0; font-size: 15px; line-height: 1.85; color: var(--soft); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.grade-card { padding: 32px 32px 30px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--c); }
.grade-card.g1 { --c: var(--g1); --c-bg: var(--g1-bg); }
.grade-card.g4 { --c: var(--g4); --c-bg: var(--g4-bg); }
.grade-card h3 { margin: 16px 0 8px; font-size: 24px; font-family: var(--serif); font-weight: 900; }
.grade-card p { margin: 0; font-size: 15px; line-height: 1.85; color: var(--soft); }
.grade-card ul { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.grade-card li { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--c); background: var(--c-bg); }
.print-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: center; margin-top: 22px;
  padding: 34px 40px; border-radius: 22px; background: var(--night); color: #fff; overflow: hidden;
}
.print-row h3 { margin: 0 0 10px; font-size: 24px; font-family: var(--serif); font-weight: 900; }
.print-row p { margin: 0; font-size: 15px; line-height: 1.9; color: rgba(255,255,255,.68); }
.paper {
  width: 170px; aspect-ratio: 210 / 297; margin: 0 auto; padding: 10px; border-radius: 6px; background: #fff;
  display: flex; flex-direction: column; transform: rotate(-4deg); box-shadow: 0 24px 50px -16px rgba(0,0,0,.6);
}
.pp { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 7px; border: 1.2px solid #333; border-radius: 4px; }
.pp i { display: block; height: 4px; border-radius: 2px; background: #c9c9c9; }
.pp i.pb { width: 30%; height: 6px; background: var(--g1); }
.pp i.pb.g4 { background: var(--g4); }
.pp i.short { width: 60%; }
.pp .box { flex: 1; margin-top: 3px; border-radius: 3px; }
.pp .box.dashed { border: 1px dashed #888; }
.pp .box.lines { background: repeating-linear-gradient(#fff 0 7px, #bbb 7px 8px); }
.pcut { height: 14px; display: flex; align-items: center; gap: 4px; font-size: 9px; color: #333; }
.pcut::before, .pcut::after { content: ""; flex: 1; border-top: 1px dashed #333; }

/* 一年 */
.year { background: var(--white); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.legend button, .lg-today {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); font-size: 13px; color: var(--soft);
}
.legend button:hover { border-color: var(--t); color: var(--ink); }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--t); }
.lg-today i { background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.heat {
  --cell: 16px; --gap: 4px;
  margin-top: 22px; padding: 28px 28px 24px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line);
  display: grid; grid-template-columns: 22px auto; grid-template-rows: auto auto; column-gap: 8px; row-gap: 8px;
  overflow-x: auto; justify-content: start;
}
.heat .months { grid-column: 2; display: grid; grid-template-columns: repeat(var(--cols), var(--cell)); column-gap: var(--gap); font-size: 12px; color: var(--faint); }
.heat .months span { white-space: nowrap; }
.heat .rows { grid-column: 1; grid-row: 2; display: grid; grid-template-rows: repeat(7, var(--cell)); row-gap: var(--gap); font-size: 11px; color: var(--faint); line-height: var(--cell); }
.heat .cells {
  grid-column: 2; grid-row: 2;
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, var(--cell)); grid-auto-columns: var(--cell); gap: var(--gap);
}
.cells a, .cells .pad { display: block; border-radius: 4px; }
.cells a { background: var(--t); opacity: .82; transition: transform .15s, opacity .2s; position: relative; }
.cells a:hover { transform: scale(1.5); opacity: 1; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.cells a.today { opacity: 1; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); z-index: 1; }
.cells a.talked::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; font-weight: 900; color: #fff; }
.cells.focus a { opacity: .12; }
.cells.focus a.hit { opacity: 1; }

/* 结尾 */
.final {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  padding: clamp(100px, 13vw, 170px) 0; background: radial-gradient(90% 90% at 50% 100%, var(--night-2), var(--night) 70%);
}
.final .glow.g1 { top: auto; bottom: -260px; right: 30%; }
.final .glow.g2 { bottom: auto; top: -200px; left: 10%; opacity: .35; }
.final .wrap { position: relative; }
.quote { margin: 0 0 30px; font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.7; color: var(--gold); }
.final h2 { margin-bottom: 40px; }
.foot {
  display: flex; justify-content: space-between; gap: 16px; padding: 26px clamp(18px, 4vw, 48px);
  background: var(--night); color: rgba(255,255,255,.45); font-size: 13px; border-top: 1px solid rgba(255,255,255,.06);
}
.foot a { text-decoration: none; color: rgba(255,255,255,.75); }

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-stage { height: 460px; max-width: 560px; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 720px) {
  .hero { padding-top: 110px; }
  .hero-stage { height: 480px; }
  .qcard { width: 86%; padding: 20px 22px; }
  .qcard.front { top: 140px; }
  .bubble { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; padding-left: 8px; }
  .stats div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .stats b { font-size: 36px; }
  .pillars, .steps, .duo { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tcard { min-height: 190px; }
  .tface, .tback { padding: 18px; }
  .tface h3 { font-size: 21px; }
  .arow { grid-template-columns: 1fr; gap: 12px; }
  .print-row { grid-template-columns: 1fr; padding: 30px 24px; gap: 28px; }
  .heat { --cell: 12px; --gap: 3px; padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
