/* =========================================================
   来创AI · 科研小助手 - Web 版样式
   风格：紫蓝渐变品牌色 + 白色卡片 + 圆角
   ========================================================= */

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

:root {
  --brand: #7C5CFF;       /* 主品牌色 紫 */
  --brand-2: #5B8DEF;     /* 副品牌色 蓝 */
  --brand-pink: #E54D9A;
  --brand-green: #22C55E;
  --brand-orange: #F59E0B;
  --brand-red: #EF4444;
  --brand-cyan: #06B6D4;
  --brand-teal: #14B8A6;
  --brand-indigo: #6366F1;

  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --border: #EAECF0;
  --text-1: #1D2129;
  --text-2: #4E5969;
  --text-3: #86909C;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(16,24,40,.04);
  --shadow-hover: 0 4px 18px rgba(124,92,255,.16);
  --radius: 12px;
  --radius-sm: 8px;
}

html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; color: inherit; }
input, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.hidden { display: none !important; }
.sep { height: 1px; background: var(--border); margin: 8px 16px !important; list-style: none !important; }

#app { min-height: 100vh; display: flex; flex-direction: column; }

/* =========================================================
   顶部栏
   ========================================================= */
.topbar {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-logo {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #6366F1 0%, #A855F7 50%, #EC4899 100%);
  color: #fff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; font-style: italic;
}
.brand-logo i { font-style: normal; font-size: 11px; opacity: .9; }
.brand-name { font-size: 18px; font-weight: 700; background: linear-gradient(135deg, #6366F1, #A855F7); -webkit-background-clip: text; background-clip: text; color: transparent; }

.topbar-right { display: flex; align-items: center; gap: 12px; }
.tb-btn {
  height: 34px;
  padding: 0 16px;
  border-radius: 18px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 4px;
  transition: transform .15s, box-shadow .15s;
}
.tb-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.tb-red   { background: linear-gradient(135deg, #EF4444, #F87171); }
.tb-green { background: linear-gradient(135deg, #10B981, #34D399); }
.tb-pink  { background: linear-gradient(135deg, #E54D9A, #F472B6); }
.tb-cyan  { background: linear-gradient(135deg, #0891B2, #22D3EE); }

.user-area { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 16px; background: var(--bg); border-radius: 20px; }
.balance-label { color: var(--text-3); font-size: 12px; }
.balance-num { font-weight: 700; color: #5B21B6; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #8B5CF6, #D946EF); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; }

/* =========================================================
   主体
   ========================================================= */
.main-wrap { flex: 1; display: flex; overflow: hidden; }

.sidebar {
  width: 220px;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 16px 0;
  overflow-y: auto;
  height: calc(100vh - 56px);
  position: sticky;
  top: 56px;
}
.menu { list-style: none; }
.menu li {
  padding: 10px 24px;
  display: flex; align-items: center; gap: 10px;
  color: var(--text-2);
  cursor: pointer;
  font-size: 14px;
  transition: all .15s;
  border-left: 3px solid transparent;
  margin: 2px 0;
}
.menu li:hover { background: #F5F3FF; color: var(--brand); }
.menu li.active {
  background: linear-gradient(90deg, #EDE9FE 0%, transparent 100%);
  border-left-color: var(--brand);
  color: var(--brand);
  font-weight: 600;
}
.menu li .ico { font-size: 16px; width: 18px; text-align: center; }
.menu .sep { padding: 0; }

.content {
  flex: 1;
  padding: 24px 32px 48px;
  overflow-y: auto;
  height: calc(100vh - 56px);
  min-width: 0;
}

/* =========================================================
   主页 - 全新设计
   ========================================================= */

/* Hero 首屏 */
.home-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 56px 48px 48px;
  margin-bottom: 36px;
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 40%, #4C1D95 100%);
  box-shadow: 0 10px 40px rgba(76, 29, 149, 0.25);
}
.home-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.orb-1 {
  width: 320px; height: 320px;
  background: #7C5CFF;
  top: -80px; right: -60px;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-2 {
  width: 260px; height: 260px;
  background: #5B8DEF;
  bottom: -60px; left: 20%;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
.orb-3 {
  width: 180px; height: 180px;
  background: #E54D9A;
  top: 40%; right: 30%;
  opacity: 0.3;
  animation: orbFloat 12s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.08); }
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.home-hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.home-hero-title {
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.home-hero-brand {
  background: linear-gradient(135deg, #A78BFA 0%, #818CF8 50%, #F0ABFC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
}
.home-hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}
.home-cta-primary {
  padding: 12px 28px;
  background: #fff;
  color: #4C1D95;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: all .2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.home-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.home-cta-secondary {
  padding: 12px 28px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all .2s;
  backdrop-filter: blur(4px);
}
.home-cta-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}
.home-hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.15);
}

/* 区块通用 */
.home-section {
  margin-bottom: 36px;
}
.home-section-head {
  margin-bottom: 20px;
}
.home-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}
.home-section-desc {
  font-size: 13px;
  color: var(--text-3);
}

/* 核心功能卡片 */
.home-core-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.core-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px 24px;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.core-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity .25s;
}
.core-1::before { background: linear-gradient(90deg, #7C5CFF, #A78BFA); }
.core-2::before { background: linear-gradient(90deg, #5B8DEF, #93C5FD); }
.core-3::before { background: linear-gradient(90deg, #14B8A6, #5EEAD4); }
.core-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(16,24,40,0.08);
  border-color: transparent;
}
.core-card:hover::before { opacity: 1; }
.core-num {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}
.core-1 .core-num { color: rgba(124,92,255,0.15); }
.core-2 .core-num { color: rgba(91,141,239,0.15); }
.core-3 .core-num { color: rgba(20,184,166,0.15); }
.core-ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}
.core-1 .core-ico { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); }
.core-2 .core-ico { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); }
.core-3 .core-ico { background: linear-gradient(135deg, #CCFBF1, #99F6E4); }
.core-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
}
.core-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 16px;
}
.core-arrow {
  font-size: 18px;
  color: var(--text-3);
  transition: all .25s;
}
.core-card:hover .core-arrow {
  color: var(--brand);
  transform: translateX(4px);
}

/* 全部工具 */
.home-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all .2s;
}
.tool-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 14px rgba(124,92,255,0.1);
  transform: translateY(-2px);
}
.tool-ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F5F3FF, #EDE9FE);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.tool-body { min-width: 0; }
.tool-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 2px;
}
.tool-desc {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 响应式 */
@media (max-width: 900px) {
  .home-core-grid { grid-template-columns: 1fr; }
  .home-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .home-hero { padding: 36px 24px 32px; }
  .home-hero-title { font-size: 38px; }
  .home-hero-stats { gap: 18px; }
}
@media (max-width: 560px) {
  .home-tools-grid { grid-template-columns: 1fr; }
  .home-hero-cta { flex-direction: column; align-items: stretch; }
}

/* =========================================================
   通用页面组件
   ========================================================= */
.page-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; padding-left: 4px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.title-bar { display: flex; align-items: center; gap: 10px; }
.title-bar .bar-ico {
  width: 3px; height: 16px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%);
  border-radius: 2px;
}
.title-bar span:last-child { font-weight: 700; font-size: 15px; }
.hint-text { color: var(--text-3); font-size: 12px; }
.result-head { display: flex; align-items: center; gap: 12px; }
.count-badge {
  display: inline-block;
  padding: 2px 10px;
  background: #F3F4F6;
  color: var(--text-3);
  border-radius: 10px;
  font-size: 12px;
}

/* 按钮 */
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; font-weight: 600;
  height: 40px; padding: 0 22px;
  border-radius: 8px;
  transition: all .15s;
  box-shadow: 0 2px 8px rgba(124,92,255,.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(124,92,255,.35); }
.btn-primary.big { height: 48px; padding: 0 36px; font-size: 16px; min-width: 200px; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  height: 34px; padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-2);
  font-size: 13px;
  transition: all .15s;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.action-row { display: flex; justify-content: center; padding: 8px 0 20px; gap: 16px; }

/* 模式选择 */
.mode-row { display: flex; gap: 12px; }
.mode-btn {
  flex: 1;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: all .15s;
  background: #fff;
}
.mode-btn:hover { border-color: #C4B5FD; color: var(--brand); }
.mode-btn.active {
  border-color: var(--brand);
  color: var(--brand);
  background: linear-gradient(135deg, #FAF5FF, #EFF6FF);
  box-shadow: inset 0 0 0 1px var(--brand);
}

/* 文本区 */
.ta {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  min-height: 320px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-1);
  transition: border-color .15s;
  outline: none;
}
.ta-sm { min-height: 100px; }
.ta:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,92,255,.1); }

.split-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 1200px) { .split-wrap { grid-template-columns: 1fr; } }

/* =========================================================
   表单（论文写作/开题报告/任务书）
   ========================================================= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.form-item.full { grid-column: 1 / -1; }
.form-item label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
}
.form-item label .req { color: var(--brand-red); font-style: normal; margin-left: 2px; }
.form-item input,
.form-item select,
.form-item textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-1);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124,92,255,.1);
}
.form-item textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

/* 进度条 */
.progress-bar {
  width: 100%;
  height: 10px;
  background: #F1F5F9;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 6px;
  transition: width .3s ease;
}
.progress-msg {
  color: var(--text-2);
  font-size: 13px;
  min-height: 20px;
}

/* 生成结果展示（Markdown 简易渲染） */
.result-content {
  max-height: 720px;
  overflow-y: auto;
  padding: 20px 24px;
  background: #FAFBFC;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-1);
  white-space: pre-wrap;
  word-break: break-word;
}
.result-content h1 { font-size: 20px; font-weight: 700; margin: 16px 0 12px; }
.result-content h2 { font-size: 17px; font-weight: 700; margin: 14px 0 10px; }
.result-content h3 { font-size: 15px; font-weight: 600; margin: 12px 0 8px; }
.result-content p { margin: 8px 0; }
.result-content strong { font-weight: 700; }

/* =========================================================
   上传区
   ========================================================= */
.dropzone {
  border: 2px dashed #D1D5DB;
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: #FAFBFC;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--brand);
  background: #FAF5FF;
}
.dz-ico {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EDE9FE, #EFF6FF);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 12px;
}
.dz-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--text-1); }
.dz-title em { color: var(--text-3); font-style: normal; font-weight: 400; }
.dz-sub { color: var(--text-3); font-size: 12px; }
.file-info {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  margin-top: 12px;
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: var(--radius-sm);
  color: #166534;
  font-weight: 600;
}

/* =========================================================
   模板选择 Combo-box
   ========================================================= */
.combo-box { position: relative; }
.combo-trigger {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff;
  transition: all .15s;
  font-size: 14px;
  color: var(--text-1);
}
.combo-trigger:hover { border-color: var(--brand); }
.combo-label { color: var(--text-1); }
.combo-arrow { color: var(--text-3); transition: transform .2s; }
.combo-box.open .combo-arrow { transform: rotate(180deg); }
.combo-box.open .combo-trigger { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,92,255,.1); }

.combo-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(16,24,40,.12);
  z-index: 500;
  padding: 10px;
  max-height: 420px;
  display: flex; flex-direction: column;
}
.combo-search {
  display: flex; align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
}
.combo-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,92,255,.1); }
.search-ico { margin-right: 8px; color: var(--text-3); font-size: 13px; }
.combo-search input { flex: 1; border: none; outline: none; font-size: 14px; background: transparent; }
.combo-list { overflow-y: auto; flex: 1; }
.combo-group-label {
  padding: 6px 12px; color: var(--text-3); font-size: 12px;
  background: #F9FAFB; border-radius: 6px; margin: 4px;
}
.combo-item {
  padding: 10px 12px;
  border-radius: 8px;
  margin: 2px 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .12s;
}
.combo-item:hover { background: #F5F3FF; }
.combo-item.selected { background: linear-gradient(90deg, #EDE9FE, #EFF6FF); color: var(--brand); font-weight: 600; }
.combo-item.selected::after { content: "✓"; color: var(--brand); margin-left: 8px; }
.combo-empty { padding: 30px 12px; text-align: center; color: var(--text-3); font-size: 13px; }
.combo-item small { color: var(--text-3); font-size: 11px; margin-left: 8px; }

/* 排版结果预览 */
.preview-wrap {
  max-height: 720px;
  overflow-y: auto;
  background: #F1F5F9;
  padding: 24px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.preview-wrap img {
  max-width: 100%;
  width: 680px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  border-radius: 4px;
}

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed;
  top: 80px; left: 50%;
  transform: translateX(-50%);
  background: #1F2937;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  animation: toastIn .2s ease-out;
}
.toast.error { background: #B91C1C; }
.toast.success { background: #047857; }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* =========================================================
   登录 / 注册
   ========================================================= */
.btn-login {
  height: 34px;
  padding: 0 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  transition: transform .15s, box-shadow .15s;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,92,255,.35); }

.btn-logout {
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 12px;
  transition: all .15s;
}
.btn-logout:hover { border-color: var(--brand-red); color: var(--brand-red); }

.btn-chpwd {
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 12px;
  transition: all .15s;
}
.btn-chpwd:hover { border-color: var(--brand); color: var(--brand); }

.user-phone { font-size: 13px; font-weight: 600; color: var(--text-1); }

/* 登录方式切换 */
.login-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: var(--bg-2, #f5f5f7);
  border-radius: 8px;
  padding: 4px;
}
.login-tab {
  flex: 1;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
}
.login-tab.active {
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.opt-label { color: var(--text-3); font-weight: normal; font-size: 12px; }

/* 模态框 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn .2s ease-out;
}
.modal-card {
  position: relative;
  width: 400px;
  max-width: 90vw;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
  padding: 32px 28px;
  animation: modalIn .25s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  width: 32px; height: 32px;
  font-size: 22px;
  color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  transition: all .15s;
}
.modal-close:hover { background: #F3F4F6; color: var(--text-1); }

.modal-header { text-align: center; margin-bottom: 24px; }
.modal-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #6366F1, #A855F7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.modal-header p { color: var(--text-3); font-size: 13px; }

.modal-body .form-item { margin-bottom: 18px; }
.modal-body .form-item label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-2); margin-bottom: 8px;
}
.modal-body .form-item input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.modal-body .form-item input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124,92,255,.1);
}

.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.btn-code {
  flex-shrink: 0;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all .15s;
}
.btn-code:hover { background: #FAF5FF; }
.btn-code:disabled {
  opacity: .5;
  cursor: not-allowed;
  border-color: var(--text-3);
  color: var(--text-3);
}

.full-width { width: 100%; }

/* 联系客服模态框 */
.contact-card { text-align: center; }
.qr-wrap { margin-bottom: 24px; }
.qr-box {
  position: relative;
  display: inline-block;
  width: 200px;
  height: 200px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.qr-img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
}
.wechat-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  background: #07C160;
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.qr-tip {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}
.contact-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px dashed var(--border);
}
.phone-icon { font-size: 18px; }
.phone-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-2);
  text-decoration: none;
}
.phone-num:hover { text-decoration: underline; }

/* ===== 维普向导：步骤指示器 ===== */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px 0 28px;
  margin-bottom: 8px;
}
.stepper .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: all .25s ease;
}
.stepper .step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #9ca3af;
  font-weight: 600;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid transparent;
  transition: all .25s ease;
}
.stepper .step-label {
  font-size: 13px;
  color: #9ca3af;
  white-space: nowrap;
  transition: color .25s;
}
.stepper .step.active .step-num {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.stepper .step.active .step-label { color: var(--text); font-weight: 600; }
.stepper .step.done .step-num {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}
.stepper .step.done .step-label { color: #10b981; }
.stepper .step-line {
  flex: 0 0 80px;
  height: 2px;
  background: #e5e7eb;
  margin: 0 8px;
  margin-bottom: 22px;
  transition: background .25s;
}
.stepper .step-line.done { background: #10b981; }

/* ===== 维普向导：上传区域 ===== */
.upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: #fafbfc;
}
.upload-area:hover {
  border-color: var(--brand);
  background: #eff6ff;
}
.upload-area.dragover {
  border-color: var(--brand);
  background: #dbeafe;
  transform: scale(1.01);
}
.upload-ico {
  font-size: 48px;
  margin-bottom: 12px;
}
.upload-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.upload-hint {
  font-size: 13px;
  color: var(--text-3);
}

/* ===== 维普向导：文件信息 ===== */
.file-info {
  margin-top: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 16px 20px;
}
.file-info-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.file-info-ico { font-size: 22px; }
.file-info .file-name {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}
.file-info .file-meta {
  font-size: 12px;
  color: #16a34a;
  margin-top: 2px;
}
.text-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--brand);
  cursor: pointer;
  font-size: 13px;
  padding: 4px 8px;
}
.text-btn:hover { text-decoration: underline; }

