/* ============================================================================
   AIChainWatch · 页面层（Pages）
   ----------------------------------------------------------------------------
   作用：各页面的专属布局（首页 / 结果 / 监控 / 定价 / 登录 / 账户 / 设计总览）。
        只调用组件层已有的 class，不重新定义按钮、卡片等基础样式。
   ========================================================================== */

/* ============================================================
   1. 首页 Hero
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(40px, 6.5vw, 84px) clamp(20px, 3vw, 36px);
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-5);
  max-width: 780px;
  margin-inline: auto;
}

/* 顶部小标签：一句话说明产品定位 */
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12.5px;
  color: var(--text-2);
}

.hero__pill b {
  color: var(--text);
  font-weight: 550;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 7px;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  color: #cbbdff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* 搜索区：外层容器用于放“背后的光晕” */
.hero__search {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin-top: var(--s-2);
}

.hero__glow {
  position: absolute;
  inset: -22px -10px;
  border-radius: var(--r-full);
  background: radial-gradient(60% 120% at 50% 50%, rgba(124, 92, 255, 0.3), transparent 70%);
  filter: blur(18px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

/* 搜索建议 */
.hero__suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  max-width: 720px;
}

.hero__suggest-label {
  font-size: 12.5px;
  color: var(--text-3);
}

/* 信任条：数据来源链 */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-4);
  font-size: 12.5px;
  color: var(--text-3);
}

.chain-tags {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 链名称标签：小圆点 + 文字，暗示“多链数据” */
.chain-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  color: var(--text-2);
}

.chain-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
}

/* 示例回答卡片（首页“先看一眼产品长什么样”） */
.demo {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
  text-align: left;
  padding: 0;
  overflow: hidden;
}

/* 顶部 2px 渐变线，强调这是“AI 输出” */
.demo::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--gradient-accent);
}

.demo__body {
  padding: var(--s-5) var(--s-6) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.demo__q {
  font-size: 13px;
  color: var(--text-3);
}

.demo__q b {
  color: var(--text-2);
  font-weight: 500;
}

.demo__a {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.demo__a strong {
  color: #fff;
  font-weight: 600;
}

.demo__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* 首页的迷你指标胶囊 */
.mini-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  color: var(--text-3);
}

.mini-stat b {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

/* ---------- 三步流程 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

.step {
  position: relative;
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.018);
}

.step__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: var(--s-3);
}

.step__title {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step__text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-3);
}

/* ---------- 底部行动号召 ---------- */
.cta-band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(124, 92, 255, 0.24);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(124, 92, 255, 0.22), transparent 58%),
    radial-gradient(120% 160% at 100% 100%, rgba(59, 130, 246, 0.18), transparent 58%),
    var(--surface);
  overflow: hidden;
}

.cta-band__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cta-band__note {
  font-size: 12.5px;
  color: var(--text-3);
}

/* ============================================================
   2. 查询结果页
   ============================================================ */
.result-wrap {
  max-width: 860px;
  margin-inline: auto;
}

/* 顶部查询头：紧凑搜索框 + 当前问题 */
.query-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding-block: var(--s-5) var(--s-6);
}

.query-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  font-size: 12.5px;
  color: var(--text-3);
}

.query-head__q {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-wrap: pretty;
}

/* AI 回答卡片：全页视觉重心，留白比普通卡片更大 */
.answer {
  padding: clamp(20px, 3.4vw, 32px);
  border-radius: var(--r-xl);
}

.answer__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s-5);
}

/* AI 标识：渐变小方块 + 星芒图标 */
.answer__avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: #cbbdff;
  flex: none;
}

.answer__avatar svg {
  width: 17px;
  height: 17px;
}

.answer__title {
  font-size: 14px;
  font-weight: 600;
}

.answer__time {
  font-size: 12px;
  color: var(--text-3);
}

.answer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

/* 结论：比正文大一号，1–2 句说完 */
.answer__summary {
  font-size: clamp(1.02rem, 1.6vw, 1.13rem);
  line-height: 1.7;
  color: var(--text);
  text-wrap: pretty;
}

.answer__summary strong {
  font-weight: 600;
  color: #fff;
  /* 数字下用极淡的强调底色，扫读时一眼抓住 */
  background: linear-gradient(180deg, transparent 62%, rgba(124, 92, 255, 0.22) 62%);
}

/* 要点列表 */
.answer__points {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: var(--s-5);
}

.answer__points li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-2);
  text-wrap: pretty;
}

