/* ============================================================
   TsingPaws 设备安全租赁平台 — 基础设计系统
   风格：白底 + 紫色/灰色装饰，苹果/Mac 风格透明玻璃设计
   字体：OPPO Sans（可变字体）
   ============================================================ */

@font-face {
  font-family: 'OPPO Sans';
  src: url('../assets/OPPO%20Sans%204.0.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 主色（品牌紫，取自品牌 logo） */
  --purple-700: #5F1D98;
  --purple-600: #7E2FA8;
  --purple-500: #8B3799;
  --purple-400: #9A40D6;
  --purple-300: #B56BE0;
  --purple-100: #F3E5FA;
  --purple-50:  #FAF3FD;

  /* 灰（装饰 / 辅助） */
  --gray-bg:   #F5F5F7;
  --gray-100:  #E5E5EA;
  --gray-200:  #D2D2D7;
  --gray-300:  #C7C7CC;

  /* 文字 */
  --text-1: #1D1D1F;
  --text-2: #6E6E73;
  --text-3: #AEAEB2;
  --text-on-purple: #FFFFFF;

  /* 功能色 */
  --green: #34C759;
  --orange: #FF9500;
  --red:    #FF3B30;

  /* 渐变 */
  --grad-purple: linear-gradient(135deg, #B56BE0 0%, #7E2FA8 100%);
  --grad-purple-soft: linear-gradient(135deg, #FAF3FD 0%, #F3E5FA 100%);

  /* 玻璃 */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.65);

  /* 圆角 */
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(29, 29, 31, 0.06), 0 1px 2px rgba(29, 29, 31, 0.04);
  --shadow-md: 0 8px 24px rgba(29, 29, 31, 0.08), 0 2px 6px rgba(29, 29, 31, 0.04);
  --shadow-lg: 0 20px 48px rgba(95, 29, 152, 0.14), 0 4px 12px rgba(29, 29, 31, 0.06);
  --shadow-purple: 0 8px 20px rgba(139, 55, 153, 0.28);

  --nav-height: 64px;
  --font: "OPPO Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-1);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---------- 布局工具 ---------- */
/* 关键：作者样式（如 .sum-row 的 display:flex）会覆盖浏览器默认的 [hidden]，
   统一强制 hidden 元素隐藏，否则结算页隐藏行会显示出来 */
[hidden] { display: none !important; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.page-wrap { padding-top: var(--nav-height); min-height: 100vh; display: flex; flex-direction: column; }
/* 注意：page-wrap 是纵向 flex 容器，其直接子元素带 margin auto 会收缩为内容宽度，
   因此需要 width:100% 防止收缩（各区块已分别设置） */
.page-body { flex: 1; }

/* ---------- 导航栏（玻璃） ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav-inner {
  max-width: 1120px; height: 100%;
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.nav-left { display: flex; align-items: center; gap: 14px; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 30px; width: auto; }
.nav-brand { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand span { font-size: 12px; color: var(--text-2); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-user {
  font-size: 14px; font-weight: 600; color: var(--purple-600);
  padding: 7px 14px; border-radius: 999px;
}
.nav-user:hover { background: var(--purple-50); }

/* 登录用户下拉菜单 */
.nav-user-wrap { position: relative; }
.nav-user-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; color: var(--purple-600);
  padding: 7px 14px; border-radius: 999px;
  transition: background .15s ease;
  cursor: pointer;
  font-family: inherit;
  max-width: 180px;
}
.nav-user-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-btn:hover, .nav-user-wrap.open .nav-user-btn { background: var(--purple-50); }
.nav-user-btn .caret { transition: transform .2s ease; }
.nav-user-wrap.open .nav-user-btn .caret { transform: rotate(180deg); }
.nav-user-menu {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  width: 200px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  z-index: 120;
}
.nav-user-wrap.open .nav-user-menu { display: block; animation: fadeUp .18s ease; }
.nav-user-item {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: none; background: none; border-radius: 10px;
  font-size: 14px; color: var(--text-1);
  text-align: left;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
}
.nav-user-item:hover { background: var(--purple-50); }
.nav-user-item.is-active { color: var(--purple-600); font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  padding: 11px 28px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, opacity .18s ease;
  white-space: nowrap;
  user-select: none;
}
.btn:active:not(.btn-disabled) { transform: scale(0.97); }

.btn-primary {
  background: var(--grad-purple);
  color: var(--text-on-purple);
  box-shadow: var(--shadow-purple);
}
.btn-primary:hover:not(.btn-disabled) { box-shadow: 0 10px 26px rgba(108, 77, 246, 0.38); transform: translateY(-1px); }

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-1);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover:not(.btn-disabled) { border-color: var(--purple-300); color: var(--purple-600); }

.btn-ghost { background: transparent; color: var(--purple-600); }
.btn-ghost:hover:not(.btn-disabled) { background: var(--purple-50); }

.btn-link {
  background: none; border: none;
  color: var(--purple-600); font-size: 14px; font-weight: 500;
  padding: 4px 8px; border-radius: 8px;
}
.btn-link:hover:not(.btn-disabled) { background: var(--purple-50); text-decoration: underline; }

.btn-disabled, .btn-disabled:hover {
  background: var(--gray-100);
  color: var(--text-3);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-sm { padding: 7px 18px; font-size: 14px; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- 卡片 ---------- */
.card {
  background: #FFFFFF;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---------- 语言下拉 ---------- */
.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; color: var(--text-1);
  padding: 7px 12px; border-radius: 999px;
  transition: background .15s ease;
}
.lang-btn:hover { background: var(--gray-bg); }
.lang-btn svg { width: 16px; height: 16px; color: var(--text-2); }
.lang-btn .caret { transition: transform .2s ease; }
.lang-wrap.open .lang-btn { background: var(--gray-bg); }
.lang-wrap.open .lang-btn .caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  width: 240px; max-height: 320px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  z-index: 120;
}
.lang-wrap.open .lang-menu { display: block; animation: fadeUp .18s ease; }
.lang-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border: none; background: none; border-radius: 10px;
  font-size: 14px; color: var(--text-1);
  text-align: left;
}
.lang-item:hover:not(.is-disabled) { background: var(--purple-50); }
.lang-item.is-active { color: var(--purple-600); font-weight: 600; }
.lang-item.is-disabled { color: var(--text-3); cursor: not-allowed; }
.lang-item .soon {
  font-size: 11px; color: var(--text-3);
  background: var(--gray-bg);
  padding: 2px 8px; border-radius: 999px;
}
.lang-check { width: 15px; height: 15px; color: var(--purple-500); flex-shrink: 0; }

/* ---------- 首页 ---------- */
/* 第一屏：品牌宣言 + 两个行动按钮（PPT 第 2 页） */
.hero-screen1 {
  min-height: calc(100vh - var(--nav-height));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 48px 24px 90px;
  position: relative;
  background:
    radial-gradient(520px 360px at 30% 30%, rgba(154, 64, 214, 0.08), transparent 65%),
    radial-gradient(480px 340px at 75% 65%, rgba(139, 55, 153, 0.06), transparent 65%);
}
.hero-screen1 .brand-slogan {
  margin-top: 28px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  /* 与第二屏 hero-title 保持同样的字距，避免大字距尾部留白导致视觉偏左 */
  letter-spacing: 0.5px;
  color: var(--text-1);
}
.hero-screen1 .brand-slogan em {
  font-style: normal;
  background: var(--grad-purple);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.scroll-hint {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-3);
  font-size: 13px;
}
.scroll-hint svg { width: 18px; height: 18px; animation: hintBounce 1.8s ease-in-out infinite; }

/* 了解更多段（PPT 第 3 页开头） */
.learn-section {
  padding: 96px 24px 40px;
  text-align: center;
  position: relative;
  background: radial-gradient(600px 380px at 50% 0%, rgba(154, 64, 214, 0.07), transparent 70%);
}
.hero-lead {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--purple-500);
  font-weight: 600;
  letter-spacing: 1px;
}
.hero-title {
  margin-top: 18px;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.28;
  max-width: 800px;
  margin-left: auto; margin-right: auto;
}
.hero-title .grad {
  background: var(--grad-purple);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 三特性编号卡 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1120px;
  margin: 64px auto 0;
  padding: 0 24px;
  text-align: left;
}
.feature-card {
  background: #FFFFFF;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card h3 { font-size: 20px; font-weight: 700; }
.feature-card p { font-size: 14px; color: var(--text-2); margin-top: 8px; }

/* 常用功能滑动窗口 */
.cf-section { padding: 72px 0 40px; }
.cf-head {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.cf-head h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; }
.cf-arrows { display: flex; gap: 10px; }
.cf-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-1);
  box-shadow: var(--shadow-sm);
  transition: all .15s ease;
}
.cf-arrow:hover:not(:disabled) { border-color: var(--purple-400); color: var(--purple-500); }
.cf-arrow:disabled { color: var(--text-3); background: var(--gray-bg); cursor: not-allowed; }
.cf-arrow svg { width: 18px; height: 18px; }
/* 翻页式网格：每页 6 张（2行×3列），箭头/圆点翻页 */
.cf-pages {
  max-width: 1120px;          /* 与上方标题区宽度对齐 */
  margin: 28px auto 0;
  padding: 0 24px;
}
.cf-page {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cf-page.is-active { display: grid; animation: fadeUp .25s ease; }
.cf-card {
  background: #FFFFFF;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: left;
  transition: box-shadow .18s ease, transform .18s ease;
}
.cf-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cf-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--purple-50);
  display: flex; align-items: center; justify-content: center;
}
.cf-icon svg { width: 22px; height: 22px; color: var(--purple-500); }
.cf-card h3 { font-size: 16px; font-weight: 700; margin-top: 14px; }
.cf-card p {
  font-size: 13px; color: var(--text-2);
  margin-top: 6px; line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 1;      /* 描述统一一行表述，超长省略 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.6em;          /* 描述统一一行高，卡片等高 */
}
.cf-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.cf-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: none;
  background: var(--gray-200);
  padding: 0;
  cursor: pointer;
  transition: all .2s ease;
}
.cf-dot.is-active { width: 22px; background: var(--purple-500); }

