:root {
  --bg: #FFFFFF;
  --deep-bg: #F5F7FA;
  --content-bg: #FFFFFF;
  --sub-bg: #EEF1F6;
  --title: #0A1628;
  --text: #1E2A3A;
  --muted: #4A5568;
  --soft: #718096;
  --brand: #0033A0;
  --bright: #0052CC;
  --deep: #002066;
  --line: rgba(0,51,160,0.14);
  --shadow: 0 12px 36px rgba(0,33,102,0.08);
  --max: 1220px;
  --header-desktop: 118px;
  --header-mobile: 78px;
}

* { 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", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
}
body.layer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(0,82,204,.28); outline-offset: 3px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 1200; }
.spine-line { height: 18px; background: var(--deep); color: #fff; }
.top-inner, .cover-inner, .tab-inner, .footer-inner, .site-main, .catalog-panel { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.top-inner { height: 18px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: .08em; }
.spine-brand { font-weight: 700; }
.text-icon-button { border: 0; background: transparent; color: #fff; height: 18px; padding: 0 4px; font-size: 11px; }
.cover-bar { height: 60px; background: #fff; border-bottom: 1px solid var(--line); }
.cover-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.logo-link { justify-self: start; min-width: 76px; display: inline-flex; align-items: center; min-height: 44px; }
.site-logo { max-height: 36px; width: auto; object-fit: contain; }
.logo-text { font-size: 25px; font-weight: 900; color: var(--deep); letter-spacing: -.04em; }
.catalog-button, .app-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; padding: 0 18px; font-weight: 800; }
.catalog-button { border: 1px solid var(--line); background: #fff; color: var(--brand); }
.catalog-button:hover { background: var(--sub-bg); }
.app-link { justify-self: end; color: #fff; background: linear-gradient(135deg,#0052CC 0%,#0033A0 50%,#002066 100%); }
.tab-bar { height: 40px; background: var(--deep-bg); border-bottom: 1px solid var(--line); }
.tab-inner { height: 40px; display: flex; align-items: center; gap: 8px; }
.tab-link { min-height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 8px; color: var(--muted); font-weight: 700; font-size: 14px; }
.tab-link:hover { color: var(--brand); background: #fff; }
.tab-link.is-current { color: #fff; background: var(--brand); }

.overlay { position: fixed; inset: 78px 0 0; background: rgba(10,22,40,.28); z-index: 1000; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .18s ease, visibility .18s ease; }
.overlay.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.catalog-panel { position: fixed; z-index: 1300; top: 78px; left: 50%; transform: translate(-50%, -8px); max-height: 50vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; box-shadow: var(--shadow); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.catalog-panel.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translate(-50%,0); }
.catalog-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.catalog-brand { display: flex; align-items: center; gap: 12px; }
.catalog-logo { max-height: 32px; width: auto; object-fit: contain; }
.catalog-brand div { display: flex; align-items: baseline; gap: 8px; }
.catalog-brand strong { color: var(--title); font-size: 19px; }
.catalog-brand span { color: var(--soft); font-size: 12px; letter-spacing: .08em; }
.close-button { border: 1px solid var(--line); background: #fff; color: var(--brand); min-height: 44px; border-radius: 10px; padding: 0 14px; font-weight: 800; }
.catalog-groups { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.catalog-group { padding: 20px; border-right: 1px solid var(--line); }
.catalog-group:last-child { border-right: 0; }
.catalog-group h2 { margin: 0 0 12px; font-size: 14px; color: var(--brand); }
.catalog-items { display: grid; gap: 8px; }
.catalog-items a { padding: 10px; border-radius: 10px; background: var(--deep-bg); display: block; }
.catalog-items a:hover { background: var(--sub-bg); }
.catalog-items strong { display: block; color: var(--title); font-size: 14px; margin-bottom: 2px; }
.catalog-items span { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }

.search-panel { position: fixed; z-index: 1310; top: 78px; left: 50%; width: min(calc(100% - 32px), 860px); transform: translate(-50%, -8px); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.search-panel.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translate(-50%,0); }
.search-card { background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; box-shadow: var(--shadow); padding: 22px; }
.search-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.search-head h2 { margin: 3px 0 0; font-size: 22px; color: var(--title); }
.search-appearance { margin-top: 18px; }
.search-appearance label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.search-appearance input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; color: var(--title); background: var(--deep-bg); }
.search-appearance p { margin: 8px 0 0; font-size: 12px; color: var(--soft); }
.preset-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.preset-links a { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--brand); font-weight: 700; }

.site-main { padding-top: calc(var(--header-desktop) + 32px); padding-bottom: 70px; }
.page-hero { background: linear-gradient(180deg,#F8FAFD 0%,#EEF3FA 100%); border: 1px solid var(--line); border-radius: 16px; padding: 28px; margin-bottom: 22px; }
.compact-hero { padding: 30px; }
.page-hero h1 { margin: 4px 0 12px; font-size: clamp(28px,3vw,32px); line-height: 1.25; color: var(--title); letter-spacing: -.02em; }
.lead { max-width: 900px; margin: 0; color: var(--muted); font-size: 17px; }
.section-kicker { color: var(--brand); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

.media-section { margin: 0 0 22px; }
.media-slot { width: 100%; background: var(--deep-bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-fallback { width: 100%; height: 100%; min-height: 180px; display: grid; place-items: center; background: linear-gradient(135deg,#F4F7FB,#EAF0F8); color: var(--deep); }
.media-fallback span { font-size: clamp(30px,7vw,72px); font-weight: 900; opacity: .16; }
.cover-media { max-height: 300px; aspect-ratio: 16/9; }
.content-media { min-height: 220px; aspect-ratio: 16/7; }
.card-media { height: 200px; }
.app-media { max-height: 420px; aspect-ratio: 3/4; }

.home-cover { margin-bottom: 24px; }
.home-cover-copy { padding: 20px 4px 4px; }
.home-cover-copy h1 { font-size: clamp(28px,3.6vw,34px); margin: 4px 0 10px; color: var(--title); }
.home-cover-copy p { margin: 0; max-width: 900px; color: var(--muted); }
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.primary-button, .secondary-button { min-height: 44px; border-radius: 10px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.primary-button { color: #fff; background: linear-gradient(135deg,#0052CC 0%,#0033A0 50%,#002066 100%); }
.secondary-button { color: var(--brand); border: 1px solid var(--brand); background: #fff; }

.section-block { margin: 48px 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-head h2 { margin: 4px 0 0; color: var(--title); font-size: 24px; }
.section-head p { margin: 0; max-width: 650px; color: var(--muted); }
.text-link { color: var(--brand); font-weight: 800; }

.page-card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.page-card { min-height: 138px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(0,33,102,.04); }
.page-card .chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; border-radius: 7px; background: var(--bright); color: #fff; font-size: 12px; font-weight: 900; }
.page-card:nth-child(even) .chip { background: var(--deep); }
.page-card h3 { margin: 12px 0 6px; font-size: 18px; color: var(--title); }
.page-card p { margin: 0 0 12px; color: var(--muted); }

.focus-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); gap: 18px; align-items: stretch; }
.focus-copy, .list-panel, .prose-card, .side-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.focus-copy { padding: 24px; }
.number-list { display: grid; gap: 10px; margin-top: 18px; }
.number-list a { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.number-list a:first-child { border-top: 0; }
.number-list b { color: var(--bright); font-size: 24px; line-height: 1; }
.number-list strong { color: var(--title); }
.number-list span { display: block; color: var(--muted); font-size: 13px; }

.four-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.feature-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.feature-card .copy { padding: 16px; }
.feature-card h3 { margin: 0 0 8px; color: var(--title); }
.feature-card p { margin: 0 0 12px; color: var(--muted); }
.six-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.theme-tile { min-height: 120px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg,#fff,#F6F9FD); }
.theme-tile h3 { margin: 0 0 6px; color: var(--title); }
.theme-tile p { margin: 0; color: var(--muted); font-size: 14px; }

.shelf-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.shelf-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; padding: 18px; border-top: 1px solid var(--line); }
.shelf-row:first-child { border-top: 0; }
.shelf-row strong { color: var(--title); }
.shelf-row p { margin: 3px 0 0; color: var(--muted); }
.shelf-label { color: #fff; background: var(--deep); min-height: 34px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }

.big-order { display: grid; gap: 10px; }
.big-order a { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; }
.big-order b { font-size: 38px; line-height: 1; color: var(--bright); }
.big-order h3 { margin: 0 0 4px; color: var(--title); }
.big-order p { margin: 0; color: var(--muted); }
.status-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.status-card { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 18px; }
.status-card strong { color: var(--brand); }
.status-card p { margin-bottom: 0; color: var(--muted); }

.split-section { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.8fr); gap: 18px; align-items: center; }
.split-copy { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.split-copy h2 { color: var(--title); margin-top: 0; }
.split-copy p { color: var(--muted); }
.quote-card { padding: 20px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; background: #fff; margin-bottom: 12px; }
.quote-card strong { display: block; color: var(--brand); margin-bottom: 6px; }
.quote-card p { margin: 0; color: var(--text); }

.content-grid { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 18px; align-items: start; }
.prose-card { padding: 28px; }
.prose-section { padding: 20px 0; border-top: 1px solid var(--line); }
.prose-section:first-child { padding-top: 0; border-top: 0; }
.prose-section h2 { margin: 0 0 10px; color: var(--title); font-size: 21px; }
.prose-section h3 { color: var(--title); }
.prose-section p { margin: 0 0 12px; color: var(--text); }
.prose-section p:last-child { margin-bottom: 0; }
.side-card { padding: 20px; position: sticky; top: 138px; }
.side-card h2, .side-card h3 { color: var(--title); margin-top: 0; }
.side-card p { color: var(--muted); }
.side-links { display: grid; gap: 8px; }
.side-links a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--brand); font-weight: 800; background: #fff; }

.index-list { display: grid; gap: 10px; }
.index-item { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.index-item b { color: var(--bright); font-size: 21px; }
.index-item h3 { margin: 0 0 4px; color: var(--title); }
.index-item p { margin: 0; color: var(--muted); }
.long-strip { display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.long-strip:first-child { border-top: 0; }
.long-strip strong { color: var(--brand); }
.term-list { display: grid; gap: 14px; }
.term { padding: 16px; border-radius: 12px; background: var(--deep-bg); border: 1px solid var(--line); }
.term h3 { margin: 0 0 6px; color: var(--title); }
.term p { margin: 0; color: var(--text); }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq-item h2 { margin: 0 0 8px; color: var(--title); font-size: 18px; }
.faq-item p { margin: 0; color: var(--text); }

.site-footer { background: var(--title); color: #A0AEC0; padding: 42px 0 30px; }
.footer-inner { display: block; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo-wrap { min-height: 44px; display: inline-flex; align-items: center; }
.footer-logo { max-height: 34px; width: auto; object-fit: contain; filter: brightness(4); }
.footer-wordmark { color: #fff; font-weight: 900; font-size: 24px; }
.footer-brand-row div { display: flex; align-items: baseline; gap: 8px; }
.footer-brand-row strong { color: #fff; font-size: 18px; }
.footer-brand-row span { color: #A0AEC0; font-size: 12px; }
.footer-groups { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; padding: 26px 0; }
.footer-groups h2 { margin: 0 0 10px; color: #fff; font-size: 14px; }
.footer-groups a { display: block; color: #A0AEC0; padding: 4px 0; font-size: 14px; }
.footer-groups a:hover { color: #fff; }
.footer-notice { margin: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.copyright { margin: 8px 0 0; font-size: 13px; }
.mobile-bottom-nav { display: none; }

@media (max-width: 980px) {
  .catalog-groups { grid-template-columns: repeat(2,1fr); }
  .catalog-group:nth-child(2) { border-right: 0; }
  .catalog-group { border-bottom: 1px solid var(--line); }
  .focus-layout, .split-section, .content-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .four-grid { grid-template-columns: repeat(2,1fr); }
  .status-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  .top-inner, .cover-inner, .footer-inner, .site-main { width: min(calc(100% - 32px), var(--max)); }
  .tab-bar { display: none; }
  .cover-inner { grid-template-columns: 1fr auto 1fr; gap: 6px; }
  .site-logo { max-height: 30px; }
  .logo-link { min-width: 0; }
  .catalog-button, .app-link { padding: 0 10px; border-radius: 9px; font-size: 13px; min-height: 44px; }
  .app-link { white-space: nowrap; }
  .site-main { padding-top: calc(var(--header-mobile) + 24px); padding-bottom: 92px; }
  .catalog-panel { width: 100%; max-height: 66vh; top: 78px; border-left: 0; border-right: 0; border-radius: 0 0 14px 14px; }
  .catalog-groups { grid-template-columns: 1fr; }
  .catalog-group { border-right: 0; }
  .search-panel { width: calc(100% - 16px); top: 78px; }
  .search-card { background: var(--deep-bg); padding: 18px; }
  .page-hero, .compact-hero { padding: 22px 18px; }
  .page-card-grid, .six-grid { grid-template-columns: 1fr; }
  .four-grid { grid-template-columns: 1fr; }
  .card-media { height: 210px; }
  .status-grid { grid-template-columns: 1fr; }
  .shelf-row { grid-template-columns: 1fr; gap: 8px; }
  .big-order a { grid-template-columns: 64px 1fr; }
  .big-order a .text-link { grid-column: 2; }
  .footer-groups { grid-template-columns: repeat(2,1fr); }
  .mobile-bottom-nav { position: fixed; z-index: 900; left: 0; right: 0; bottom: 0; min-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); box-shadow: 0 -8px 24px rgba(0,33,102,.08); }
  .mobile-bottom-nav a { min-height: 50px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; font-weight: 800; }
  .mobile-bottom-nav a.is-current { color: #fff; background: var(--brand); }
}

@media (max-width: 460px) {
  .top-inner, .cover-inner, .footer-inner, .site-main { width: calc(100% - 32px); }
  .catalog-button { padding: 0 8px; }
  .app-link { padding: 0 8px; font-size: 12px; }
  .page-hero h1 { font-size: 28px; }
  .section-head { align-items: start; flex-direction: column; }
  .index-item { grid-template-columns: 58px 1fr; }
  .long-strip { grid-template-columns: 1fr; gap: 4px; }
  .footer-groups { grid-template-columns: 1fr 1fr; gap: 18px; }
}
