:root {
  --ink: #142d35;
  --muted: #64787e;
  --line: #d8e2e4;
  --surface: #ffffff;
  --canvas: #f4f7f7;
  --nav: #12282f;
  --accent: #16758a;
  --accent-dark: #0d596b;
  --green: #17704c;
  --amber: #9b6513;
  --red: #a43c3c;
  --shadow: 0 8px 24px rgba(22, 55, 63, .08);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100%; margin: 0; background: var(--canvas); color: var(--ink); font-size: 15px; line-height: 1.6; letter-spacing: 0; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, .button { cursor: pointer; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: white; padding: 8px 12px; }
.skip-link:focus { top: 8px; }
.site-header { position: sticky; top: 0; z-index: 40; background: var(--nav); color: white; box-shadow: 0 3px 16px rgba(0,0,0,.15); }
.header-inner { max-width: 1500px; margin: auto; min-height: 68px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; color: white; min-width: 230px; }
.brand:hover { color: white; }
.brand-mark { width: 38px; height: 38px; border-radius: 6px; display: grid; place-items: center; background: #e7f1f1; color: var(--nav); font-weight: 800; font-size: 13px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; line-height: 1.2; }
.brand small { color: #9db2b8; font-size: 9px; margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a, .main-nav .link-button, .nav-user { color: #d7e4e7; padding: 9px 11px; border-radius: 5px; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: white; background: rgba(255,255,255,.1); }
.main-nav .nav-cta { background: #e6f4f3; color: #163f49; }
.main-nav .nav-cta:hover { background: white; color: #163f49; }
.nav-user { color: #8fb1ba; font-size: 13px; }
.link-button { border: 0; background: transparent; }
.inline-form { display: inline; margin: 0; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid #45606a; border-radius: 5px; background: transparent; color: white; }
.page-shell { max-width: 1500px; min-height: calc(100vh - 150px); margin: auto; padding: 30px 28px 60px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 8px 0 26px; }
.page-heading h1 { margin: 4px 0 3px; font-size: clamp(25px, 3vw, 38px); line-height: 1.18; }
.page-heading p { max-width: 800px; margin: 5px 0 0; color: var(--muted); }
.eyebrow { display: block; color: var(--accent); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.heading-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.hero { min-height: 350px; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.hero-copy { padding: clamp(34px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.05; margin: 9px 0 18px; max-width: 780px; }
.hero p { color: var(--muted); max-width: 700px; font-size: 17px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-panel { padding: 36px; background: #eaf2f2; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.hero-panel h2 { font-size: 20px; margin: 0 0 14px; }
.principle-list { list-style: none; margin: 0; padding: 0; }
.principle-list li { position: relative; padding: 10px 0 10px 24px; border-bottom: 1px solid rgba(20,45,53,.1); }
.principle-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.section { margin-top: 34px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 21px; }
.section-head p { margin: 3px 0 0; color: var(--muted); }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 3px 14px rgba(22,55,63,.04); }
.card { padding: 20px; }
.card h2, .card h3 { margin: 0 0 8px; }
.card p { color: var(--muted); margin: 5px 0; }
.card-footer { border-top: 1px solid var(--line); margin: 17px -20px -20px; padding: 13px 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stat { min-height: 115px; display: flex; flex-direction: column; justify-content: space-between; }
.stat strong { font-size: 31px; line-height: 1; }
.stat span { color: var(--muted); font-size: 13px; }
.button, button.button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--accent); border-radius: 5px; padding: 8px 15px; background: var(--accent); color: white; font-weight: 650; text-decoration: none; }
.button:hover { background: var(--accent-dark); color: white; }
.button-secondary { color: var(--ink); background: white; border-color: #b9c9cc; }
.button-secondary:hover { color: var(--ink); background: #edf3f4; }
.button-danger { background: white; border-color: #d9a8a8; color: var(--red); }
.button-small { min-height: 32px; padding: 5px 10px; font-size: 13px; }
.form-card { max-width: 760px; margin: 24px auto; padding: clamp(24px, 4vw, 42px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: #334f56; }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; border: 1px solid #bdcdd0; border-radius: 5px; padding: 9px 11px; background: white; color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(22,117,138,.14); border-color: var(--accent); }
.field small { display: block; color: var(--muted); margin-top: 5px; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 21px; flex-wrap: wrap; }
.alert { border: 1px solid; border-radius: 6px; padding: 12px 15px; margin: 0 0 16px; background: white; }
.alert-success { color: var(--green); border-color: #acd5c0; background: #f0faf4; }
.alert-warning { color: var(--amber); border-color: #e3c88b; background: #fff9e9; }
.alert-error { color: var(--red); border-color: #e2b0b0; background: #fff3f3; }
.alert-info { color: var(--accent-dark); border-color: #abd1d9; background: #f0f8fa; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; background: white; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { position: sticky; top: 68px; z-index: 2; background: #edf3f4; color: #466067; font-size: 12px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f8fbfb; }
.actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-good { color: var(--green); background: #e8f6ee; }
.badge-warn { color: var(--amber); background: #fff4d9; }
.badge-bad { color: var(--red); background: #fbeaea; }
.badge-neutral { color: #536b72; background: #eaf0f1; }
.subnav { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: -8px 0 24px; padding-bottom: 1px; }
.subnav a { padding: 9px 12px; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.subnav a.active { color: var(--accent-dark); border-color: var(--accent); font-weight: 700; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.detail-list > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { font-size: 12px; color: var(--muted); }
.detail-list dd { margin: 4px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.key-box { display: flex; align-items: center; gap: 9px; border: 1px dashed #8fb2ba; background: #eef7f7; padding: 12px; border-radius: 5px; overflow-wrap: anywhere; }
.empty-state { padding: 40px 22px; text-align: center; color: var(--muted); }
.empty-state strong { color: var(--ink); font-size: 18px; }
.empty-state p { margin: 5px 0; }
.error-panel { max-width: 680px; margin: 70px auto; padding: 42px; border: 1px solid var(--line); background: white; border-radius: 8px; }
.error-panel h1 { font-size: 33px; margin: 6px 0; }
.error-panel p { color: var(--muted); margin-bottom: 24px; }
.site-footer { max-width: 1500px; margin: auto; padding: 22px 28px 36px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.site-footer strong, .site-footer span { display: block; }
.muted { color: var(--muted); }
.mono { font-family: Consolas, "SFMono-Regular", monospace; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }

@media (max-width: 980px) {
  .header-inner { padding: 0 18px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .main-nav { display: none; position: absolute; left: 12px; right: 12px; top: 62px; flex-direction: column; align-items: stretch; padding: 10px; border: 1px solid #35515a; border-radius: 7px; background: var(--nav); box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .inline-form, .main-nav .link-button { width: 100%; text-align: left; }
  .hero { grid-template-columns: 1fr; }
  .hero-panel { border-left: 0; border-top: 1px solid var(--line); }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  th { top: 68px; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .page-shell { padding: 20px 14px 44px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .hero-copy, .hero-panel { padding: 28px 22px; }
  .hero h1 { font-size: 38px; }
  .grid-4, .grid-3, .grid-2, .form-grid, .detail-list { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .site-footer { margin: 0 14px; padding: 18px 0 28px; flex-direction: column; }
  .heading-actions, .heading-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .card, .button, .main-nav a { transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
  .card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
}

