/* ============================================================
   快聊 FastChat — 公共样式 site.css
   ============================================================ */

/* ── CSS 变量 ──────────────────────────────── */
:root {
  --brand:       #11998e;
  --brand-dark:  #0d7d74;
  --brand-light: #14b8a6;
  --brand-soft:  rgba(17,153,142,.08);
  --bg:          #ffffff;
  --bg-soft:     #f7f8fa;
  --bg-dark:     #0f172a;
  --ink-1:       #0f172a;
  --ink-2:       #1e293b;
  --ink-3:       #334155;
  --ink-4:       #64748b;
  --ink-5:       #94a3b8;
  --ink-6:       #cbd5e1;
  --ink-7:       #e2e8f0;
  --line:        #d2d6de;
  --line-soft:   #e5e7eb;
  --shadow-card: 0 4px 24px rgba(0,0,0,.06);
  --radius:      12px;
  --radius-sm:   8px;
}

/* ── Reset & Base ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 15px; color: var(--ink-2); line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; vertical-align: middle; }
.container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}

/* ── 按钮 ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px; font-size: 14px; font-weight: 600;
  border: none; border-radius: 10px; cursor: pointer;
  line-height: 1.4; transition: all .2s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--brand); color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--ink-3);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light {
  background: #e8f5f3; color: var(--brand-dark);
}
.btn-light:hover { background: #d0ede8; }
.btn-grad {
  background: linear-gradient(135deg, var(--brand), #38b2ac);
  color: #fff; box-shadow: 0 4px 14px rgba(17,153,142,.3);
}
.btn-grad:hover { box-shadow: 0 6px 20px rgba(17,153,142,.4); color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: 8px; }
.btn-outline {
  background: #fff; color: var(--ink-3); border: 1px solid var(--line);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-success { background: #10b981; color: #fff; }
.btn-success:hover { background: #059669; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }

/* ── 顶部导航 ──────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 800; color: var(--ink-1);
  letter-spacing: -.3px;
}
.brand:hover { color: var(--brand); }
.brand-logo {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #38b2ac);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.brand-logo svg { width: 18px; height: 18px; }
.brand-en { font-weight: 400; color: var(--ink-5); font-size: 13px; }
.nav-menu { display: flex; list-style: none; gap: 6px; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: 8px 16px; font-size: 14px; font-weight: 500;
  color: var(--ink-4); border-radius: 8px;
}
.nav-menu a:hover { color: var(--ink-1); background: var(--bg-soft); }
.nav-menu a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* 汉堡按钮：默认隐藏，移动端显示 */
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  background: transparent; border: 1px solid var(--line-soft);
  border-radius: 8px; cursor: pointer;
  padding: 0;
  position: relative;
  margin-left: 10px;
}
.nav-toggle span {
  position: absolute; left: 9px; right: 9px;
  height: 2px; background: var(--ink-2); border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 18px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav.open .nav-toggle span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

/* ── Hero ──────────────────────────────────── */
.hero { padding: 80px 0 60px; overflow: hidden; }

/* ── Hero 科技风背景（极简极光，index 专用） ─ */
.hero-tech {
  position: relative;
  background: #ffffff;
  overflow: hidden;
}
.hero-tech::before {
  content: '';
  position: absolute;
  top: -30%; left: -10%;
  width: 70%; height: 90%;
  background: linear-gradient(135deg, rgba(17,153,142,.35) 0%, rgba(17,153,142,0) 60%);
  filter: blur(60px);
  transform: rotate(-12deg);
  animation: heroBandA 16s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}
.hero-tech::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -10%;
  width: 70%; height: 90%;
  background: linear-gradient(135deg, rgba(99,102,241,0) 40%, rgba(99,102,241,.32) 100%);
  filter: blur(60px);
  transform: rotate(-12deg);
  animation: heroBandB 18s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}
