/* ============================================================================
   trans-1 —— 在官网设计系统(assets/site.css)之上的增量样式。
   只做三件事：① 复用官网 token；② 补产品页需要的组件；③ 控制台专用的网格/表格/终端。
   所有颜色一律走 var(--*)，因此深浅主题自动跟随，不需要额外的 dark 覆盖。
   ========================================================================== */

/* ---------------------------------------------------------------- 版心 */
.t1-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.t1-wrap.narrow { max-width: 960px; }
.t1-section { padding: 64px 0; }
.t1-section.tight { padding: 40px 0; }

.t1-sechead { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.t1-sechead h2 { font-size: 22px; font-weight: 600; letter-spacing: .5px; }
.t1-sechead .line { flex: 1; height: 1px; background: var(--border); }

.t1-muted { color: var(--text-muted); font-size: 14px; }
.t1-small { font-size: 13px; }
.t1-mono { font-family: ui-monospace, Menlo, Consolas, 'Courier New', monospace; }
.t1-center { text-align: center; }
.t1-mt { margin-top: 16px; }
.t1-mt-lg { margin-top: 32px; }

/* ---------------------------------------------------------------- Hero */
.t1-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--border); }
.t1-hero .tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 20px;
}
.t1-hero h1 { font-size: 46px; line-height: 1.15; font-weight: 700; letter-spacing: -0.5px; }
.t1-hero h1 .accent { color: var(--brand); }
.t1-hero p.lead {
  font-size: 18px; color: var(--text-secondary); margin-top: 18px; max-width: 720px;
}
.t1-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* ---------------------------------------------------------------- 按钮 */
.t1-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-md); border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: .15s;
  background: var(--brand); color: #fff; text-decoration: none; line-height: 1.4;
}
.t1-btn:hover { background: var(--brand-hover); color: #fff; }
.t1-btn.ghost { background: transparent; color: var(--text-primary); border-color: var(--border-hover); }
.t1-btn.ghost:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.t1-btn.blue { background: var(--brand-blue); }
.t1-btn.blue:hover { background: var(--brand-blue-dark); }
.t1-btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.t1-btn.danger:hover { background: color-mix(in srgb, var(--danger) 8%, transparent); }
.t1-btn.sm { padding: 6px 14px; font-size: 13px; }
.t1-btn[disabled], .t1-btn.disabled { opacity: .45; pointer-events: none; }

/* ---------------------------------------------------------------- 卡片 */
.t1-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.t1-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }

.t1-grid { display: grid; gap: 18px; }
.t1-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.t1-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.t1-grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .t1-grid.c3, .t1-grid.c4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .t1-grid.c2, .t1-grid.c3, .t1-grid.c4 { grid-template-columns: 1fr; }
  .t1-hero h1 { font-size: 32px; }
}

/* 特性卡 */
.t1-feat .ico { font-size: 24px; margin-bottom: 10px; }
.t1-feat h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.t1-feat p { font-size: 14px; color: var(--text-muted); }

/* ---------------------------------------------------------------- 次级导航 */
.t1-subnav {
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.t1-subnav .t1-wrap { display: flex; gap: 4px; overflow-x: auto; }
.t1-subnav-link {
  display: inline-block; padding: 12px 16px; font-size: 14px; font-weight: 500;
  color: var(--text-muted); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.t1-subnav-link:hover { color: var(--text-primary); }
.t1-subnav-link.active {
  color: var(--brand); font-weight: 600; border-bottom-color: var(--brand);
}

/* ---------------------------------------------------------------- 定价 */
.t1-price-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch;
}
@media (max-width: 1020px) { .t1-price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .t1-price-grid { grid-template-columns: 1fr; } }

.t1-price {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px 22px; box-shadow: var(--shadow-sm); transition: .15s;
}
.t1-price:hover { box-shadow: var(--shadow-md); border-color: var(--border-hover); }
.t1-price.popular { border-color: var(--brand); border-width: 2px; }
.t1-price .pop-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 600;
  padding: 3px 14px; border-radius: 999px; white-space: nowrap;
}
.t1-price h3 { font-size: 17px; font-weight: 600; }
.t1-price .sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.t1-price .amt { font-size: 38px; font-weight: 700; margin: 16px 0 2px; letter-spacing: -1px; }
.t1-price .amt .cur { font-size: 20px; font-weight: 600; vertical-align: super; }
.t1-price .amt .per { font-size: 14px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.t1-price .quota {
  font-size: 13px; color: var(--brand); font-weight: 600; margin-bottom: 16px;
}
.t1-price ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.t1-price li {
  font-size: 14px; color: var(--text-secondary); padding: 6px 0 6px 22px; position: relative;
}
.t1-price li::before {
  content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 700;
}

/* ---------------------------------------------------------------- 表单 */
.t1-field { margin-bottom: 16px; }
.t1-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.t1-field input[type=text], .t1-field input[type=number], .t1-field textarea, .t1-field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-input); color: var(--text-primary); font-size: 15px;
  font-family: inherit; transition: .15s;
}
.t1-field input:focus, .t1-field textarea:focus, .t1-field select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.t1-field textarea { resize: vertical; min-height: 96px; line-height: 1.6; }

