/* 检查簿 Checkfolio 站点样式：沿用 rgcode 法律站点的组件结构，配色取自应用 V11（米白底、白卡片、深墨绿字、深青主色、珊瑚点缀）。 */
:root {
  --bg: #f5f3ee;
  --paper: #ffffff;
  --paper-2: #f7f5f0;
  --ink: #14201f;
  --ink-secondary: #3d4947;
  --muted: #5e6866;
  --faint: #9a958a;
  --brand: #0e5c59;
  --brand-hover: #13716d;
  --brand-light: #ddedea;
  --brand-2: #a9d8d1;
  --brand-surface: #edf5f3;
  --on-brand: #ffffff;
  --coral: #e46f55;
  --coral-soft: #fbe6df;
  --sand: #e9e5dc;
  --paper-sheet: #ffffff;
  --paper-line: #e9e5dc;
  --line: rgba(43, 33, 22, .14);
  --line-light: rgba(43, 33, 22, .08);
  --link: #0e5c59;
  --nav-bg: rgba(245, 243, 238, .9);
  --shadow-card: 0 1px 2px rgba(43, 33, 22, .03), 0 6px 20px rgba(43, 33, 22, .045);
  --shadow-lift: 0 12px 34px rgba(20, 32, 31, .14), 0 2px 6px rgba(20, 32, 31, .06);
  --maxw: 1080px;
  --content-maxw: 780px;
  --radius: 24px;
  --radius-sm: 14px;
  --nav-h: 60px;
  --transition: .2s cubic-bezier(.4, 0, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b100f;
    --paper: #171d1c;
    --paper-2: #1f2625;
    --ink: #f2f0eb;
    --ink-secondary: #cfd3d1;
    --muted: #a8afac;
    --faint: #747b78;
    --brand: #7fcfc6;
    --brand-hover: #9adbd3;
    --brand-light: rgba(127, 207, 198, .16);
    --brand-2: #5dafa6;
    --brand-surface: rgba(127, 207, 198, .08);
    --on-brand: #062523;
    --coral: #f08a70;
    --coral-soft: rgba(240, 138, 112, .14);
    --sand: #283030;
    --paper-sheet: #eeece6;
    --paper-line: #d6d1c5;
    --line: rgba(255, 255, 255, .14);
    --line-light: rgba(255, 255, 255, .08);
    --link: #7fcfc6;
    --nav-bg: rgba(11, 16, 15, .88);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 20px rgba(0, 0, 0, .3);
    --shadow-lift: 0 12px 34px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); -webkit-text-size-adjust: 100%; }

body {
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB",
    "Noto Sans SC", "Helvetica Neue", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-hover); }
img { max-width: 100%; display: block; }
code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: .86em;
  background: var(--paper-2);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

/* ---------- 导航 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line-light);
}
.navbar-inner {
  max-width: var(--maxw);
  min-height: var(--nav-h);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.navbar-brand:hover { color: var(--ink); }
.navbar-brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.navbar-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; list-style: none; }
.navbar-links a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-secondary);
  font-size: .9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.navbar-links a:hover,
.navbar-links a.active { background: var(--brand-light); color: var(--brand); }

.lang-switch.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-switch.dropdown select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 36px;
  width: 112px;
  padding: 4px 30px 4px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-switch.dropdown select option { color: #14201f; background: #ffffff; }
.lang-switch.dropdown::after {
  content: "";
  position: absolute;
  right: 14px;
  width: 6px;
  height: 6px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  pointer-events: none;
}

/* ---------- 版心 ---------- */
.page-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 首页首屏 ---------- */
.hero-landing {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 48px;
  padding: 72px 0 56px;
}
.hero-icon { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 24px; box-shadow: var(--shadow-lift); }
.hero-landing .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.hero-landing h1 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
}
.hero-landing .hero-desc { max-width: 540px; margin-bottom: 32px; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 650;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 18px rgba(14, 92, 89, .22); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); transform: translateY(-1px); }
.btn-secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { color: var(--ink); border-color: var(--brand-2); background: var(--brand-surface); transform: translateY(-1px); }

