:root {
  --primary: #6F5AE8;
  --primary-soft: #9A8CF2;
  --ink: #242433;
  --text: #30303A;
  --muted: #70707D;
  --bg: #F8F8FC;
  --panel: #FFFFFF;
  --panel-soft: #F0EEFA;
  --accent: #F29A4A;
  --line: #E6E3F2;
  --shadow: 0 18px 45px rgba(36, 36, 51, 0.08);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 1000; padding: 10px 14px;
  background: var(--ink); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(248, 248, 252, 0.96);
  border-bottom: 1px solid rgba(230, 227, 242, 0.9); backdrop-filter: blur(14px);
}
.header-inner { min-height: 74px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 12px;
  color: var(--text); font-size: 15px; border-radius: 10px;
}
.site-nav a:hover { color: var(--primary); background: var(--panel-soft); text-decoration: none; }
.site-nav a.active { color: var(--primary); background: var(--panel-soft); font-weight: 700; }
.search-open, .menu-toggle {
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px;
  min-height: 42px; padding: 0 14px; font-weight: 700;
}
.search-open:hover, .menu-toggle:hover { border-color: var(--primary-soft); }
.menu-toggle { display: none; margin-left: auto; }

.search-modal[hidden] { display: none !important; }
.search-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.search-backdrop { position: absolute; inset: 0; background: rgba(20, 20, 30, 0.58); }
.search-dialog {
  position: relative; width: min(100%, 610px); padding: 30px; background: #fff; border-radius: 24px;
  box-shadow: 0 34px 90px rgba(0,0,0,.24);
}
.search-dialog h2 { margin: 0 36px 8px 0; font-size: 28px; color: var(--ink); }
.search-dialog p { color: var(--muted); margin: 0 0 20px; }
.search-close {
  position: absolute; right: 18px; top: 16px; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: var(--panel-soft); color: var(--ink); font-size: 27px;
}
.search-form-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 8px; }
.search-form-row input, .inline-search input {
  width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--text); outline: none;
}
.search-form-row input:focus, .inline-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(111,90,232,.12); }
.search-form-row button, .inline-search button {
  border: 0; border-radius: 12px; padding: 0 18px; background: var(--primary); color: #fff; font-weight: 700;
}

.hero { padding: 70px 0 34px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero-copy h1, .page-hero h1 {
  margin: 12px 0 18px; color: var(--ink); font-size: clamp(38px, 5vw, 66px); line-height: 1.1; letter-spacing: -0.045em;
}
.hero-copy .lead, .page-hero .lead { color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.75; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 999px;
  background: var(--panel-soft); color: var(--primary); font-weight: 800; font-size: 13px; letter-spacing: .04em;
}
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border-radius: 13px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); text-decoration: none; }
.button.primary { background: var(--accent); color: #27211B; box-shadow: 0 11px 30px rgba(242,154,74,.24); }
.button.secondary { background: var(--primary); color: #fff; box-shadow: 0 11px 30px rgba(111,90,232,.2); }
.button.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: 10% -5% -6% 10%; border-radius: 36px;
  background: var(--panel-soft); z-index: -1; transform: rotate(2deg);
}
.hero-media img { width: 100%; border-radius: 28px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; background: var(--panel-soft); }
.hero-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.hero-point { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.72); }
.hero-point strong { display: block; color: var(--ink); font-size: 14px; }
.hero-point span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

