:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --ink: #12233a;
  --muted: #5b6b7f;
  --line: #d7e0ec;
  --brand: #0b4ea2;
  --brand-deep: #083a7a;
  --accent: #e8a317;
  --ok: #0f7a4c;
  --shadow: 0 12px 30px rgba(12, 35, 64, 0.08);
  --radius: 14px;
  --max: 1120px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(11, 78, 162, 0.12), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(232, 163, 23, 0.12), transparent 55%),
    var(--bg);
  line-height: 1.75;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: .5rem 1rem; z-index: 1000;
}
.skip:focus { left: 1rem; top: 1rem; }

.topbar {
  background: linear-gradient(90deg, #083a7a, #0b4ea2 55%, #1260c4);
  color: #eef5ff;
  font-size: .92rem;
  padding: .55rem 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar strong { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none;
}
.brand img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 1.05rem; color: var(--brand-deep); }
.brand-text span { font-size: .78rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  color: var(--ink); padding: .45rem .7rem; border-radius: 999px; font-size: .92rem; text-decoration: none;
}
.nav a:hover, .nav a.active { background: #e8f0fb; color: var(--brand-deep); }
.nav .btn {
  background: var(--brand); color: #fff !important; padding: .5rem .95rem; margin-left: .25rem;
}
.nav .btn:hover { background: var(--brand-deep); }

.menu-toggle {
  display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--ink); display: block; }

.hero {
  padding: 2.4rem 0 1.2rem;
}
.hero-panel {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.5rem; align-items: center;
  background: linear-gradient(145deg, #0b4ea2, #0a325f 60%, #0f1f36);
  color: #f4f8ff; border-radius: 22px; padding: 1.6rem; box-shadow: var(--shadow); overflow: hidden;
  position: relative;
}
.hero-panel::after {
  content: ""; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(232,163,23,.35), transparent 70%); pointer-events: none;
}
.hero-copy h1 {
  margin: 0 0 .8rem; font-size: clamp(1.55rem, 2.6vw, 2.25rem); line-height: 1.25; letter-spacing: .02em;
}
.hero-copy p { margin: 0 0 1rem; color: #d7e6fb; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: .9rem; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .72rem 1.15rem; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #1d1400; }
.btn-primary:hover { filter: brightness(1.05); color: #1d1400; text-decoration: none; }
.btn-ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem; font-size: .86rem; color: #c9daf1; }
.hero-meta span {
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: .25rem .7rem; background: rgba(255,255,255,.06);
}
.hero-visual {
  border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 16px 36px rgba(0,0,0,.28); background: #0a2344;
}
.hero-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.ads-wrap {
  margin: 1rem 0 1.4rem; padding: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}

.layout {
  display: grid; grid-template-columns: 230px 1fr; gap: 1.4rem; align-items: start; padding-bottom: 2.5rem;
}
.toc {
  position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow);
}
.toc h2 { margin: 0 0 .7rem; font-size: .95rem; }
.toc a {
  display: block; color: var(--muted); padding: .35rem 0; border-bottom: 1px dashed #e6edf6;
  font-size: .9rem; text-decoration: none;
}
.toc a:last-child { border-bottom: 0; }
.toc a:hover { color: var(--brand); }

.content-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.35rem 1.35rem 1.8rem; box-shadow: var(--shadow);
}
.content-card h2 {
  margin: 1.8rem 0 .8rem; font-size: 1.35rem; color: var(--brand-deep);
  padding-left: .7rem; border-left: 4px solid var(--accent);
}
.content-card h2:first-child { margin-top: .2rem; }
.content-card h3 { margin: 1.2rem 0 .55rem; font-size: 1.08rem; }
.content-card p { margin: 0 0 .9rem; color: #24384f; }
.content-card ul, .content-card ol { margin: 0 0 1rem; padding-left: 1.2rem; color: #24384f; }
.content-card li { margin-bottom: .35rem; }
.lead {
  font-size: 1.05rem; background: #f7faff; border: 1px solid #dce8f7; border-radius: 12px; padding: 1rem 1.1rem;
}

.grid-3, .grid-2, .grid-partners, .grid-shots {
  display: grid; gap: 1rem; margin: 1rem 0 1.2rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-partners { grid-template-columns: repeat(4, 1fr); }
.grid-shots { grid-template-columns: repeat(3, 1fr); }

.feature, .shot, .partner, .faq-item, .note {
  background: #f8fbff; border: 1px solid #e2ebf6; border-radius: 14px; padding: .95rem;
}
.feature h3 { margin: 0 0 .4rem; }
.feature p { margin: 0; font-size: .95rem; }
.shot img, .partner img { width: 100%; border-radius: 10px; object-fit: contain; background: #fff; }
.shot figcaption, .partner figcaption {
  margin-top: .45rem; font-size: .86rem; color: var(--muted); text-align: center;
}
.shot img { aspect-ratio: 16/10; object-fit: cover; }
.partner img { height: 72px; object-fit: contain; padding: .4rem; }

.table-wrap { overflow-x: auto; margin: 1rem 0; }
table {
  width: 100%; border-collapse: collapse; min-width: 560px; background: #fff;
}
th, td {
  border: 1px solid #dbe5f1; padding: .7rem .8rem; text-align: left; vertical-align: top; font-size: .94rem;
}
th { background: #eef4fc; color: var(--brand-deep); }

.outlinks {
  display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0;
}
.outlinks a {
  background: #fff; border: 1px solid #c9daf0; border-radius: 999px; padding: .45rem .9rem;
  color: var(--brand-deep); text-decoration: none; font-weight: 600;
}
.outlinks a:hover { background: #eaf2fc; }

.faq-item { margin-bottom: .7rem; }
.faq-item summary {
  cursor: pointer; font-weight: 700; color: var(--brand-deep); list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: .55rem 0 0; }

.page-hero {
  padding: 1.8rem 0 1rem;
}
.page-hero h1 { margin: 0 0 .5rem; font-size: clamp(1.45rem, 2.4vw, 2rem); }
.page-hero p { margin: 0; color: var(--muted); max-width: 46rem; }

.simple-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.3rem; box-shadow: var(--shadow); margin-bottom: 2rem;
}
.simple-card h2 { margin-top: 1.4rem; color: var(--brand-deep); }
.simple-card h2:first-child { margin-top: 0; }

.error-page {
  min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 2rem 1rem;
}
.error-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 2rem 1.4rem; max-width: 520px; box-shadow: var(--shadow);
}
.error-box h1 { margin: 0 0 .6rem; font-size: 2rem; color: var(--brand-deep); }

.site-footer {
  background: #0d213b; color: #d5e2f4; padding: 2rem 0 1.4rem; margin-top: 1rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem;
}
.site-footer a { color: #cfe0f7; }
.site-footer h3 { margin: 0 0 .7rem; font-size: 1rem; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; font-size: .88rem; color: #9eb2cc;
}

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .hero-panel, .grid-3, .grid-2, .grid-partners, .grid-shots, .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 1rem; right: 1rem; top: 72px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    flex-direction: column; align-items: stretch; padding: .6rem; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { border-radius: 10px; }
  .nav .btn { margin-left: 0; text-align: center; }
  .hero-panel, .grid-3, .grid-2, .grid-partners, .grid-shots, .footer-grid { grid-template-columns: 1fr; }
  .content-card, .simple-card { padding: 1rem; }
}

/* official topbar - readable header strip */
.topbar{
  background:linear-gradient(90deg,#0b4ea2,#1260c4);
  color:#eef5ff;
  font-size:.86rem;
  padding:.45rem 0;
  line-height:1.4;
}
.topbar .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:.75rem;
  flex-wrap:nowrap;
}
.topbar-brand{font-weight:600;color:#fff;white-space:nowrap}
.topbar-domain{opacity:.92;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:760px){
  .topbar{font-size:.8rem;padding:.4rem 0}
  .topbar .container{justify-content:center;gap:.35rem}
  .topbar-domain::before{content:"· ";opacity:.7}
}


/* ads: keep square, avoid oversized icons */
.ads-wrap.ads-header{
  margin:0;
  padding:.5rem .75rem .35rem;
  border:none;
  border-bottom:1px solid rgba(0,0,0,.06);
  border-radius:0;
  background:#fff;
}
.ads-wrap #ads{
  margin:4px 0 !important;
  gap:8px 12px !important;
}
.ads-wrap #ads img,.ads-header #ads img,#ads img{
  width:56px !important;
  height:56px !important;
  max-width:56px !important;
  max-height:56px !important;
  aspect-ratio:1/1 !important;
  object-fit:cover !important;
  object-position:center center;
  display:block;
  border-radius:12px;
}
.ads-wrap #ads figure{margin:0;width:56px}
.ads-wrap #ads > div{width:60px;flex:0 0 60px}
.ads-wrap #ads .caption,.ads-wrap #ads figcaption{
  font-size:11px;
  max-width:60px;
  margin-top:3px;
  color:#666;
}

/* full domain outlink chain */
.outlinks-chain{margin:1.2rem 0 1.6rem}
.outlinks-chain h2,.outlinks-chain h3{margin:0 0 .7rem;font-size:1.15rem}
.outlinks-chain p.note{margin:0 0 .8rem;color:#5b6b7f;font-size:.92rem}
.outlinks{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem .65rem;
  margin:0;
}
.outlinks a{
  display:inline-flex;
  align-items:center;
  background:#fff;
  border:1px solid #c9daf0;
  border-radius:999px;
  padding:.4rem .85rem;
  color:#083a7a;
  text-decoration:none;
  font-weight:600;
  font-size:.88rem;
  line-height:1.3;
}
.outlinks a:hover{background:#eaf2fc;color:#0b4ea2;text-decoration:none}
.outlinks a .dom{
  margin-left:.35rem;
  font-weight:500;
  color:#5b6b7f;
  font-size:.8rem;
}
@media (max-width:760px){
  .outlinks a{font-size:.82rem;padding:.38rem .7rem}
  .outlinks a .dom{display:none}
}

