/* Mo Agent 官网 · 全站共享样式：颜色、排版、导航、页脚、按钮、表单、套餐卡片 */

/* ---------- 颜色：浅色 / 深色两套，和客户端是一家的暖中性色 + 暖橙 ---------- */
:root,
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #fbfaf7;
  --bg-soft: #f4f2ec;
  --bg-elev: #ffffff;
  --bg-hover: #efede6;
  --border: #e8e4db;
  --border-strong: #d6d1c5;
  --text: #1a1915;
  --text-2: #57534a;
  --text-3: #8a867b;
  --accent: #c9622f;
  --accent-strong: #b05327;
  --accent-soft: rgba(201, 98, 47, 0.1);
  --accent-glow: rgba(224, 138, 91, 0.26);
  --on-accent: #ffffff;
  --ink: #1a1915;
  --on-ink: #ffffff;
  --ok: #2f8f5b;
  --danger: #b93a2b;
  --danger-soft: rgba(185, 58, 43, 0.08);
  --code-bg: #f6f4ef;
  --shadow-sm: 0 1px 2px rgba(26, 25, 21, 0.05), 0 4px 14px rgba(26, 25, 21, 0.04);
  --shadow: 0 2px 4px rgba(26, 25, 21, 0.04), 0 18px 44px rgba(26, 25, 21, 0.09);
  --shadow-lg: 0 6px 16px rgba(26, 25, 21, 0.06), 0 40px 90px rgba(26, 25, 21, 0.16);
  --header-bg: rgba(251, 250, 247, 0.78);
  --grid-line: rgba(26, 25, 21, 0.05);
  /* 模型卡片插画的明暗 */
  --art-l1: 82%;
  --art-l2: 76%;
  --art-l3: 93%;
  --art-l4: 86%;
  --art-ink: rgba(255, 255, 255, 0.75);
  --art-text: #1a1915;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0c0c0b;
  --bg-soft: #131312;
  --bg-elev: #1a1a18;
  --bg-hover: #222220;
  --border: #262624;
  --border-strong: #3a3a36;
  --text: #eceae4;
  --text-2: #a8a59c;
  --text-3: #7d7a71;
  --accent: #e08a5b;
  --accent-strong: #e08a5b;
  --accent-soft: rgba(224, 138, 91, 0.13);
  --accent-glow: rgba(224, 138, 91, 0.2);
  --on-accent: #1a1208;
  --ink: #eceae4;
  --on-ink: #121211;
  --ok: #62c48e;
  --danger: #ee7b6c;
  --danger-soft: rgba(238, 123, 108, 0.1);
  --code-bg: #111110;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 18px 44px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.45), 0 40px 90px rgba(0, 0, 0, 0.65);
  --header-bg: rgba(12, 12, 11, 0.74);
  --grid-line: rgba(236, 234, 228, 0.045);
  --art-l1: 34%;
  --art-l2: 26%;
  --art-l3: 17%;
  --art-l4: 12%;
  --art-ink: rgba(255, 255, 255, 0.34);
  --art-text: #f4f1ea;
}

/* ---------- 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI Variable Text', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: 'Segoe UI Variable Display', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', system-ui, sans-serif;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

img,
svg {
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 标了 hidden 的就是不显示，不管它自己的 display 写的是什么 */
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--accent-soft);
}

.mono {
  font-family: 'Cascadia Code', 'Cascadia Mono', 'JetBrains Mono', Consolas, 'Courier New', monospace;
  /* 关掉连字，不然 === 会被画成三条横线 */
  font-variant-ligatures: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 小标签：等宽、大写间距，用来给每一段起头 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Cascadia Code', 'Cascadia Mono', Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    opacity 0.18s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.btn--primary {
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn--accent {
  background: var(--accent-strong);
  color: var(--on-accent);
}
.btn--accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px var(--accent-glow);
}
.btn--ghost {
  background: var(--bg-elev);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}
