/* ═══════════════════════════════════════════════════════════
   PlanSup 官网 · 运动杂志编辑风
   纸感米白 × 深绿墨 × 荧光黄绿 / 宋体大标题 + 等宽数据标签
   ═══════════════════════════════════════════════════════════ */

:root {
  --paper: #f4f1e8;
  --paper-2: #ece8da;
  --ink: #12291c;
  --ink-soft: #3c5245;
  --green: #1f6d3f;
  --green-deep: #143724;
  --lime: #c8f04d;
  --line: rgba(18, 41, 28, 0.16);
  --line-strong: rgba(18, 41, 28, 0.42);
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", "Menlo", monospace;
  --w: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(18,41,28,.012) 3px 4px),
    radial-gradient(120% 70% at 85% -10%, rgba(31,109,63,.07), transparent 60%),
    var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: var(--ink); }

a { color: inherit; }

/* ── 通用元件 ─────────────────────────────── */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--green);
}
.kicker__dot {
  width: 9px; height: 9px;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.kicker--invert { color: var(--lime); }

.h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.18;
  letter-spacing: 0.01em;
}
.h2--invert { color: var(--paper); }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  padding: 13px 26px;
  border: 1.5px solid var(--ink);
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.btn--solid {
  background: var(--ink);
  color: var(--lime);
  box-shadow: 4px 4px 0 0 rgba(18,41,28,.22);
}
.btn--solid:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 0 rgba(18,41,28,.28); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--lime); }

.footnote {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  border-bottom: 1px dotted var(--line-strong);
}

/* ── 入场动画 ─────────────────────────────── */

.reveal {
  animation: rise 0.8s cubic-bezier(0.22, 0.9, 0.3, 1) both;
  animation-delay: calc(0.09s * var(--d, 0));
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .marquee__track { animation: none; }
}

/* ── 导航 ─────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(20px, 4vw, 48px);
  background: rgba(244, 241, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__logo {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__mark {
  color: var(--green);
  font-size: 26px;
  line-height: 1;
  transform: translateY(-2px);
}
.nav__latin {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  transform: translateY(1px);
}
.nav__links {
  margin-left: auto;
  display: flex;
  gap: 26px;
  font-family: var(--mono);
  font-size: 13.5px;
}
.nav__links a {
  text-decoration: none;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -4px;
  height: 2px;
  background: var(--lime);
  transition: right 0.22s ease;
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { right: 0; }
.nav__pill {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--lime);
}

/* ── 首屏 ─────────────────────────────── */

.hero {
  max-width: var(--w);
  margin: 0 auto;
  padding: clamp(48px, 7vh, 96px) clamp(20px, 4vw, 48px) 32px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(52px, 8.2vw, 104px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  margin: 18px 0 22px;
}
.hero__title em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 94%, transparent 94%);
  -webkit-text-stroke: 1.5px var(--ink);
}
.hero__sub {
  font-size: clamp(15.5px, 1.6vw, 17.5px);
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 26px 0 34px;
}
.hero__meta li {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 5px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,.45);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll {
  display: block;
  width: 26px; height: 44px;
  margin: 40px auto 0;
  border: 2px solid var(--ink);
  border-radius: 999px;
  position: relative;
}
.hero__scroll span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 9px;
  margin-left: -2px;
  background: var(--ink);
  border-radius: 2px;
  animation: drop 1.6s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ── 手机 mockup(纯 CSS) ─────────────────── */

.phone { justify-self: center; }
.phone__frame {
  width: min(300px, 78vw);
  border: 3px solid var(--ink);
  border-radius: 38px;
  background: var(--paper);
  box-shadow: 10px 12px 0 0 rgba(18,41,28,.2);
  overflow: hidden;
  transform: rotate(1.6deg);
}
.phone__screen {
  aspect-ratio: 9 / 18.6;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 10px;
  background:
    radial-gradient(90% 40% at 100% 0%, rgba(31,109,63,.08), transparent 60%),
    var(--paper-2);
}
.phone__status {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
}
.phone__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px 10px;
  border-bottom: 1.5px solid var(--line);
}
.phone__burger { font-size: 16px; line-height: 1; }
.phone__title { font-family: var(--serif); font-weight: 900; font-size: 15px; }
.phone__ring {
  margin-left: auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background:
    conic-gradient(var(--green) var(--p), rgba(18,41,28,.12) 0);
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 56%);
          mask: radial-gradient(circle, transparent 55%, #000 56%);
}
.phone__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  overflow: hidden;
  -webkit-mask: linear-gradient(#000 78%, transparent);
          mask: linear-gradient(#000 78%, transparent);
}
.pcard {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.6);
}
.pcard--done { background: rgba(31,109,63,.12); border-color: rgba(31,109,63,.35); }
.pcard__check {
  width: 16px; height: 16px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  flex: none;
}
.pcard__check--on {
  background: var(--green);
  border-color: var(--green);
  color: var(--lime);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcard__body { min-width: 0; }
.pcard__body b {
  display: block;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcard__body i {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-soft);
}
.pcard__tag {
  margin-left: auto;
  flex: none;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}
.pcard__tag--run { background: var(--lime); }
.pcard__tag--fit { background: rgba(31,109,63,.16); }
.phone__fab {
  align-self: flex-end;
  width: 40px; height: 40px;
  margin: 8px 2px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--lime);
  background: var(--green);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 0 rgba(18,41,28,.25);
}
.phone__tabs {
  display: flex;
  justify-content: space-around;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
  border-top: 1.5px solid var(--line);
  padding-top: 7px;
}
.phone__tabs .is-on { color: var(--green); font-weight: 600; }
.phone__note {
  margin-top: 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
}