.hero-tech .container { position: relative; z-index: 1; }
.hero-tech .hero-title {
  color: #0a1530;
  text-shadow: 0 1px 2px rgba(255,255,255,.6);
}
.hero-tech .hero-desc { color: #475569; }
.hero-tech .hero-tag {
  background: rgba(17,153,142,.12);
  color: #0d7d74;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(17,153,142,.08);
}
.hero-tech .dot {
  background: var(--brand);
  box-shadow: 0 0 8px rgba(17,153,142,.55);
}
.hero-tech .grad-text {
  background: linear-gradient(120deg, #0d9488 0%, #0891b2 35%, #2563eb 70%, #4f46e5 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 6px rgba(37,99,235,.15));
  font-weight: 900;
  letter-spacing: -1px;
}
.hero-tech .hero-stat .num {
  background: linear-gradient(120deg, #0d9488 0%, #0891b2 50%, #2563eb 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tech .hero-stat .lbl { color: #64748b; }
.hero-tech .hero-stats { border-top-color: rgba(15,23,42,.08); }
.hero-tech .stat-icon {
  background: linear-gradient(135deg, rgba(13,148,136,.16), rgba(37,99,235,.12));
  border-color: rgba(37,99,235,.18);
  box-shadow: 0 4px 14px rgba(37,99,235,.12);
}
.hero-tech .hero-stat:not(:last-child)::after {
  background: linear-gradient(180deg, transparent, rgba(37,99,235,.18), transparent);
}
@keyframes heroBandA {
  0%, 100% { transform: rotate(-12deg) translate(0, 0); }
  50%      { transform: rotate(-8deg)  translate(40px, 20px); }
}
@keyframes heroBandB {
  0%, 100% { transform: rotate(-12deg) translate(0, 0); }
  50%      { transform: rotate(-16deg) translate(-40px,-20px); }
}

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 20px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.hero-title {
  font-size: 52px; font-weight: 900; line-height: 1.18;
  color: var(--ink-1); margin: 0 0 20px; letter-spacing: -1px;
}
.grad-text {
  background: linear-gradient(135deg, var(--brand), #38b2ac, #6366f1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 17px; color: var(--ink-4); line-height: 1.8;
  margin: 0 0 32px; max-width: 460px;
}
.hero-cta { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 0;
  padding: 18px 0 0;
  margin-top: 28px;
  border-top: 1px solid var(--line-soft);
}
.hero-stat {
  flex: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 6px 18px;
  position: relative;
  transition: transform .25s ease;
}
.hero-stat:not(:last-child)::after {
  content: '';
  position: absolute; right: 0; top: 18%; bottom: 18%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(15,23,42,.12), transparent);
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child  { padding-right: 0; }
.hero-stat:hover { transform: translateY(-2px); }

.stat-icon {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  background: linear-gradient(135deg, rgba(17,153,142,.14), rgba(99,102,241,.10));
  border: 1px solid rgba(17,153,142,.18);
  box-shadow: 0 4px 14px rgba(17,153,142,.10);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-stat:hover .stat-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 22px rgba(17,153,142,.22);
}
.hero-stat .num {
  font-size: 22px; font-weight: 900;
  letter-spacing: -.5px;
  line-height: 1.1;
  background: linear-gradient(135deg, #0a1530 0%, #11998e 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat .lbl {
  font-size: 12px; color: var(--ink-5);
  margin-top: 3px;
  letter-spacing: .3px;
}
.hero-visual { position: relative; height: 420px; }

/* 浮动标签 */
.float-tag {
  position: absolute; z-index: 10;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.08);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.ft-1 { top: 10px; left: -10px; }
.ft-2 { top: 10px; right: -10px; }
.ft-3 { bottom: 60px; left: 50%; transform: translateX(-50%); }
.ft-1 .ico, .ft-2 .ico, .ft-3 .ico { font-size: 18px; }

/* 拟态聊天窗 */
.mock-window {
  position: absolute;
  width: 240px; background: #fff;
  border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,.1);
  overflow: hidden;
}
.mw-bar {
  height: 32px; background: #f1f5f9;
  display: flex; align-items: center; gap: 5px;
  padding: 0 12px;
}
.mw-bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: #cbd5e1;
}
.mw-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mw-msg { display: flex; align-items: flex-end; gap: 6px; }
.mw-msg.mine { flex-direction: row-reverse; }
.av {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand-soft); flex-shrink: 0;
}
.mw-msg.mine .av { background: #e8f5f3; }
.mw-bubble {
  max-width: 75%; padding: 8px 12px; border-radius: 12px;
  font-size: 12px; line-height: 1.5;
  background: #f1f5f9; color: var(--ink-2);
}
.mw-msg.mine .mw-bubble { background: var(--brand-soft); }
.mw-typing { display: flex; gap: 3px; padding: 8px 12px; }
.mw-typing i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-5); animation: typing 1.4s infinite;
}
.mw-typing i:nth-child(2) { animation-delay: .2s; }
.mw-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}
.mw-side { top: 30px; left: -5px; }
.mw-main { top: 100px; right: -20px; z-index: 5; }

/* ── Hero 客服工作台预览 ─────────────────── */
.hero-visual { height: 480px; }
.app-preview {
  position: absolute;
  top: 10px; right: -40px;
  width: 620px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(15,23,42,.18), 0 8px 24px rgba(15,23,42,.08);
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.06);
  animation: appFloat 6s ease-in-out infinite;
}
@keyframes appFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.app-bar {
  display: flex; align-items: center; gap: 12px;
  height: 38px; padding: 0 14px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border-bottom: 1px solid #e2e8f0;
}
.app-dots { display: flex; gap: 6px; }
.app-dots span {
  width: 11px; height: 11px; border-radius: 50%; background: #fecaca;
}
.app-dots span:nth-child(2) { background: #fde68a; }
.app-dots span:nth-child(3) { background: #bbf7d0; }
.app-title {
  font-size: 12px; color: #64748b; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #94a3b8;
  display: inline-block; margin-left: 8px;
}
.status-dot.online {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.18);
}

.app-body {
  display: grid;
  grid-template-columns: 56px 200px 1fr;
  height: 380px;
}

/* 左侧图标导航 */
.app-nav {
  background: #0f172a;
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 0; gap: 8px;
}
.app-nav .nav-item {
  position: relative;
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; cursor: pointer;
  transition: all .2s;
}
.app-nav .nav-item .ico { font-size: 18px; }
.app-nav .nav-item.active {
  background: linear-gradient(135deg, var(--brand), #38b2ac);
  color: #fff;
  box-shadow: 0 6px 16px rgba(17,153,142,.4);
}
.app-nav .nav-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #0f172a;
}

/* 中间会话列表 */
.app-list {
  background: #fafbfc;
  border-right: 1px solid #e5e7eb;
  display: flex; flex-direction: column;
}
.list-head {
  display: flex; gap: 16px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}
.head-tab {
  font-size: 12px; color: #94a3b8; font-weight: 600;
  cursor: pointer; padding-bottom: 4px;
  display: inline-flex; align-items: center; gap: 4px;
}
.head-tab.active {
  color: var(--brand);
  border-bottom: 2px solid var(--brand);
}
.head-tab .cnt {
  background: var(--brand); color: #fff;
  font-size: 10px; font-style: normal;
  padding: 1px 6px; border-radius: 8px;
}
.list-item {
  position: relative;
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 12px;
  cursor: pointer; transition: background .15s;
  border-left: 3px solid transparent;
}
.list-item:hover { background: #f1f5f9; }
.list-item.active {
  background: #fff;
  border-left-color: var(--brand);
}
.li-av {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.li-info { flex: 1; min-width: 0; }
.li-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2px;
}
.li-name { font-size: 13px; font-weight: 700; color: #0f172a; }
.li-time { font-size: 10px; color: #94a3b8; }
.li-msg {
  font-size: 12px; color: #64748b;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.li-dot {
  position: absolute; top: 14px; right: 10px;
  min-width: 16px; height: 16px; padding: 0 5px;
  background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

/* 右侧聊天区 */
.app-chat {
  display: flex; flex-direction: column;
  background: #fff;
}
.chat-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #fff, #fafbfc);
}
.ch-name {
  font-size: 14px; font-weight: 700; color: #0f172a;
  display: flex; align-items: center; gap: 6px;
}
.ch-tag {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff; font-size: 9px; font-weight: 800;
  padding: 1px 6px; border-radius: 4px;
  letter-spacing: .5px;
}
.ch-meta { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.ch-actions { display: flex; gap: 6px; }
.ch-btn {
  border: 1px solid #e5e7eb; background: #fff;
  font-size: 11px; padding: 5px 12px; border-radius: 6px;
  cursor: pointer; color: #475569; font-weight: 600;
  transition: all .15s;
}
.ch-btn:hover { border-color: var(--brand); color: var(--brand); }
.ch-btn.primary {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.ch-btn.primary:hover { background: var(--brand-dark); color: #fff; }

.chat-body {
  flex: 1; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  background:
    radial-gradient(circle at 20% 20%, rgba(17,153,142,.04) 0%, transparent 50%),
    #fafbfc;
  overflow: hidden;
}
.cm { display: flex; gap: 8px; align-items: flex-end; }
.cm.mine { flex-direction: row-reverse; }
.cm-av {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #38b2ac);
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cm-bubble {
  max-width: 72%; padding: 8px 12px;
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px 12px 12px 4px;
  font-size: 12px; line-height: 1.55; color: #1e293b;
  box-shadow: 0 2px 6px rgba(15,23,42,.04);
}
.cm.mine .cm-bubble {
  background: linear-gradient(135deg, var(--brand), #38b2ac);
  color: #fff; border-color: transparent;
  border-radius: 12px 12px 4px 12px;
  box-shadow: 0 4px 12px rgba(17,153,142,.25);
}
.typing-dots { display: inline-flex; gap: 3px; padding: 2px 0; }
.typing-dots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: #94a3b8; animation: typing 1.4s infinite;
}
.typing-dots i:nth-child(2) { animation-delay: .2s; }
.typing-dots i:nth-child(3) { animation-delay: .4s; }

/* 浮动标签层级与位置（覆盖默认） */
.hero-visual .float-tag {
  z-index: 20;
  box-shadow: 0 8px 24px rgba(15,23,42,.12);
  animation: floatTag 4s ease-in-out infinite;
}
.hero-visual .ft-1 { top: -4px;  left: -20px; animation-delay: 0s; }
.hero-visual .ft-2 { top: 60px;  right: -30px; animation-delay: 1s; }
.hero-visual .ft-3 { bottom: 30px; left: -30px; animation-delay: 2s; }
@keyframes floatTag {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ── Trust ─────────────────────────────────── */
.trust { padding: 40px 0 60px; text-align: center; }
.trust-tip { font-size: 13px; color: var(--ink-5); margin-bottom: 20px; }
.trust-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px;
}
.trust-grid span {
  padding: 6px 16px; border-radius: 20px;
  background: var(--bg-soft); color: var(--ink-4);
  font-size: 13px;
}

/* ── Section 通用 ──────────────────────────── */
.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head .section-title {
  font-size: 36px; font-weight: 800; letter-spacing: -.5px;
  margin: 0 0 12px; color: var(--ink-1);
}
.section-dark .section-title { color: #fff; }
.section-dark .section-sub { color: #9aa6c4; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--brand); margin-bottom: 12px;
}
.section-sub {
  font-size: 16px; color: var(--ink-5); margin: 0;
}

/* ── 功能卡片 ──────────────────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feat-card {
  padding: 32px 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.feat-h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: var(--ink-1); }
.feat-card p { font-size: 14px; color: var(--ink-4); line-height: 1.7; margin: 0; }

/* ── 场景卡片 ──────────────────────────────── */
.scenes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.scene-card {
  padding: 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line-soft);
  text-align: center; transition: box-shadow .2s;
}
.scene-card:hover { box-shadow: var(--shadow-card); }
.scene-emoji { font-size: 36px; margin-bottom: 12px; }
.scene-card h4 { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: var(--ink-1); }
.scene-card p { font-size: 13px; color: var(--ink-5); margin: 0; }

/* ── CTA Banner ────────────────────────────── */
.cta-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 48px 48px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--bg-dark), #1e293b);
  color: #fff;
}
.cta-banner h2 { font-size: 26px; font-weight: 800; margin: 0 0 8px; }
.cta-banner p { font-size: 15px; color: rgba(255,255,255,.78); margin: 0; }
.cta-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  color: #b6c1d9;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h5 {
  color: #fff; font-size: 14px; font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: .5px;
}
.footer p, .footer a {
  font-size: 13px; color: #8b97b3; line-height: 1.9;
}
.footer a:hover { color: #fff; }
.footer-brand .brand-en { color: #6b779a; }
.footer-brand p { margin-top: 14px; max-width: 320px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; }
.contact-list li {
  display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 10px;
}
.contact-list .ico { width: 18px; flex-shrink: 0; opacity: .7; margin-top: 2px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  font-size: 12px;
  color: #6b779a;
}

/* ── 联系我们弹窗 ──────────────────────────── */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(10, 18, 38, 0.7);
  display: none; align-items: center; justify-content: center;
  z-index: 999;
}
.modal-mask.show { display: flex; }
.modal-card {
  position: relative;
  width: 420px; max-width: 90vw;
  background: #fff; border-radius: 20px;
  padding: 40px 32px 32px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
}
.modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none;
  font-size: 24px; cursor: pointer; color: var(--ink-5);
}
.modal-close:hover { color: var(--ink-1); }
.modal-card h3 { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.modal-sub { font-size: 13px; color: var(--ink-5); margin: 0 0 24px; }
.modal-qr { text-align: center; margin-bottom: 24px; }
.modal-qr img { width: 160px; height: 160px; border-radius: 12px; }
.modal-info { display: flex; flex-direction: column; gap: 12px; }
.modal-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--bg-soft);
}
.modal-row .ico { font-size: 20px; flex-shrink: 0; }
.modal-row .lbl { font-size: 11px; color: var(--ink-5); }
.modal-row .val { font-size: 14px; font-weight: 600; color: var(--ink-1); }

/* ── 滚动渐入动画 ──────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── 功能页：分类大模块 ────────────────────── */
.cat-section { padding: 80px 0; }
.cat-head {
  display: flex; align-items: flex-start; gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.cat-num {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), #38b2ac);
  color: #fff;
  font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(17,153,142,.25);
  letter-spacing: .5px;
}
.cat-info h3 {
  font-size: 26px; font-weight: 800; margin: 4px 0 6px;
  color: var(--ink-1); letter-spacing: -.3px;
}
.cat-info p {
  font-size: 15px; color: var(--ink-5); margin: 0;
}

/* 功能子项网格 */
.feat-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feat-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 22px; border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line-soft);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: rgba(17,153,142,.25);
}
.feat-item-ico {
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.feat-item h4 {
  font-size: 15px; font-weight: 700;
  margin: 2px 0 4px; color: var(--ink-1);
}
.feat-item p {
  font-size: 13px; color: var(--ink-5);
  line-height: 1.6; margin: 0;
}

/* section-soft 内的卡片底色微调，避免与背景同色 */
.section-soft .feat-item { background: #fff; }

/* ── 套餐价格卡片 ──────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  padding-top: 12px;
}
.price-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 38px 32px 32px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(15,23,42,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.price-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, transparent);
  transition: background .25s ease;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15,23,42,.12);
  border-color: rgba(17,153,142,.35);
}
.price-card:hover::before {
  background: linear-gradient(90deg, var(--brand), #38b2ac, #6366f1);
}

/* 主推卡片 */
.price-card.featured {
  border: none;
  transform: translateY(-12px);
  box-shadow: 0 28px 70px rgba(17,153,142,.22);
  background:
    linear-gradient(180deg, #ffffff 0%, #f6fcfb 100%);
  z-index: 2;
}
.price-card.featured::before {
  background: linear-gradient(90deg, var(--brand), #38b2ac, #6366f1);
  height: 5px;
}
.price-card.featured::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, var(--brand), #38b2ac 50%, #6366f1);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.price-card.featured:hover {
  transform: translateY(-16px);
  box-shadow: 0 32px 80px rgba(17,153,142,.28);
}

/* 等级标签 */
.price-tier {
  display: inline-flex; align-items: center; gap: 5px;
  align-self: flex-start;
  padding: 5px 12px; border-radius: 20px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12px; font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 16px;
}
.price-card.featured .price-tier {
  background: linear-gradient(135deg, var(--brand), #38b2ac);
  color: #fff;
  box-shadow: 0 6px 16px rgba(17,153,142,.30);
}
.price-card.featured .price-tier::before {
  content: '★';
  font-size: 11px;
}

/* 名称 */
.price-name {
  font-size: 22px; font-weight: 800;
  margin: 0 0 18px; color: var(--ink-1);
  letter-spacing: -.3px;
}

/* 价格 */
.price-amount {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 8px;
}
.price-amount .y {
  font-size: 22px; font-weight: 800; color: #dc2626;
}
.price-amount .v {
  font-size: 56px; font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f97316 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(220,38,38,.18));
}
.price-card.featured .price-amount .v {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 40%, #f97316 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 3px 6px rgba(220,38,38,.25));
}
.price-amount .u {
  font-size: 14px; color: var(--ink-5); margin-left: 4px;
}

/* 副信息（原价/省多少） */
.price-extra {
  font-size: 13px; color: var(--ink-5);
  min-height: 22px;
  margin-bottom: 10px;
}
.price-extra .save {
  display: inline-flex; align-items: center; gap: 3px;
  margin-left: 8px;
  padding: 3px 9px; border-radius: 10px;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #b91c1c;
  font-size: 11px; font-weight: 700;
  border: 1px solid rgba(220,38,38,.18);
}
.price-extra .save::before {
  content: '🔥';
  font-size: 11px;
}

/* 分隔线 */
.price-card hr {
  border: none; border-top: 1px dashed var(--line-soft);
  margin: 18px 0 22px;
}

/* 功能列表 */
.price-list {
  list-style: none; padding: 0; margin: 0 0 26px;
  flex: 1;
}
.price-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ink-3);
  padding: 8px 0;
  line-height: 1.5;
}
.price-list .ck {
  flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-soft), rgba(17,153,142,.15));
  color: var(--brand);
  font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.price-card.featured .price-list .ck {
  background: linear-gradient(135deg, var(--brand), #38b2ac);
  color: #fff;
  box-shadow: 0 2px 6px rgba(17,153,142,.3);
}
.price-list li b {
  color: var(--ink-1); font-weight: 700;
  background: linear-gradient(135deg, #fef9c3, transparent);
  padding: 0 2px;
}

/* 按钮 — 重点美化 */
.price-card .btn {
  width: 100%;
  justify-content: center;
  padding: 14px 22px;
  font-size: 15px; font-weight: 700;
  border-radius: 12px;
  letter-spacing: .5px;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.price-card .btn::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 80%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.price-card .btn:hover::after { left: 130%; }

/* 入门卡按钮：从幽灵 → 描边主色 */
.price-card .btn-ghost {
  background: #fff;
  color: var(--brand);
  border: 1.5px solid var(--brand-soft);
  box-shadow: 0 4px 12px rgba(17,153,142,.06);
}
.price-card .btn-ghost:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17,153,142,.30);
}

/* 主推卡按钮：发光渐变 */
.price-card .btn-grad {
  background: linear-gradient(135deg, var(--brand) 0%, #38b2ac 50%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(17,153,142,.35), 0 2px 6px rgba(99,102,241,.20);
  background-size: 200% 100%;
  background-position: 0% 50%;
}
.price-card .btn-grad:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(17,153,142,.45), 0 4px 12px rgba(99,102,241,.25);
}

/* 长期卡按钮：实色主品牌 */
.price-card .btn-primary {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  box-shadow: 0 8px 22px rgba(13,125,116,.30);
}
.price-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(13,125,116,.40);
  color: #fff;
}

/* ── FAQ ───────────────────────────────────── */
.faq {
  max-width: 820px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 26px;
  transition: box-shadow .2s, border-color .2s;
}
.faq-item:hover {
  box-shadow: var(--shadow-card);
  border-color: rgba(17,153,142,.25);
}
.faq-q {
  font-size: 16px; font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 10px;
  position: relative;
  padding-left: 24px;
}
.faq-q::before {
  content: 'Q'; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 800;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.faq-a {
  font-size: 14px; color: var(--ink-4);
  line-height: 1.8;
  padding-left: 24px;
  position: relative;
}
.faq-a::before {
  content: 'A'; position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px;
  background: var(--bg-soft); color: var(--ink-4);
  font-size: 11px; font-weight: 800;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}

/* ── 响应式 ───────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid, .feat-grid, .pricing-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-title { font-size: 38px; }
  .hero-visual { height: 320px; }
  .section-title { font-size: 28px; }

  /* 汉堡按钮显示 */
  .nav-toggle { display: block; }

  /* 菜单改为下拉抽屉 */
  .nav-inner { position: relative; flex-wrap: wrap; }
  .nav nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--line-soft);
    box-shadow: 0 12px 32px rgba(15,23,42,.10);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav.open nav { max-height: 60vh; overflow-y: auto; }
  .nav-menu {
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 12px;
  }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    padding: 14px 14px;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .nav-menu li:last-child a { border-bottom: none; }
  .nav-menu a:hover { background: var(--bg-soft); }

  /* CTA 按钮缩小，登录+注册都保留 */
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding: 8px 14px; font-size: 13px; }

  .section { padding: 64px 0; }
  .feat-list { grid-template-columns: repeat(2, 1fr); }
  .scenes { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { padding: 40px 28px; flex-direction: column; text-align: center; }
  .price-card.featured { transform: none; }
  .cat-section { padding: 56px 0; }
  .cat-head { gap: 14px; margin-bottom: 28px; }
  .cat-num { width: 52px; height: 52px; font-size: 18px; border-radius: 12px; }
  .cat-info h3 { font-size: 22px; }
}

/* ── 登录 / 注册页 ─────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--bg);
}

/* 左侧品牌 banner */
.auth-banner {
  position: relative;
  overflow: hidden;
  padding: 56px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(135deg, #0b1027 0%, #1e1b4b 30%, #1d4ed8 70%, #0891b2 100%);
}
.auth-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 35% at 20% 85%, rgba(56,189,248,.28) 0%, transparent 60%),
    radial-gradient(ellipse 45% 30% at 80% 20%, rgba(167,139,250,.22) 0%, transparent 60%);
  pointer-events: none;
}
.auth-banner::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 100%);
  pointer-events: none;
}
.auth-banner > * { position: relative; z-index: 1; }
.auth-banner .brand { color: #fff; font-size: 20px; }
.auth-banner .brand:hover { color: #fff; }
.auth-banner .brand-en { color: rgba(255,255,255,.6); }

.auth-banner-main { margin: auto 0; }
.auth-banner-main h2 {
  font-size: 38px; font-weight: 800; line-height: 1.3;
  margin: 0 0 16px; letter-spacing: -.5px;
}
.auth-banner-main .grad-text {
  background: linear-gradient(135deg, #5eead4, #a5b4fc, #f0abfc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-banner-main p {
  font-size: 15px; color: rgba(255,255,255,.72); line-height: 1.75;
  max-width: 420px; margin: 0 0 32px;
}
.auth-points { display: flex; flex-direction: column; gap: 12px; }
.auth-point {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,.86);
}
.auth-point .ck {
  flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(94,234,212,.18);
  color: #5eead4;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.auth-banner-foot {
  font-size: 12px; color: rgba(255,255,255,.45);
  margin-top: 24px;
}

/* 右侧表单面板 */
.auth-pane {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-back {
  position: absolute; top: 24px; left: 32px;
  font-size: 13px; color: var(--ink-5); font-weight: 500;
}
.auth-back:hover { color: var(--brand); }

.auth-card {
  width: 100%; max-width: 420px;
}
.auth-card h1 {
  font-size: 28px; font-weight: 800;
  margin: 0 0 6px; letter-spacing: -.5px;
  color: var(--ink-1);
}
.auth-sub {
  font-size: 14px; color: var(--ink-5);
  margin: 0 0 28px;
}

/* Tab 切换 */
.auth-tabs {
  display: flex; gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.auth-tab {
  padding: 10px 0;
  margin-right: 28px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-5);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .2s;
}
.auth-tab:hover { color: var(--ink-2); }
.auth-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* 表单字段组 */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form.hidden { display: none; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group > label {
  font-size: 13px; color: var(--ink-3); font-weight: 500;
}

/* 行内辅助：记住我/忘记密码 / 同意协议 */
.auth-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px;
  color: var(--ink-4);
  margin: 4px 0 2px;
}
.auth-row label {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; user-select: none;
}
.auth-row input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--brand);
  cursor: pointer;
}
.auth-row a { color: var(--brand); font-weight: 500; }
.auth-row a:hover { color: var(--brand-dark); }

/* 提交按钮：拉满宽度 */
.auth-form .btn {
  width: 100%; justify-content: center;
  padding: 13px 22px; font-size: 15px;
  margin-top: 6px;
}

/* 错误提示条（接口级错误） */
.form-error {
  padding: 10px 14px; border-radius: 8px;
  background: #fef2f2; color: #b91c1c;
  border: 1px solid #fecaca;
  font-size: 13px;
}

/* 字段级错误 */
.field-msg { font-size: 12px; min-height: 0; color: var(--ink-5); }
.field-msg.error { color: #dc2626; }
.field-input:has(input:focus) { border-color: var(--brand); }

/* 分隔线 "其它方式" */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0 14px;
  font-size: 12px; color: var(--ink-5);
}
.auth-divider::before,
.auth-divider::after {
  content: ''; flex: 1; height: 1px;
  background: var(--line-soft);
}

/* 底部辅助文字 */
.auth-foot {
  text-align: center;
  font-size: 13px; color: var(--ink-5);
  margin-top: 20px;
  line-height: 1.6;
}
.auth-foot a { color: var(--brand); font-weight: 600; }
.auth-foot a:hover { color: var(--brand-dark); }

/* 移动端：banner 隐藏，表单铺满 */
@media (max-width: 860px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-banner { display: none; }
  .auth-pane { padding: 64px 20px 40px; }
  .auth-back { top: 18px; left: 20px; }
}

/* ── 用户中心布局 ──────────────────────────── */
.user-page { background: var(--bg-soft); min-height: 100vh; }
.user-shell {
  max-width: 1160px; margin: 0 auto; padding: 32px 24px 80px;
  display: flex; gap: 28px; align-items: flex-start;
}
.user-side {
  width: 210px; flex-shrink: 0;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 20px 0; position: sticky; top: 80px;
}
.user-side-title {
  font-size: 15px; font-weight: 700; color: var(--ink-3);
  padding: 0 20px 16px; margin-bottom: 4px;
}
.user-menu { list-style: none; margin: 0; padding: 0; }
.user-menu li {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; font-size: 14px; color: var(--ink-4);
  cursor: pointer; transition: all .15s;
}
.user-menu li:hover { background: var(--bg-soft); color: var(--ink-1); }
.user-menu li.active {
  color: var(--brand); font-weight: 600;
  background: var(--brand-soft); border-right: 3px solid var(--brand);
}
.user-menu li.danger { color: #ef4444; }
.user-menu li.danger:hover { background: #fef2f2; }
.user-menu hr { margin: 8px 16px; border: none; border-top: 1px solid var(--line-soft); }
.um-icon { width: 20px; text-align: center; font-size: 15px; }

.user-main { flex: 1; min-width: 0; overflow: hidden; }
.user-panel { display: none; }
.user-panel.active { display: block; }
.panel-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 28px 32px;
  margin-bottom: 20px;
}
.panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; margin-bottom: 28px;
}
.panel-head h2 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.panel-head p { font-size: 13px; color: var(--ink-5); margin: 0; }

/* ── 表单元素 ──────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.form-grid .full { grid-column: 1 / -1; }
.form-row { display: grid; gap: 6px; }
.form-row label {
  font-size: 13px; color: var(--ink-3); font-weight: 500;
}
.form-row label .req { color: #dc2626; margin-left: 2px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 14px;
  color: var(--ink-2);
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17,153,142,.1);
}
.form-row input[readonly] { background: var(--bg-soft); color: var(--ink-4); }
.form-row textarea { min-height: 96px; resize: vertical; }
.form-row .helper { font-size: 12px; color: var(--ink-5); }

.form-actions {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.field-input {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #b8bec6;
  border-radius: 10px;
  overflow: hidden;
}
.field-input:hover {
  border-color: #8b93a0;
}
.field-input:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17,153,142,.1);
}
.field-input .prefix {
  padding: 0 12px 0 14px;
  color: var(--ink-4);
  font-size: 14px;
  border-right: 1px solid var(--line-soft);
  height: 22px;
  display: flex; align-items: center;
  white-space: nowrap;
}
.field-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 13px 14px;
  font-size: 14px;
  color: var(--ink-2);
}
.field-input input::placeholder { color: var(--ink-5); }
.field-input .toggle-pass {
  background: none; border: none; cursor: pointer;
  padding: 0 14px;
  color: var(--ink-5);
  font-size: 14px;
  user-select: none;
}
.field-input .toggle-pass:hover { color: var(--ink-3); }
.field-input .send-code {
  background: none; border: none;
  padding: 0 16px;
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.field-input .send-code:hover { color: var(--brand-dark); }
.field-input .send-code:disabled { color: var(--ink-5); cursor: not-allowed; }
.field-input .copy-btn {
  align-self: stretch;
  border: none; border-left: 1px solid var(--line-soft);
  padding: 0 14px;
  font-size: 12px;
  background: var(--brand); color: #fff;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
}
.field-input .copy-btn:hover { background: var(--brand-dark); }
.field-input .copy-btn.ok { background: #10b981; }

.field-helper {
  font-size: 12px; color: var(--ink-5); margin-top: 2px;
}
.field-msg {
  font-size: 13px; margin-top: 6px;
}

/* ── 数据表格 ──────────────────────────────── */
.data-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.data-table th {
  text-align: left; padding: 12px 14px;
  font-size: 12px; font-weight: 600; color: var(--ink-5);
  text-transform: uppercase; letter-spacing: .5px;
  background: var(--bg-soft); border-bottom: 1px solid var(--line-soft);
}
.data-table td {
  padding: 14px; border-bottom: 1px solid var(--line-soft);
  color: var(--ink-3);
}
.data-table tr:hover td { background: #fafbfc; }

/* ── 标签 ──────────────────────────────────── */
.tag-pill {
  display: inline-block;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.tag-active { background: #d1fae5; color: #065f46; }
.tag-paid { background: #fef3c7; color: #92400e; }
.badge {
  display: inline-block;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-secondary { background: #f1f5f9; color: #475569; }

/* ── 下载网格 ──────────────────────────────── */
.dl-grid { display: flex; flex-direction: column; gap: 12px; }
.dl-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft); background: var(--bg-soft);
}
.dl-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-soft), #e8f5f3);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.dl-info { flex: 1; min-width: 0; }
.dl-info h4 { font-size: 15px; font-weight: 700; margin: 0 0 2px; }
.dl-ver { font-size: 12px; color: var(--ink-5); }
.dl-meta { font-size: 11px; color: var(--ink-5); margin-top: 2px; }
.dl-tip {
  margin-top: 20px; padding: 16px; border-radius: 10px;
  background: #f5f7fa; font-size: 13px; color: var(--ink-5); line-height: 1.8;
}

/* ── 类型选择 ──────────────────────────────── */
.type-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.type-card {
  padding: 24px; border-radius: var(--radius);
  border: 2px solid var(--line-soft); cursor: pointer;
  transition: all .2s;
}
.type-card:hover { border-color: var(--brand); }
.type-card.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.type-emoji { font-size: 32px; margin-bottom: 8px; }
.type-card h4 { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.type-card p { font-size: 13px; color: var(--ink-5); margin: 0; }

/* ── 密码强度指示器 ────────────────────────── */
.pwd-strength { display: flex; gap: 6px; margin-top: 6px; }
.pwd-strength i {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--line-soft); transition: background .2s;
}
.pwd-strength i.active:nth-child(1) { background: #ef4444; }
.pwd-strength i.active:nth-child(2) { background: #f59e0b; }
.pwd-strength i.active:nth-child(3) { background: #22c55e; }
.pwd-strength i.active:nth-child(4) { background: #11998e; }
.pwd-strength-tip {
  font-size: 11px; color: var(--ink-5); margin-top: 2px;
}

/* ── 复制按钮 ──────────────────────────────── */
.copy-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 14px; font-size: 12px; font-weight: 600;
  background: var(--brand); color: #fff;
  border: none; border-radius: 6px; cursor: pointer;
  transition: background .2s;
}
.copy-btn:hover { background: var(--brand-dark); }
.copy-btn.ok { background: #10b981; }

/* ── 公共提示框 Toast ──────────────────────── */
.toast-container {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  opacity: 0; transform: translateY(-10px);
  transition: all .3s ease;
  min-width: 280px; justify-content: center;
}
.toast.in { opacity: 1; transform: translateY(0); }
.toast-success { background: #d1fae5; color: #065f46; }
.toast-error { background: #fee2e2; color: #991b1b; }
.toast-warning { background: #fef3c7; color: #92400e; }
.toast-info { background: #dbeafe; color: #1e40af; }

/* ── 响应式补充 ───────────────────────────── */
@media (max-width: 768px) {
  .user-shell { flex-direction: column; padding: 16px; }
  .user-side { width: 100%; position: static; }
  .user-side ul { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 12px 12px; }
  .user-side li { border-radius: 8px; }
  .user-side li.active { border-right: none; border-bottom: 3px solid var(--brand); }
  .form-grid { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }

  /* 移动端：让工作台预览自适应铺满，不再隐藏 */
  .hero-visual {
    height: auto;
    min-height: 360px;
    margin-top: 32px;
    overflow: visible;
  }
  .mock-window { display: none; }
  .app-preview {
    position: relative;
    top: auto; right: auto;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    transform: scale(.96);
    transform-origin: top center;
  }
  .app-preview .app-body {
    grid-template-columns: 48px 160px 1fr;
    height: 320px;
  }
  .hero-visual .float-tag {
    font-size: 12px;
    padding: 5px 10px;
  }
  .hero-visual .ft-1 { top: -6px;  left: 8px; }
  .hero-visual .ft-2 { top: 30px;  right: 4px; }
  .hero-visual .ft-3 { bottom: -4px; left: 50%; transform: translateX(-50%); }

  .auth-page { grid-template-columns: 1fr; }
  .auth-banner { display: none; }
  .feat-list { grid-template-columns: 1fr; }
  .price-amount .v { font-size: 40px; }
  .faq-item { padding: 18px 20px; }
}

/* 超小屏（≤480）进一步缩小聊天区，避免内容挤压 */
@media (max-width: 480px) {
  .app-preview .app-body { grid-template-columns: 44px 140px 1fr; height: 300px; }
  .app-preview .li-msg { font-size: 11px; }
  .app-preview .ch-meta { display: none; }
  .app-preview .cm-bubble { font-size: 11px; padding: 7px 10px; }
}