/* ===== 维普向导：产品选择 ===== */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0;
}
.product-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
  background: #fff;
  position: relative;
}
.product-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.product-card.selected {
  border-color: var(--brand);
  background: #eff6ff;
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}
.product-card.selected::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 14px;
  width: 22px; height: 22px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.product-radio {
  width: 22px; height: 22px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all .2s;
}
.product-card.selected .product-radio {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 4px #fff;
}
.product-body { flex: 1; min-width: 0; }
.product-name {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 4px;
}
.product-desc {
  font-size: 12px;
  color: var(--text-2);
}
.product-price {
  text-align: right;
  flex-shrink: 0;
}
.product-price-num {
  font-size: 20px;
  font-weight: 700;
  color: #ef4444;
}
.product-price-unit {
  font-size: 11px;
  color: var(--text-3);
}

/* ===== 维普向导：确认信息 ===== */
.confirm-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 13px;
}
.confirm-row .label { color: var(--text-2); }
.confirm-row .val { color: var(--text); font-weight: 500; }
.confirm-row.highlight {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border: 1px solid #bfdbfe;
}
.confirm-row.highlight .val {
  color: var(--brand);
  font-size: 18px;
  font-weight: 700;
}
.confirm-row.highlight .val small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  margin-left: 4px;
}