.btn--text {
  height: auto;
  padding: 0;
  border-radius: 6px;
  color: var(--text-2);
  font-weight: 500;
}
.btn--text:hover {
  color: var(--text);
}
.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.btn--lg {
  height: 54px;
  padding: 0 28px;
  font-size: 16px;
}
.btn--block {
  width: 100%;
}
/* 带圆形图标帽的胶囊按钮 */
.btn--cap {
  padding-right: 7px;
  gap: 14px;
}
.btn__cap {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-strong);
  color: var(--on-accent);
  transition: transform 0.2s ease;
}
.btn--lg .btn__cap {
  width: 40px;
  height: 40px;
}
.btn--cap:hover .btn__cap {
  transform: translateY(2px);
}
.btn--ghost .btn__cap {
  background: var(--bg-hover);
  color: var(--text);
}
.btn--ghost.btn--cap:hover .btn__cap {
  transform: translateX(3px);
}
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo__mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}
.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14.5px;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
  background: var(--bg-hover);
}
/* 右边一排：主题、账号入口（登录 / 头像 + 余额）、下载。统一 38px 高、10px 间距、垂直居中 */
.site-header__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.site-header__account {
  display: flex;
  align-items: center;
}
/* 登录（描边）和下载（实心）是一对：一样高、一样的左右留白、一样的字号 */
.site-header__tools .btn {
  height: 38px;
  min-width: 76px;
  padding: 0 18px;
  font-size: 14px;
  box-shadow: none;
}
.site-header__tools .btn:hover {
  transform: none;
}
.site-header__tools .btn--primary:hover {
  box-shadow: var(--shadow-sm);
  opacity: 0.9;
}
.site-header__dl .icon {
  width: 16px;
  height: 16px;
  margin-left: -2px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  color: var(--text-2);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}
/* 带描边的圆形图标按钮：和旁边的描边按钮是一套 */
.icon-btn--line {
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.icon-btn--line:hover {
  border-color: var(--border-strong);
}
/* 登录后的账号入口：头像 + 积分余额，点了去「我的账号」 */
.acct {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 15px 0 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-2);
  font-size: 14px;
  white-space: nowrap;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.acct:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}
