:root {
    --page: #F6F4FC;
    --deep: #E8F2FA;
    --surface: #FFFFFF;
    --ink: #2A2D4A;
    --text: #3A3E58;
    --muted: #6A6E88;
    --soft: #8A8EAA;
    --purple: #7B6BB5;
    --blue: #6BA3D6;
    --lilac: #C9B8E8;
    --mist: #B8D4F0;
    --peach: #E8B4B8;
    --border: rgba(42,45,74,0.12);
    --shadow: 0 14px 34px rgba(42,45,74,0.09);
    --line-h: 31px;
    --stage-h: 48px;
    --nav-h: 44px;
    --header-h: calc(var(--line-h) + var(--stage-h) + var(--nav-h));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); }
body { margin: 0; background: var(--page); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; font-size: 16px; line-height: 1.72; overflow-x: hidden; }
body.overlay-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1000; box-shadow: 0 5px 18px rgba(42,45,74,0.05); }
.nation-line { height: var(--line-h); background: linear-gradient(90deg, var(--purple), var(--blue)); color: #fff; border-top: 7px solid rgba(255,255,255,0.13); }
.nation-line-inner { height: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: .02em; }
.nation-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-action { min-width: 48px; height: 24px; border: 0; background: rgba(255,255,255,0.16); color: #fff; border-radius: 8px; cursor: pointer; }
.nation-stage { height: var(--stage-h); background: var(--surface); border-bottom: 1px solid rgba(201,184,232,.55); }
.nation-stage-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stage-logo { min-height: 44px; display: inline-flex; align-items: center; justify-content: flex-start; max-width: 52%; }
.brand-logo { width: auto; max-width: 190px; height: 24px; object-fit: contain; object-position: left center; }
.brand-wordmark { color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: .04em; }
.stage-actions { display: flex; align-items: center; gap: 8px; }
.menu-button, .app-button, .btn-primary, .btn-secondary { min-height: 44px; padding: 10px 16px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.menu-button { border: 1px solid var(--blue); color: var(--ink); background: #fff; }
.app-button, .btn-primary { border: 1px solid var(--purple); background: var(--purple); color: #fff; }
.btn-secondary { border: 1px solid var(--blue); background: #fff; color: var(--ink); }
.menu-button:hover, .app-button:hover, .btn-primary:hover, .btn-secondary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(42,45,74,.10); }
.nation-nav { height: var(--nav-h); background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.nation-nav-group { display: inline-flex; align-items: stretch; height: 100%; }
.nation-nav-group > span { width: 1px; height: 18px; margin: auto 8px; background: var(--mist); }
.nation-nav a { position: relative; min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; color: var(--text); font-weight: 650; }
.nation-nav a::after { content: ""; position: absolute; height: 2px; left: 12px; right: 12px; bottom: 4px; background: transparent; }
.nation-nav a.is-current { color: var(--purple); }
.nation-nav a.is-current::after { background: var(--blue); }
.site-main { min-height: 70vh; padding-top: calc(var(--header-h) + 28px); }
.page-hero, .content-section, .home-section { margin-bottom: 26px; }
.page-hero { padding: 34px 0 14px; }
.eyebrow { margin: 0 0 8px; color: var(--purple); font-size: 14px; font-weight: 800; letter-spacing: .08em; }
h1, h2, h3 { color: var(--ink); line-height: 1.28; margin-top: 0; }
h1 { margin-bottom: 14px; font-size: clamp(28px, 4vw, 32px); letter-spacing: -.02em; }
h2 { font-size: clamp(21px, 3vw, 26px); margin-bottom: 12px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lead { max-width: 860px; color: var(--text); font-size: 17px; }
.hero-card, .panel, .content-card, .faq-item, .timeline-item, .notice, .note-box { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.hero-card { padding: 22px; }
.hero-copy { text-align: center; max-width: 820px; margin: 18px auto 0; }
.hero-copy h1 { margin-bottom: 10px; }
.hero-actions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.media-frame { background: linear-gradient(135deg, rgba(201,184,232,.35), rgba(184,212,240,.44)); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.media-frame img, .media-frame .media-fallback { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-cover { height: min(210px, 36vw); min-height: 150px; }
.media-column { height: 170px; }
.media-wide { height: 180px; }
.media-app { height: 420px; max-width: 320px; margin-inline: auto; }
.media-mark { height: 72px; width: 72px; border-radius: 16px; }
.media-fallback { color: var(--ink); background: linear-gradient(135deg, rgba(201,184,232,.55), rgba(184,212,240,.58)); display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; font-weight: 800; letter-spacing: .04em; }
.home-duo, .grid-2, .grid-3, .grid-4, .service-grid, .terms-grid { display: grid; gap: 18px; }
.home-duo, .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)); }
.panel, .content-card { padding: 20px; }
.panel .media-frame, .content-card .media-frame { margin-bottom: 16px; }
.section-head { margin-bottom: 16px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.section-head p { max-width: 690px; margin: 0; color: var(--muted); }
.section-link { color: var(--purple); font-weight: 800; white-space: nowrap; }
.text-link { color: var(--purple); font-weight: 750; text-decoration: underline; text-decoration-color: var(--mist); text-underline-offset: 4px; }
.feature-band { padding: 22px; border-radius: 16px; background: var(--deep); border: 1px solid rgba(107,163,214,.18); }
.feature-band .media-frame { background: #fff; }
.app-feature { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0,1fr); gap: 28px; align-items: center; }
.app-icon-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.list-clean { margin: 0; padding-left: 1.2em; }
.list-clean li { margin-bottom: 8px; }
.info-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.info-strip div { background: rgba(255,255,255,.72); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.info-strip b { display: block; color: var(--ink); margin-bottom: 4px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
.article-main > section { margin-bottom: 20px; }
.article-main .panel { padding: 24px; }
.sticky-aside { position: sticky; top: calc(var(--header-h) + 18px); }
.aside-box { padding: 18px; background: var(--deep); border: 1px solid rgba(107,163,214,.2); border-radius: 14px; }
.aside-box a { display: block; padding: 10px 0; border-bottom: 1px solid rgba(42,45,74,.08); color: var(--ink); font-weight: 700; }
.aside-box a:last-child { border-bottom: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { padding: 6px 10px; background: var(--deep); border: 1px solid rgba(107,163,214,.22); border-radius: 10px; color: var(--ink); font-size: 14px; }
.timeline { display: grid; gap: 14px; }
.timeline-item { padding: 18px 18px 18px 22px; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 3px; background: linear-gradient(var(--purple), var(--blue)); }
.facts-opinions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.facts-opinions .panel:first-child { border-top: 4px solid var(--blue); }
.facts-opinions .panel:last-child { border-top: 4px solid var(--purple); }
.terms-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.notice { padding: 18px; background: var(--deep); }
.note-box { padding: 18px; border-left: 5px solid var(--peach); }
.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 20px; }
.faq-item h2 { font-size: 18px; margin-bottom: 8px; }
.site-footer { margin-top: 54px; padding: 34px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--ink); color: #E8E4F6; }
.footer-brand-row { display: flex; justify-content: space-between; gap: 36px; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid rgba(232,228,246,.16); }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 220px; }
.footer-brand .brand-wordmark { color: #fff; }
.footer-brand .brand-logo { filter: brightness(0) invert(1); }
.footer-brand span { display: grid; }
.footer-brand b { color: #fff; }
.footer-brand em { font-style: normal; color: var(--lilac); font-size: 12px; }
.footer-brand-row p { margin: 0; max-width: 720px; color: #E8E4F6; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px; padding: 26px 0; }
.footer-grid h2 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.footer-grid a { display: block; min-height: 36px; padding: 5px 0; color: #E8E4F6; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid rgba(232,228,246,.16); color: var(--lilac); font-size: 13px; }
.footer-bottom a { color: #fff; }
.page-overlay { position: fixed; inset: 0; z-index: 1100; background: rgba(42,45,74,.36); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, visibility .18s ease; }
.page-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.nation-drawer, .search-panel { position: fixed; z-index: 1200; top: calc(var(--line-h) + var(--stage-h)); left: 50%; transform: translate(-50%, -12px); background: #fff; border: 1px solid var(--border); border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--purple), var(--blue)) 1; box-shadow: 0 24px 50px rgba(42,45,74,.18); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.nation-drawer.is-open, .search-panel.is-open { transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto; }
.nation-drawer { width: min(640px, calc(100% - 32px)); height: 360px; overflow: auto; padding: 18px; border-radius: 0 0 16px 16px; }
.drawer-head, .search-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.drawer-brand .brand-logo { height: 22px; max-width: 150px; }
.icon-close { min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--blue); background: #fff; color: var(--ink); cursor: pointer; }
.drawer-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 24px; padding-top: 16px; }
.drawer-grid h2 { font-size: 14px; color: var(--purple); margin-bottom: 4px; }
.drawer-grid a { display: grid; gap: 1px; padding: 7px 0; }
.drawer-grid b { color: var(--ink); font-size: 15px; }
.drawer-grid span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.search-panel { width: min(420px, calc(100% - 32px)); padding: 18px; border-radius: 0 0 16px 16px; }
.search-head h2 { margin: 0; font-size: 18px; }
.search-display { margin: 16px 0 12px; min-height: 52px; display: flex; align-items: center; padding: 12px 14px; border: 1px solid var(--mist); border-radius: 12px; color: var(--muted); background: var(--page); }
.search-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.search-links a { min-height: 44px; display: flex; align-items: center; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; color: var(--ink); font-weight: 700; }
.mobile-bottom { display: none; }
:focus-visible { outline: 3px solid rgba(107,163,214,.5); outline-offset: 3px; }
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .article-layout { grid-template-columns: 1fr; }
    .sticky-aside { position: static; }
    .app-feature { grid-template-columns: minmax(180px, 280px) minmax(0,1fr); }
}
@media (max-width: 720px) {
    :root { --nav-h: 0px; --header-h: calc(var(--line-h) + var(--stage-h)); }
    .nation-nav { display: none; }
    .site-main { padding-top: calc(var(--header-h) + 20px); }
    .shell { width: min(100% - 32px, 1140px); }
    .home-duo, .grid-2, .grid-3, .grid-4, .terms-grid, .facts-opinions { grid-template-columns: 1fr; }
    .app-feature { grid-template-columns: 1fr; }
    .media-app { height: min(420px, 112vw); max-height: 420px; }
    .info-strip { grid-template-columns: 1fr; }
    .footer-brand-row, .footer-bottom { flex-direction: column; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .nation-drawer { width: calc(100% - 20px); height: 60vh; max-height: 560px; padding: 16px; }
    .drawer-grid { grid-template-columns: 1fr; }
    .search-panel { width: calc(100% - 20px); }
    .mobile-bottom { position: fixed; z-index: 800; left: 0; right: 0; bottom: 0; height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(42,45,74,.07); }
    .mobile-bottom a { min-width: 0; min-height: 50px; display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: 13px; font-weight: 700; }
    .mobile-bottom a.is-current { background: var(--purple); color: #fff; }
    .site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .hero-copy { text-align: left; }
    .hero-actions { justify-content: flex-start; }
}
@media (max-width: 430px) {
    .nation-brand { max-width: calc(100vw - 90px); }
    .stage-logo { max-width: 44%; }
    .brand-logo { max-width: 132px; height: 22px; }
    .brand-wordmark { font-size: 18px; }
    .stage-actions { gap: 6px; }
    .menu-button, .app-button { padding-inline: 10px; font-size: 14px; }
    .hero-card, .panel, .content-card, .faq-item { padding: 17px; }
    .media-cover { height: 180px; }
    .media-column, .media-wide { height: 160px; }
    .footer-grid { gap: 18px; }
}
@media (max-width: 360px) {
    .shell { width: calc(100% - 32px); }
    .nation-brand { font-size: 11px; }
    .stage-logo { max-width: 39%; }
    .brand-wordmark { font-size: 16px; }
    .menu-button, .app-button { padding-inline: 8px; }
    .app-button { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