/* ===== 维普向导：检测进度 ===== */
.progress-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px;
}
.progress-spinner {
  width: 44px; height: 44px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-text {
  font-size: 14px;
  color: var(--text-2);
}

.btn-ghost {
  background: transparent;
  border: 1px solid #d1d5db;
  color: var(--text-2);
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all .2s;
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #eff6ff;
}

/* ===== 维普检测报告 ===== */
.vip-summary {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 16px;
}
.vip-rate-circle {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#e74c3c 0% var(--rate, 0%), #eee var(--rate, 0%) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.vip-rate-circle::before {
  content: '';
  position: absolute;
  inset: 10px;
  background: #fff;
  border-radius: 50%;
}
.vip-rate-circle .rate-num,
.vip-rate-circle .rate-unit {
  position: relative;
  z-index: 1;
}
.vip-rate-circle .rate-num {
  font-size: 30px;
  font-weight: 800;
  color: #e74c3c;
  line-height: 1;
}
.vip-rate-circle .rate-unit {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 2px;
}
.vip-rate-circle.ai {
  background: conic-gradient(#9b59b6 0% var(--rate, 0%), #eee var(--rate, 0%) 100%);
}
.vip-rate-circle.ai .rate-num { color: #9b59b6; }
.vip-meta { flex: 1; }
.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 14px;
}
.meta-label { color: var(--text-2); }
.meta-val { font-weight: 600; color: var(--text); }

.vip-section { margin-top: 18px; }
.vip-section-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--brand);
}
.vip-tips {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text);
}
.vip-tips li { margin-bottom: 2px; }