/* 底部号召区（把专业留给 AI 把效率留给自己） */
.cta-band {
  margin: 64px 24px 80px;
  padding: 72px 32px;
  border-radius: var(--radius-xl);
  background: var(--grad-purple-soft);
  border: 1px solid var(--purple-100);
  text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 700; }
.cta-band h2 .grad {
  background: var(--grad-purple);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.cta-band .btn { margin-top: 32px; }

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
  .cf-page { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 充值套餐页 ---------- */
.pricing-head {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 0;
  text-align: center;
}
.pricing-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: 0.4px; }

/* ---------- 横行长条：我的帐户余额（放大字体排版） ---------- */
.balance-bar {
  width: 100%;
  max-width: 1120px;
  margin: 20px auto 0;
  padding: 0 24px;
}
.balance-bar .bar-card {
  display: flex; align-items: center;
  gap: 24px 48px;
  flex-wrap: wrap;
  background: #FFFFFF;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 32px;
}
.bb-strip { display: flex; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
.bb-item { display: flex; flex-direction: column; gap: 4px; }
.bb-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.bb-value {
  font-size: 30px; font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-1);
  line-height: 1.15;
}
.bb-value small { font-size: 15px; font-weight: 600; color: var(--text-2); margin-left: 6px; }
/* 日期型数值（年月日）比数字略小，保持与数字同基线 */
.bb-value.bb-date { font-size: 22px; letter-spacing: -0.2px; padding-top: 6px; }

.plan-band {
  margin-top: 28px;
  background: var(--grad-purple-soft);
  border-top: 1px solid var(--purple-100);
  border-bottom: 1px solid var(--purple-100);
  padding: 52px 24px 60px;
}
.plan-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.plan-card {
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 34px 30px 28px;
  display: flex; flex-direction: column;
  position: relative;      /* 升级选择弹层锚点 */
  transition: transform .18s ease, box-shadow .18s ease;
}
.plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.plan-card h3 { font-size: 21px; font-weight: 700; }
.plan-price { margin-top: 16px; font-size: 52px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; }
.plan-from { font-size: 16px; font-weight: 600; color: var(--text-3); letter-spacing: 0; margin-left: 6px; }
.plan-price small { font-size: 22px; font-weight: 600; margin-right: 3px; }
.plan-meta-list { margin-top: 22px; border-top: 1px solid var(--gray-100); }
.pm-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 14px; color: var(--text-2);
  padding: 13px 0;
  border-bottom: 1px solid var(--gray-100);
}
.pm-row:last-child { border-bottom: none; }
.pm-row b { color: var(--text-1); font-weight: 600; }
/* 套餐卡功能差分说明：一句话定位 + √ 功能列表 */
.plan-feats {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--purple-50);
  border-radius: var(--radius-md);
}
.plan-feats .pf-desc {
  font-size: 13px; color: var(--text-2); line-height: 1.65;
  margin: 0 0 8px;
}
.plan-feats ul { list-style: none; margin: 0; padding: 0; }
.plan-feats li {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 13px; color: var(--text-1); line-height: 1.5;
  padding: 3.5px 0;
}
.plan-feats li::before {
  content: '✓';
  color: var(--purple-600);
  font-weight: 700;
  flex-shrink: 0;
}
.plan-bottom {
  margin-top: auto;
  padding-top: 26px;
  display: flex; flex-direction: row;   /* 按钮一行排版 */
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.plan-bottom .btn { flex: 1 1 0; min-width: 0; padding: 11px 10px; font-size: 14px; }
.plan-bottom .btn-link { align-self: center; margin: 4px auto 0; }
.plan-title-row { display: flex; align-items: center; gap: 8px; }
.plan-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: #e7f7ec; color: #218742; font-size: 13px; font-weight: 700; }
.plan-bottom .is-disabled { opacity: .55; pointer-events: none; }

/* 悬停说明（hover 显示、移开消失） */
.tooltip-wrap { position: relative; display: inline-flex; }
.tooltip-wrap.flex-fill { flex: 1 1 0; min-width: 0; }
.tooltip-wrap.flex-fill .btn { width: 100%; }
.tooltip-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 260px;
  background: #FFFFFF;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 9px 13px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-1);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 50;
  text-align: left;
}
.tooltip-tip::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #FFFFFF;
}
.tooltip-wrap:hover .tooltip-tip { opacity: 1; }

