/* ==========================================================================
   DeepApi · 组件层
   ========================================================================== */

/* ------------------------------------------------------------------ *
   顶部导航
   ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -.02em;
  color: var(--text);
}
.brand:hover { color: var(--text); opacity: .78; }

.brand__mark {
  width: 26px;
  height: 26px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-fg);
  display: grid;
  place-items: center;
  flex: none;
}
.brand__mark svg { width: 15px; height: 15px; }

.nav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; }

.nav__link {
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text-2);
}
.nav__link:hover { background: var(--bg-muted); color: var(--text); }
.nav__link.is-active { color: var(--text); font-weight: 500; background: var(--accent-soft); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .site-header__inner { gap: 14px; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 18px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__link { padding: 11px 12px; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn--hide-mobile { display: none; }
}

/* ------------------------------------------------------------------ *
   按钮
   ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn--primary { background: var(--accent); color: var(--accent-fg); }
.btn--primary:hover:not(:disabled) { background: var(--accent-hover); color: var(--accent-fg); }

.btn--outline { border-color: var(--border-strong); background: var(--bg); color: var(--text); }
.btn--outline:hover:not(:disabled) { background: var(--bg-muted); }

.btn--ghost { background: transparent; color: var(--text-2); }
.btn--ghost:hover:not(:disabled) { background: var(--bg-muted); color: var(--text); }

.btn--danger { border-color: var(--border-strong); color: var(--negative); background: var(--bg); }
.btn--danger:hover:not(:disabled) { background: var(--negative-soft); border-color: var(--negative); }

.btn--sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: var(--r-xs); }
.btn--sm svg { width: 13px; height: 13px; }
.btn--lg { height: 44px; padding: 0 22px; font-size: 14.5px; border-radius: var(--r-md); }
.btn--block { width: 100%; }
.btn--icon { width: 34px; height: 34px; padding: 0; }
.btn--icon.btn--sm { width: 28px; height: 28px; }

/* ------------------------------------------------------------------ *
   卡片 / 面板
   ------------------------------------------------------------------ */

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
}

.card--flush { padding: 0; overflow: hidden; }
.card--soft { background: var(--bg-subtle); }
.card--hover { transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.card--hover:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.card__body { padding: 20px; }

.panel { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; }

.divider { height: 1px; background: var(--border); border: 0; margin: 20px 0; }

/* ------------------------------------------------------------------ *
   徽标 / 标签
   ------------------------------------------------------------------ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--r-full);
  background: var(--bg-muted);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.badge--solid { background: var(--accent); color: var(--accent-fg); }
.badge--outline { background: transparent; border: 1px solid var(--border-strong); }
.badge--positive { background: var(--positive-soft); color: var(--positive); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.badge--negative { background: var(--negative-soft); color: var(--negative); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* ------------------------------------------------------------------ *
   表单
   ------------------------------------------------------------------ */

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field__hint { font-size: 12px; color: var(--text-3); }

.input, .select, .textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: 14px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent);
}
.textarea { min-height: 88px; resize: vertical; line-height: 1.6; }
.select { appearance: none; padding-right: 32px; background-image: none; cursor: pointer; }
.select-wrap { position: relative; }
.select-wrap svg {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--text-3); pointer-events: none;
}

.input-group { display: flex; gap: 8px; align-items: center; }
.input-group .input { flex: 1 1 auto; }

.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  width: 38px; height: 22px; border-radius: var(--r-full);
  background: var(--bg-inset); border: 1px solid var(--border-strong);
  position: relative; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  flex: none;
}
.switch__track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.switch input:checked + .switch__track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(16px); background: var(--accent-fg); }

/* ------------------------------------------------------------------ *
   表格
   ------------------------------------------------------------------ */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--bg-subtle);
}
.table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--bg-subtle); }
.table__num { font-family: var(--font-mono); font-size: 13px; }

/* ------------------------------------------------------------------ *
   统计卡片
   ------------------------------------------------------------------ */