.section { padding: 64px 0; }
.section.soft { background: var(--panel-soft); }
.section.dark { background: var(--ink); color: #fff; }
.section.dark .section-heading h2, .section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .section-heading p, .section.dark p { color: #C6C4D4; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; max-width: 720px; color: var(--ink); font-size: clamp(30px, 4vw, 44px); line-height: 1.2; letter-spacing: -0.035em; }
.section-heading p { margin: 0; max-width: 480px; color: var(--muted); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic-card {
  display: flex; flex-direction: column; padding: 24px; min-height: 250px; border-radius: var(--radius-md);
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(36,36,51,.04);
}
.topic-card .card-kicker { color: var(--primary); font-size: 13px; font-weight: 800; }
.topic-card h3 { margin: 10px 0 10px; color: var(--ink); font-size: 23px; line-height: 1.3; }
.topic-card p { margin: 0; color: var(--muted); }
.topic-card a { margin-top: auto; padding-top: 20px; font-weight: 800; }
.media-card { overflow: hidden; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.media-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--panel-soft); }
.media-card .content { padding: 22px; }
.media-card h3 { margin: 0 0 8px; color: var(--ink); font-size: 24px; }
.media-card p { margin: 0; color: var(--muted); }
.media-card a { display: inline-block; margin-top: 14px; font-weight: 800; }

.split { display: grid; grid-template-columns: .92fr 1.08fr; gap: 44px; align-items: center; }
.split.reverse { grid-template-columns: 1.08fr .92fr; }
.split img { width: 100%; border-radius: 24px; aspect-ratio: 4/3; object-fit: cover; background: var(--panel-soft); }
.split-copy h2 { margin: 0 0 14px; color: var(--ink); font-size: clamp(30px, 4vw, 45px); line-height: 1.2; }
.split-copy p { color: var(--muted); }
.mini-list { display: grid; gap: 12px; margin-top: 24px; }
.mini-item { padding: 16px 18px; border-left: 4px solid var(--primary); background: #fff; border-radius: 0 13px 13px 0; }
.mini-item strong { display: block; color: var(--ink); }
.mini-item span { display: block; color: var(--muted); margin-top: 3px; }

.editorial-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.editorial-row {
  display: grid; grid-template-columns: 140px 1fr auto; gap: 26px; align-items: start;
  padding: 23px 0; border-bottom: 1px solid var(--line);
}
.editorial-row .label { color: var(--primary); font-size: 13px; font-weight: 800; }
.editorial-row h3 { margin: 0 0 6px; color: var(--ink); font-size: 21px; }
.editorial-row p { margin: 0; color: var(--muted); }
.editorial-row a { font-weight: 800; white-space: nowrap; }

.route-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.route-item { padding: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; }
.route-item strong { display: block; color: #fff; }
.route-item span { display: block; color: #C6C4D4; margin-top: 6px; font-size: 14px; }
.route-item a { display: inline-block; margin-top: 12px; color: #fff; font-weight: 800; }

.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 15px; background: #fff; overflow: hidden; }
.faq-button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 20px; border: 0; background: transparent; text-align: left; color: var(--ink); font-weight: 800;
}
.faq-button::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--primary); }
.faq-button[aria-expanded="true"]::after { content: "−"; }
.faq-answer { padding: 0 20px 20px; color: var(--muted); }
.faq-answer[hidden] { display: none; }

.cta-band {
  padding: 34px; border-radius: 24px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band h2 { margin: 0 0 6px; color: #fff; font-size: 30px; }
.cta-band p { margin: 0; color: #E9E6FF; }
.cta-band .button { flex: 0 0 auto; }

.breadcrumbs { padding: 22px 0 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #AAA8B5; }
.breadcrumbs a { color: var(--muted); }

.page-hero { padding: 34px 0 50px; }
.page-hero-grid { display: grid; grid-template-columns: 1fr .78fr; gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); }
.page-hero-media img { width: 100%; border-radius: 24px; aspect-ratio: 3/2; object-fit: cover; background: var(--panel-soft); box-shadow: var(--shadow); }
.content-shell { padding: 12px 0 70px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 52px; align-items: start; }
.article-content { min-width: 0; }
.article-section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.article-section:first-child { padding-top: 0; }
.article-section:last-child { border-bottom: 0; }
.article-section h2 { margin: 0 0 14px; color: var(--ink); font-size: 31px; line-height: 1.25; letter-spacing: -.025em; }
.article-section h3 { margin: 26px 0 8px; color: var(--ink); }
.article-section p { margin: 0 0 14px; }
.article-section p:last-child { margin-bottom: 0; }
.check-list, .step-list { margin: 18px 0 0; padding-left: 1.3em; }
.check-list li, .step-list li { margin: 8px 0; }
.check-list li::marker { color: var(--primary); }
.step-list li::marker { color: var(--primary); font-weight: 800; }
.note { margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: var(--panel-soft); color: var(--ink); border-left: 4px solid var(--primary); }
.page-aside { position: sticky; top: 98px; display: grid; gap: 18px; }
.aside-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 17px; }
.aside-card.subtle { background: var(--panel-soft); }
.aside-card h2 { margin: 0 0 12px; color: var(--ink); font-size: 20px; }
.aside-card p { margin: 0 0 14px; color: var(--muted); }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-list a { display: block; padding: 13px 0; color: var(--text); }
.link-list a:hover { text-decoration: none; }
.link-list strong { display: block; color: var(--ink); }
.link-list span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.55; }
.inline-search { display: grid; gap: 8px; }
.inline-search button { min-height: 44px; }

.index-block { padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.index-block h2 { margin: 0 0 10px; color: var(--ink); }
.index-block p { color: var(--muted); }
.search-page { padding: 42px 0 76px; }
.search-page h1 { margin: 0 0 12px; color: var(--ink); font-size: 45px; }
.search-box-large { max-width: 760px; margin: 24px 0 34px; }
.search-results { display: grid; gap: 14px; }
.search-result { padding: 20px; border-radius: 15px; background: #fff; border: 1px solid var(--line); }
.search-result h2 { margin: 0 0 8px; font-size: 23px; }
.search-result p { margin: 0; color: var(--muted); }
.search-result .path { margin-top: 10px; font-size: 13px; color: var(--primary); }
.empty-state { padding: 26px; border-radius: 16px; background: var(--panel-soft); }

.status-card { padding: 18px 20px; border-radius: 14px; background: var(--panel-soft); border-left: 4px solid var(--accent); }
.status-card strong { color: var(--ink); }
.status-card p { margin: 6px 0 0; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 14px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--panel-soft); color: var(--ink); }

.site-footer { background: var(--ink); color: #C6C4D4; padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid h2 { margin: 0 0 13px; color: #fff; font-size: 16px; }
.footer-grid a { display: block; margin: 7px 0; color: #D9D7E4; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-about p { max-width: 420px; margin: 15px 0 0; }
.footer-brand { color: #fff; }
.footer-brand:hover { color: #fff; }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; }

@media (max-width: 1024px) {
  .site-nav { position: absolute; left: 20px; right: 20px; top: 68px; display: none; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .site-nav.open { display: grid; }
  .site-nav a { padding: 0 14px; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .search-open { margin-left: 0; }
  .hero-grid, .page-hero-grid, .split, .split.reverse { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-media { max-width: 760px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .route-strip { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 34px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 66px; gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .brand span { font-size: 15px; }
  .search-open { padding: 0 11px; font-size: 13px; }
  .menu-toggle { min-height: 40px; padding: 0 11px; font-size: 13px; }
  .hero { padding-top: 46px; }
  .hero-grid { gap: 34px; }
  .hero-copy h1, .page-hero h1 { font-size: clamp(34px, 10vw, 49px); }
  .hero-points { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 12px; }
  .cards-3 { grid-template-columns: 1fr; }
  .editorial-row { grid-template-columns: 1fr; gap: 7px; }
  .route-strip { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .page-aside { position: static; }
  .page-hero { padding-bottom: 34px; }
  .article-section h2 { font-size: 27px; }
  .cta-band { display: block; padding: 25px; }
  .cta-band .button { margin-top: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
  .footer-bottom a { display: inline-block; margin-top: 8px; }
}

@media (max-width: 600px) {
  .button-row { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .hero-media::before { inset: 8% 0 -4% 6%; }
  .search-dialog { padding: 24px 20px; }
  .search-form-row { grid-template-columns: 1fr; }
  .search-form-row button { min-height: 46px; }
  .page-hero-grid { gap: 28px; }
}

@media (max-width: 375px) {
  .container { width: min(calc(100% - 22px), var(--max)); }
  .brand span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .search-open { padding: 0 9px; }
  .hero-copy h1, .page-hero h1 { font-size: 34px; }
  .section-heading h2 { font-size: 29px; }
}