/* 试用卡"套餐升级"选择弹层 */
.chooser-wrap { position: relative; flex: 1 1 0; min-width: 0; display: flex; }
.chooser-wrap .btn { width: 100%; }
.chooser-pop {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0; right: 0;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  z-index: 30;
}
.chooser-wrap.open .chooser-pop { display: block; animation: fadeUp .18s ease; }
.chooser-item {
  display: block; width: 100%;
  padding: 10px 12px;
  border: none; background: none; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--text-1);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.chooser-item:hover { background: var(--purple-50); color: var(--purple-600); }

/* 订购方案面板（充值套餐页：套餐区与"请放心订购"之间展开，点选后卡片联动） */
.billing-panel {
  max-width: 1120px;
  margin: 24px auto 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--purple-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px 20px;
  animation: fadeUp .18s ease;
}
.billing-panel-head { font-size: 14px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.billing-panel-note { font-size: 12.5px; color: var(--purple-600); line-height: 1.7; margin-bottom: 12px; }
.billing-panel-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bp-opt {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.bp-opt:hover { border-color: var(--purple-300); box-shadow: var(--shadow-sm); }
.bp-opt.is-selected {
  border-color: var(--purple-500);
  background: var(--purple-50);
  box-shadow: 0 0 0 3px rgba(139, 55, 153, 0.08);
}
.bp-opt-head { display: flex; align-items: center; gap: 8px; }
.bp-label { font-weight: 700; font-size: 14.5px; color: var(--text-1); }
.bp-off { font-size: 10px; padding: 2px 6px; }
.bp-days { font-size: 12.5px; color: var(--text-3); }
.bp-price { font-size: 15px; font-weight: 700; color: var(--purple-600); }

@media (max-width: 860px) {
  .billing-panel-options { grid-template-columns: repeat(2, 1fr); }
}

/* 请放心订购 */
.assure-section { padding: 72px 24px 40px; }
.assure-section h2 {
  text-align: center;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
}
.assure-card {
  max-width: 1120px;
  margin: 32px auto 0;
  background: #FFFFFF;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.assure-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-bg);
}
.assure-tab {
  flex: 1;
  padding: 18px 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-2);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color .15s ease, background .15s ease;
}
.assure-tab + .assure-tab { border-left: 1px solid var(--gray-100); }
.assure-tab:hover { color: var(--purple-600); }
.assure-tab.is-active { color: var(--purple-600); background: #FFFFFF; }
.assure-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--grad-purple);
}
.assure-panels { padding: 14px 30px 18px; }
.assure-panel ul { list-style: none; }
.assure-panel li {
  font-size: 13.5px; color: var(--text-2);
  padding: 11px 0 11px 16px;
  border-bottom: 1px solid var(--gray-100);
  line-height: 1.7;
  position: relative;
}
.assure-panel li:last-child { border-bottom: none; }
.assure-panel li::before {
  content: "";
  position: absolute; left: 0; top: 18px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--purple-400);
}

