
:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --soft: #f5faf8;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #ffffff;
  --line: rgba(39, 54, 75, 0.11);
  --teal: #17a99a;
  --mint: #66d2bd;
  --coral: #ff8b6a;
  --gold: #d7a84b;
  --blue: #4f7cff;
  --shadow: 0 22px 70px rgba(19, 45, 61, 0.13);
  --radius: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(rgba(23, 169, 154, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 124, 255, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #fbf7ef 0%, #effaf7 38%, #f7fbff 72%, #fff7f1 100%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.52), rgba(255,255,255,0.12) 34%, rgba(255,255,255,0.46));
  z-index: -1;
}
a { color: inherit; }
.site-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,0.72);
  background: rgba(250, 253, 251, 0.72);
  backdrop-filter: blur(18px);
}
.topbar-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; box-shadow: 0 10px 26px rgba(23,169,154,0.17); }
.brand-text { display: grid; gap: 2px; min-width: 0; }
.brand-title { font-size: 15px; font-weight: 760; letter-spacing: 0; white-space: nowrap; }
.brand-subtitle { font-size: 12px; color: #748093; white-space: nowrap; }
.nav-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-link, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(39,54,75,0.1);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  background: rgba(255,255,255,0.56);
  color: #263247;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.nav-link:hover, .button:hover { transform: translateY(-1px); background: rgba(255,255,255,0.92); border-color: rgba(23,169,154,0.34); box-shadow: 0 12px 28px rgba(19,45,61,0.08); }
.button-primary { background: linear-gradient(135deg, #15233a, #1e6f70); color: #fff; border-color: rgba(255,255,255,0.12); box-shadow: 0 18px 40px rgba(19,45,61,0.18); }
.button-primary:hover { background: linear-gradient(135deg, #111c2f, #178577); }
.hero { padding: 58px 0 28px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.68fr); gap: 44px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: #167f76; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--coral)); }
h1 { margin: 0; font-size: clamp(38px, 5.1vw, 68px); line-height: 1.04; letter-spacing: 0; max-width: 760px; }
.lead { max-width: 760px; margin: 24px 0 0; color: #526174; font-size: clamp(16px, 2vw, 20px); line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.status-panel {
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.58);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 18px;
  overflow: hidden;
}
.status-card { position: relative; padding: 20px; border-radius: 8px; background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(241,250,247,.76)); border: 1px solid rgba(39,54,75,.08); }
.status-card::before { content:""; position:absolute; left:0; top:0; right:0; height:4px; background: linear-gradient(90deg, var(--teal), var(--coral), var(--blue)); }
.status-label { color:#718095; font-size:12px; font-weight:760; letter-spacing:.08em; text-transform:uppercase; }
.status-value { margin-top:14px; font-size:32px; line-height:1.05; font-weight:820; }
.status-copy { margin:14px 0 0; color:#5a687a; line-height:1.75; font-size:14px; }
.metrics { display:grid; grid-template-columns: repeat(3,1fr); gap:10px; margin-top:14px; }
.metric { padding:12px; border-radius:8px; background:rgba(255,255,255,.72); border:1px solid rgba(39,54,75,.08); }
.metric strong { display:block; font-size:18px; }
.metric span { display:block; margin-top:4px; color:#758399; font-size:12px; }
.section { padding: 36px 0; }
.section-head { display:flex; justify-content:space-between; gap:20px; align-items:end; margin-bottom:20px; }
.section-head h2 { margin:0; font-size: clamp(26px, 3vw, 40px); letter-spacing:0; }
.section-head p { margin:0; color:#667085; max-width:520px; line-height:1.7; }
.guide-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:18px; }
.guide-card {
  position: relative;
  min-height: 286px;
  padding: 22px;
  border-radius: var(--radius);
  border:1px solid rgba(39,54,75,.1);
  background: rgba(255,255,255,.75);
  box-shadow: 0 18px 54px rgba(19,45,61,.08);
  overflow:hidden;
  text-decoration:none;
  transform: translateY(18px);
  opacity: 0;
  animation: cardIn .68s cubic-bezier(.2,.75,.2,1) forwards;
}
.guide-card:nth-child(2) { animation-delay:.06s; }
.guide-card:nth-child(3) { animation-delay:.12s; }
.guide-card:nth-child(4) { animation-delay:.18s; }
.guide-card::before { content:""; position:absolute; inset:0 0 auto; height:4px; background: linear-gradient(90deg, var(--accent-a), var(--accent-b)); transform: scaleX(.35); transform-origin:left; transition:transform .28s ease; }
.guide-card::after { content:""; position:absolute; inset:auto 18px 18px auto; width:92px; height:92px; border:1px solid rgba(39,54,75,.08); border-radius:50%; background: linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,0)); opacity:.7; }
.guide-card:hover { transform: translateY(-4px); border-color: rgba(23,169,154,.32); box-shadow: 0 24px 72px rgba(19,45,61,.13); }
.guide-card:hover::before { transform: scaleX(1); }
.card-code { --accent-a:#17a99a; --accent-b:#5f89ff; }
.card-claude { --accent-a:#ff8b6a; --accent-b:#d7a84b; }
.card-errors { --accent-a:#4f7cff; --accent-b:#17a99a; }
.card-claude-errors { --accent-a:#172033; --accent-b:#ff8b6a; }
.card-kicker { position:relative; z-index:1; display:inline-flex; align-items:center; min-height:28px; padding:0 10px; border-radius:999px; background:rgba(23,169,154,.08); color:#167f76; font-size:12px; font-weight:800; }
.guide-card h3 { position:relative; z-index:1; margin:22px 0 0; font-size:23px; line-height:1.2; letter-spacing:0; }
.guide-card p { position:relative; z-index:1; margin:14px 0 0; color:#5c6a7c; line-height:1.7; font-size:14px; }
.card-meta { position:absolute; left:22px; right:22px; bottom:22px; z-index:1; display:flex; justify-content:space-between; gap:12px; align-items:center; color:#263247; font-size:13px; font-weight:760; }
.card-arrow { width:34px; height:34px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:#172033; color:#fff; transition: transform .24s ease; }
.guide-card:hover .card-arrow { transform: translateX(4px); }
.info-strip { margin-top: 22px; display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px; }
.info-item { padding:16px; border:1px solid rgba(39,54,75,.08); background:rgba(255,255,255,.56); border-radius:8px; color:#5c6a7c; line-height:1.65; }
.info-item strong { display:block; color:#263247; margin-bottom:6px; }
.article-hero { padding: 46px 0 18px; }
.article-grid { display:grid; grid-template-columns: 260px minmax(0,1fr); gap:24px; align-items:start; }
.toc-panel { position: sticky; top: 96px; padding: 14px; border-radius:8px; background:rgba(255,255,255,.72); border:1px solid rgba(39,54,75,.09); box-shadow:0 16px 44px rgba(19,45,61,.07); max-height: calc(100vh - 120px); overflow:auto; }
.toc-title { margin:0 0 10px; font-size:12px; color:#718095; font-weight:820; letter-spacing:.08em; text-transform:uppercase; }
.toc-panel a { display:block; padding:9px 10px; border-radius:7px; color:#314055; text-decoration:none; font-size:13px; line-height:1.35; }
.toc-panel a:hover { background:rgba(23,169,154,.08); color:#0d756d; }
.search-panel { margin: 16px 0 22px; padding: 14px; border-radius:8px; background:rgba(255,255,255,.7); border:1px solid rgba(39,54,75,.09); box-shadow:0 16px 48px rgba(19,45,61,.06); }
.search-panel input { width:100%; min-height:46px; border:1px solid rgba(39,54,75,.14); border-radius:8px; padding:0 14px; background:rgba(255,255,255,.86); color:#172033; font-size:15px; outline:none; }
.search-panel input:focus { border-color:rgba(23,169,154,.52); box-shadow:0 0 0 4px rgba(23,169,154,.11); }
.error-list { display:grid; gap:14px; }
.error-card { scroll-margin-top: 100px; border:1px solid rgba(39,54,75,.1); border-radius:8px; background:rgba(255,255,255,.78); box-shadow:0 18px 54px rgba(19,45,61,.07); overflow:hidden; }
.error-card header { padding:18px 20px; border-bottom:1px solid rgba(39,54,75,.08); background:linear-gradient(135deg, rgba(255,255,255,.9), rgba(241,250,247,.68)); }
.error-card h2 { margin:0; font-size:22px; letter-spacing:0; }
.error-card .desc { margin:10px 0 0; color:#5c6a7c; line-height:1.7; }
.error-meta { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.tag { display:inline-flex; align-items:center; min-height:26px; padding:0 9px; border-radius:999px; background:rgba(79,124,255,.08); color:#3558b5; font-size:12px; font-weight:760; }
.error-body { padding:18px 20px 20px; display:grid; gap:14px; }
.error-block { padding:14px; border-radius:8px; border:1px solid rgba(39,54,75,.07); background:rgba(255,255,255,.58); }
.error-block h3 { margin:0 0 10px; font-size:15px; }
.error-block p, .error-block li { color:#5a687a; line-height:1.75; font-size:14px; }
.error-block ul, .error-block ol { margin:0; padding-left:22px; }
.code-inline, code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; background:rgba(23,32,51,.06); border:1px solid rgba(23,32,51,.08); padding:.12em .38em; border-radius:5px; }
.footer { padding: 46px 0 38px; color:#758399; font-size:13px; }
.footer-inner { border-top:1px solid rgba(39,54,75,.1); padding-top:20px; display:flex; gap:12px; justify-content:space-between; flex-wrap:wrap; }
.reveal { opacity:0; transform: translateY(18px); animation: cardIn .72s cubic-bezier(.2,.75,.2,1) forwards; }
@keyframes cardIn { to { opacity:1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 980px) {
  .hero-grid, .article-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .toc-panel { position: relative; top: 0; max-height: none; }
}
@media (max-width: 640px) {
  .site-shell { width: min(100% - 28px, 1180px); }
  .topbar-inner { min-height: 68px; }
  .brand-subtitle { display:none; }
  .nav-actions .nav-link:nth-child(1) { display:none; }
  .hero { padding-top: 38px; }
  .guide-grid, .info-strip, .metrics { grid-template-columns: 1fr; }
  .guide-card { min-height: 250px; }
  .section-head { display:block; }
  .section-head p { margin-top:10px; }
  h1 { font-size: clamp(34px, 11vw, 52px); }
}
