:root {
  --brand-50: #f0f7ff;
  --brand-100: #dceeff;
  --brand-200: #b9dcfb;
  --brand-500: #118be0;
  --brand-600: #0872c2;
  --brand-700: #075a9d;
  --brand-900: #0b365d;
  --slate-950: #0f172a;
  --slate-900: #172033;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --surface: #ffffff;
  --canvas: #fafbfd;
  --line: #e7edf4;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--slate-900); background: var(--canvas); font-family: var(--sans); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(226,232,240,.9); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.header-inner { display: flex; min-height: 72px; max-width: 1080px; margin: auto; padding: 0 24px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: white; background: linear-gradient(145deg,var(--brand-500),var(--brand-700)); box-shadow: 0 6px 16px rgba(8,114,194,.22); font-weight: 800; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-size: 15px; letter-spacing: .04em; }
.brand-copy small { margin-top: 4px; color: var(--slate-400); font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a { padding: 7px 12px; border-radius: 8px; color: var(--slate-600); font-size: 12px; font-weight: 650; }
.site-header nav a:hover { color: var(--slate-950); background: var(--slate-100); }
.site-header nav .nav-cta { margin-left: 8px; color: var(--brand-700); border: 1px solid var(--brand-200); background: var(--brand-50); }

.hero { padding: 64px 24px 26px; text-align: center; background: radial-gradient(circle at 50% 10%, rgba(17,139,224,.12), transparent 35%), linear-gradient(180deg,#f5faff 0%,#fff 76%); }
.hero-inner { max-width: 1000px; margin: auto; }
.hero h1 { max-width: 850px; margin: 22px auto 0; color: var(--slate-950); font-size: clamp(42px,6vw,68px); line-height: 1.16; letter-spacing: -.045em; }
.hero h1 span { color: transparent; background: linear-gradient(115deg,var(--brand-900),var(--brand-500)); background-clip: text; -webkit-background-clip: text; }
.hero-lead { max-width: 720px; margin: 23px auto 0; color: var(--slate-500); font-size: 16px; line-height: 1.9; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; min-height: 44px; padding: 0 20px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 11px; font-size: 13px; font-weight: 700; transition: .2s ease; }
.button.primary { color: white; border-color: var(--brand-600); background: var(--brand-600); box-shadow: 0 8px 18px rgba(8,114,194,.2); }
.button.primary:hover { background: var(--brand-700); transform: translateY(-1px); }
.button.secondary { color: var(--slate-700); border-color: var(--slate-200); background: white; }
.button.secondary:hover { border-color: var(--slate-300); background: var(--slate-100); }
.button.light { color: var(--slate-950); background: white; }
.hero-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 54px; padding: 26px 12px; border-top: 1px solid var(--slate-100); border-radius: 18px; background: rgba(255,255,255,.7); }
.hero-metrics div { border-right: 1px solid var(--slate-100); }
.hero-metrics div:last-child { border: 0; }
.hero-metrics strong { display: block; color: var(--slate-800); font-size: 23px; line-height: 1.2; }
.hero-metrics span { display: block; margin-top: 5px; color: var(--slate-400); font-size: 10px; font-weight: 650; letter-spacing: .04em; }

.section { padding: 80px max(24px,calc((100vw - 1040px)/2)); }
.section-heading { max-width: 720px; margin-bottom: 36px; }
.section-heading.centered { margin-right: auto; margin-left: auto; text-align: center; }
.section-heading.row { display: flex; max-width: none; align-items: end; justify-content: space-between; }
.section-heading.row > a { color: var(--brand-600); font-size: 12px; font-weight: 700; }
.section-heading > p:last-child { color: var(--slate-500); font-size: 13px; }
.section h2, .consult-strip h2, .simple-page h2, .planner-form h2, .planner-guide h2 { margin: 0; color: var(--slate-950); font-size: clamp(27px,3.5vw,38px); line-height: 1.3; letter-spacing: -.025em; }

.values { border-top: 1px solid var(--slate-100); border-bottom: 1px solid var(--slate-100); background: #f8fafc; }
.value-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.value-grid article { min-height: 225px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 5px 18px rgba(15,23,42,.035); }
.value-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; font-size: 11px; font-weight: 800; }
.value-icon.blue { color: var(--brand-700); background: var(--brand-50); }
.value-icon.violet { color: #7651c8; background: #f1edff; }
.value-icon.amber { color: #b66a12; background: #fff6df; }
.value-icon.emerald { color: #16865b; background: #e9fbf3; }
.value-grid h3 { margin: 44px 0 9px; font-size: 15px; }
.value-grid p { margin: 0; color: var(--slate-500); font-size: 12px; line-height: 1.75; }

.planner-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; background: white; }
.planner-preview-copy > p { color: var(--slate-500); font-size: 14px; }
.planner-preview-copy ul { padding: 0; margin: 25px 0; list-style: none; }
.planner-preview-copy li { position: relative; margin: 10px 0; padding-left: 25px; color: var(--slate-600); font-size: 13px; }
.planner-preview-copy li::before { position: absolute; left: 0; content: "✓"; color: var(--brand-500); font-weight: 900; }
.planner-window { overflow: hidden; border: 1px solid var(--slate-200); border-radius: 18px; background: white; box-shadow: 0 25px 60px rgba(15,23,42,.12); }
.window-bar { display: flex; padding: 13px 16px; align-items: center; gap: 6px; color: var(--slate-400); border-bottom: 1px solid var(--slate-100); background: #f8fafc; font-size: 10px; }
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--slate-300); }
.window-bar i:first-child { background: #ff7979; }
.window-bar i:nth-child(2) { background: #ffd16b; }
.window-bar i:nth-child(3) { background: #72d99b; }
.window-bar span { margin-left: 8px; }
.window-content { padding: 32px; }
.window-content h3 { margin: 0 0 20px; font-size: 19px; }
.option { display: flex; margin: 9px 0; padding: 13px 15px; align-items: center; justify-content: space-between; border: 1px solid var(--slate-200); border-radius: 10px; color: var(--slate-600); font-size: 12px; }
.option.selected { color: var(--brand-700); border-color: var(--brand-500); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-500); }

.latest { background: #f8fafc; }
.article-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.article-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 4px 15px rgba(15,23,42,.035); transition: .25s ease; }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 15px 32px rgba(15,23,42,.1); }
.card-cover { position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--slate-100); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover img { transform: scale(1.04); }
.cover-fallback { display: grid; height: 100%; place-items: center; color: rgba(255,255,255,.65); background: linear-gradient(135deg,var(--brand-900),var(--brand-600)); font-size: 22px; font-weight: 800; }
.card-badge { position: absolute; top: 12px; left: 12px; max-width: calc(100% - 24px); overflow: hidden; padding: 3px 8px; border-radius: 999px; color: white; background: rgba(8,114,194,.9); font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.card-copy { padding: 18px; }
.article-date { margin: 0; color: var(--slate-400); font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.card-copy h3 { margin: 7px 0 9px; color: var(--slate-800); font-size: 16px; line-height: 1.45; }
.card-copy > p:not(.article-date) { display: -webkit-box; overflow: hidden; min-height: 60px; margin: 0; color: var(--slate-500); font-size: 11px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.card-footer { display: flex; margin-top: 16px; padding-top: 12px; justify-content: space-between; color: var(--slate-400); border-top: 1px solid var(--slate-100); font-size: 9px; font-weight: 650; }
.read-link { color: var(--brand-600); }

.consult-strip { display: flex; padding: 58px max(24px,calc((100vw - 1040px)/2)); align-items: center; justify-content: space-between; gap: 50px; color: white; background: var(--slate-950); }
.consult-strip h2 { max-width: 700px; color: white; font-size: clamp(26px,3vw,36px); }
.consult-strip p { margin-bottom: 0; color: var(--slate-400); font-size: 12px; }

.page-hero { padding: 76px max(24px,calc((100vw - 1040px)/2)) 52px; text-align: center; background: linear-gradient(180deg,var(--brand-50),white); }
.page-hero h1 { max-width: 850px; margin: 16px auto 0; color: var(--slate-950); font-size: clamp(38px,5vw,58px); line-height: 1.2; letter-spacing: -.04em; }
.page-hero > p:last-child { max-width: 680px; margin: 18px auto 0; color: var(--slate-500); font-size: 14px; }
.article-library { padding-top: 34px; }
.library-tools { display: flex; margin-bottom: 32px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--slate-200); }
.category-tabs { display: flex; overflow-x: auto; gap: 2px; }
.category-tabs button { padding: 13px 14px; color: var(--slate-500); border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 11px; font-weight: 700; white-space: nowrap; }
.category-tabs button.active { color: var(--brand-600); border-color: var(--brand-500); }
.search { display: flex; width: 275px; margin-bottom: 8px; padding: 0 12px; align-items: center; border: 1px solid var(--slate-200); border-radius: 9px; background: white; }
.search span { color: var(--slate-400); }
.search input { width: 100%; padding: 9px; border: 0; outline: 0; color: var(--slate-700); background: transparent; font-size: 11px; }
.empty-state { color: var(--slate-500); text-align: center; }

.article-page { padding-bottom: 90px; }
.article-header { max-width: 820px; margin: auto; padding: 60px 24px 32px; text-align: left; }
.back-link { display: inline-block; margin-bottom: 34px; color: var(--slate-500); font-size: 11px; font-weight: 700; }
.article-header h1 { margin: 0; color: var(--slate-950); font-size: clamp(34px,5vw,52px); line-height: 1.25; letter-spacing: -.035em; }
.article-deck { margin: 20px 0; color: var(--slate-500); font-size: 15px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--slate-400); font-size: 10px; font-weight: 650; }
.article-meta span + span::before { content: "•"; margin-right: 12px; }
.article-hero-cover { width: 100%; max-height: 470px; margin-top: 35px; border-radius: 17px; object-fit: cover; box-shadow: 0 8px 25px rgba(15,23,42,.08); }
.article-layout { max-width: 820px; margin: auto; padding: 10px 24px 0; }
.article-frame { padding: 38px 48px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 5px 20px rgba(15,23,42,.035); }
.prose { color: var(--slate-700); font-size: 16px; line-height: 1.9; }
.prose h2, .prose h3, .prose h4, .prose h5 { margin: 2em 0 .8em; color: var(--brand-900); line-height: 1.45; }
.prose h2 { padding-left: 12px; border-left: 4px solid var(--brand-500); font-size: 25px; }
.prose h3 { font-size: 20px; }
.prose p { margin: 0 0 1.4em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.8em 0; padding: 17px 20px; color: var(--slate-600); border-left: 4px solid var(--slate-200); border-radius: 0 10px 10px 0; background: var(--slate-100); }
.prose hr { margin: 2.8em 0; border: 0; border-top: 1px solid var(--slate-200); }
.planner-hero { padding-bottom: 36px; }
.planner-shell { display: grid; grid-template-columns: 310px minmax(0,680px); max-width: 1040px; margin: 0 auto 90px; padding: 24px; gap: 0; }
.planner-guide { display: flex; padding: 36px; flex-direction: column; color: white; border-radius: 17px 0 0 17px; background: var(--slate-950); }
.planner-guide h2 { color: white; font-size: 27px; }
.planner-guide > p { margin: 12px 0 0; color: var(--slate-400); font-size: 11px; }
.planner-guide ol { padding: 0; margin: 34px 0; list-style: none; }
.planner-guide li { display: flex; margin-bottom: 24px; gap: 12px; }
.planner-guide li b { color: #69bdf7; font-size: 10px; }
.planner-guide li span { display: flex; color: var(--slate-400); flex-direction: column; font-size: 11px; line-height: 1.6; }
.planner-guide li strong { color: white; font-size: 12px; }
.planner-form { min-height: 600px; padding: 36px; border: 1px solid var(--slate-200); border-left: 0; border-radius: 0 17px 17px 0; background: white; box-shadow: 0 14px 35px rgba(15,23,42,.08); }
.planner-form form > p, .planner-result > p { margin: 9px 0 0; color: var(--slate-500); font-size: 12px; }
.planner-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.planner-fields label, .family-field { display: block; }
.planner-fields label > span, .family-field > span { display: block; margin-bottom: 7px; color: var(--slate-600); font-size: 11px; font-weight: 700; }
.planner-fields select { width: 100%; padding: 11px 12px; color: var(--slate-700); border: 1px solid var(--slate-200); border-radius: 9px; outline: none; background: #f8fafc; font-size: 12px; }
.planner-fields select:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(17,139,224,.1); }
.family-field { grid-column: 1/-1; }
.family-options { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.family-options button { min-height: 82px; padding: 12px; text-align: left; border: 1px solid var(--slate-200); border-radius: 10px; background: white; }
.family-options button.selected { border-color: var(--brand-500); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-500); }
.family-options strong { display: block; color: var(--slate-800); font-size: 11px; }
.family-options span { display: block; margin-top: 4px; color: var(--slate-400); font-size: 9px; line-height: 1.45; }
.full-field { grid-column: 1/-1; }
.planner-submit { width: 100%; margin-top: 24px; }
.result-actions { display: flex; margin-top: 28px; justify-content: center; gap: 10px; }
.planner-result { text-align: center; }
.result-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 14px; place-items: center; color: white; border-radius: 50%; background: #29a56f; font-weight: 900; }
.recommendation-grid { display: grid; gap: 10px; margin-top: 25px; text-align: left; }
.recommendation-grid article { display: flex; padding: 17px; gap: 14px; border: 1px solid var(--slate-200); border-radius: 11px; background: #f8fafc; }
.recommendation-grid article > span { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; color: var(--brand-700); border-radius: 8px; background: var(--brand-100); font-size: 10px; font-weight: 800; }
.recommendation-grid h3 { margin: 0; color: var(--slate-800); font-size: 13px; }
.recommendation-grid p { margin: 5px 0; color: var(--slate-500); font-size: 10px; line-height: 1.65; }
.recommendation-grid a { color: var(--brand-600); font-size: 10px; font-weight: 700; }

.simple-page { max-width: 780px; margin: auto; padding: 36px 24px 90px; }
.simple-page .lead { color: var(--slate-500); font-size: 17px; }
.simple-page h2 { margin-top: 1.8em; font-size: 27px; }
.contact-box { margin-top: 40px; padding: 30px; color: white; border-radius: 16px; background: var(--slate-950); }
.contact-box p { margin: 0; color: var(--slate-400); font-size: 10px; }
.contact-box strong { display: block; margin: 4px 0 18px; color: #69bdf7; font-size: 28px; }
.contact-box small { display: block; margin-top: 17px; color: var(--slate-400); line-height: 1.7; }
.copy-button { padding: 9px 16px; color: var(--slate-950); border: 0; border-radius: 9px; background: white; font-weight: 700; }

footer { display: grid; grid-template-columns: 1fr auto; gap: 26px; padding: 50px max(24px,calc((100vw - 1040px)/2)) 28px; border-top: 1px solid var(--slate-200); background: white; }
.footer-brand { margin-bottom: 9px; }
footer p { margin: 0; color: var(--slate-500); font-size: 11px; }
.footer-links { display: flex; gap: 20px; font-size: 11px; font-weight: 700; }
.copyright { grid-column: 1/-1; }

@media (max-width: 900px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
  .planner-preview { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .planner-shell { grid-template-columns: 1fr; }
  .planner-guide { border-radius: 17px 17px 0 0; }
  .planner-form { border-left: 1px solid var(--slate-200); border-radius: 0 0 17px 17px; }
  .family-options { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 64px; padding: 0 16px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .brand-copy small { display: none; }
  .hero { padding: 52px 20px 20px; }
  .hero h1 { font-size: 39px; }
  .hero-lead { font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-metrics { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .hero-metrics div:nth-child(2) { border: 0; }
  .section { padding: 62px 20px; }
  .value-grid, .article-grid { grid-template-columns: 1fr; }
  .section-heading.row, .consult-strip { display: block; }
  .section-heading.row > a { display: inline-block; margin-top: 18px; }
  .planner-preview { gap: 38px; }
  .consult-strip { padding: 48px 20px; }
  .consult-strip .button { margin-top: 22px; }
  .page-hero { padding: 58px 20px 40px; }
  .library-tools { display: block; }
  .search { width: 100%; margin: 12px 0; }
  .article-header { padding: 45px 20px 25px; }
  .article-layout { padding: 8px 15px 0; }
  .article-frame { padding: 27px 20px; }
  .prose { font-size: 15px; }
  .planner-shell { margin-bottom: 60px; padding: 15px; }
  .planner-guide, .planner-form { padding: 27px 21px; }
  .planner-fields { grid-template-columns: 1fr; }
  .family-field, .full-field { grid-column: 1; }
  footer { grid-template-columns: 1fr; padding: 42px 20px 25px; }
  .footer-links, .copyright { grid-column: 1; }
  .footer-links { flex-wrap: wrap; }
}
