/* ==========================================================================
   GogoToken OEM 站点 · 基础样式（G-120）
   设计基线：复刻 Pytokenhub 官网观感 —— 深色底 + 橙紫渐变 + 卡片玻璃质感。
   主题变量（--primary / --secondary / --bg ...）由 assets/site.js 按站点配置
   注入，实现「OEM 自有品牌色可配置」。深浅双主题：html[data-theme="light"]。
   ========================================================================== */

:root {
  --primary: #ff7a45;
  --secondary: #8b5cf6;
  --bg: #0b0d14;
  --bg-soft: #0f121b;
  --panel: #141824;
  --panel-2: #1a1f2e;
  --text: #e8eaf2;
  --muted: #9aa3b2;
  --border: #242b3d;
  --ok: #22c55e;
  --warn: #f59e0b;
  --radius: 14px;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
  --maxw: 1180px;
}

html[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-2: #f2f4f9;
  --text: #161a24;
  --muted: #5d6577;
  --border: #e3e7f0;
  --shadow: 0 10px 30px rgba(20, 26, 40, 0.08);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── 页头 ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: 0.2px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid; place-items: center; color: #fff; font-size: 16px; font-weight: 900;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 45%, transparent);
}
.brand-tag { font-size: 12px; color: var(--muted); font-weight: 500; }
.brand-logo-img { height: 30px; width: auto; border-radius: 6px; }

.nav { display: flex; gap: 22px; margin-left: 12px; flex: 1; flex-wrap: wrap; }
.nav a { font-size: 14.5px; color: var(--muted); padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); border-bottom-color: var(--primary); }

.header-cta { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
  cursor: pointer; transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-primary {
  border: none; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 38%, transparent);
}
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--panel-2); cursor: pointer; color: var(--text);
}

/* ── Hero ── */
.hero { padding: 78px 0 54px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 30% auto -20%; height: 520px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 28%, transparent), transparent);
  filter: blur(50px); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: -30% -20% auto 40%; height: 480px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--secondary) 26%, transparent), transparent);
  filter: blur(50px); pointer-events: none;
}
.hero-inner { position: relative; }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.22; margin: 0 0 18px; font-weight: 850; }
.hero .lead { font-size: 17px; color: var(--muted); max-width: 720px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px;
}
.stat b { display: block; font-size: 24px; line-height: 1.3; }
.stat span { font-size: 12.5px; color: var(--muted); }

/* ── 区块 ── */
section.block { padding: 62px 0; border-top: 1px solid var(--border); }
.block-head { margin-bottom: 30px; }
.block-head h2 { font-size: clamp(22px, 2.8vw, 31px); margin: 0 0 10px; font-weight: 800; }
.block-head p { margin: 0; color: var(--muted); max-width: 760px; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--primary); margin-bottom: 10px; text-transform: uppercase;
}

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.card h3 { margin: 12px 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card-ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-size: 19px; background: color-mix(in srgb, var(--primary) 16%, var(--panel-2));
}

/* ── 表格 ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 660px; }
th, td { padding: 13px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; background: var(--panel-2); }
tbody tr:last-child td { border-bottom: none; }
.tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px;
  background: color-mix(in srgb, var(--secondary) 18%, var(--panel-2)); color: var(--text);
}

/* ── 价格 ── */
.price-card { position: relative; padding: 26px; }
.price-card .price b { font-size: 34px; }
.price-card .price span { color: var(--muted); font-size: 13px; }
.price-card ul { margin: 16px 0 22px; padding-left: 18px; color: var(--muted); font-size: 14px; }
.price-card li { margin-bottom: 7px; }
.price-hot { border-color: color-mix(in srgb, var(--primary) 60%, var(--border)); }
.badge {
  position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* ── 代码 ── */
.code {
  background: #0a0d15; color: #d7dbe8; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.7; overflow-x: auto; white-space: pre;
}
html[data-theme="light"] .code { background: #11151f; }
.code-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
  font-size: 13px; color: var(--muted);
}

/* ── 表单 ── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border-radius: 10px; font-size: 14px;
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text); font-family: inherit;
}
.field textarea { min-height: 96px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.field input:focus, .field textarea:focus { outline: 2px solid color-mix(in srgb, var(--primary) 55%, transparent); }

.alert { padding: 11px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 14px; }
.alert-err { background: color-mix(in srgb, #ef4444 16%, var(--panel)); border: 1px solid color-mix(in srgb, #ef4444 40%, var(--border)); }
.alert-ok { background: color-mix(in srgb, var(--ok) 14%, var(--panel)); border: 1px solid color-mix(in srgb, var(--ok) 38%, var(--border)); }
.hide { display: none !important; }

/* ── 登录/注册 ── */
.auth-wrap { max-width: 460px; margin: 60px auto 90px; }
.auth-card { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.tabs { display: flex; gap: 6px; background: var(--panel-2); padding: 5px; border-radius: 12px; margin-bottom: 22px; }
.tab { flex: 1; text-align: center; padding: 9px 0; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted); }
.tab.active { background: var(--panel); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.18); }