/* ── 跑马灯 ─────────────────────────────── */

.marquee {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  overflow: hidden;
  padding: 13px 0;
}
.marquee__track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: slide 26s linear infinite;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 19px;
  color: var(--paper);
  white-space: nowrap;
}
.marquee__track b { color: var(--lime); font-weight: 900; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── 功能章节 ─────────────────────────────── */

.features {
  max-width: var(--w);
  margin: 0 auto;
  padding: clamp(64px, 9vh, 120px) clamp(20px, 4vw, 48px);
}
.features__head { margin-bottom: clamp(36px, 6vh, 64px); }
.features__head .h2 { margin-top: 14px; }

.feature {
  display: grid;
  grid-template-columns: 110px 1fr 240px;
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
  padding: clamp(28px, 4vh, 44px) 0;
  border-top: 1px solid var(--line-strong);
  transition: background 0.25s ease, padding-left 0.25s ease;
}
.feature:last-child { border-bottom: 1px solid var(--line-strong); }
.feature:hover { background: rgba(200, 240, 77, 0.14); padding-left: 14px; }
.feature--flip .feature__no { color: var(--green); }
.feature__no {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1;
  color: var(--ink);
  -webkit-text-stroke: 1px var(--ink);
  opacity: 0.85;
}
.feature__body h3 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(21px, 2.4vw, 27px);
  margin-bottom: 8px;
}
.feature__body p { color: var(--ink-soft); max-width: 62ch; }
.feature__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.feature__tags li {
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,.5);
}

/* ── 数据条 ─────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}
.stat {
  padding: clamp(22px, 3.4vh, 38px) clamp(14px, 2vw, 30px);
  border-left: 1px solid var(--line-strong);
  text-align: center;
}
.stat:first-child { border-left: 0; }
.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  color: var(--green);
}
.stat span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

/* ── 隐私摘要(深绿段落) ─────────────────── */

.privacy-teaser {
  background:
    radial-gradient(100% 90% at 100% 0%, rgba(200, 240, 77, 0.1), transparent 55%),
    var(--green-deep);
  color: var(--paper);
  padding: clamp(64px, 10vh, 128px) clamp(20px, 4vw, 48px);
}
.privacy-teaser__inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.privacy-teaser__points {
  list-style: none;
  counter-reset: pt;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 16px;
}
.privacy-teaser__points li {
  counter-increment: pt;
  position: relative;
  padding-left: 56px;
  color: rgba(244, 241, 232, 0.86);
  max-width: 68ch;
}
.privacy-teaser__points li::before {
  content: counter(pt, decimal-leading-zero);
  position: absolute;
  left: 0; top: 2px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--lime);
  border: 1px solid rgba(200, 240, 77, 0.5);
  border-radius: 999px;
  padding: 2px 10px;
}
.privacy-teaser__points b { color: var(--paper); }

/* ── 隐私政策文档页 ────────────────────────── */

.doc {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) clamp(20px, 4vw, 48px) 80px;
}
.doc__head { border-bottom: 3px solid var(--ink); padding-bottom: 26px; }
.doc__head h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  margin: 12px 0 16px;
}
.doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.doc__lead {
  font-size: 17px;
  margin: 30px 0 10px;
  padding: 22px 26px;
  border-left: 4px solid var(--lime);
  background: rgba(255, 255, 255, 0.5);
}
.clause {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.clause h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}
.clause h2 span {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--green);
}
.clause p { margin-bottom: 10px; color: var(--ink-soft); }
.clause p strong, .doc__lead strong { color: var(--ink); }
.clause ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.clause li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
}
.clause li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--green);
}
.clause code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(200, 240, 77, 0.35);
  padding: 1px 7px;
  border-radius: 5px;
}
.clause a { color: var(--green); }
.doc__back { margin-top: 36px; }

/* ── 页脚 ─────────────────────────────── */

.footer {
  border-top: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(36px, 5vh, 56px) clamp(20px, 4vw, 48px) 28px;
}
.footer__brand {
  max-width: var(--w);
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__brand .nav__mark { font-size: 34px; color: var(--lime); }
.footer__brand b { font-family: var(--serif); font-size: 20px; display: block; }
.footer__brand i { font-style: normal; font-family: var(--mono); font-size: 12px; color: rgba(244,241,232,.6); }
.footer__links {
  max-width: var(--w);
  margin: 0 auto 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--mono);
  font-size: 13px;
}
.footer__links a { text-decoration: none; color: rgba(244, 241, 232, 0.82); }
.footer__links a:hover { color: var(--lime); }
.footer__copy {
  max-width: var(--w);
  margin: 0 auto;
  border-top: 1px solid rgba(244, 241, 232, 0.16);
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(244, 241, 232, 0.5);
}

/* ── 响应式 ─────────────────────────────── */

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .phone { margin-top: 10px; }
  /* 窄屏下 mockup 不再倾斜,避免旋转导致的挤压锯齿 */
  .phone__frame { transform: none; }
  .feature { grid-template-columns: 70px 1fr; }
  .feature__tags { grid-column: 2; justify-content: flex-start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n + 2) { border-top: 0; }
}

@media (max-width: 620px) {
  .nav__links { display: none; }
  .nav__pill { margin-left: auto; }
  .hero__title { font-size: clamp(44px, 12vw, 64px); }
  .feature { grid-template-columns: 1fr; }
  .feature__no { font-size: 26px; }
  .feature__tags { grid-column: 1; }
  .stats { grid-template-columns: 1fr 1fr; }
}