/* ---------- 我的 AI 助理页（两列：设备详情 | 我的帐户） ---------- */
.assist-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 28px auto 0;
  padding: 0 24px;
}
.assist-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* 两列等宽，卡片大小一致 */
  gap: 24px;
  align-items: stretch;
}
.assist-col h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}
/* 两列卡片大小一致（等高：列内 flex 拉伸填满） */
.assist-col { display: flex; flex-direction: column; }
.assist-col > div { flex: 1; display: flex; flex-direction: column; }
.assist-col .assist-card,
.assist-col .assist-account-card,
.assist-col .assist-empty { flex: 1; }
.assist-card {
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 28px 30px 24px;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.assist-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.assist-card.is-expired { background: #FAFAFC; }
/* 过期仅灰掉信息区，按钮区保持原色 */
.assist-card.is-expired .assist-name-row,
.assist-card.is-expired .assist-meta {
  opacity: .55;
  filter: grayscale(.6);
}
/* 已回收（过期+24h）：信息区进一步置灰，不可编辑 */
.assist-card.is-reclaimed { background: #FAFAFC; }
.assist-card.is-reclaimed .assist-name-row,
.assist-card.is-reclaimed .assist-meta {
  opacity: .45;
  filter: grayscale(.8);
}
.assist-name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.assist-name {
  flex: 1;
  min-width: 0;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-1);
  background: #FFFFFF;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.assist-name:focus { border-color: var(--purple-400); box-shadow: 0 0 0 3px var(--purple-100); }
.assist-name:disabled { background: var(--gray-bg); color: var(--text-3); cursor: not-allowed; }
.assist-meta { border-top: 1px solid var(--gray-100); }
.assist-meta .pm-row { padding: 14px 0; }
.assist-expired-badge {
  margin-left: 8px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  background: rgba(255, 59, 48, 0.1);
  border-radius: 999px;
  vertical-align: middle;
}
/* 设备卡底部按钮一行（只放"进入TsingPaws"） */
.assist-btn-row {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.assist-btn-row .btn { flex: 1 1 0; min-width: 0; padding: 12px 10px; font-size: 15px; }
.assist-btn-row .btn.btn-block { flex: none; width: 100%; }
.assist-btn-row .tooltip-wrap.flex-fill { display: flex; }
.api-credential-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 4px; color: var(--text-2); font-size: 13px; }
.api-credential-row .btn { flex: 0 0 auto; }
.modal-body code { display: block; margin: 6px 0 16px; padding: 10px 12px; overflow-wrap: anywhere; background: var(--gray-bg); border-radius: var(--radius-sm); color: var(--text-1); }
.modal-body input[readonly] { width: 100%; padding: 11px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--gray-bg); color: var(--text-1); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

/* 未订购套餐：整页空态（不显示两列） */
.assist-empty {
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 32px;
  text-align: center;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.assist-empty svg {
  width: 52px; height: 52px;
  color: var(--purple-300);
  margin: 0 auto 18px;
}
/* 空态产品图：直接呈现产品原图（无紫底打底）；真机仅 4cm，按接近真实大小显示 */
.assist-empty-img {
  width: 150px;
  max-width: 50%;
  margin: 0 auto 24px;
}
.assist-empty p {
  font-size: 15.5px;
  color: var(--text-2);
  margin-bottom: 26px;
  line-height: 1.7;
}

/* 我的帐户卡：大字统计行 + 分组按钮，控制留白与按钮比例 */
.assist-account-card { padding: 26px 30px 24px; }
.acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 2px;
}
.acc-plan-name { font-size: 17px; font-weight: 700; color: var(--text-1); }
.acc-billing { font-size: 14px; font-weight: 600; color: var(--text-2); }
.acc-stats { margin-top: 2px; }
.acc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--gray-100);
}
.acc-row:last-child { border-bottom: none; }
.acc-label { font-size: 13.5px; font-weight: 600; color: var(--text-2); flex-shrink: 0; }
.acc-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.25;
  color: var(--text-1);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
/* 总余额旁的「充值 token」直达链接 */
.acc-topup {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-600);
  letter-spacing: 0;
}
.acc-topup:hover { text-decoration: underline; }
/* 过期宽限期警示条（24h 内可续费，逾期设备收回） */
.acc-expire-warn {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(255, 149, 0, 0.08);
  border: 1px solid rgba(255, 149, 0, 0.35);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #B25E00;
  line-height: 1.7;
}
.acc-expire-warn b { display: block; margin-top: 4px; }

