:root {
    --bg: #F3FBFA;
    --deep-bg: #E4F4F1;
    --surface: #FFFFFF;
    --soft: #D4EFEC;
    --ink: #0D2E2B;
    --text: #163834;
    --muted: #4A706C;
    --assist: #6A8E89;
    --brand: #0E9A88;
    --bright: #1EC8B6;
    --deep: #0A6B5E;
    --porcelain: #F7FFFE;
    --border: rgba(14,154,136,0.16);
    --border-strong: rgba(14,154,136,0.42);
    --shadow: 0 12px 28px rgba(10,107,94,0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
}
body.panel-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(30,200,182,0.32); outline-offset: 2px; }
.site-top { position: fixed; inset: 0 0 auto 0; z-index: 80; }
.qingline { height: 22px; background: var(--deep); color: #fff; font-size: 12px; }
.top-inner, .curtain-inner, .mirror-inner, .footer-inner, .page-wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.top-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; }
.text-button { border: 0; background: transparent; color: #fff; min-height: 22px; padding: 0 4px; }
.curtainbar { height: 60px; background: #fff; border-bottom: 1px solid var(--border); }
.curtain-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand-lockup { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.brand-logo { height: 28px; width: auto; object-fit: contain; object-position: center; }
.brand-text { font-size: 16px; font-weight: 800; color: var(--ink); }
.drawer-button, .app-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; }
.drawer-button { border: 1px solid var(--border-strong); background: var(--porcelain); color: var(--deep); padding: 0 20px; }
.app-link { justify-self: end; color: #fff; padding: 0 18px; background: linear-gradient(135deg,#1EC8B6 0%,#0E9A88 55%,#0A6B5E 100%); }
.mirror-tabs { height: 40px; background: var(--porcelain); border-bottom: 1px solid var(--border); }
.mirror-inner { height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mirror-inner a { height: 30px; padding: 0 16px; border-radius: 8px; display: inline-flex; align-items: center; font-size: 13px; color: var(--text); }
.mirror-inner a:hover { background: var(--deep-bg); }
.mirror-inner a.active { background: var(--brand); color: #fff; }
.site-main { min-height: 70vh; padding-top: 122px; }
.page-wrap { padding: 34px 0 64px; }
.page-hero { margin-bottom: 24px; }
.eyebrow { color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 8px 0 12px; color: var(--ink); font-size: 24px; line-height: 1.3; }
h2 { margin: 0 0 12px; color: var(--ink); font-size: 20px; line-height: 1.4; }
h3 { margin: 0 0 8px; color: var(--ink); font-size: 16px; line-height: 1.5; }
p { margin: 0 0 14px; }
.lead { max-width: 820px; color: var(--muted); font-size: 16px; }
.section { margin-top: 30px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section-head p { margin: 0; color: var(--muted); max-width: 620px; }
.card, .article-block, .index-card, .timeline-item, .faq-item, .rule-block { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.card, .article-block, .rule-block { padding: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.card p:last-child, .article-block p:last-child, .rule-block p:last-child { margin-bottom: 0; }
.card-link { display: inline-flex; margin-top: 10px; min-height: 44px; align-items: center; color: var(--deep); font-weight: 700; }
.image-slot { width: 100%; background: var(--porcelain); border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.image-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.slot-banner { height: 260px; }
.slot-wide { height: 200px; }
.slot-card { height: 180px; margin-bottom: 14px; }
.slot-app { max-height: 360px; min-height: 280px; }
.slot-app img { max-height: 360px; width: 100%; object-fit: contain; }
.cover-copy { background: var(--surface); border: 1px solid var(--border); border-radius: 0 0 14px 14px; padding: 22px; }
.cover-copy h1 { margin-top: 4px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn { min-height: 42px; padding: 0 18px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.btn-primary { color: #fff; background: linear-gradient(135deg,#1EC8B6 0%,#0E9A88 55%,#0A6B5E 100%); }
.btn-secondary { color: var(--deep); background: #fff; border: 1px solid var(--border-strong); }
.btn:hover { transform: translateY(-1px); }
.number-list { display: grid; gap: 10px; }
.number-item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.number { color: var(--brand); font-size: 22px; font-weight: 800; line-height: 1; }
.number-item p { margin: 3px 0 0; color: var(--muted); }
.shelf-list { display: grid; gap: 12px; }
.shelf-row { display: grid; grid-template-columns: minmax(140px,.7fr) minmax(0,1.6fr) auto; gap: 16px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.shelf-row span { color: var(--muted); }
.shelf-row a { min-height: 44px; display: inline-flex; align-items: center; color: var(--deep); font-weight: 700; }
.timeline { position: relative; margin-left: 7px; padding-left: 24px; }
.timeline:before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--border-strong); }
.timeline-item { position: relative; padding: 18px 20px; margin-bottom: 14px; }
.timeline-item:before { content: ""; position: absolute; left: -25px; top: 25px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 3px solid var(--bg); }
.status { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--deep-bg); color: var(--deep); font-size: 12px; font-weight: 700; }
.meta-line { color: var(--assist); font-size: 13px; margin-bottom: 8px; }
.article-stack { display: grid; gap: 16px; }
.topic-index { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.topic-index a { min-height: 110px; display: block; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.topic-index a span { display: block; color: var(--muted); margin-top: 6px; }
.notice { padding: 16px 18px; border-left: 4px solid var(--brand); background: var(--deep-bg); border-radius: 10px; color: var(--text); }
.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 18px 20px; }
.faq-item h2 { font-size: 16px; margin-bottom: 8px; }
.faq-item p { margin-bottom: 0; color: var(--text); }
.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.contact-card p { margin-bottom: 0; color: var(--muted); }
.site-footer { background: var(--deep); color: #D4EFEC; border-top: 1px solid rgba(247,255,254,.24); }
.footer-inner { padding: 34px 0 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.footer-logo { height: 28px; width: auto; object-fit: contain; }
.footer-brand strong { color: #fff; display: block; font-size: 16px; }
.footer-brand span { font-size: 12px; }
.footer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; padding-top: 20px; border-top: 1px solid rgba(247,255,254,.2); }
.footer-grid h2 { color: #fff; font-size: 13px; margin-bottom: 8px; }
.footer-grid a { display: block; min-height: 34px; color: #D4EFEC; font-size: 13px; }
.footer-grid a:hover { color: #fff; }
.footer-note, .copyright { font-size: 13px; }
.footer-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(247,255,254,.2); }
.copyright { margin-bottom: 0; color: rgba(212,239,236,.85); }
.page-mask { position: fixed; inset: 0; background: rgba(13,46,43,.46); opacity: 0; visibility: hidden; pointer-events: none; z-index: 90; transition: opacity .2s ease, visibility .2s ease; }
.page-mask.show { opacity: 1; visibility: visible; pointer-events: auto; }
.menu-drawer { position: fixed; left: 50%; bottom: 0; width: min(720px, calc(100% - 24px)); max-height: 70vh; transform: translate(-50%, 105%); background: var(--porcelain); border: 1px solid var(--border-strong); border-radius: 18px 18px 0 0; box-shadow: 0 -18px 48px rgba(13,46,43,.18); z-index: 100; visibility: hidden; pointer-events: none; transition: transform .25s ease, visibility .25s ease; }
.menu-drawer.open { transform: translate(-50%, 0); visibility: visible; pointer-events: auto; }
.drawer-head { min-height: 60px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: #fff; border-radius: 18px 18px 0 0; }
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.icon-close { min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--deep); }
.drawer-scroll { overflow-y: auto; max-height: calc(70vh - 60px); padding: 14px 16px 24px; }
.drawer-group { margin-bottom: 18px; }
.drawer-group h2 { font-size: 13px; color: var(--brand); margin-bottom: 8px; }
.drawer-group a { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 11px 12px; min-height: 52px; border-radius: 10px; }
.drawer-group a:hover { background: var(--deep-bg); }
.drawer-group strong { color: var(--ink); }
.drawer-group span { color: var(--muted); font-size: 13px; }
.search-layer { position: fixed; top: 82px; left: 50%; width: min(720px, calc(100% - 32px)); transform: translate(-50%, -20px); opacity: 0; visibility: hidden; pointer-events: none; z-index: 110; transition: .2s ease; }
.search-layer.open { transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto; }
.search-card { background: #fff; border: 1px solid var(--border-strong); border-radius: 0 0 14px 14px; padding: 20px; box-shadow: var(--shadow); }
.search-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.search-head strong { display: block; color: var(--ink); font-size: 18px; }
.search-head span { color: var(--muted); font-size: 13px; }
.search-form { margin-top: 16px; }
.search-form label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.search-row input { min-width: 0; min-height: 44px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 0 12px; color: var(--ink); background: var(--porcelain); }
.search-row button { min-height: 44px; border: 0; border-radius: 10px; padding: 0 16px; background: var(--deep); color: #fff; }
.search-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.search-presets a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--porcelain); color: var(--deep); }
.search-empty { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.mobile-bottom { display: none; }

@media (max-width: 820px) {
    .mirror-tabs { display: none; }
    .site-main { padding-top: 82px; }
    .page-wrap { padding-top: 24px; padding-bottom: 78px; }
    .top-inner, .curtain-inner, .footer-inner, .page-wrap { width: calc(100% - 32px); }
    .curtain-inner { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; }
    .brand-lockup { min-width: 0; }
    .brand-logo { max-width: 120px; }
    .drawer-button, .app-link { padding: 0 12px; white-space: nowrap; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid-2, .topic-index, .contact-grid { grid-template-columns: 1fr; }
    .shelf-row { grid-template-columns: 1fr; gap: 6px; }
    .slot-banner { height: 220px; }
    .slot-wide, .slot-card { height: 170px; }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
    .site-footer { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
    .mobile-bottom { position: fixed; left: 0; right: 0; bottom: 0; height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,1fr); background: #fff; border-top: 1px solid var(--border-strong); z-index: 70; }
    .mobile-bottom a { min-height: 48px; display: flex; align-items: center; justify-content: center; color: var(--deep); font-size: 13px; }
    .mobile-bottom a.active { background: var(--brand); color: #fff; }
    .menu-drawer { width: 100%; max-height: 78vh; border-left: 0; border-right: 0; }
    .drawer-scroll { max-height: calc(78vh - 60px); padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
    .drawer-group a { grid-template-columns: 92px 1fr; }
    .search-layer { inset: 0; width: 100%; transform: translateY(-10px); background: var(--deep); color: #fff; }
    .search-layer.open { transform: translateY(0); }
    .search-card { min-height: 100%; border: 0; border-radius: 0; background: var(--deep); color: #fff; padding: 22px 16px calc(80px + env(safe-area-inset-bottom)); }
    .search-head strong, .search-head span, .search-form label { color: #fff; }
    .search-head .icon-close { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
    .search-row input { background: #fff; color: var(--ink); border-color: transparent; }
    .search-row button { background: #fff; color: var(--deep); }
    .search-presets a { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
    .search-empty { color: #D4EFEC; }
}

@media (max-width: 480px) {
    h1 { font-size: 24px; }
    .cover-copy { padding: 18px; }
    .button-row { display: grid; grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .drawer-group a { grid-template-columns: 1fr; gap: 2px; }
}
