/* ===== 设计系统: 主色 #1F467C / 辅色 #E88F5E / 中性灰阶 ===== */
:root {
  --primary: #1F467C;
  --primary-2: #2E6FAC;
  --accent: #E88F5E;
  --ink: #222831;
  --muted: #6B7280;
  --bg: #F6F7F9;
  --card: #FFFFFF;
  --line: #E5E9F0;
  --ok: #2F9E6E;
  --warn: #D97706;
  --bad: #DC2626;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 8px;
  --r-xs: 6px;
  --shadow-float: 0 8px 24px rgba(31, 70, 124, .10);
  --shadow-inner: inset 0 2px 8px rgba(31, 70, 124, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(46,111,172,.08), transparent 60%),
    radial-gradient(900px 420px at -10% 30%, rgba(232,143,94,.06), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* 噪点纹理 */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }

a { color: var(--primary); text-decoration: none; }
a:hover { opacity: .85; }

h1 { font-size: 56px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: 36px; line-height: 1.25; font-weight: 700; }
h3 { font-size: 24px; font-weight: 700; }
.caption { font-size: 13px; color: var(--muted); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-inner);
}
.card-pad { padding: 32px; }
@media (max-width: 640px) { .card-pad { padding: 16px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-md); padding: 12px 24px; font-size: 16px; font-weight: 600;
  cursor: pointer; border: 0; transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-float); }
.btn-primary:hover { background: var(--primary-2); opacity: 1; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: var(--r-sm); }
.btn-danger { background: #FEE2E2; color: var(--bad); }

.input, select.input {
  width: 100%; padding: 12px 16px; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: #fff; color: var(--ink); outline: none; transition: border .15s;
}
.input:focus { border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(46,111,172,.12); }

label.lbl { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #374151; }

.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tag-ok { background: #DCFCE7; color: var(--ok); }
.tag-warn { background: #FEF3C7; color: var(--warn); }
.tag-bad { background: #FEE2E2; color: var(--bad); }
.tag-gray { background: #F3F4F6; color: var(--muted); }

table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; padding: 10px 12px; color: var(--muted); font-weight: 600; font-size: 13px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: #F8FAFD; }

pre.code {
  background: #0F1B2E; color: #D6E4F5; border-radius: var(--r-md);
  padding: 20px; font-size: 13.5px; line-height: 1.55; overflow-x: auto;
  font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  position: relative;
}
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,.12); color: #fff; border: 0;
  border-radius: var(--r-xs); padding: 5px 12px; font-size: 12px; cursor: pointer;
}
.copy-btn:hover { background: rgba(255,255,255,.25); }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab {
  padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: #EEF1F6; color: var(--muted); cursor: pointer; border: 0; transition: all .15s;
}
.tab.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-float); }

.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; max-width: 1200px; margin: 0 auto; width: 100%;
}
.nav-logo { font-size: 22px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--primary); }
@media (max-width: 720px) { .nav-links .hide-m { display: none; } h1 { font-size: 38px; } h2 { font-size: 28px; } }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; width: 100%; }
.section { padding: 80px 0; }
@media (max-width: 640px) { .section { padding: 48px 0; } }

.alert { border-radius: var(--r-md); padding: 14px 18px; font-size: 14px; margin-bottom: 16px; }
.alert-err { background: #FEF2F2; color: var(--bad); border: 1px solid #FECACA; }
.alert-ok { background: #F0FDF4; color: var(--ok); border: 1px solid #BBF7D0; }

.maint-bar {
  background: linear-gradient(90deg, var(--accent), #E8743E); color: #fff;
  text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 600;
}

.stat { border-radius: var(--r-lg); padding: 24px; }
.stat .num { font-size: 32px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.stat .cap { font-size: 13px; color: var(--muted); margin-top: 4px; }

.footer { margin-top: auto; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.step-num {
  width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 18px;
}

details.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); margin: 12px 0 0; }

.badge-hero {
  display: inline-block; background: rgba(232,143,94,.12); color: #C25E2A;
  border-radius: 999px; padding: 6px 16px; font-size: 13px; font-weight: 700; margin-bottom: 24px;
}

/* 管理后台 */
.sidebar { width: 230px; flex-shrink: 0; background: #0F1B2E; color: #C8D6EA; min-height: 100vh; padding: 24px 0; }
.sidebar a { display: block; padding: 11px 24px; color: #C8D6EA; font-size: 14.5px; font-weight: 500; border-left: 3px solid transparent; }
.sidebar a:hover { background: rgba(255,255,255,.06); color: #fff; opacity: 1; }
.sidebar a.active { border-left-color: var(--accent); background: rgba(232,143,94,.12); color: #fff; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-main { flex: 1; padding: 40px; max-width: 1300px; }
@media (max-width: 860px) { .sidebar { width: 64px; } .sidebar a { padding: 11px 0; text-align: center; font-size: 0; } .sidebar a::first-letter { font-size: 16px; } .admin-main { padding: 20px; } }