.acct__av {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.acct__av .icon {
  width: 15px;
  height: 15px;
}
.acct__txt b {
  color: var(--text);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
/* 还在确认登录态：先占着位置，不闪「登录」按钮 */
.acct.is-pending {
  pointer-events: none;
}
.acct.is-pending .acct__txt {
  color: var(--text-3);
}
:root[data-theme='dark'] .only-light,
:root:not([data-theme='dark']) .only-dark {
  display: none;
}
.nav-toggle {
  display: none;
}
.mobile-nav {
  display: none;
}
.mobile-nav__theme {
  display: none;
}

/* ---------- 空状态：还没有数据、暂时读不到 ---------- */
.empty-state {
  padding: 48px 24px;
  border-radius: 22px;
  border: 1px dashed var(--border-strong);
  text-align: center;
  color: var(--text-3);
}
.empty-state b {
  display: block;
  color: var(--text);
  font-size: 17px;
}
.empty-state p {
  margin: 8px auto 0;
  max-width: 460px;
}
.empty-state .btn {
  margin-top: 18px;
}
/* 套餐页带着 ?plan= 打开时，把对应的那张卡片标出来 */
.plan.is-target {
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px var(--accent-soft),
    var(--shadow-sm);
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.site-footer__brand p {
  margin-top: 14px;
  max-width: 300px;
  color: var(--text-3);
  font-size: 14px;
}
.site-footer h4 {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-3);
}
.site-footer li + li {
  margin-top: 9px;
}
.site-footer li a {
  color: var(--text-2);
  font-size: 14.5px;
}
.site-footer li a:hover {
  color: var(--text);
}
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- 表单 ---------- */
.field {
  display: block;
  margin-bottom: 16px;
}
.field__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
}
.field__label a {
  color: var(--text-3);
  font-weight: 400;
  font-size: 13px;
}
.field__label a:hover {
  color: var(--text);
}
.input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15.5px;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.input::placeholder {
  color: var(--text-3);
}
.input:hover {
  border-color: var(--border-strong);
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.input[aria-invalid='true'] {
  border-color: var(--danger);
}
.field__hint {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 13px;
}
.field__error {
  margin-top: 6px;
  color: var(--danger);
  font-size: 13px;
}
.notice {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 13px;
  font-size: 14px;
  line-height: 1.55;
}
.notice[hidden] {
  display: none;
}
.notice .icon {
  margin-top: 2px;
}
.notice--error {
  background: var(--danger-soft);
  color: var(--danger);
}
.notice--ok {
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  color: var(--ok);
}
.notice--info {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-2);
}

/* ---------- 通用卡片与标签 ---------- */
.card {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 12.5px;
  white-space: nowrap;
}
.chip--accent {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* ---------- 模型的首字母头像和能力条（首页、模型广场共用） ---------- */
.pick__av,
.model__av {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: hsl(var(--h) 60% 50% / 0.15);
  color: hsl(var(--h) 55% 38%);
  font-weight: 700;
}
:root[data-theme='dark'] .pick__av,
:root[data-theme='dark'] .model__av {
  background: hsl(var(--h) 55% 55% / 0.2);
  color: hsl(var(--h) 65% 74%);
}
.model__bars {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px 10px;
  color: var(--text-3);
  font-size: 13px;
}
.model__bars .is-hot {
  color: var(--text);
  font-weight: 600;
}
.bar {
  height: 6px;
  border-radius: 6px;
  background: var(--bg-hover);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--text-3);
  transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bar.is-hot i {
  background: var(--accent);
}

/* ---------- 套餐卡片（首页和套餐页共用） ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.plan:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.plan--featured {
  border-color: var(--accent);
  background:
    radial-gradient(120% 60% at 50% 0%, var(--accent-soft), transparent 70%),
    var(--bg-elev);
  box-shadow:
    0 0 0 4px var(--accent-soft),
    var(--shadow);
}
.plan__badge {
  position: absolute;
  top: 22px;
  right: 22px;
}
.plan__name {
  font-size: 20px;
}
.plan__tagline {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 14px;
  min-height: 1.6em;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 22px;
}
.plan__price b {
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.plan__price span {
  color: var(--text-3);
  font-size: 14px;
}
.plan__quota {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 14px;
}
.plan__quota b {
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
}
.plan__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  color: var(--text-2);
  font-size: 14.5px;
}
.plan__features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.plan__features .icon {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--ok);
}
.plan__foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  color: var(--text-3);
  font-size: 13px;
}
.plans-skeleton {
  height: 380px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(100deg, var(--bg-soft) 30%, var(--bg-hover) 50%, var(--bg-soft) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  to {
    background-position: -150% 0;
  }
}

/* ---------- 账号类页面：居中的一张卡片 ---------- */
.auth {
  position: relative;
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: start center;
  padding: 64px 20px 80px;
  overflow: hidden;
}
.auth::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 620px;
  background:
    radial-gradient(46% 60% at 50% 0%, var(--accent-glow), transparent 70%),
    radial-gradient(30% 40% at 16% 20%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.auth__box {
  position: relative;
  width: 100%;
  max-width: 440px;
}
.auth__box--wide {
  max-width: 760px;
}
.auth__head {
  text-align: center;
  margin-bottom: 26px;
}
.auth__head .logo__mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
}
.auth__head h1 {
  font-size: 30px;
}
.auth__head p {
  margin-top: 8px;
  color: var(--text-2);
}
.auth__card {
  padding: 30px 30px 26px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}
.auth__alt {
  margin-top: 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 14.5px;
}
.auth__alt a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
}
.auth__alt a:hover {
  text-decoration-color: var(--accent);
}
.pw {
  position: relative;
}
.pw .input {
  padding-right: 48px;
}
.pw .icon-btn {
  position: absolute;
  right: 5px;
  top: 5px;
}

/* 普通内容页的页头（套餐页等） */
.page-head {
  position: relative;
  padding: 76px 0 44px;
  text-align: center;
  overflow: hidden;
}
.page-head::before {
  content: '';
  position: absolute;
  inset: -40% 0 auto;
  height: 520px;
  background: radial-gradient(40% 60% at 50% 0%, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.page-head > * {
  position: relative;
}
.page-head h1 {
  margin-top: 16px;
  font-size: clamp(34px, 5vw, 52px);
}
.page-head p {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--text-2);
  font-size: 17px;
}

/* 账号页的数字块 */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stat {
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.stat span {
  display: block;
  color: var(--text-3);
  font-size: 13.5px;
}
.stat b {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.stat small {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 12.5px;
}
.panel {
  margin-top: 16px;
  padding: 24px 26px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.panel h2 {
  font-size: 18px;
}
.panel > p {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 14.5px;
}
.row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.row .input {
  flex: 1;
  min-width: 0;
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.kv:last-child {
  border-bottom: 0;
}
.kv span {
  color: var(--text-3);
}
.kv b {
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

/* ---------- 滚动出现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 960px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  /* 窄屏：导航和主题切换收进菜单，右边只留 账号入口、下载、菜单 三个 */
  .site-nav,
  .site-header__theme {
    display: none;
  }
  .site-header__inner {
    justify-content: space-between;
    gap: 8px;
  }
  .site-header__tools {
    gap: 8px;
  }
  .nav-toggle {
    display: grid;
  }
  .mobile-nav__theme {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text-2);
    font-size: 16px;
    text-align: left;
  }
  .mobile-nav__theme:hover {
    background: var(--bg-hover);
    color: var(--text);
  }
  .mobile-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 72px;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-elev);
    box-shadow: var(--shadow-lg);
  }
  .mobile-nav.is-open {
    display: block;
  }
  .mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 16px;
  }
  .mobile-nav a:hover {
    background: var(--bg-hover);
  }
  .mobile-nav hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 8px 6px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }
  .site-header__inner {
    height: 60px;
  }
  .logo {
    font-size: 16px;
    gap: 8px;
  }
  .site-header__tools .btn {
    height: 36px;
    min-width: 0;
    padding: 0 14px;
  }
  .site-header__tools .icon-btn,
  .acct {
    width: 36px;
    height: 36px;
  }
  /* 手机上账号入口只留头像，余额在菜单里看 */
  .acct {
    padding: 0;
    justify-content: center;
  }
  .acct__txt {
    display: none;
  }
  .acct__av {
    width: 26px;
    height: 26px;
  }
  .auth {
    min-height: calc(100vh - 60px);
    padding: 36px 16px 56px;
  }
  .auth__card {
    padding: 24px 20px 22px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .row {
    flex-direction: column;
  }
  /* 竖排时输入框不能再按比例伸缩，否则高度会被压扁 */
  .row .input {
    flex: none;
  }
  .site-footer__inner {
    gap: 28px;
    padding-top: 40px;
  }
  .page-head {
    padding: 48px 0 28px;
  }
}

/* ---------- USDT 充值 ---------- */
.pay__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}
.pay__preset {
  flex: 1 1 96px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pay__preset:hover {
  border-color: var(--border-strong, var(--text-3));
}
.pay__preset.is-on {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft, rgba(201, 98, 47, 0.14));
}
.pay__arrive {
  margin: 10px 0 14px;
  color: var(--text-2);
  font-size: 14px;
}
.pay__amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 6px;
}
.pay__amount b {
  font-size: 30px;
  letter-spacing: -0.3px;
  user-select: all;
}
.pay__amount span {
  color: var(--text-3);
  margin-right: auto;
}
.pay__body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 12px 0;
}
.pay__qr {
  width: 148px;
  height: 148px;
  flex: none;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
}
.pay__info {
  flex: 1;
  min-width: 0;
}
.pay__addr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 0;
}
.pay__addr code {
  word-break: break-all;
  font-size: 13px;
  user-select: all;
}
.pay__status {
  margin: 4px 0 10px;
  color: var(--text-3);
  font-size: 13px;
}
.pay--off p {
  margin-bottom: 0;
}
@media (max-width: 520px) {
  .pay__body {
    flex-direction: column;
    align-items: center;
  }
  .pay__info {
    width: 100%;
  }
}