/* ── 页脚 ── */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 48px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 26px; }
.footer-col h4 { margin: 0 0 12px; font-size: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--muted); padding: 4px 0; }
.footer-col a:hover { color: var(--primary); }
.footer-brand p { color: var(--muted); font-size: 13.5px; margin: 10px 0 14px; max-width: 320px; }
.footer-bottom {
  margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}
.social-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── FAQ ── */
details.faq { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; }
details.faq p { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 4px 11px;
  border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }

/* ── 响应式 ── */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
    gap: 0; background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 10px 22px 16px;
  }
  .nav.open a { padding: 10px 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 52px 0 36px; }
}

/* ── 2026-10-27 改版：模型目录自下往上滚动 ── */
.model-scroll { max-height: 336px; overflow: hidden; position: relative; }
.model-scroll table { margin: 0; }
.model-scroll thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--panel); backdrop-filter: blur(4px);
}
.model-rows { animation: gt-scroll-up 18s linear infinite; }
.model-scroll:hover .model-rows { animation-play-state: paused; }
@keyframes gt-scroll-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); } /* 行集合复制两份，位移一半即无缝回环 */
}
@media (prefers-reduced-motion: reduce) {
  .model-rows { animation: none; }
  .model-scroll { max-height: none; overflow: auto; }
}

/* ── 2026-10-27 改版：卡片右下角 CTA 行 / 接入进驻卡 ── */
.card-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border);
}
.card-cta.section-cta { margin-top: 26px; padding: 16px 20px; border: 1px dashed var(--border); border-radius: 12px; }
.link-arrow { color: var(--primary); font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }
.join-card .card-ico { font-size: 30px; }

/* ── 2026-10-27 改版：页脚两行式资质栏 ── */
.footer-bottom-v2 { flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-legal-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-size: 12.5px; color: var(--muted);
}
.footer-legal-line a { color: var(--muted); text-decoration: none; }
.footer-legal-line a:hover { color: var(--primary); text-decoration: underline; }
.legal-sep { opacity: .55; }
.footer-copyright { font-size: 13px; color: var(--muted); }

/* ── 2026-10-27 改版：联系方式弹窗 ── */
.gt-modal-overlay {
  position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px);
}
.gt-modal {
  width: min(380px, calc(100vw - 40px)); background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 14px; padding: 26px 26px 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.gt-modal h3 { margin: 0 0 14px; font-size: 18px; }
.gt-modal-line { margin: 8px 0; font-size: 15px; line-height: 1.6; }
.gt-modal-k { color: var(--muted); }
.gt-modal-line a { color: var(--primary); text-decoration: none; }
.gt-modal-close { margin-top: 16px; width: 100%; }

/* ── 2026-10-27：邮箱验证状态标签（控制台 / 验证页共用） ── */
.tag-ok { color: #22c55e; border-color: rgba(34, 197, 94, .38); background: rgba(34, 197, 94, .1); }
.tag-warn { color: #ffb020; border-color: rgba(255, 176, 32, .38); background: rgba(255, 176, 32, .1); }
