:root {
  --bg:#0b1220;--surface:#141e30;--ink:#e8eef8;--muted:#9aadc4;--line:#2a3b55;
  --brand:#d4af37;--brand-deep:#f0d78c;--accent:#4da3ff;--chip:#1a2740;
  --shadow:0 16px 40px rgba(0,0,0,.45);--radius:14px;--max:1100px;
  --font:"Segoe UI","Noto Sans SC","Microsoft YaHei",sans-serif;
  --header-bg:rgba(11,18,32,.95);--nav-hover:#1c2c46;--footer-bg:#060a12;
  --bg-image:radial-gradient(700px 320px at 15% 0,rgba(212,175,55,.12),transparent 55%),linear-gradient(180deg,#0b1220,#101a2c);--btn-ink:#0b1220;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-image);
  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; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: var(--header-bg);
  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: var(--nav-hover); color: 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; }
.ads-wrap { margin: 1rem 0 1.4rem; padding: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.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: var(--btn-ink, #fff); }
.btn-primary:hover { filter: brightness(1.05); text-decoration: none; color: var(--btn-ink, #fff); }
.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; }
.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: var(--footer-bg); 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; }
.outlinks { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.outlinks a {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem;
  color: var(--brand-deep); text-decoration: none; font-weight: 600;
}
.outlinks a:hover { background: var(--nav-hover); }
.faq-item { margin-bottom: .7rem; background: var(--chip); border: 1px solid var(--line); border-radius: 14px; padding: .95rem; }
.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; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; }
th, td { border: 1px solid var(--line); padding: .7rem .8rem; text-align: left; vertical-align: top; font-size: .94rem; }
th { background: var(--chip); color: var(--brand-deep); }
.grid-shots, .grid-partners, .grid-2, .grid-3 { display: grid; gap: 1rem; margin: 1rem 0 1.2rem; }
.grid-shots { grid-template-columns: repeat(3, 1fr); }
.grid-partners { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.shot, .partner, .feature { background: var(--chip); border: 1px solid var(--line); border-radius: 14px; padding: .95rem; width: 100%; margin: 0; }
.shot img, .partner img, .article-official img, .hero-side img, .hero-visual img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #fff;
}
.shot figcaption, .partner figcaption { margin-top: .45rem; font-size: .86rem; color: var(--muted); text-align: center; }
.shot img { width: 100%; height: auto; object-fit: unset; aspect-ratio: auto; }
.partner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 120px;
}
.partner img {
  width: 100%;
  height: 88px;
  object-fit: contain;
  object-position: center;
  padding: .5rem;
}
.hero-media { min-height: 280px; background-size: cover; background-position: center; }
.official-hero .logo-lg { width: 72px; height: 72px; object-fit: cover; }
.brand img { width: 42px !important; height: 42px !important; object-fit: cover; }
.feature h3 { margin: 0 0 .4rem; }
.feature p { margin: 0; font-size: .95rem; }
.note { background: var(--chip); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; margin-top: 1rem; }

.tpl-ink .nav a{border-radius:8px}
.tpl-ink .btn-primary{border-radius:8px;background:var(--brand);color:#1a1405}
.tpl-ink .official-hero{padding:1.5rem 0 1rem}
.tpl-ink .official-hero-panel{border:1px solid #3a4f73;border-radius:16px;padding:1.55rem;background:linear-gradient(145deg,#152746,#0d1a30);box-shadow:var(--shadow)}
.tpl-ink .brand-row{display:flex;align-items:center;gap:.8rem;margin-bottom:.8rem}
.tpl-ink .brand-row img{width:56px;height:56px;border-radius:12px}
.tpl-ink .official-hero h1{margin:0 0 .7rem;font-size:clamp(1.45rem,2.5vw,2.1rem);color:#fff}
.tpl-ink .official-hero .lead{margin:0 0 1rem;color:#a9c0da;max-width:42rem}
.tpl-ink .cta-row{display:flex;flex-wrap:wrap;gap:.65rem}
.tpl-ink .metric-row{display:grid;grid-template-columns:repeat(4,1fr);gap:.7rem;margin-top:1rem}
.tpl-ink .metric-row .m{background:var(--chip);border:1px solid var(--line);border-radius:12px;padding:.85rem;text-align:center}
.tpl-ink .metric-row strong{display:block;color:var(--brand);font-size:1.15rem}
.tpl-ink .article-official{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:1.35rem}
.tpl-ink .article-official h2{color:var(--brand-deep);border-bottom:1px solid #2a3b55;padding-bottom:.4rem}
@media(max-width:860px){.tpl-ink .metric-row{grid-template-columns:1fr 1fr}}


.site-header .header-ads { border-top: 1px solid var(--line); background: var(--surface, #fff); }
.site-header .header-ads .ads-wrap { margin: 0; padding: .55rem .75rem; border: none; border-radius: 0; background: transparent; box-shadow: none; }
.site-header #ads { margin: 0; gap: 10px 12px; }
.site-header #ads img { width: 56px !important; height: 56px !important; }
.top-ads-bar { background: var(--surface, #fff); border-bottom: 1px solid var(--line); padding: .5rem .75rem; }
.top-ads-bar .ads-wrap { margin: 0 auto; max-width: var(--max, 1120px); border: none; background: transparent; padding: .35rem 0; }
.shot, .partner, .feature { width: 100%; margin: 0; }
.shot img, .article-official img, .hero-side img, .hero-visual img { width: 100%; max-width: 100%; height: auto; display: block; border-radius: 10px; background: #fff; }
.shot img { object-fit: unset; aspect-ratio: auto; }
.partner { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 120px; }
.partner img { width: 100%; height: 88px; object-fit: contain; object-position: center; padding: .5rem; }
.hero-media { min-height: 280px; background-size: cover; background-position: center; }

@media (max-width: 960px) {
  .grid-shots, .grid-partners, .grid-3, .grid-2, .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; }
  .grid-shots, .grid-partners, .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
}

/* ===== mobile harden ===== */
.header-inner { position: relative; }
@media (max-width: 760px) {
  .site-header .header-ads .ads-wrap { padding: .4rem .2rem; }
  .site-header #ads { gap: 8px; }
  .site-header #ads > div { width: 52px; flex: 0 0 52px; }
  .site-header #ads img { width: 52px !important; height: 52px !important; }
  .nav {
    top: calc(100% + 6px) !important;
    z-index: 60;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    background: var(--surface, #fff) !important;
    color: var(--ink);
  }
  .nav a { color: var(--ink) !important; }
  .official-hero { padding-top: 1rem; }
  .official-hero h1 { word-break: break-word; }
  .cta-row { gap: .5rem; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .tpl-block .block-main,
  .tpl-block .block-side .b,
  .tpl-block .article-official {
    box-shadow: 4px 4px 0 #111827 !important;
  }
  .tpl-neon .official-hero-panel::before { display: none; }
  .hero-media { min-height: 180px !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  body { overflow-x: hidden; }
  .container { width: min(100% - 1.25rem, var(--max)); }
}