.acc-actions { margin-top: 22px; }
.acc-actions .aa-group-label { margin-bottom: 12px; }
/* 按钮一行排版：有多个按钮时并排等宽（主+次），单个按钮自然占满整行 */
.acc-btn-row { display: flex; gap: 10px; align-items: stretch; }
.acc-btn-row > * { flex: 1 1 0; min-width: 0; }
.acc-btn-row .btn { padding: 11px 10px; font-size: 14px; }
.acc-tooltip { display: flex; }
.acc-tooltip .btn { width: 100%; }
.acc-foot {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}
.acc-foot { gap: 12px; flex-wrap: wrap; }
.acc-channel-hint { font-size: 12.5px; color: var(--text-3); align-self: center; }
.assist-pending { display: flex; align-items: center; gap: 10px; padding-top: 14px; }
.aa-group-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 10px;
}

/* 演示面板：快速过期（交付前移除） */
.demo-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  padding: 12px 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.demo-panel .demo-title {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.demo-btns { display: flex; gap: 6px; flex-wrap: wrap; max-width: 240px; }
.demo-btns .btn { padding: 5px 12px; font-size: 12px; }

/* ---------- 确认订单页 ---------- */
.checkout-wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.checkout-wrap h1 { grid-column: 1 / -1; font-size: clamp(28px, 4vw, 38px); font-weight: 700; text-align: center; margin-bottom: 8px; }
.summary-card { padding: 28px; }
.summary-card h2, .pay-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.sum-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px; color: var(--text-2);
}
.sum-row b { color: var(--text-1); font-weight: 600; }
.sum-row.amount { border-bottom: none; padding-top: 16px; }
.sum-row.amount b { color: var(--purple-600); font-size: 22px; }
.checkout-note {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--purple-600);
  line-height: 1.7;
}
.pay-card { padding: 28px; }
.pay-option {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #FFFFFF;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500;
  transition: border-color .15s ease, background .15s ease;
  text-align: left;
}
.pay-option:hover { border-color: var(--purple-300); }
.pay-option.is-checked { border-color: var(--purple-500); background: var(--purple-50); }
.pay-option .pay-ico {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.pay-option .pay-ico img, .pay-option .pay-ico svg { width: 100%; height: 100%; display: block; }
.pay-option .pay-balance-ico {
  background: var(--purple-100); color: var(--purple-600);
  font-size: 21px; font-weight: 700; line-height: 34px; text-align: center;
}
.pay-option .radio {
  margin-left: auto;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--gray-200);
  position: relative; flex-shrink: 0;
}
.pay-option.is-checked .radio { border-color: var(--purple-500); }
.pay-option.is-checked .radio::after {
  content: "";
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: var(--purple-500);
}
.checkout-actions { grid-column: 1 / -1; display: flex; gap: 14px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }

/* 同意协议行 */
.agree-row { margin: 16px 0 0; }
.agree-row a { font-weight: 600; }
/* 套餐对比表 */
.modal-wide { max-width: 680px; }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.compare-table th, .compare-table td {
  padding: 10px 10px;
  border: 1px solid var(--gray-100);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.compare-table th { background: var(--purple-50); color: var(--purple-600); font-weight: 600; }
.compare-table td:first-child { font-weight: 700; }
/* 服务协议弹窗 */
.agreement-body { max-height: 52vh; overflow-y: auto; padding-right: 6px; }
.agreement-body h4 { font-size: 14px; font-weight: 700; margin: 14px 0 6px; color: var(--text-1); }
.agreement-body h4:first-child { margin-top: 0; }
.agreement-body p { font-size: 13px; color: var(--text-2); line-height: 1.8; margin: 0; }

/* ---------- 订购成功页 ---------- */
.success-wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  display: flex; flex-direction: column; align-items: center;
}
.success-icon {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--grad-purple);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-purple);
  animation: fadeUp .4s ease;
}
.success-icon svg { width: 40px; height: 40px; color: #fff; }
.success-wrap h1 { font-size: 32px; font-weight: 700; margin-top: 24px; }
.success-wrap .success-desc { color: var(--text-2); margin-top: 8px; font-size: 15px; }
.success-panel {
  width: 100%;
  margin-top: 28px;
  padding: 24px 28px;
}
.success-panel h2 { font-size: 17px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--gray-100); }
.success-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- 接入占位页 ---------- */
.placeholder-wrap {
  flex: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  display: flex; flex-direction: column; align-items: center;
}
.placeholder-box {
  width: 100%;
  min-height: 320px;
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--gray-bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 15px;
  padding: 40px;
  text-align: center;
}
.placeholder-box svg { width: 44px; height: 44px; color: var(--purple-300); }
.placeholder-back { margin-top: 28px; }