.stat {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  background: var(--bg);
}
.stat__label { font-size: 12.5px; color: var(--text-3); margin-bottom: 8px; }
.stat__value { font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.stat__meta { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ------------------------------------------------------------------ *
   价格卡 / 会员卡
   ------------------------------------------------------------------ */

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.plan:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.plan--featured { border-color: var(--text); box-shadow: var(--shadow-md); }
.plan--current { border-color: var(--text); background: var(--bg-subtle); }

.plan__ribbon {
  position: absolute;
  top: -1px; right: 20px;
  padding: 3px 10px;
  border-radius: 0 0 var(--r-xs) var(--r-xs);
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 11px;
  font-weight: 500;
}

.plan__name { font-size: 16px; font-weight: 600; }
.plan__sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

.plan__price { display: flex; align-items: baseline; gap: 5px; }
.plan__price b { font-size: 34px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.plan__price span { font-size: 13px; color: var(--text-3); }

.plan__features { display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; }
.plan__feature { display: flex; gap: 9px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.plan__feature svg { width: 15px; height: 15px; color: var(--text); flex: none; margin-top: 3px; }

.credit-pack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
}
.credit-pack__credits { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.credit-pack__rate { font-size: 12px; color: var(--text-3); }

/* ------------------------------------------------------------------ *
   模型列表
   ------------------------------------------------------------------ */

.model-item {
  display: grid;
  grid-template-columns: 1fr 120px 130px 120px;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease);
}
.model-item:last-child { border-bottom: none; }
.model-item:hover { background: var(--bg-subtle); }
.model-item.is-locked { opacity: .55; }

.model-item__name { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: 14px; }
.model-item__key { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.model-item__cell { font-size: 13px; color: var(--text-2); }
.model-item__price { font-family: var(--font-mono); font-size: 13px; }
.model-item__price s { color: var(--text-3); margin-right: 6px; font-size: 12px; }

.provider-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  font-size: 11px;
  color: var(--text-2);
  white-space: nowrap;
}

/* 头像（logo）：外部 API → 自定义地址 → 首字母 三级回退 */
.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--logo-size, 20px);
  height: var(--logo-size, 20px);
  flex: 0 0 auto;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-subtle);
}
.logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo--fallback img { display: none; }
.logo__initial {
  display: none;
  font-size: calc(var(--logo-size, 20px) * .5);
  font-weight: 600;
  line-height: 1;
  color: var(--text-2);
}
.logo--fallback .logo__initial { display: inline; }

.model-item__head { display: flex; align-items: center; gap: 11px; min-width: 0; }
.logo-row { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.logo-row .logo { border-radius: var(--r-full); }

@media (max-width: 860px) {
  .model-item { grid-template-columns: 1fr auto; gap: 10px 14px; }
  .model-item__cell--hide { display: none; }
}

/* ------------------------------------------------------------------ *
   模型商店：卡片网格
   ------------------------------------------------------------------ */

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.model-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.model-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.model-card.is-locked { opacity: .55; }

.model-card__head { display: flex; align-items: center; gap: 11px; min-width: 0; }
.model-card__title { min-width: 0; }
.model-card__name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.model-card__key {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.model-card__desc { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }

.model-card__prices { display: flex; flex-direction: column; gap: 7px; }
.model-card__price { display: flex; align-items: baseline; gap: 6px; }
.model-card__tag { font-size: 11.5px; color: var(--text-3); min-width: 30px; }
.model-card__price b { font-family: var(--font-mono); font-size: 15px; font-weight: 600; }
.model-card__price s { color: var(--text-3); font-size: 11.5px; }
.model-card__price .unit { font-size: 11px; color: var(--text-3); }

.model-card__channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.model-card__channels-label { font-size: 11.5px; color: var(--text-3); }
.model-card__channels .provider-tag { gap: 5px; height: 22px; }

/* ------------------------------------------------------------------ *
   代码块
   ------------------------------------------------------------------ */

.code {
  position: relative;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-muted);
}
.code__title { font-size: 12px; color: var(--text-2); font-family: var(--font-mono); }
.code pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre;
}
.code__copy { display: inline-flex; }

.copy-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-subtle);
}
.copy-field code {
  flex: 1 1 auto;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-field--masked code { letter-spacing: .08em; }

/* ------------------------------------------------------------------ *
   分段控件 / 标签页
   ------------------------------------------------------------------ */

.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--bg-muted);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}
.segmented button {
  padding: 6px 14px;
  border-radius: var(--r-xs);
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.segmented button:hover { color: var(--text); }
.segmented button.is-active { background: var(--bg); color: var(--text); box-shadow: var(--shadow-xs); font-weight: 500; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs button {
  position: relative;
  padding: 11px 14px;
  font-size: 13.5px;
  color: var(--text-2);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs button:hover { color: var(--text); }
.tabs button.is-active { color: var(--text); border-bottom-color: var(--text); font-weight: 500; }

/* ------------------------------------------------------------------ *
   侧边导航（控制台 / 后台）
   ------------------------------------------------------------------ */

.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 32px; align-items: start; }

.side-nav { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 4px; }
.side-nav__group { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 14px 12px 6px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--r-sm);
  font-size: 13.5px; color: var(--text-2);
}
.side-nav a svg { width: 16px; height: 16px; flex: none; }
.side-nav a:hover { background: var(--bg-muted); color: var(--text); }
.side-nav a.is-active { background: var(--accent-soft); color: var(--text); font-weight: 500; }

@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .side-nav {
    position: static; flex-direction: row; overflow-x: auto;
    padding-bottom: 6px; border-bottom: 1px solid var(--border);
  }
  .side-nav__group { display: none; }
  .side-nav a { white-space: nowrap; }
}

