:root {
    --bg: #FFFFFF;
    --deep-bg: #F5F7FA;
    --surface: #FFFFFF;
    --surface-2: #EEF1F6;
    --title: #0A1628;
    --text: #1E2A3A;
    --muted: #4A5568;
    --soft: #718096;
    --blue: #0033A0;
    --bright: #0052CC;
    --deep-blue: #002066;
    --line: rgba(0,51,160,0.14);
    --shadow: 0 12px 36px rgba(0,33,102,0.08);
    --radius: 14px;
    --max: 1220px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
}
body.panel-open { overflow: hidden; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--bright); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(0,82,204,.28); outline-offset: 2px; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
.shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.site-fixed-head { position: fixed; z-index: 1000; inset: 0 0 auto 0; }
.blue-line { height: 22px; background: var(--deep-blue); color: #fff; }
.blue-line-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; }
.micro-brand { color: #fff; font-size: 12px; letter-spacing: .08em; font-weight: 700; }
.micro-brand:hover { color: #fff; opacity: .86; }
.text-control { height: 22px; border: 0; background: transparent; color: #fff; padding: 0 2px 0 18px; font-size: 12px; }
.masthead { height: 68px; background: #fff; border-bottom: 1px solid var(--line); }
.masthead-inner { height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand-mark { justify-self: start; height: 44px; min-width: 82px; display: inline-flex; align-items: center; color: var(--title); }
.brand-logo { width: auto; max-width: 145px; height: 34px; object-fit: contain; object-position: left center; }
.brand-mark strong { font-size: 28px; letter-spacing: -.04em; color: var(--deep-blue); }
.catalog-button, .panel-close {
    min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--blue); padding: 0 18px; font-weight: 700;
}
.catalog-button:hover, .panel-close:hover { border-color: var(--bright); color: var(--bright); }
.app-link {
    justify-self: end; min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 10px;
    background: linear-gradient(135deg,#0052CC 0%,#0033A0 50%,#002066 100%); color: #fff; font-weight: 700;
}
.app-link:hover { color: #fff; filter: brightness(1.05); }
.section-tabs { height: 44px; background: var(--deep-bg); border-bottom: 1px solid var(--line); }
.tab-inner { height: 44px; display: flex; align-items: center; justify-content: flex-start; gap: 6px; overflow: hidden; }
.tab-link { min-height: 32px; padding: 3px 12px; display: inline-flex; align-items: center; color: var(--muted); border-radius: 8px; font-size: 14px; font-weight: 650; }
.tab-link.is-current { color: #fff; background: var(--blue); }
.site-main { padding-top: 154px; min-height: 70vh; }
.page { padding: 28px 0 72px; }
.page-hero { padding: 34px 0 24px; }
.eyebrow { display: inline-block; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--title); line-height: 1.28; margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 32px); letter-spacing: -.035em; margin-bottom: 14px; }
h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 12px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { margin: 0 0 16px; }
.lead { max-width: 850px; color: var(--muted); font-size: 17px; }
.section-block { padding: 34px 0; }
.section-block.alt { background: var(--deep-bg); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.section-head p { max-width: 680px; margin: 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card, .index-card, .note-card, .theme-cell, .faq-item, .policy-block, .step-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
}
.card p, .index-card p, .note-card p, .theme-cell p, .step-card p { color: var(--muted); }
.card .meta, .meta { color: var(--soft); font-size: 13px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; font-weight: 750; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.btn-primary, .btn-secondary {
    min-height: 44px; border-radius: 10px; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; font-weight: 750;
}
.btn-primary { color: #fff; background: linear-gradient(135deg,#0052CC 0%,#0033A0 50%,#002066 100%); }
.btn-primary:hover { color: #fff; }
.btn-secondary { color: var(--blue); background: #fff; border: 1px solid var(--blue); }
.media-frame { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.media-frame.hero-media { width: 100%; max-height: 300px; min-height: 180px; }
.media-frame.hero-media img, .hero-media.media-placeholder { width: 100%; max-height: 300px; object-fit: contain; object-position: center; }
.media-frame.column-media { min-height: 190px; height: 210px; }
.media-frame.column-media img, .column-media.media-placeholder { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-placeholder { background: linear-gradient(135deg, #F7FAFC, #EEF1F6); border: 1px dashed rgba(0,51,160,.2); display: flex; align-items: center; justify-content: center; color: var(--blue); min-height: 180px; }
.media-placeholder span { font-weight: 850; font-size: 28px; letter-spacing: -.05em; }
.hero-copy { padding: 24px 0 0; }
.kicker { color: var(--blue); font-weight: 800; margin-bottom: 7px; }
.home-tags { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
.home-tag { border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-height: 145px; background: #fff; }
.home-tag .tag-mark { display: inline-block; padding: 3px 7px; color: #fff; background: var(--bright); border-radius: 6px; font-size: 12px; margin-bottom: 10px; }
.home-tag:nth-child(even) .tag-mark { background: var(--deep-blue); }
.number-list { display: grid; gap: 10px; }
.number-item { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.number-item:last-child { border-bottom: 0; }
.number-item .num { font-size: 25px; font-weight: 900; color: var(--blue); letter-spacing: -.05em; }
.number-item p { margin: 0; color: var(--muted); }
.number-item a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 750; }
.split { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr); gap: 28px; align-items: center; }
.split.reverse { grid-template-columns: minmax(280px,.9fr) minmax(0,1.1fr); }
.shelf-list { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.shelf-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 18px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.shelf-row:last-child { border-bottom: 0; }
.shelf-label { color: var(--blue); font-weight: 850; }
.shelf-row p { margin: 0; color: var(--muted); }
.rank-list { display: grid; gap: 8px; }
.rank-row { display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rank-row .rank { color: var(--blue); font-size: 38px; font-weight: 900; line-height: 1; letter-spacing: -.06em; }
.rank-row p { margin: 4px 0 0; color: var(--muted); }
.timeline { position: relative; margin-left: 12px; padding-left: 32px; }
.timeline:before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: rgba(0,51,160,.2); }
.timeline-item { position: relative; padding: 0 0 28px; }
.timeline-item:before { content: ""; position: absolute; left: -31px; top: 6px; width: 14px; height: 14px; background: #fff; border: 3px solid var(--blue); border-radius: 50%; }
.timeline-item p { color: var(--muted); }
.status { display: inline-block; padding: 2px 8px; background: var(--surface-2); color: var(--blue); border-radius: 6px; font-size: 12px; font-weight: 800; }
.article-prose { max-width: 860px; }
.article-prose p { margin-bottom: 18px; }
.article-prose h2 { margin-top: 34px; }
.article-prose .editor-view { border-left: 4px solid var(--blue); padding: 12px 16px; background: var(--deep-bg); color: var(--muted); }
.step-list { counter-reset: steps; display: grid; gap: 14px; }
.step-card { position: relative; padding-left: 74px; }
.step-card:before { counter-increment: steps; content: counter(steps, decimal-leading-zero); position: absolute; left: 20px; top: 19px; color: var(--blue); font-size: 24px; font-weight: 900; }
.faq-list { display: grid; gap: 14px; }
.faq-item h2 { font-size: 18px; margin-bottom: 8px; }
.faq-item p { color: var(--muted); margin: 0; }
.policy-stack { display: grid; gap: 18px; }
.policy-block p:last-child { margin-bottom: 0; }
.notice { padding: 16px 18px; border-left: 4px solid var(--blue); background: var(--deep-bg); border-radius: 0 10px 10px 0; color: var(--muted); }
.app-product { display: grid; grid-template-columns: minmax(280px,.82fr) minmax(0,1.18fr); gap: 36px; align-items: center; }
.app-shot { min-height: 320px; max-height: 420px; padding: 12px; }
.app-shot img { max-height: 396px; width: 100%; object-fit: contain; object-position: center; }
.app-icon { width: 68px; height: 68px; border-radius: 14px; object-fit: contain; background: var(--surface-2); border: 1px solid var(--line); padding: 5px; }
.site-footer { background: #0A1628; color: #A0AEC0; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 190px 1fr; gap: 44px; }
.footer-logo-wrap { display: inline-flex; min-height: 44px; align-items: center; }
.footer-logo { height: 32px; max-width: 140px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.footer-brand strong { color: #fff; font-size: 28px; }
.footer-brandline { color: #fff; font-weight: 800; }
.footer-brandline span { color: #A0AEC0; font-weight: 600; margin-left: 6px; }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px; }
.footer-links h2 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.footer-links a { display: block; color: #A0AEC0; min-height: 32px; }
.footer-links a:hover { color: #fff; }
.footer-note { border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; padding-top: 20px; font-size: 13px; }
.footer-note p { margin-bottom: 8px; }
.overlay { position: fixed; z-index: 1100; inset: 0; background: rgba(10,22,40,.42); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.overlay.is-open { opacity: 1; pointer-events: auto; }
.catalog-panel, .search-layer { position: fixed; z-index: 1200; left: 0; right: 0; top: 90px; visibility: hidden; pointer-events: none; opacity: 0; transform: translateY(-10px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.catalog-panel { background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 90px); overflow-y: auto; }
.catalog-panel.is-open, .search-layer.is-open { visibility: visible; pointer-events: auto; opacity: 1; transform: translateY(0); }
.catalog-shell { padding: 20px 0 28px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.panel-brand { display: flex; align-items: center; gap: 10px; color: var(--title); }
.panel-logo { height: 30px; width: auto; max-width: 130px; object-fit: contain; }
.catalog-groups { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.catalog-group { background: var(--deep-bg); border-radius: 12px; padding: 16px; }
.catalog-group h2 { font-size: 15px; color: var(--blue); }
.catalog-group a { display: block; padding: 9px 0; border-top: 1px solid var(--line); color: var(--title); }
.catalog-group a:first-of-type { border-top: 0; }
.catalog-group b { display: block; font-size: 14px; }
.catalog-group span { display: block; color: var(--soft); font-size: 12px; line-height: 1.55; margin-top: 2px; }
.search-layer { display: flex; justify-content: center; padding: 0 16px; }
.search-card { width: min(760px, 100%); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 0 0 16px 16px; padding: 24px; }
.search-card h2 { margin: 2px 0 0; }
.search-faux label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.search-faux input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid rgba(0,51,160,.25); border-radius: 10px; color: var(--text); background: #fff; }
.search-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.search-presets a { display: inline-flex; min-height: 40px; align-items: center; padding: 4px 11px; border: 1px solid var(--line); border-radius: 8px; }
.search-note { color: var(--soft); font-size: 13px; margin: 14px 0 0; }
.mobile-bottom-nav { display: none; }
@media (max-width: 980px) {
    .home-tags { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .card-grid.four { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .catalog-groups { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
    body { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
    .section-tabs { display: none; }
    .site-main { padding-top: 110px; }
    .masthead-inner { gap: 8px; }
    .brand-mark { min-width: 62px; }
    .brand-logo { max-width: 95px; height: 30px; }
    .catalog-button, .app-link { padding: 0 12px; min-height: 44px; font-size: 14px; }
    .page { padding-top: 18px; }
    .section-block { padding: 26px 0; }
    .section-head { display: block; }
    .section-head p { margin-top: 8px; }
    .card-grid, .card-grid.two, .card-grid.four, .split, .split.reverse, .app-product { grid-template-columns: 1fr; }
    .home-tags { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .home-tag { min-height: auto; }
    .number-item { grid-template-columns: 48px 1fr; }
    .number-item a { grid-column: 2; }
    .shelf-row { grid-template-columns: 1fr; gap: 6px; }
    .catalog-panel, .search-layer { top: 90px; }
    .catalog-groups { grid-template-columns: 1fr; }
    .search-layer { inset: 90px 0 0; padding: 0; background: var(--deep-bg); overflow-y: auto; }
    .search-card { min-height: calc(100vh - 90px); border: 0; border-radius: 0; box-shadow: none; }
    .footer-links { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
    .mobile-bottom-nav {
        position: fixed; z-index: 1005; left: 0; right: 0; bottom: 0; height: calc(50px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5,1fr);
    }
    .mobile-bottom-nav a { color: var(--muted); display: flex; min-width: 0; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
    .mobile-bottom-nav a.is-current { background: var(--blue); color: #fff; }
    .app-shot { max-height: 390px; }
}
@media (max-width: 420px) {
    .shell { width: calc(100% - 32px); }
    .home-tags { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr 1fr; }
    h1 { font-size: 28px; }
    .rank-row { grid-template-columns: 60px 1fr; }
}
