/* 维斯特官网 · 2026-10-06 · 新样式（独立文件名，不覆盖旧页面使用的 /assets/style.css） */

:root {
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Segoe UI", sans-serif;

  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-2: #efefea;
  --ink: #141a22;
  --ink-2: #3a4351;
  --ink-3: #555e6b;
  --line: #dcdcd3;
  --line-soft: #e7e7e0;
  --brand: #0b7a6e;
  --brand-hover: #086358;
  --on-brand: #ffffff;
  --brand-soft: #e2f1ee;
  --live: #0b6b3a;
  --live-soft: #e3f3ea;
  --dev: #8a5300;
  --dev-soft: #fbf0dc;
  --focus: #1d4ed8;
  --radius: 10px;
  --radius-lg: 14px;
  --wrap: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141a;
    --surface: #161c24;
    --surface-2: #1b222c;
    --ink: #e9edf2;
    --ink-2: #c0c8d3;
    --ink-3: #a3adba;
    --line: #2c3542;
    --line-soft: #232b36;
    --brand: #45c9b7;
    --brand-hover: #6fd8c9;
    --on-brand: #06231f;
    --brand-soft: #153430;
    --live: #6fd59b;
    --live-soft: #15301f;
    --dev: #f0b860;
    --dev-soft: #33280f;
    --focus: #8ab4ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)) 0 max(20px, env(safe-area-inset-right)); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #141a22; color: #ffffff; padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; text-decoration: none; }

.ext { font-size: .85em; margin-left: .2em; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .04em; }
.brand-full { font-size: 13px; color: var(--ink-3); padding-left: 10px; border-left: 1px solid var(--line); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav .nav-cta { margin-left: 8px; color: var(--on-brand); background: var(--brand); font-weight: 600; padding: 8px 16px; }
.nav .nav-cta:hover { background: var(--brand-hover); color: var(--on-brand); }

.menu-btn {
  display: none; margin-left: auto; align-items: center; gap: 6px;
  font: inherit; font-size: 14px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 12px; cursor: pointer; min-height: 40px;
}
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

/* ---------- 通用 ---------- */
.eyebrow { font-size: 14px; font-weight: 600; color: var(--brand); letter-spacing: .06em; margin-bottom: 10px; }
.section { padding: 80px 0; border-top: 1px solid var(--line-soft); }
.section-alt { background: var(--surface-2); }
.sec-head { max-width: 760px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 34px); }
.sec-lede { margin-top: 14px; font-size: 16.5px; color: var(--ink-2); }
.sub-title { font-size: 18px; margin: 0 0 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 22px; border-radius: 10px;
  font-size: 16px; font-weight: 600; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }

.status {
  display: inline-block; font-size: 12.5px; font-weight: 600; line-height: 1;
  padding: 6px 9px; border-radius: 999px; margin-bottom: 12px;
}
.status-live { color: var(--live); background: var(--live-soft); }
.status-dev { color: var(--dev); background: var(--dev-soft); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 80px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.2vw, 54px); letter-spacing: .01em; }
.h1-br { display: none; }
.hero .lede { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 640px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
}
.hc-title { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.hc-big { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 16px; }
.hc-big b { font-size: 44px; line-height: 1.1; color: var(--brand); font-variant-numeric: tabular-nums; }
.hc-big span { font-size: 16px; color: var(--ink-2); }
.hc-list li { position: relative; padding: 8px 0 8px 22px; border-top: 1px solid var(--line-soft); font-size: 15px; color: var(--ink-2); }
.hc-list li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.hc-note { margin-top: 12px; font-size: 13px; color: var(--ink-3); }

/* ---------- 平台 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 48px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.step-no { display: block; font-size: 14px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 18px; margin: 8px 0 8px; }
.steps p { font-size: 15px; color: var(--ink-2); }

.platform-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature-list a {
  display: block; height: 100%; padding: 16px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.feature-list a:hover { border-color: var(--brand); text-decoration: none; }
.feature-list b { display: block; font-size: 16px; margin-bottom: 4px; }
.feature-list span { display: block; font-size: 14.5px; color: var(--ink-2); }
.rules { background: var(--brand-soft); border-radius: var(--radius-lg); padding: 22px 24px; }
.rule-list li { position: relative; padding: 6px 0 6px 20px; font-size: 15px; color: var(--ink); }
.rule-list li::before { content: "✓"; position: absolute; left: 0; top: 6px; color: var(--brand); font-weight: 700; }
.rule-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 15px; font-weight: 600; }
.rules a { color: var(--brand-hover); }

/* ---------- 作品卡片 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--ink);
}
a.card:hover { border-color: var(--brand); text-decoration: none; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.card-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.card-title { font-size: 15px; font-weight: 600; line-height: 1.4; }
.card-tag { font-size: 13px; color: var(--brand); font-weight: 600; }
.card-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.picks-title { margin-top: 44px; }
.data-note { margin-top: 24px; font-size: 14px; color: var(--ink-3); }
.data-note a { margin-left: 10px; font-weight: 600; }

/* ---------- 产品 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 48px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.product h3 { font-size: 20px; margin-bottom: 8px; }
.product > p:not(.status) { font-size: 15px; color: var(--ink-2); }
.kv { margin-top: 16px; border-top: 1px solid var(--line-soft); }
.kv div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 10px 0 0; font-size: 15px; }
.kv dt { color: var(--ink-3); }
.kv dd { color: var(--ink); overflow-wrap: anywhere; }

.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.game { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.game img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.game-body { padding: 20px 22px; }
.game h4 { font-size: 18px; margin-bottom: 6px; }
.game-body > p:not(.status) { font-size: 14.5px; color: var(--ink-2); }
.game-body .game-link { margin-top: 10px; font-weight: 600; }

/* ---------- 服务 ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.svc-no { font-size: 13px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.svc h3 { font-size: 18px; margin-bottom: 8px; }
.svc > p:not(.svc-no):not(.svc-link) { font-size: 15px; color: var(--ink-2); }
.svc-link { margin-top: auto; padding-top: 14px; font-weight: 600; }

/* ---------- 关于 ---------- */
.about-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 6px 22px; }
.facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-top: 1px solid var(--line-soft); font-size: 15.5px; }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--ink-3); }
.facts dd { color: var(--ink); overflow-wrap: anywhere; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius-lg); padding: 24px; }
.contact-card h3 { font-size: 19px; margin-bottom: 12px; }
.contact-list div { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.contact-list div:first-child { border-top: 0; }
.contact-list dt { font-size: 13.5px; color: var(--ink-3); }
.contact-list dd { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.contact-note { margin-top: 12px; font-size: 14px; color: var(--ink-2); }

/* ---------- 子页 ---------- */
.page-head { border-top: 0; padding-top: 56px; }
.page-title { font-size: clamp(30px, 4.2vw, 42px); }
.page-head .eyebrow a { color: inherit; }
.about-h2 { margin-top: 36px; font-size: 20px; }
.about-list li { padding: 8px 0 8px 22px; font-size: 15.5px; color: var(--ink-2); }
.about-list b { color: var(--ink); }
.contact-h { font-size: 19px; margin-bottom: 12px; }
.nf-list { margin-top: 20px; }
.nf-list li { font-size: 17px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: 14.5px; color: var(--ink-2); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 32px 40px; }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; }
.foot-brand img { width: 28px; height: 28px; margin-top: 2px; }
.foot-name { font-weight: 700; color: var(--ink); }
.foot-en { font-size: 13px; color: var(--ink-3); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-h { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.foot-cols li { padding: 3px 0; }
.foot-cols a[href^="tel:"], .contact-list a[href^="tel:"] { white-space: nowrap; }
.foot-cols a, .foot-legal a { color: var(--ink-2); }
.foot-cols a:hover, .foot-legal a:hover { color: var(--brand); }
.foot-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--ink-3); }
.foot-legal p { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .brand-full { display: none; }
  .hero-in, .platform-grid, .about-in { grid-template-columns: 1fr; gap: 28px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .topbar-in { min-height: 58px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
    padding: 8px 20px 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 16px; padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
  .nav a:hover { background: transparent; }
  .nav .nav-cta { margin: 12px 0 0; text-align: center; border-radius: 10px; border-bottom: 0; padding: 12px 16px; }
  .hero { padding: 40px 0 48px; }
  .h1-sep { display: none; }
  .h1-br { display: inline; }
  .section { padding: 52px 0; }
  .sec-head { margin-bottom: 26px; }
  .steps, .feature-list, .product-grid, .game-grid, .svc-grid { grid-template-columns: 1fr; }
  .steps { gap: 0; margin-bottom: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
  .steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 6px; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; padding: 16px 16px 16px 14px; background: transparent; }
  .steps li:first-child { border-top: 0; }
  .steps .step-no { grid-row: 1 / span 2; padding-top: 2px; }
  .steps h3 { margin: 0 0 4px; font-size: 17px; }
  .feature-list { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
  .feature-list a { border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; padding: 13px 16px; }
  .feature-list li:first-child a { border-top: 0; }
  .feature-list a:hover { background: var(--surface-2); }
  .svc { padding: 20px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols > div:last-child { grid-column: 1 / -1; }
  .facts { padding: 4px 16px; }
  .facts div { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; font-size: 15px; }
  .cta-row .btn { flex: 1 1 auto; }
}

@media (max-width: 380px) {
  .foot-cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@view-transition { navigation: auto; }

@media print {
  .topbar, .menu-btn, .cta-row { display: none; }
  body { background: #fff; color: #000; }
}