/* 要点前缀：小方块对勾 */
.answer__points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px;
  height: 9px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
  border-radius: 1px;
  opacity: 0.9;
}

.answer__points strong {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* 关键数据区 */
.answer__section {
  margin-top: var(--s-6);
}

.answer__section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* 操作区 */
.answer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}

.answer__actions .spacer {
  flex: 1;
}

/* 链上验证条：信任要素，放在回答与来源之间 */
.verify {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-5);
  padding: 11px 14px;
  border: 1px solid rgba(61, 220, 151, 0.2);
  border-radius: var(--r-sm);
  background: rgba(61, 220, 151, 0.055);
  font-size: 12.5px;
  color: #a9e8ca;
}

.verify__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.verify__item svg {
  width: 13px;
  height: 13px;
  opacity: 0.85;
}

.verify__sep {
  width: 1px;
  height: 12px;
  background: rgba(61, 220, 151, 0.24);
}

/* 来源说明 */
.source-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: var(--s-4);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-3);
}

.source-note svg {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  flex: none;
}

/* 相关问题 */
.related {
  margin-top: var(--s-7);
}

.related__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s-3);
}

.related__list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}

.related__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  font-size: 13.5px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.related__item:last-child {
  border-bottom: 0;
}

.related__item:hover {
  background: rgba(124, 92, 255, 0.07);
  color: var(--text);
}

.related__item svg {
  width: 14px;
  height: 14px;
  color: var(--text-3);
  flex: none;
}

.related__item .arrow {
  margin-left: auto;
  opacity: 0.5;
}

/* ============================================================
   3. 监控页
   ============================================================ */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-6) var(--s-5);
}

.page-head__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 56ch;
}

/* 配额卡片：地址用量 + 升级提示 */
.quota {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
}

.quota__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
}

.quota__label {
  font-size: 12.5px;
  color: var(--text-3);
}

.quota__value {
  font-size: 14px;
  font-weight: 550;
}

.quota__value span {
  color: var(--text-3);
  font-weight: 400;
}

.quota .progress {
  flex: 1;
  min-width: 120px;
}

/* 地址列表 */
.address-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.address-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease);
}

.address-card:hover {
  border-color: var(--border-strong);
}

.address-card__top {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
}

/* 链图标：圆形底 + 首字母，避免依赖外部图标资源 */
.chain-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  flex: none;
}

.chain-avatar--sol {
  color: #b7f7d8;
  background: rgba(61, 220, 151, 0.1);
  border-color: rgba(61, 220, 151, 0.22);
}

.chain-avatar--eth {
  color: #cbd8ff;
  background: rgba(99, 125, 255, 0.12);
  border-color: rgba(99, 125, 255, 0.24);
}

.address-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.address-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.address-card__addr {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-card__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 卡片底部：预警渠道开关 + 最近活动 */
.address-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}

.switches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}

.address-card__activity {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-3);
}

/* 新增地址：虚线按钮卡 */
.add-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--s-5);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.012);
  color: var(--text-2);
  font-size: 13.5px;
  transition: all var(--dur) var(--ease);
  width: 100%;
}

.add-card:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--text);
}

.add-card svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   4. 定价页
   ============================================================ */
.pricing-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  text-align: center;
  padding-block: var(--s-6) var(--s-7);
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  max-width: 780px;
  margin-inline: auto;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: calc(var(--s-6) + 4px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

/* Pro 卡：渐变描边 + 更亮的底，形成视觉推荐
   注意：padding-box 层必须是不透明色，否则 border-box 的渐变会透满整张卡 */
.plan--pro {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #141b31 0%, #0d1424 62%) padding-box,
    linear-gradient(160deg, rgba(124, 92, 255, 0.85), rgba(59, 130, 246, 0.55)) border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 30px 70px -34px rgba(124, 92, 255, 0.7);
}

/* 推荐角标 */
.plan__ribbon {
  position: absolute;
  top: -11px;
  right: 20px;
  height: 24px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-full);
  background: var(--gradient-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px -6px rgba(124, 92, 255, 0.9);
}

.plan__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.plan__amount {
  font-size: clamp(2.1rem, 4vw, 2.65rem);
  font-weight: 640;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan__period {
  font-size: 13px;
  color: var(--text-3);
}

/* 年付省钱的提示（切换后出现） */
.plan__save {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ok);
}

body[data-billing="yearly"] .plan__save {
  display: inline-flex;
}

.plan__desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
  min-height: 40px;
}