@media (max-width: 900px) {
  .plan-grid { grid-template-columns: 1fr; }
  .assist-cols { grid-template-columns: 1fr; }
  .checkout-main { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .checkout-wrap { grid-template-columns: minmax(0, 1fr); box-sizing: border-box; padding-left: 16px; padding-right: 16px; }
  .summary-card, .pay-card { min-width: 0; padding: 20px; }
}

/* ---------- 登录/注册 ---------- */
.auth-wrap {
  flex: 1;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 72px 24px 56px;
  background:
    radial-gradient(560px 360px at 20% 10%, rgba(154, 64, 214, 0.08), transparent 65%),
    radial-gradient(480px 340px at 85% 30%, rgba(139, 55, 153, 0.06), transparent 65%);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 40px 40px 32px;
}
.auth-card h1 { font-size: 28px; font-weight: 700; text-align: center; }
.auth-note {
  margin: 14px 0 26px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  color: var(--purple-600);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.auth-alt {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
}
.auth-alt a { color: var(--purple-600); font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }
.auth-links {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
}
.auth-links .btn-link { font-size: 13px; }
.auth-links .dot { color: var(--gray-200); }

/* 邮箱/手机切换页签 */
.auth-tabs {
  display: flex; gap: 8px; margin-bottom: 18px;
  background: var(--gray-bg);
  padding: 4px;
  border-radius: var(--radius-sm);
}
.auth-tab {
  flex: 1;
  padding: 9px 10px;
  border: none; background: transparent;
  border-radius: 9px;
  font-size: 14px; font-weight: 600;
  color: var(--text-2);
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.auth-tab.is-active {
  background: #FFFFFF;
  color: var(--purple-600);
  box-shadow: var(--shadow-sm);
}

/* ---------- 帐户设置页 ---------- */
.settings-card { max-width: 560px; }
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}
.settings-row:last-child { border-bottom: none; }
.settings-row .lbl { font-size: 14px; font-weight: 600; color: var(--text-1); }
.settings-row .desc { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.settings-row .val { font-size: 14px; color: var(--text-2); text-align: right; }
.settings-row .val.none { color: var(--text-3); }
.settings-row .btn { padding: 8px 16px; font-size: 13px; }
.settings-section h2 {
  font-size: 15px; font-weight: 700;
  color: var(--text-2);
  padding-top: 18px;
  margin-bottom: 4px;
}
.settings-edit { display: flex; gap: 8px; align-items: center; }
.settings-edit input {
  width: 190px;
  padding: 9px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--text-1);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.settings-edit input:focus { border-color: var(--purple-500); box-shadow: 0 0 0 4px rgba(108, 77, 246, 0.12); }
.settings-edit input.input-error { border-color: var(--red); }

/* 开关 */
.switch { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  width: 46px; height: 26px;
  border-radius: 999px;
  background: var(--gray-200);
  transition: background .2s ease;
  position: relative;
}
.switch-knob {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.switch input:checked + .switch-track { background: var(--grad-purple); }
.switch input:checked + .switch-track .switch-knob { transform: translateX(20px); }

/* 勾选框 */
.check-row {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 4px 0 20px;
  font-size: 13px; color: var(--text-2);
}
.check-row input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 3px;
  accent-color: var(--purple-500);
  flex-shrink: 0;
}
.check-row a { color: var(--purple-600); }

/* 客服弹窗内容 */
.support-rows { display: flex; flex-direction: column; gap: 14px; }
.support-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px;
  background: var(--gray-bg);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.support-row .lbl { color: var(--text-2); flex-shrink: 0; }
.support-row .val { font-weight: 600; text-align: right; }
.support-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--purple-600);
  line-height: 1.7;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--gray-100);
  padding: 28px 24px;
  text-align: center;
}
.site-footer .brand-line {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 14px; color: var(--text-2);
}
.site-footer .copy {
  margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; color: var(--text-3);
}
.site-footer .copy img { height: 13px; width: auto; }