/* 首屏右侧：几张叠放的报告原件（装饰，无文字）。 */
.hero-art { position: relative; height: 340px; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% 4% 4% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--brand-2), transparent);
  opacity: .45;
}
.paper {
  position: absolute;
  width: 46%;
  aspect-ratio: 600 / 840;
  padding: 7% 6%;
  border-radius: 18px;
  background: var(--paper-sheet);
  box-shadow: var(--shadow-lift);
}
.paper .chip { display: block; width: 46%; height: 12px; margin-bottom: 14%; border-radius: 999px; background: #a9d8d1; }
.paper .ln { display: block; height: 8px; margin-bottom: 9%; border-radius: 999px; background: var(--paper-line); }
.paper .ln.w1 { width: 88%; } .paper .ln.w2 { width: 64%; } .paper .ln.w3 { width: 76%; } .paper .ln.w4 { width: 52%; }
.paper .mask { display: block; width: 58%; height: 14px; margin-bottom: 9%; border-radius: 4px; background: #14201f; }
.paper.p1 { left: 4%; top: 14%; transform: rotate(-8deg); }
.paper.p1 .chip { background: var(--paper-line); }
.paper.p2 { left: 28%; top: 4%; transform: rotate(3deg); z-index: 1; }
.paper.p3 { left: 52%; top: 18%; transform: rotate(10deg); }
.paper.p3 .chip { background: #fbe6df; }

/* ---------- 功能 ---------- */
.features-section { padding: 40px 0 56px; }
.section-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 750;
  text-align: center;
  letter-spacing: -.015em;
}
.section-lead { max-width: 560px; margin: 0 auto 36px; color: var(--muted); text-align: center; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card {
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: var(--brand-light);
  color: var(--brand);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 6px; color: var(--ink); font-size: 1.02rem; font-weight: 700; }
.feature-card p { color: var(--muted); font-size: .92rem; line-height: 1.65; }

/* ---------- 免费与会员 ---------- */
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: var(--content-maxw); margin: 0 auto 20px; }
.tier-card { padding: 24px 24px 22px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-card); border: 2px solid transparent; }
.tier-card.member { border-color: var(--ink); }
.tier-card .tier-name { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 1.05rem; font-weight: 750; }
.tier-card .tier-tag { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: var(--brand-light); color: var(--brand); font-size: .76rem; font-weight: 700; vertical-align: 2px; }
.tier-card .tier-price { margin-bottom: 12px; color: var(--muted); font-size: .88rem; }
.tier-card ul { list-style: none; }
.tier-card li { position: relative; padding: 5px 0 5px 24px; color: var(--ink-secondary); font-size: .93rem; line-height: 1.55; }
.tier-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* ---------- 文章页 ---------- */
.article-hero { padding: 56px 0 32px; margin-bottom: 32px; text-align: center; border-bottom: 1px solid var(--line-light); }
.article-hero h1 { margin-bottom: 8px; color: var(--ink); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 780; letter-spacing: -.02em; }
.article-hero .article-subtitle { color: var(--muted); font-size: .98rem; }
.article-content { max-width: var(--content-maxw); margin: 0 auto; padding-bottom: 64px; }
.article-card {
  margin-bottom: 16px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  overflow-wrap: anywhere;
}
.article-card h2 {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-light);
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 720;
}
.article-card h2:not(:first-child) { margin-top: 28px; }
.article-card h3 { margin: 20px 0 6px; color: var(--ink); font-size: 1rem; font-weight: 680; }
.article-card h3:first-child { margin-top: 0; }
.article-card p { margin-bottom: 12px; color: var(--ink-secondary); font-size: .95rem; line-height: 1.8; }
.article-card p:last-child { margin-bottom: 0; }
.article-card ul { margin-bottom: 12px; padding-left: 20px; }
.article-card ul:last-child { margin-bottom: 0; }
.article-card li { margin-bottom: 6px; color: var(--ink-secondary); font-size: .95rem; line-height: 1.75; }
.article-card li::marker { color: var(--brand-2); }
.article-card strong { color: var(--ink); font-weight: 650; }
.article-card a { color: var(--link); text-decoration: underline; text-decoration-color: var(--brand-2); text-underline-offset: 3px; }
.article-card a:hover { text-decoration-color: var(--link); }

.kvs { list-style: none; padding: 0 !important; }
.kvs li { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; margin: 0 !important; border-bottom: 1px solid var(--line-light); }
.kvs li:last-child { border-bottom: none; }
.kvs strong { flex-shrink: 0; min-width: 84px; font-size: .9rem; }

.note-box {
  margin: 0 auto 16px;
  max-width: var(--content-maxw);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--coral-soft);
  color: var(--ink-secondary);
  font-size: .92rem;
  line-height: 1.7;
}
.note-box strong { color: var(--ink); }
.article-card .note-box { margin: 14px 0 0; }

/* ---------- 页脚 ---------- */
.site-footer { padding: 28px 0 36px; border-top: 1px solid var(--line-light); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.footer-left { color: var(--muted); font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; }
.footer-links a { color: var(--muted); font-size: .85rem; }
.footer-links a:hover { color: var(--brand); }

/* ---------- 中英切换：默认显示英文块，body.zh 时显示中文块 ---------- */
[lang="zh"] { display: none !important; }
body.zh [lang="zh"] { display: block !important; }
body.zh [lang="en"] { display: none !important; }
span[lang="zh"] { display: none !important; }
body.zh span[lang="zh"] { display: inline !important; }
body.zh span[lang="en"] { display: none !important; }
body.zh .hero-badge[lang="zh"] { display: inline-flex !important; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 860px) {
  .hero-landing { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 48px 0 24px; }
  .hero-art { height: 260px; max-width: 420px; width: 100%; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .navbar-inner, .page-wrap, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .article-card { padding: 22px 20px; }
}
@media (max-width: 560px) {
  /* 品牌和语言放第一行，导航链接放第二行；窄屏不吸顶，免得挡住正文。 */
  .navbar { position: static; }
  .navbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand lang" "links links";
    gap: 8px 12px;
  }
  .nav-actions { display: contents; }
  .navbar-brand { grid-area: brand; }
  .lang-switch.dropdown { grid-area: lang; justify-self: end; }
  .navbar-links { grid-area: links; gap: 2px; margin-left: -9px; }
  .navbar-links a { padding: 6px 9px; font-size: .84rem; }
  .lang-switch.dropdown select { width: 100px; }
  .hero-icon { width: 72px; height: 72px; border-radius: 17px; margin-bottom: 18px; }
  .hero-art { height: 210px; }
  .features-grid, .tiers { grid-template-columns: minmax(0, 1fr); }
  .section-title { font-size: 1.4rem; }
  .article-hero { padding: 36px 0 22px; margin-bottom: 20px; }
  .kvs li { flex-wrap: wrap; gap: 2px 12px; }
  .btn-primary, .btn-secondary { flex: 1 1 auto; }
  .article-card code { font-size: .74em; padding: 1px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn-primary:hover, .btn-secondary:hover { transform: none; }
}