.plan__features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  flex: 1;
}

.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
}

/* 特性前的对勾 */
.plan__features li::before {
  content: "";
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex: none;
  border-radius: 50%;
  background: rgba(61, 220, 151, 0.14);
  /* 用 SVG data-uri 画对勾，避免字体图标不统一 */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233ddc97' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 8.5l2.6 2.6L12 5.6'/></svg>");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

.plan__features li.is-off {
  color: var(--text-3);
}

.plan__features li.is-off::before {
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236b7893' stroke-width='2.2' stroke-linecap='round'><path d='M5 5l6 6M11 5l-6 6'/></svg>");
}

/* 功能对比表 */
.compare {
  margin-top: var(--s-8);
  max-width: 780px;
  margin-inline: auto;
}

.compare .data-table {
  min-width: 540px;
}

.compare .data-table th:not(:first-child),
.compare .data-table td:not(:first-child) {
  text-align: center;
  width: 160px;
  white-space: nowrap;
}

.compare .yes {
  color: var(--ok);
  font-weight: 600;
}

.compare .no {
  color: var(--text-3);
}

/* FAQ 区 */
.faq-block {
  max-width: 780px;
  margin: var(--s-8) auto 0;
}

/* ============================================================
   5. 登录 / 注册页
   ============================================================ */
.auth {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  min-height: calc(100dvh - var(--header-h));
}

/* 左侧品牌面板：深色渐变 + 价值主张 + 一张“已验证”小卡 */
.auth__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-8);
  /* 左右留白与页面版心对齐，桌面端视觉上不会比导航更靠边 */
  padding: clamp(32px, 5vw, 64px) max(24px, calc((100vw - var(--container)) / 2 + 24px));
  border-right: 1px solid var(--border);
  background:
    radial-gradient(80% 60% at 20% 10%, rgba(124, 92, 255, 0.2), transparent 62%),
    radial-gradient(70% 60% at 90% 90%, rgba(59, 130, 246, 0.14), transparent 62%);
  overflow: hidden;
}

.auth__quote {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.45;
  font-weight: 550;
  letter-spacing: -0.02em;
  max-width: 22ch;
  text-wrap: balance;
}

/* 引用的第二行用弱化色，形成节奏 */
.auth__quote .dim {
  color: var(--text-3);
}

.auth__points {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.auth__point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-2);
}

.auth__point svg {
  width: 15px;
  height: 15px;
  color: var(--ok);
  flex: none;
}

/* 左侧底部的小样卡，暗示登录后的能力 */
.auth__mini {
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(11, 17, 28, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  color: var(--text-3);
  max-width: 340px;
}

.auth__mini strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 4px;
}

/* 右侧表单区 */
.auth__form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px) 24px;
}

.auth__form {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.auth__title {
  font-size: 1.5rem;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.auth__sub {
  font-size: 13.5px;
  color: var(--text-3);
  margin-top: -8px;
}

/* 第三方登录按钮（Google） */
.btn--google {
  background: #fff;
  color: #1a1a1a;
  font-weight: 550;
}

.btn--google:hover {
  background: #f2f2f2;
}

/* Google 品牌图标固定尺寸，避免被按钮的 svg 规则压缩 */
.btn--google svg {
  width: 18px;
  height: 18px;
}

/* “或”分隔线 */
.or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 12px;
}

.or::before,
.or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth__switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

.auth__switch a {
  color: #c9b8ff;
  font-weight: 500;
}

.auth__switch a:hover {
  text-decoration: underline;
}

.auth__legal {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-3);
  text-align: center;
}

.auth__legal a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   6. 账户页
   ============================================================ */
.account-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--s-4);
  margin-top: var(--s-5);
}

/* 当前方案卡 */
.plan-summary {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.plan-summary__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
}

.plan-summary__name {
  font-size: 1.35rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.plan-summary__note {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 2px;
}

/* 用量条 */
.usage {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.usage__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: 13px;
  color: var(--text-2);
}

.usage__row b {
  font-size: 15px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* 快捷入口列表 */
.link-list {
  display: flex;
  flex-direction: column;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-2);
  transition: color var(--dur) var(--ease);
}

.link-row:last-child {
  border-bottom: 0;
}

.link-row:hover {
  color: var(--text);
}

.link-row svg {
  width: 15px;
  height: 15px;
  color: var(--text-3);
  flex: none;
}

.link-row .arrow {
  margin-left: auto;
  opacity: 0.5;
}

/* 最近查询记录 */
.query-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.query-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.012);
  transition: background var(--dur) var(--ease);
}

