:root {
  --primary: #5B4BDB;
  --primary-soft: #8B7CF6;
  --ink: #1E1B2E;
  --text: #292734;
  --muted: #6F6B7A;
  --accent: #F05A7E;
  --bg: #F7F7FB;
  --bg-soft: #EFEFFC;
  --white: #FFFFFF;
  --line: #DDDCE9;
  --line-strong: #C8C5DD;
  --shadow-sm: 0 8px 30px rgba(30, 27, 46, .07);
  --shadow-md: 0 22px 70px rgba(30, 27, 46, .10);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.72; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(139,124,246,.26); color: var(--ink); }

.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: 2000; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 10px; transition: top .2s ease; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(247,247,251,.91); border-bottom: 1px solid transparent; backdrop-filter: blur(18px); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.site-header.is-scrolled { border-bottom-color: rgba(200,197,221,.8); box-shadow: 0 6px 20px rgba(30,27,46,.05); }
.site-header.is-compact { transform: translateY(-10px); }
.header-shell { width: min(calc(100% - 36px), var(--max)); margin: 0 auto; min-height: 84px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 150px; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; background: var(--white); box-shadow: var(--shadow-sm); }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-size: 20px; letter-spacing: .02em; color: var(--ink); }
.brand small { margin-top: 5px; font-size: 11px; color: var(--muted); }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 6px; }
.primary-nav a { padding: 9px 11px; color: var(--muted); border-radius: 999px; font-size: 14px; transition: background .18s ease, color .18s ease; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.header-search { display: flex; align-items: center; gap: 6px; width: 248px; }
.header-search input { min-width: 0; width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 9px 12px; color: var(--text); outline: none; }
.header-search input:focus { border-color: var(--primary-soft); box-shadow: 0 0 0 3px rgba(139,124,246,.14); }
.header-search button { border: 0; border-radius: 999px; padding: 9px 12px; background: var(--ink); color: var(--white); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.menu-toggle span:not(.sr-only) { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }

.section-shell { width: min(calc(100% - 36px), var(--max)); margin-inline: auto; }
.section-block { margin-top: 34px; padding: 34px 0; }
.kicker, .eyebrow { display: inline-block; color: var(--primary); font-weight: 700; letter-spacing: .08em; font-size: 12px; text-transform: uppercase; }
.kicker { padding: 7px 10px; background: rgba(91,75,219,.08); border-radius: 999px; }
.section-heading { max-width: 760px; margin-bottom: 22px; }
.section-heading.compact-heading { max-width: 690px; }
.section-heading h2, .split-copy h2, .info-ribbon h2, .route-panel h2, .note-panel h2, .media-band h2, .faq-aside h2 { margin: 7px 0 10px; font-size: clamp(25px, 4vw, 38px); line-height: 1.18; letter-spacing: -.02em; color: var(--ink); }
.section-heading p, .split-copy p, .info-ribbon p, .route-panel p, .note-panel p, .media-band p, .faq-aside p { margin: 0; color: var(--muted); }

.home-hero { min-height: 640px; padding: 72px 0 54px; display: grid; grid-template-columns: minmax(0,1.03fr) minmax(320px,.97fr); gap: 54px; align-items: center; }
.home-hero-copy h1, .page-title-grid h1, .dense-heading h1, .faq-hero h1, .search-page-head h1 { margin: 18px 0 18px; font-size: clamp(40px, 6.5vw, 72px); line-height: 1.06; letter-spacing: -.045em; color: var(--ink); }
.page-title-grid h1, .dense-heading h1, .faq-hero h1, .search-page-head h1 { font-size: clamp(38px, 5.2vw, 62px); }
.lead { margin: 0; font-size: clamp(17px, 2vw, 20px); color: #545064; line-height: 1.78; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px; border-radius: 12px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--white); background: var(--primary); box-shadow: 0 10px 26px rgba(91,75,219,.24); }
.button-primary:hover { box-shadow: 0 14px 34px rgba(91,75,219,.30); }
.button-ghost { color: var(--ink); background: var(--white); border: 1px solid var(--line); }
.button-light { color: var(--primary); background: var(--white); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hero-tags a { padding: 7px 10px; background: var(--bg-soft); color: #4D468A; border-radius: 999px; font-size: 13px; }
.home-hero-media { margin: 0; padding: 16px; background: linear-gradient(155deg, rgba(139,124,246,.18), rgba(240,90,126,.09)); border: 1px solid rgba(139,124,246,.24); border-radius: 34px; box-shadow: var(--shadow-md); }
.home-hero-media img { width: 100%; aspect-ratio: 1.22/1; object-fit: cover; border-radius: 24px; background: var(--bg-soft); }
.home-hero-media figcaption { padding: 12px 6px 3px; color: var(--muted); font-size: 13px; }

.link-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.link-card { display: flex; min-height: 176px; flex-direction: column; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.link-card:hover { transform: translateY(-3px); border-color: var(--primary-soft); box-shadow: var(--shadow-md); }
.link-card strong { margin: 7px 0 8px; font-size: 19px; line-height: 1.35; color: var(--ink); }
.link-card > span:last-child { color: var(--muted); font-size: 14px; }

.split-intro { display: grid; grid-template-columns: minmax(0,.9fr) minmax(320px,1.1fr); gap: 34px; align-items: center; padding: 44px; background: var(--bg-soft); border-radius: var(--radius-lg); }
.split-copy { max-width: 560px; }
.split-media img { width: 100%; min-height: 360px; object-fit: cover; border-radius: 22px; }
.text-link { display: inline-block; margin-top: 18px; color: var(--primary); font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.article-stack { display: grid; gap: 14px; }
.article-item { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 24px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 5px 20px rgba(30,27,46,.035); }
.article-item:has(img) { grid-template-columns: minmax(220px,.36fr) minmax(0,.64fr); align-items: center; }
.article-item img { width: 100%; height: 100%; min-height: 220px; max-height: 300px; object-fit: cover; border-radius: 16px; background: var(--bg-soft); }
.article-item h3 { margin: 7px 0 8px; font-size: clamp(21px, 2.5vw, 28px); line-height: 1.3; color: var(--ink); }
.article-item p { margin: 0; color: var(--muted); }
.compact-list { display: grid; gap: 6px; margin: 14px 0 0; padding-left: 20px; color: #4F4B5E; }
.compact-list li::marker { color: var(--primary-soft); }

.info-ribbon { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 34px 38px; color: var(--white); background: var(--primary); border-radius: var(--radius-lg); }
.info-ribbon h2, .info-ribbon p, .info-ribbon .eyebrow { color: var(--white); }
.info-ribbon p { max-width: 760px; opacity: .87; }
.info-ribbon .eyebrow { opacity: .76; }

.search-callout { display: grid; grid-template-columns: minmax(240px,.42fr) minmax(0,.58fr); gap: 34px; align-items: center; padding: 34px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.search-callout img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 20px; }
.search-callout h2 { margin: 7px 0 10px; color: var(--ink); font-size: clamp(26px,4vw,40px); line-height: 1.18; }
.search-callout p { margin: 0; color: var(--muted); }
.search-form { margin-top: 20px; }
.search-form label { display: block; margin-bottom: 8px; color: var(--ink); font-weight: 700; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.search-row input { width: 100%; min-width: 0; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; outline: none; color: var(--text); }
.search-row input:focus { border-color: var(--primary-soft); box-shadow: 0 0 0 3px rgba(139,124,246,.15); }
.search-row button { border: 0; padding: 11px 17px; border-radius: 12px; background: var(--ink); color: var(--white); font-weight: 700; }

.page-top { padding: 36px 0 16px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 28px; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.breadcrumb li + li::before { content: "/"; margin-right: 7px; color: var(--line-strong); }
.breadcrumb a:hover { color: var(--primary); }
.page-title-grid { display: grid; grid-template-columns: minmax(0,.62fr) minmax(300px,.38fr); gap: 40px; align-items: center; padding: 36px 38px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.page-title-grid.reverse { grid-template-columns: minmax(0,.58fr) minmax(320px,.42fr); background: linear-gradient(135deg, #FFFFFF, #F0EEFF); }
.page-title-grid img { width: 100%; min-height: 330px; max-height: 420px; object-fit: cover; border-radius: 22px; background: var(--bg-soft); }
.route-panel { display: grid; grid-template-columns: minmax(0,.42fr) minmax(0,.58fr); gap: 28px; padding: 32px; border-radius: var(--radius-lg); background: #262139; color: var(--white); }
.route-panel h2, .route-panel p, .route-panel .eyebrow { color: inherit; }
.route-panel p, .route-panel .eyebrow { opacity: .78; }
.route-links { display: grid; gap: 12px; }
.route-links a { display: block; padding: 19px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.06); }
.route-links a:hover { background: rgba(255,255,255,.1); }
.route-links strong, .route-links span { display: block; }
.route-links strong { font-size: 18px; }
.route-links span { margin-top: 4px; opacity: .7; font-size: 14px; }
.note-panel, .media-band { display: grid; grid-template-columns: minmax(240px,.4fr) minmax(0,.6fr); gap: 30px; align-items: center; padding: 32px; background: var(--bg-soft); border-radius: var(--radius-lg); }
.note-panel img, .media-band img { width: 100%; min-height: 300px; object-fit: cover; border-radius: 20px; }

.dense-heading { display: grid; grid-template-columns: minmax(0,.65fr) minmax(260px,.35fr); gap: 28px; align-items: end; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dense-heading img { width: 100%; max-height: 280px; object-fit: cover; border-radius: 18px; }
.video-index-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 26px; align-items: start; }
.video-aside { position: sticky; top: 108px; display: grid; gap: 8px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.video-aside > a { padding: 10px 11px; border-radius: 10px; color: var(--muted); }
.video-aside > a:hover { background: var(--bg-soft); color: var(--ink); }
.video-aside img { margin-top: 10px; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; }
.video-list-wrap .article-item { padding: 20px 22px; }
.video-list-wrap .article-item h3 { font-size: 23px; }

.faq-hero { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: center; }
.faq-hero img { width: 100%; aspect-ratio: 1.2/1; object-fit: cover; border-radius: 22px; }
.faq-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 30px; align-items: start; }
.faq-list { display: grid; gap: 10px; margin-top: 20px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-item summary { padding: 18px 20px; cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--primary); font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 20px 18px; color: var(--muted); }
.faq-answer p { margin: 0; }
.faq-aside { position: sticky; top: 108px; padding: 20px; background: var(--bg-soft); border-radius: 18px; }
.faq-aside img { width: 100%; aspect-ratio: 1.2/1; object-fit: cover; border-radius: 14px; }
.faq-aside h2 { font-size: 23px; }

.search-page-head { max-width: 850px; }
.large-search { max-width: 820px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.empty-state { padding: 34px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.empty-state > img { max-width: 420px; margin: 0 auto 20px; border-radius: 18px; }
.empty-state h2 { margin: 0 0 8px; color: var(--ink); font-size: 30px; }
.empty-state p { margin: 0 0 22px; color: var(--muted); }
.empty-state .link-grid { text-align: left; margin-top: 24px; }

.site-footer { margin-top: 70px; padding: 42px 0 34px; background: #1E1B2E; color: rgba(255,255,255,.88); }
.footer-shell { width: min(calc(100% - 36px), var(--max)); margin-inline: auto; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start; }
.footer-brand strong { font-size: 26px; }
.footer-brand p { max-width: 540px; margin: 8px 0 0; color: rgba(255,255,255,.62); }
.footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 18px; }
.footer-links a { color: rgba(255,255,255,.72); }
.footer-links a:hover { color: var(--white); }
.copyright { grid-column: 1/-1; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.48); font-size: 13px; }
.back-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--primary); box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.back-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.not-found { min-height: 62vh; display: grid; align-items: center; }
.not-found-card { margin-top: 56px; padding: 60px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.error-code { display: block; font-size: clamp(72px,16vw,170px); line-height: .9; font-weight: 900; letter-spacing: -.06em; color: var(--bg-soft); text-shadow: 0 1px 0 var(--primary-soft); }
.not-found-card h1 { margin: 18px 0 8px; font-size: 40px; color: var(--ink); }
.not-found-card p { max-width: 620px; margin: 0 auto; color: var(--muted); }
.not-found-card .hero-actions { justify-content: center; }

:focus-visible { outline: 3px solid rgba(240,90,126,.55); outline-offset: 3px; }

@media (max-width: 1080px) {
  .header-shell { grid-template-columns: auto 1fr; }
  .header-search { display: none; }
  .primary-nav { justify-content: flex-end; }
  .link-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .home-hero { gap: 34px; }
}

@media (max-width: 900px) {
  .site-header.is-compact { transform: none; }
  .header-shell { min-height: 72px; grid-template-columns: 1fr auto; }
  .menu-toggle { display: inline-flex; justify-self: end; }
  .primary-nav { position: fixed; inset: 72px 0 auto 0; display: none; max-height: calc(100vh - 72px); overflow: auto; padding: 14px 18px 24px; background: rgba(247,247,251,.98); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .primary-nav.is-open { display: grid; }
  .primary-nav a { padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
  body.menu-open { overflow: hidden; }
  .home-hero, .page-title-grid, .page-title-grid.reverse, .dense-heading, .faq-hero { grid-template-columns: 1fr; }
  .home-hero { min-height: 0; padding-top: 52px; }
  .home-hero-media { max-width: 720px; }
  .split-intro, .search-callout, .note-panel, .media-band, .route-panel { grid-template-columns: 1fr; }
  .split-copy { max-width: none; }
  .article-item:has(img) { grid-template-columns: 1fr; }
  .article-item img { min-height: 280px; }
  .video-index-layout { grid-template-columns: 1fr; }
  .video-aside { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .video-aside img, .video-aside .eyebrow { grid-column: 1/-1; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
}

@media (max-width: 680px) {
  .section-shell, .header-shell, .footer-shell { width: min(calc(100% - 24px), var(--max)); }
  .section-block { margin-top: 20px; padding: 24px 0; }
  .home-hero { padding: 36px 0 28px; gap: 24px; }
  .home-hero-copy h1, .page-title-grid h1, .dense-heading h1, .faq-hero h1, .search-page-head h1 { font-size: clamp(35px,11vw,50px); }
  .link-grid { grid-template-columns: 1fr; }
  .link-card { min-height: 0; }
  .split-intro, .search-callout, .route-panel, .note-panel, .media-band { padding: 22px; border-radius: 22px; }
  .article-item { padding: 20px; }
  .article-item img { min-height: 220px; }
  .info-ribbon { align-items: flex-start; flex-direction: column; padding: 26px; border-radius: 22px; }
  .page-title-grid { padding: 24px; border-radius: 22px; }
  .page-title-grid img { min-height: 240px; }
  .video-aside { grid-template-columns: 1fr; }
  .video-aside img, .video-aside .eyebrow { grid-column: auto; }
  .search-row { grid-template-columns: 1fr; }
  .footer-shell { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .copyright { grid-column: auto; }
  .not-found-card { padding: 38px 22px; }
}

@media (max-width: 420px) {
  .brand small { display: none; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .home-hero-media { padding: 10px; border-radius: 24px; }
  .home-hero-media img { border-radius: 18px; }
  .breadcrumb ol { margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .back-top, .hero-actions, .header-search, .menu-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .section-shell { width: 100%; }
  .article-item, .page-title-grid, .split-intro, .search-callout { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}
