:root {
  --ink: #173247;
  --muted: #5f7280;
  --navy: #153f5b;
  --blue: #1f6d8c;
  --teal: #2d8c87;
  --mist: #f2f7f8;
  --line: #dbe7e9;
  --white: #ffffff;
  --warn: #fff8e8;
  --danger: #a1362e;
  --shadow: 0 18px 50px rgba(19, 55, 72, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fbfdfd; font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; font-size: 16px; line-height: 1.7; }
a { color: var(--blue); text-underline-offset: 3px; }
img { max-width: 100%; }
.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.site-header { position: sticky; z-index: 30; top: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--navy); text-decoration: none; font-weight: 800; letter-spacing: .03em; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 8px; border-radius: 9px; background: var(--navy); color: white; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: .94rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border: 0; border-radius: 10px; background: var(--blue); color: white; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px rgba(31,109,140,.18); }
.button:hover { background: #155b78; }
.button.secondary { background: white; color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.button.danger { background: var(--danger); }
.button.small { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.hero { overflow: hidden; padding: 84px 0 58px; background: radial-gradient(circle at 86% 18%, rgba(45,140,135,.17), transparent 32%), linear-gradient(135deg, #f8fbfb 0%, #eaf4f5 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 58px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--teal); font-weight: 800; letter-spacing: .08em; font-size: .86rem; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin-top: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.04em; margin-bottom: 22px; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); margin-bottom: 16px; }
h3 { font-size: 1.12rem; }
.hero-copy { color: #425d6d; font-size: 1.12rem; max-width: 700px; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.trust-note { font-size: .9rem; color: var(--muted); }
.assessment-card, .form-card, .card, .admin-card { background: white; border: 1px solid rgba(214,229,231,.9); border-radius: 18px; box-shadow: var(--shadow); }
.assessment-card { padding: 28px; position: relative; }
.assessment-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; border-radius: 18px 0 0 18px; background: var(--teal); }
.check-list { padding: 0; margin: 20px 0 0; list-style: none; }
.check-list li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--teal); font-weight: 900; }
.section { padding: 78px 0; }
.section.alt { background: var(--mist); }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.section-heading p { color: var(--muted); }
.section-heading .section-note { margin-top: 10px; font-size: .88rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { padding: 24px; box-shadow: 0 8px 26px rgba(20,61,80,.06); }
.card p { color: var(--muted); margin-bottom: 0; }
.situation-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 0; list-style: none; }
.situation-list li { padding: 18px 20px; background: white; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; }
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: steps; }
.process div { position: relative; padding: 22px 16px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.process div::before { counter-increment: steps; content: "0" counter(steps); display: block; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .1em; margin-bottom: 8px; }
.risk { padding: 26px 28px; border: 1px solid #f0dca8; border-left: 5px solid #d5a841; border-radius: 14px; background: var(--warn); }
.consult-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: start; }
.form-card { padding: 30px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label, legend { font-weight: 700; font-size: .94rem; }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #b9ced4; border-radius: 9px; background: white; color: var(--ink); font: inherit; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(45,140,135,.17); border-color: var(--teal); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 20px 0; }
.consent input { width: 18px; min-height: 18px; margin-top: 5px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.message { padding: 15px 18px; border-radius: 10px; margin-bottom: 20px; }
.message.success { color: #155c4b; background: #e6f6ef; border: 1px solid #bce6d6; }
.message.error { color: #842d28; background: #fff0ef; border: 1px solid #efc8c5; }
.article-list a { display: block; padding: 16px 0; color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.article-list a:hover { color: var(--blue); }
.article { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 70px 0; }
.article .lead { font-size: 1.15rem; color: var(--muted); }
.article p { margin: 1.3em 0; }
.article-cta { margin-top: 44px; padding: 28px; background: var(--mist); border-radius: 14px; }
.site-footer { padding: 44px 0; color: #d5e2e8; background: #112f43; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.site-footer h3 { color: white; }
.site-footer a { color: #e6f2f5; }
.legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); font-size: .88rem; }
.admin-body { background: var(--mist); }
.admin-shell { width: min(1240px, calc(100% - 28px)); margin: 30px auto 70px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.stats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { padding: 16px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.stat strong { display: block; font-size: 1.65rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: .86rem; }
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: 10px; margin-bottom: 18px; }
.table-wrap { overflow: auto; background: white; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; min-width: 1040px; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: .9rem; white-space: nowrap; }
th { color: #4b6473; background: #f7fafb; }
.status { display: inline-block; padding: 3px 9px; border-radius: 999px; background: #eaf3f5; font-size: .82rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-item { padding: 15px; background: var(--mist); border-radius: 10px; }
.detail-item span { display: block; color: var(--muted); font-size: .83rem; }
.danger-zone { margin-top: 30px; padding-top: 24px; border-top: 1px solid #eccbc8; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(145deg, #eef7f7, #dae9ee); }
.login-card { width: min(430px, 100%); padding: 34px; background: white; border-radius: 16px; box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .hero-grid, .consult-layout { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1120px); }
  .nav { min-height: 60px; }
  .nav-links a:not(.button) { display: none; }
  .nav-links { gap: 8px; }
  .nav-links .button { min-height: 40px; padding: 0 13px; font-size: .86rem; }
  .hero { padding: 54px 0 42px; }
  h1 { font-size: 2.25rem; }
  .section { padding: 54px 0; }
  .situation-list, .grid-2, .field-grid, .detail-grid, .footer-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr; }
  .admin-top { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