/* ---------- 页面标题区 ---------- */
.page-head { padding: 64px 24px 20px; text-align: center; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: 0.4px; }
.page-head p { margin-top: 12px; color: var(--text-2); font-size: 16px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 18px; text-align: left; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 7px; }
.field input[type="text"], .field input[type="password"], .field input[type="email"], .field input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--text-1);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 4px rgba(108, 77, 246, 0.12);
}
.field .field-hint { margin-top: 6px; font-size: 12px; color: var(--text-3); }
.field-error input { border-color: var(--red); }
.field-error .err-msg { margin-top: 6px; font-size: 12px; color: var(--red); display: block; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.code-btn {
  flex-shrink: 0;
  border: 1px solid var(--purple-400);
  background: var(--purple-50);
  color: var(--purple-600);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  font-size: 14px; font-weight: 600;
}
.code-btn:disabled { border-color: var(--gray-200); background: var(--gray-bg); color: var(--text-3); cursor: not-allowed; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(29, 29, 31, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 440px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  transform: translateY(12px) scale(0.98);
  transition: transform .2s ease;
}
.modal-mask.show .modal { transform: translateY(0) scale(1); }
.modal h3 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.modal .modal-body { color: var(--text-2); font-size: 15px; }
.modal .modal-actions { margin-top: 24px; display: flex; gap: 12px; justify-content: flex-end; }

/* ---------- 提示条 ---------- */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(29, 29, 31, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  transition: transform .25s ease;
  pointer-events: none;
  max-width: 86vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.badge-purple { background: var(--purple-100); color: var(--purple-600); }
.badge-red { background: rgba(255, 59, 48, 0.1); color: var(--red); }
.badge-green { background: rgba(52, 199, 89, 0.12); color: #248A3D; }
.badge-gray { background: var(--gray-bg); color: var(--text-2); }
.badge-orange { background: rgba(255, 149, 0, 0.12); color: #B25E00; }

/* ---------- 动画 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hintBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

/* ---------- 滚动淡入（首页） ----------
   仅在 js 类存在时隐藏初始状态（无 JS 内容照常显示）；
   .reveal-group 内元素由 JS 按顺序设置错峰延迟 */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* 下滑提示：绝对定位靠 translateX(-50%) 居中，淡入动画需保留该位移，否则整体偏右 */
.scroll-hint.reveal { transform: translateX(-50%) translateY(22px); }
.scroll-hint.reveal.is-visible { transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint.reveal { transform: translateX(-50%); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .nav-brand span { display: none; }
  .modal { padding: 24px; }
}

/* ===== 充值 token 页（充话费式椭圆额度卡） ===== */
.topup-wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 24px 48px;
}
.topup-wrap h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; text-align: center; margin-bottom: 24px; }
.topup-card { padding: 28px; }
.topup-card h2 { font-size: 17px; font-weight: 700; margin: 22px 0 14px; }
/* 小椭圆额度卡：3 列网格，大号实付金额 + 小字到账/加赠（仿充话费页） */
.topup-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.topup-opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 88px;
  padding: 12px 10px;
  background: #FFFFFF;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.topup-opt:hover { border-color: var(--purple-300); transform: translateY(-2px); }
.topup-opt.is-selected { border-color: var(--purple-600); background: var(--purple-50); }
.topup-pay { font-size: 22px; font-weight: 700; color: var(--text-1); line-height: 1.2; }
.topup-bonus { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; justify-content: center; }
.tb-get { font-size: 12.5px; color: var(--text-2); }
.tb-send { font-size: 12.5px; font-weight: 700; color: var(--green); }
@media (max-width: 480px) { .topup-opts { grid-template-columns: repeat(2, 1fr); } }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-row .pay-option { margin-bottom: 0; }
.topup-actions {
  margin-top: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topup-cta { border-radius: 999px; padding: 14px 40px; font-size: 17px; }

/* 账户设置：自动续费行（右侧纵向：状态在上、关闭按钮在下；状态不换行） */
.settings-ar {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  flex-shrink: 0;
}
.settings-ar .val { white-space: nowrap; }

/* token 余额提醒线（设提醒入口 / 低余额警示条 / 高亮充值） */
.acc-alert-btn {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.acc-alert-btn:hover { color: var(--purple-600); text-decoration: underline; }
.acc-topup.is-alert { color: #FF9500; font-weight: 700; }
.acc-token-warn {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(255, 149, 0, 0.08);
  border: 1px solid rgba(255, 149, 0, 0.35);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #B25E00;
  line-height: 1.7;
}

/* 套餐快过期：续费/购买按钮「按下」点击效果提醒，按两下 */
@keyframes pressOnce {
  0% { transform: scale(1); }
  40% { transform: scale(0.86); }
  100% { transform: scale(1); }
}
.press-twice { animation: pressOnce 0.5s ease-in-out 2; }