.vip-sources, .vip-paras, .vip-sentences, .vip-dims {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vip-source-item, .vip-para-item, .vip-sentence-item {
  padding: 10px 12px;
  background: #f8f9fb;
  border-radius: 8px;
  font-size: 13px;
}
.vip-source-head, .vip-para-head, .vip-sentence-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.vip-source-title { font-weight: 600; }
.vip-rate-tag {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}
.rate-high { background: #fde8e8; color: #e74c3c; }
.rate-mid { background: #fff4e5; color: #f39c12; }
.rate-low { background: #e8f5e9; color: #27ae60; }
.vip-fragment { color: var(--text-2); font-size: 12px; }
.vip-para-text { color: var(--text-2); font-size: 12px; }

.vip-dim-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.vip-dim-name { width: 90px; font-size: 13px; color: var(--text); flex-shrink: 0; }
.vip-dim-bar {
  flex: 1;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}
.vip-dim-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #9b59b6, #8e44ad);
  border-radius: 4px;
}
.vip-dim-score { width: 40px; text-align: right; font-size: 13px; font-weight: 700; color: #9b59b6; }

.vip-sentence-item.ai { border-left: 3px solid #e74c3c; }
.vip-sentence-item.doubt { border-left: 3px solid #f39c12; }
.vip-sentence-item.human { border-left: 3px solid #27ae60; }

/* ===== 充值中心 ===== */
.balance-card {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(37,99,235,.25);
}
.balance-card-left { flex: 1; }
.balance-card-right { text-align: right; }
.bc-label {
  font-size: 13px;
  opacity: .8;
  margin-bottom: 8px;
}
.bc-amount {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
}
.bc-sub {
  font-size: 18px;
  font-weight: 600;
  opacity: .9;
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 16px 0;
}
.pkg-card {
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: #fff;
  position: relative;
}
.pkg-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 14px rgba(37,99,235,.15);
  transform: translateY(-2px);
}
.pkg-card.selected {
  border-color: var(--brand);
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}
.pkg-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px; right: 10px;
  width: 22px; height: 22px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.pkg-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}
.pkg-amount small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}
.pkg-gift {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 10px;
  margin-top: 6px;
  font-weight: 600;
}
.pkg-gift.zero {
  background: #f1f5f9;
  color: #64748b;
}
.pkg-desc {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
}

.custom-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0 4px;
  border-top: 1px dashed #e5e7eb;
  margin-top: 8px;
  padding-top: 20px;
}
.custom-label { font-size: 13px; color: var(--text-2); flex-shrink: 0; }
.custom-prefix { font-size: 16px; font-weight: 600; color: var(--text); }
.custom-input input[type=number] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.custom-input input[type=number]:focus { border-color: var(--brand); }

.record-list {
  display: flex;
  flex-direction: column;
}
.record-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}
.record-item:last-child { border-bottom: none; }
.record-info .pkg-name { font-weight: 600; font-size: 14px; color: var(--text); }
.record-info .pkg-time { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.record-amount { font-weight: 700; color: var(--brand); font-size: 16px; }

/* ===== 推广中心 ===== */
.promo-banner {
  background: linear-gradient(135deg, #4c1d95, #7c3aed, #a855f7);
  border-radius: 16px;
  padding: 32px;
  color: #fff;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(124,58,237,.3);
}
.promo-banner-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.promo-banner-title span {
  background: rgba(255,255,255,.25);
  padding: 2px 10px;
  border-radius: 6px;
  font-family: monospace;
  letter-spacing: 2px;
}
.promo-banner-sub { opacity: .85; font-size: 14px; }
.promo-copy {
  margin-top: 16px;
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
}
.promo-copy:hover { background: rgba(255,255,255,.35); }

.promo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.promo-stat-item {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  border-top: 3px solid #e5e7eb;
  transition: all .2s;
}
.promo-stat-item.promo-stat-1 { border-top-color: #3b82f6; }
.promo-stat-item.promo-stat-2 { border-top-color: #10b981; }
.promo-stat-item.promo-stat-3 { border-top-color: #f59e0b; }
.promo-stat-ico { font-size: 28px; margin-bottom: 6px; }
.promo-stat-num { font-size: 26px; font-weight: 800; color: var(--text); }
.promo-stat-label { font-size: 13px; color: var(--text-3); margin-top: 2px; }

.promo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.promo-table th {
  text-align: left;
  padding: 12px 14px;
  background: #f8fafc;
  color: var(--text-2);
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
}
.promo-table td {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text);
}
.promo-table tr:hover td { background: #fafbfc; }
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.status-paid { background: #dcfce7; color: #16a34a; }
.status-registered { background: #fef3c7; color: #b45309; }

/* ===== 兑换码模态框 ===== */
.coupon-card { max-width: 440px; }
.coupon-input-wrap { position: relative; }
.coupon-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  text-align: center;
  font-family: monospace;
  letter-spacing: 2px;
  outline: none;
  text-transform: uppercase;
}
.coupon-input:focus { border-color: var(--brand); }
.coupon-hint {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-3);
}
.coupon-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.coupon-chip {
  background: #f1f5f9;
  color: var(--text-2);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
  font-family: monospace;
}
.coupon-chip:hover {
  background: var(--brand);
  color: #fff;
}

/* ===== 支付二维码弹窗 ===== */
.pay-card {
  width: 360px;
  text-align: center;
}
.pay-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ===== 结果核验 ===== */
.text-tertiary { color: var(--text-3); font-size: 13px; }
.text-danger { color: #DC2626; }
.verify-card { margin-top: 16px; }
.verify-result { padding: 4px 0; }
.verify-metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.metric-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  border-top: 3px solid var(--accent, var(--brand));
}
.metric-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent, var(--brand));
  line-height: 1.2;
}
.metric-unit { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 2px; }
.metric-label { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.metric-status { font-size: 12px; margin-top: 2px; font-weight: 500; }

.verify-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.detail-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.detail-value { font-size: 20px; font-weight: 600; color: var(--text-1); }
.detail-unit { font-size: 12px; color: var(--text-3); margin-left: 2px; }
.detail-label { font-size: 12px; color: var(--text-3); display: block; margin-top: 2px; }

.verify-details {
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.verify-details > summary {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  list-style: none;
  user-select: none;
}
.verify-details > summary::-webkit-details-marker { display: none; }
.verify-details > summary::before {
  content: '▶';
  display: inline-block;
  font-size: 10px;
  margin-right: 8px;
  color: var(--text-3);
  transition: transform 0.15s;
}
.verify-details[open] > summary::before { transform: rotate(90deg); }
.verify-list { list-style: none; padding: 0 14px 12px; margin: 0; }
.verify-list li {
  font-size: 13px;
  color: var(--text-2);
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}
.verify-list li:last-child { border-bottom: none; }

/* ===== 差异预览 ===== */
.diff-section { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.diff-stats {
  display: flex;
  gap: 20px;
  padding: 10px 0 14px;
  flex-wrap: wrap;
}
.diff-stat-item { font-size: 13px; color: var(--text-2); }
.diff-stat-num { font-size: 18px; font-weight: 700; margin-right: 4px; }
.diff-stat-del { color: #DC2626; }
.diff-stat-add { color: #16A34A; }
.diff-stat-eq { color: var(--text-3); }

.diff-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  max-height: 400px;
  overflow-y: auto;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}
.diff-block {
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 2px;
}
.diff-block-eq { color: var(--text-2); }
.diff-block-del { background: #FEE2E2; color: #991B1B; }
.diff-block-add { background: #DCFCE7; color: #166534; }
.diff-block-replace { background: #FEF3C7; color: #92400E; }
.diff-block-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 8px;
  color: #fff;
}
.diff-block-del .diff-block-label { background: #DC2626; }
.diff-block-add .diff-block-label { background: #16A34A; }
.diff-inline-del {
  background: #FECACA;
  text-decoration: line-through;
  color: #991B1B;
  border-radius: 2px;
  padding: 0 2px;
}
.diff-inline-add {
  background: #BBF7D0;
  color: #166534;
  border-radius: 2px;
  padding: 0 2px;
}

@media (max-width: 768px) {
  .verify-metric-row { grid-template-columns: repeat(2, 1fr); }
  .verify-details-grid { grid-template-columns: repeat(2, 1fr); }
}
.pay-icon-wrap { margin-bottom: 2px; }
.pay-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #07C160;
}
.pay-header p {
  font-size: 13px;
  color: var(--text-3);
}
.pay-body {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.pay-qr-wrap {
  display: flex;
  justify-content: center;
}
.pay-qr-box {
  position: relative;
  width: 200px;
  height: 200px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pay-qr-box svg {
  display: block;
  width: 200px;
  height: 200px;
}
.pay-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pay-amount-label {
  font-size: 14px;
  color: var(--text-3);
}
.pay-amount-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-1);
}
.pay-hint {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}
.pay-hint strong {
  color: #07C160;
}
.pay-status {
  font-size: 14px;
  min-height: 20px;
  text-align: center;
}