.query-item:last-child {
  border-bottom: 0;
}

.query-item:hover {
  background: rgba(124, 92, 255, 0.06);
}

.query-item__text {
  min-width: 0;
  flex: 1;
}

.query-item__q {
  font-size: 13.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.query-item__meta {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   7. 设计总览页（Living Style Guide）
   ============================================================ */
.sg-section {
  padding-block: var(--s-8);
  border-top: 1px solid var(--border);
}

.sg-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.sg-section__head h2 {
  font-size: 1.3rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.sg-section__head p {
  font-size: 13px;
  color: var(--text-3);
}

/* 页面索引卡 */
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-3);
}

.page-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--dur) var(--ease);
}

.page-card:hover {
  border-color: var(--accent-line);
  background: rgba(124, 92, 255, 0.06);
  transform: translateY(-2px);
}

.page-card__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.page-card__name {
  font-size: 15px;
  font-weight: 600;
}

.page-card__desc {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.6;
}

/* 色板 */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--s-3);
}

.swatch {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface);
}

.swatch__chip {
  height: 60px;
}

.swatch__meta {
  padding: 9px 11px;
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.swatch__name {
  color: var(--text-2);
  font-weight: 500;
}

.swatch__hex {
  font-family: var(--font-mono);
  color: var(--text-3);
  font-size: 10.5px;
}

/* 组件展示行 */
.comp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

/* 字号刻度 */
.type-spec {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.type-spec__row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--s-4);
  align-items: baseline;
  padding-bottom: var(--s-4);
  border-bottom: 1px dashed var(--border);
}

.type-spec__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.6;
}

/* ============================================================
   8. 响应式
   ============================================================ */
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .auth {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  /* 移动端隐藏左侧品牌面板，优先保证表单可见 */
  .auth__panel {
    display: none;
  }

  .auth__form-wrap {
    min-height: calc(100dvh - var(--header-h));
    padding-block: var(--s-9);
  }
}

@media (max-width: 760px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-block: var(--s-6) var(--s-5);
    text-align: left;
  }

  .hero__inner {
    align-items: flex-start;
    gap: var(--s-4);
  }

  .hero__suggest {
    justify-content: flex-start;
  }

  .hero__trust {
    justify-content: flex-start;
  }

  /* 移动端搜索框：按钮只留图标，给输入框更多空间 */
  .searchbar {
    padding: 7px 7px 7px 15px;
    gap: 10px;
  }

  .searchbar__input {
    font-size: 16px;
  }

  .searchbar__submit {
    height: 38px;
    padding: 0 15px;
    font-size: 13.5px;
  }

  /* 结果页留白收窄 */
  .answer {
    border-radius: var(--r-lg);
  }

  .answer__actions .btn {
    flex: 1 1 auto;
  }

  .answer__actions .spacer {
    display: none;
  }

  .verify__sep {
    display: none;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-head .btn {
    width: 100%;
  }

  .quota {
    padding: var(--s-4);
  }

  .quota .progress {
    flex-basis: 100%;
  }

  .address-card__actions {
    align-self: flex-start;
  }

  .demo__body {
    padding: var(--s-4);
  }

  /* 示例卡在移动端字体略小，避免一屏放不下 */
  .demo__a {
    font-size: 14px;
  }

  .type-spec__row {
    grid-template-columns: 1fr;
    gap: var(--s-2);
  }

  /* 移动端隐藏查询记录右侧的徽章，避免挤压问题文本 */
  .query-item .badge {
    display: none;
  }

  /* 地址卡在窄屏隐藏“已验证”徽章，让地址与名称保持单行 */
  .address-card__label .badge {
    display: none;
  }

  .address-card__label {
    white-space: nowrap;
  }

  /* 搜索图标在极小屏让位给输入框，避免占位文案被截断 */
  .searchbar__icon {
    display: none;
  }

  .searchbar {
    padding-left: 16px;
  }
}

/* ============================================================
   9. 正式站补充页面
   ============================================================ */

/* 说明页（条款 / 隐私 / 关于 / 状态） */
.legal {
  max-width: 720px;
  margin: var(--s-9) auto 0;
}

.legal__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-top: var(--s-5);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-2);
}

/* 登录页作为 main 的直接子元素时，撑满可视高度 */
main > .auth {
  min-height: calc(100dvh - var(--header-h));
}