/* ------------------------------------------------------------------ *
   弹窗
   ------------------------------------------------------------------ */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg-overlay);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 60px 20px;
  overflow-y: auto;
  animation: fade-in .16s var(--ease);
}
.modal {
  width: 100%; max-width: 520px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: pop-in .2s var(--ease);
}
.modal--wide { max-width: 720px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.modal__body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--border); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-10px) scale(.99); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ *
   提示条
   ------------------------------------------------------------------ */

.toast-host {
  position: fixed; right: 20px; bottom: 20px; z-index: 300;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 15px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  box-shadow: var(--shadow-md);
  animation: toast-in .2s var(--ease);
  max-width: 380px;
}
.toast svg { width: 15px; height: 15px; flex: none; }
.toast--error { background: var(--negative); color: #fff; }

@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ *
   空状态 / 骨架
   ------------------------------------------------------------------ */

.empty { padding: 48px 20px; text-align: center; color: var(--text-3); }
.empty svg { width: 26px; height: 26px; margin: 0 auto 12px; color: var(--text-3); }

.skeleton {
  background: linear-gradient(90deg, var(--bg-muted) 25%, var(--bg-inset) 37%, var(--bg-muted) 63%);
  background-size: 400% 100%;
  border-radius: var(--r-xs);
  animation: shimmer 1.3s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

/* ------------------------------------------------------------------ *
   首页区块
   ------------------------------------------------------------------ */

.hero { padding: 92px 0 72px; text-align: center; }
.hero h1 { font-size: 52px; line-height: 1.1; letter-spacing: -.035em; margin-bottom: 20px; }
.hero .lead { max-width: 620px; margin: 0 auto 32px; }
.hero__actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 12.5px; color: var(--text-3); }

.hero__visual {
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-subtle);
  padding: 8px;
  box-shadow: var(--shadow-md);
}
.hero__visual-inner {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  overflow: hidden;
}

.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.mock-bar__dots { display: flex; gap: 5px; }
.mock-bar__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.mock-bar__title { font-size: 12px; color: var(--text-3); font-family: var(--font-mono); }

.mock-body { padding: 22px; text-align: left; }
.mock-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.mock-line:last-child { border-bottom: none; }

.feature-icon {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  background: var(--bg);
  margin-bottom: 14px;
}
.feature-icon svg { width: 16px; height: 16px; }

.logo-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 32px; opacity: .7;
}
.logo-strip > span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-2); letter-spacing: -.01em; }

/* ------------------------------------------------------------------ *
   页脚
   ------------------------------------------------------------------ */

.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; background: var(--bg-subtle); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-size: 12.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; font-weight: 500; }
.footer-grid a { display: block; font-size: 13.5px; color: var(--text-2); padding: 4px 0; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-3);
}

@media (max-width: 768px) {
  .hero { padding: 56px 0 44px; }
  .hero h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

/* ------------------------------------------------------------------ *
   FAQ / 强调区块
   ------------------------------------------------------------------ */

.faq { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--bg); }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 17px 20px; cursor: pointer; font-size: 14.5px; font-weight: 500;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 9px; height: 9px; flex: none;
  border-right: 1.6px solid var(--text-3);
  border-bottom: 1.6px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.faq details[open] summary { background: var(--bg-subtle); }
.faq__body { padding: 0 20px 18px; color: var(--text-2); font-size: 13.5px; line-height: 1.75; }

.cta-band {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-subtle);
  padding: 56px 32px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band .lead { max-width: 520px; margin: 0 auto 26px; }

.feature-card { display: flex; flex-direction: column; gap: 10px; }
.feature-card h3 { font-size: 16px; }
.feature-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.65; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  font-size: 12.5px; color: var(--text-2);
  background: var(--bg);
}
.chip--active { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

.note {
  display: flex; gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-subtle);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}
.note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--text-3); }

/* ------------------------------------------------------------------ *
   工具
   ------------------------------------------------------------------ */

.is-hidden { display: none !important; }
.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

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