/* ---------------------------------------------------------------- 统计块 */
.t1-stat {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 18px;
}
.t1-stat .k { font-size: 12px; color: var(--text-muted); font-weight: 600; letter-spacing: .5px; }
.t1-stat .v { font-size: 24px; font-weight: 700; margin-top: 4px; }
.t1-stat .v.sm { font-size: 17px; }
.t1-stat .v.good { color: var(--brand); }
.t1-stat .v.warn { color: #a15c00; }
.t1-stat .v.bad  { color: var(--danger); }

/* ---------------------------------------------------------------- 进度条 */
.t1-bar { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; margin-top: 10px; }
.t1-bar > i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.t1-bar > i.warn { background: var(--gold); }
.t1-bar > i.bad  { background: var(--danger); }

/* ---------------------------------------------------------------- 表格 */
.t1-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.t1-table th, .t1-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle;
}
.t1-table th { font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: .5px; }
.t1-table tbody tr:hover { background: var(--bg-card-hover); }
.t1-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 徽标 */
.t1-badge {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px;
  border-radius: 999px; white-space: nowrap;
}
.t1-badge.gray   { background: var(--border); color: var(--text-muted); }
.t1-badge.green  { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.t1-badge.blue   { background: color-mix(in srgb, var(--brand-blue) 14%, transparent); color: var(--brand-blue); }
.t1-badge.orange { background: color-mix(in srgb, var(--gold) 22%, transparent); color: #8a5a00; }
.t1-badge.red    { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

/* ---------------------------------------------------------------- 任务行 */
.t1-job {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-card); margin-bottom: 12px; overflow: hidden;
}
.t1-job > .head {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; flex-wrap: wrap;
}
.t1-job .goal {
  flex: 1; min-width: 200px; font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.t1-job .meta { font-size: 12px; color: var(--text-muted); }
.t1-job .body { border-top: 1px solid var(--border); padding: 14px 16px; background: var(--bg-base); }

/* 事件终端 */
.t1-term {
  background: #0e1726; color: #d7e3f4; border-radius: var(--radius-md);
  padding: 12px 14px; max-height: 320px; overflow-y: auto;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
}
.t1-term .t { color: #6b7f99; }
.t1-term .k-ok   { color: #7ee2a8; }
.t1-term .k-err  { color: #ff9b93; }
.t1-term .k-info { color: #7cc4ff; }

/* ---------------------------------------------------------------- 代码块 / Key */
.t1-keybox {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 10px 12px;
}
.t1-keybox code { flex: 1; min-width: 200px; font-size: 13px; word-break: break-all; }

pre.t1-code {
  background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px; overflow-x: auto; font-size: 13px; line-height: 1.6; color: var(--text-secondary);
}

/* ---------------------------------------------------------------- 提示条 */
.t1-note {
  border-radius: var(--radius-md); padding: 12px 16px; font-size: 14px;
  border: 1px solid var(--border); background: var(--bg-card); margin-bottom: 16px;
}
.t1-note.ok   { border-color: color-mix(in srgb, var(--brand) 40%, transparent);
                background: color-mix(in srgb, var(--brand) 8%, transparent); color: var(--brand); }
.t1-note.warn { border-color: color-mix(in srgb, var(--gold) 50%, transparent);
                background: color-mix(in srgb, var(--gold) 12%, transparent); color: #8a5a00; }
.t1-note.err  { border-color: color-mix(in srgb, var(--danger) 40%, transparent);
                background: color-mix(in srgb, var(--danger) 8%, transparent); color: var(--danger); }

/* ---------------------------------------------------------------- Tab */
.t1-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; flex-wrap: wrap; }
.t1-tabs a, .t1-tabs button {
  padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--text-muted);
  border: 0; background: transparent; cursor: pointer; border-bottom: 2px solid transparent;
  text-decoration: none;
}
.t1-tabs a.active, .t1-tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.t1-pane { display: none; }
.t1-pane.active { display: block; }

/* ---------------------------------------------------------------- 充值卡 */
.t1-pack {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px;
  text-align: center; cursor: pointer; transition: .15s; background: var(--bg-card);
}
.t1-pack:hover { border-color: var(--brand); box-shadow: var(--shadow-md); }
.t1-pack .p { font-size: 24px; font-weight: 700; }
.t1-pack .b { font-size: 13px; color: var(--brand); font-weight: 600; margin-top: 4px; min-height: 19px; }

/* ---------------------------------------------------------------- 页脚间距 */
.t1-foot-space { height: 64px; }

/* ---------------------------------------------------------------- 问答 */
.t1-faq { border-bottom: 1px solid var(--border); padding: 18px 0; }
.t1-faq summary { font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.t1-faq summary::-webkit-details-marker { display: none; }
.t1-faq summary::before { content: '+ '; color: var(--brand); font-weight: 700; }
.t1-faq[open] summary::before { content: '− '; }
.t1-faq p { margin-top: 10px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ---------------------------------------------------------------- 收银台二维码 */
.t1-qr { display: flex; gap: 24px; flex-wrap: wrap; }
.t1-qr figure { margin: 0; text-align: center; }
.t1-qr img, .t1-qr .ph {
  width: 180px; height: 180px; object-fit: contain; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: #fff;
}
.t1-qr .ph { display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 13px; }
.t1-qr figcaption { margin-top: 8px; font-size: 13px; color: var(--text-muted); }
