:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --violet: #7c3aed;
  --ink: #0f172a;
  --gray: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card-shadow: 0 4px 20px -4px rgba(0, 0, 0, .05);
  --grad: linear-gradient(90deg, #2563eb, #7c3aed);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, .6);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}
.brand-logo svg { width: 18px; height: 18px; fill: #fff; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.badge-free {
  font-size: 12px; font-weight: 700; color: var(--primary);
  background: rgba(37, 99, 235, .08); border: 1px solid rgba(37, 99, 235, .25);
  padding: 4px 12px; border-radius: 999px;
}
.badge-vip {
  font-size: 12px; font-weight: 700; color: #b8860b;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  padding: 4px 12px; border-radius: 999px;
  box-shadow: 0 2px 8px -2px rgba(245, 158, 11, .4);
}
.btn-member-nav {
  border: none; cursor: pointer; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 4px 12px -2px rgba(245, 158, 11, .5);
  transition: transform .15s, box-shadow .15s;
}
.btn-member-nav:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -3px rgba(245, 158, 11, .6); }

/* ===== 广告条 ===== */
.ad-bar { margin-top: 28px; }
.ad-inner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(90deg, #fff7ed, #fef3c7);
  border: 1px solid #fed7aa; border-radius: 12px; padding: 12px 16px;
}
.ad-tag {
  font-size: 10px; font-weight: 800; color: #ea580c;
  background: #fff; border: 1px solid #fed7aa; padding: 2px 6px; border-radius: 4px;
}
.ad-text { flex: 1; font-size: 13px; color: #9a3412; font-weight: 600; }
.ad-btn {
  border: none; cursor: pointer; font-size: 12px; font-weight: 700; color: #fff;
  background: #f59e0b; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.ad-btn:hover { background: #d97706; }

/* ===== 会员弹窗 ===== */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; width: 100%; max-width: 580px; max-height: 90vh; overflow-y: auto;
  background: linear-gradient(180deg, #fffbf0 0%, #ffffff 30%);
  border-radius: 20px; padding: 0 0 24px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .3), 0 0 0 1px rgba(245, 158, 11, .15);
  animation: popIn .3s ease;
}
@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(20px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 5; border: none; background: rgba(0,0,0,.05);
  width: 30px; height: 30px; border-radius: 50%; font-size: 15px; color: #64748b;
  cursor: pointer; transition: background .15s;
}
.modal-close:hover { background: rgba(0,0,0,.1); }

/* 限时优惠条 */
.urgent-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(90deg, #dc2626, #f59e0b);
  color: #fff; font-size: 13px; font-weight: 700;
  padding: 10px; border-radius: 20px 20px 0 0;
  letter-spacing: .5px;
}
.urgent-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.6);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
  70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.urgent-countdown {
  background: rgba(0,0,0,.25); padding: 2px 8px; border-radius: 6px;
  font-variant-numeric: tabular-nums; font-weight: 800;
}

.modal-head { text-align: center; padding: 24px 28px 8px; }
.modal-badge {
  display: inline-block; font-size: 12px; font-weight: 800; color: #92400e;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  padding: 5px 16px; border-radius: 999px; margin-bottom: 14px;
  box-shadow: 0 2px 8px -2px rgba(245, 158, 11, .4);
}
.modal-head h2 { font-size: 26px; font-weight: 900; line-height: 1.3; }
.gold-text {
  background: linear-gradient(90deg, #f59e0b, #d97706, #b8860b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.modal-head p { margin-top: 8px; font-size: 14px; color: var(--gray); }

/* 社会认同 */
.social-proof {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 16px; padding: 0 28px;
}
.avatars { display: flex; }
.mini-avatar {
  width: 30px; height: 30px; border-radius: 50%; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #fff; margin-left: -8px;
}
.mini-avatar:first-child { margin-left: 0; }
.social-text { font-size: 13px; color: var(--gray); }
.social-text b { color: #d97706; font-size: 15px; }

/* 对比表 */
.compare-table {
  margin: 20px 28px 0; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
}
.compare-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding: 10px 14px; font-size: 13px; align-items: center;
}
.compare-row:nth-child(even) { background: #f8fafc; }
.compare-head {
  background: #1e293b !important; color: #fff; font-weight: 800; font-size: 12px;
}
.compare-head .compare-vip { color: #fde68a; }
.compare-label { font-weight: 600; color: var(--ink); }
.compare-head .compare-label { color: #cbd5e1; font-weight: 700; }
.compare-free { color: #94a3b8; text-align: center; }
.compare-vip { color: #d97706; text-align: center; font-weight: 700; }

/* 套餐 */
.plan-grid {
  margin: 20px 28px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.plan-card {
  position: relative; text-align: center;
  background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 22px 10px 16px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  overflow: hidden;
}
.plan-card.recommend {
  border-color: #f59e0b;
  box-shadow: 0 8px 24px -8px rgba(245, 158, 11, .35);
}
.plan-card.recommend::before {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: shimmer 2.5s infinite;
}
@keyframes shimmer { 100% { left: 100%; } }
.plan-card:hover { transform: translateY(-3px); }
.plan-tag {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 800; color: #fff;
  background: linear-gradient(90deg, #dc2626, #f59e0b);
  padding: 4px 14px; border-radius: 0 0 999px 999px; white-space: nowrap;
}
.plan-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.plan-original {
  margin-top: 6px; font-size: 13px; color: #cbd5e1;
  text-decoration: line-through; font-weight: 600;
}
.plan-price { margin-top: 4px; font-size: 28px; font-weight: 900; color: #d97706; }
.plan-save {
  margin-top: 4px; font-size: 11px; font-weight: 700; color: #16a34a;
  background: rgba(22, 163, 74, .1); padding: 2px 8px; border-radius: 999px;
  display: inline-block;
}
.btn-activate {
  margin-top: 14px; border: none; cursor: pointer; width: 100%;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  padding: 11px; border-radius: 999px;
  box-shadow: 0 4px 12px -2px rgba(245, 158, 11, .5);
  transition: transform .15s;
}
.plan-card.recommend .btn-activate {
  background: linear-gradient(135deg, #dc2626, #f59e0b);
  box-shadow: 0 4px 16px -2px rgba(220, 38, 38, .5);
  font-size: 15px; font-weight: 800;
}
.btn-activate:hover { transform: translateY(-1px); }
.btn-activate:disabled { opacity: .6; cursor: wait; transform: none; }

/* 保障承诺 */
.guarantee {
  margin: 16px 28px 0; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  font-size: 12px; color: var(--gray);
}
.member-foot { margin-top: 14px; text-align: center; font-size: 11px; color: #94a3b8; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(37, 99, 235, .07), transparent),
    radial-gradient(600px 300px at 80% 0%, rgba(124, 58, 237, .07), transparent),
    var(--bg);
  padding: 32px 0 28px; text-align: center;
}
.hero h1 { font-size: 40px; font-weight: 900; letter-spacing: -1px; line-height: 1.25; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin-top: 10px; font-size: 16px; color: var(--gray); }

/* ===== 搜索框（胶囊） ===== */
.search-wrap { max-width: 720px; margin: 20px auto 0; }
.search-pill {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 8px 8px 22px; box-shadow: 0 8px 30px -8px rgba(15, 23, 42, .12);
  transition: box-shadow .2s, border-color .2s;
}
.search-pill:focus-within { border-color: var(--primary); box-shadow: 0 8px 30px -6px rgba(37, 99, 235, .25); }
.search-pill textarea {
  flex: 1; border: none; outline: none; resize: none; font-size: 15px;
  font-family: inherit; line-height: 1.5; max-height: 120px; padding: 8px 0; color: var(--ink);
}
.search-pill textarea::placeholder { color: #94a3b8; }
.btn-paste {
  border: none; background: none; color: var(--primary); font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 6px 10px; border-radius: 8px; white-space: nowrap;
}
.btn-paste:hover { background: rgba(37, 99, 235, .08); }
.btn-parse {
  border: none; cursor: pointer; color: #fff; font-size: 15px; font-weight: 700;
  background: var(--grad); padding: 12px 30px; border-radius: 999px;
  box-shadow: 0 6px 16px -4px rgba(37, 99, 235, .5);
  transition: transform .15s, box-shadow .15s;
}
.btn-parse:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -6px rgba(37, 99, 235, .55); }
.btn-parse:disabled { opacity: .6; cursor: wait; transform: none; }
.search-tip { margin-top: 12px; font-size: 13px; color: #94a3b8; }

/* ===== 平台标签 ===== */
.platforms { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.platform-chip {
  font-size: 13px; color: var(--gray); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px;
}

/* ===== 解析结果卡片（双栏布局：左视频信息 + 右 AI 总结） ===== */
.result { margin-top: 18px; display: grid; gap: 16px; }
.video-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--card-shadow); padding: 20px;
  display: grid; grid-template-columns: 2fr 3fr; gap: 24px; align-items: start;
  animation: fadeUp .35s ease both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* 左栏：视频信息区 */
.video-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.video-thumb {
  width: 100%; height: 180px; border-radius: 10px; object-fit: cover;
  background: var(--bg); flex-shrink: 0;
}
.video-thumb.thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: #f1f5f9; font-size: 48px; height: 180px;
}
.video-info { min-width: 0; }
.video-title { font-size: 16px; font-weight: 800; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { margin-top: 6px; font-size: 13px; color: var(--gray); display: flex; gap: 10px; flex-wrap: wrap; }
.fmt-list { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fmt-chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; cursor: pointer;
  transition: all .15s;
}
.fmt-chip:hover { border-color: var(--primary); color: var(--primary); }
.fmt-chip.active { border-color: var(--primary); background: rgba(37, 99, 235, .08); color: var(--primary); }
.btn-dl {
  border: none; cursor: pointer; color: #fff; font-size: 13px; font-weight: 700;
  background: var(--grad); padding: 9px 18px; border-radius: 999px;
  transition: transform .15s, box-shadow .15s;
}
.btn-dl:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -4px rgba(37, 99, 235, .5); }

/* 操作按钮行（下载 + AI 总结 并排） */
.action-row {
  margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap;
}

/* AI 总结按钮（保留，给批量模式用） */
.btn-ai-summary {
  border: 1px solid #a78bfa; cursor: pointer; color: #7c3aed;
  font-size: 13px; font-weight: 600; background: #fff; padding: 9px 14px; border-radius: 999px;
  transition: all .15s;
}
.btn-ai-summary:hover { background: #7c3aed; color: #fff; box-shadow: 0 4px 12px -4px rgba(124, 58, 237, .5); }

/* ===== 右栏：AI 视频总结面板（带 Tab 导航，内联四功能） ===== */
.inline-summary-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  min-height: 300px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.inline-summary-panel.hidden { display: none !important; }

/* 面板头部：Tab 导航 */
.is-tabs {
  display: flex; gap: 0;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
  padding: 0 12px;
}
.is-tab {
  border: none; background: none; cursor: pointer;
  padding: 10px 12px; font-size: 13px; font-weight: 600;
  color: #94a3b8; position: relative; transition: all .15s;
  white-space: nowrap;
}
.is-tab:hover { color: var(--violet); }
.is-tab.active {
  color: var(--violet);
}
.is-tab.active::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 0;
  height: 2px; background: var(--violet); border-radius: 1px;
}

/* 面板 body（内容区滚动容器） */
.is-body {
  flex: 1; min-height: 260px; max-height: 460px;
  overflow-y: auto; padding: 16px 18px;
}
.is-body::-webkit-scrollbar { width: 5px; }
.is-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.is-body::-webkit-scrollbar-track { background: transparent; }

/* ---- 等待生成状态（未触发总结） ---- */
.is-waiting {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 16px; text-align: center;
}
.is-waiting-icon { font-size: 36px; margin-bottom: 10px; opacity: .5; }
.is-waiting-text { font-size: 13px; color: var(--gray); margin-bottom: 16px; }

/* ---- 加载状态 ---- */
.is-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 16px;
}
.is-loading .loading-spinner { width: 32px; height: 32px; margin: 0 auto 14px; }
.is-loading-text { font-size: 13px; color: var(--gray); text-align: center; line-height: 1.6; }

/* ---- 错误状态 ---- */
.is-error { text-align: center; padding: 32px 16px; }
.is-error-icon { font-size: 32px; margin-bottom: 10px; }
.is-error-text { font-size: 13px; color: #b91c1c; margin-bottom: 12px; }
.is-error-retry {
  border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-size: 12px; color: var(--gray); padding: 6px 14px; border-radius: 999px;
  transition: all .15s;
}
.is-error-retry:hover { border-color: var(--violet); color: var(--violet); }

/* ---- 摘要 Tab ---- */
.is-section { margin-bottom: 16px; }
.is-section:last-child { margin-bottom: 0; }
.is-sec-title {
  font-size: 14px; font-weight: 700; color: var(--ink);
  margin-bottom: 8px;
  padding-bottom: 6px; border-bottom: 1px solid #f1f5f9;
}
.is-sec-text { font-size: 13px; line-height: 1.85; color: #475569; }
.is-sec-list { list-style: none; padding: 0; counter-reset: bullet; }
.is-sec-list li {
  padding: 6px 0 6px 0; position: relative; font-size: 13px; line-height: 1.75;
  counter-increment: bullet;
}
.is-sec-list li::before {
  content: counter(bullet) ". ";
  font-weight: 700; color: var(--violet); margin-right: 4px;
}

/* 核心要点（内联卡片） */
.is-keypoints { display: grid; gap: 8px; }
.is-keypoint {
  background: linear-gradient(135deg, #faf5ff 0%, #f0f9ff 100%);
  border: 1px solid #e9d5ff; border-radius: 10px; padding: 10px 12px;
}
.is-kp-point { font-weight: 700; font-size: 13px; color: var(--ink); margin-bottom: 3px; }
.is-kp-detail { font-size: 12px; color: #475569; line-height: 1.65; }

/* ---- 字幕 Tab（内联版） ---- */
.is-transcript-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9;
}
.is-transcript-count { font-size: 12px; color: var(--gray); }
.is-transcript-actions { display: flex; align-items: center; gap: 6px; }
.is-sub-format {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 12px; font-family: inherit; padding: 4px 8px; border-radius: 6px;
  cursor: pointer; outline: none;
}
.is-sub-format:hover, .is-sub-format:focus { border-color: var(--violet); }
.is-btn-download-sub {
  border: none; cursor: pointer; color: var(--primary);
  font-size: 12px; font-weight: 600; background: #eff6ff;
  padding: 4px 12px; border-radius: 999px;
}
.is-btn-download-sub:hover { background: var(--primary); color: #fff; }

.is-transcript-list { max-height: 380px; overflow-y: auto; }
.is-sub-item {
  display: flex; gap: 10px; padding: 6px 8px;
  font-size: 12.5px; line-height: 1.6; transition: background .15s;
}
.is-sub-item:hover { background: #f8fafc; border-radius: 6px; }
.is-sub-item.collapsed { display: none; }
.is-sub-time {
  flex-shrink: 0; color: var(--violet); font-weight: 600; font-size: 11px;
  background: #faf5ff; padding: 1px 6px; border-radius: 4px; height: fit-content;
  min-width: 42px; text-align: center;
}
.is-sub-text { color: #334155; }
.is-transcript-text { font-size: 12.5px; line-height: 1.7; color: #475569; }

/* ---- 思维导图 Tab（内联版） ---- */
.is-mm-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; flex-wrap: wrap; gap: 6px;
}
.is-mm-tip { font-size: 11px; color: var(--gray); }
.is-mm-btns { display: flex; gap: 4px; }
.is-mm-btns button {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px;
  cursor: pointer; white-space: nowrap; transition: all .15s;
}
.is-mm-btns button:hover { border-color: var(--violet); color: var(--violet); }
.is-mm-wrap {
  width: 100%; height: 340px; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; background: #fff; position: relative;
}
.is-mm-wrap:fullscreen { height: 100vh; border: none; border-radius: 0; }
.is-mm-wrap:-webkit-full-screen { height: 100vh; border: none; border-radius: 0; }

/* ---- AI 问答 Tab（内联版） ---- */
.is-chat-wrap {
  display: flex; flex-direction: column; height: 380px;
}
.is-chat-messages {
  flex: 1; overflow-y: auto; padding: 4px;
  display: flex; flex-direction: column; gap: 10px;
}
.is-chat-msg { display: flex; gap: 8px; }
.is-chat-msg.chat-user { flex-direction: row-reverse; }
.is-chat-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.is-chat-msg.chat-user .is-chat-avatar { background: #ede9fe; }
.is-chat-bubble {
  max-width: 82%; padding: 8px 12px; border-radius: 12px;
  font-size: 13px; line-height: 1.7; word-break: break-word;
  background: #f1f5f9; color: #334155;
}
.is-chat-msg.chat-user .is-chat-bubble { background: var(--grad); color: #fff; }
.is-chat-bubble.markdown-body { max-width: 88%; }
.is-chat-input-wrap {
  display: flex; gap: 6px; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.is-chat-input {
  flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
  font-size: 13px; resize: none; max-height: 80px; font-family: inherit;
}
.is-chat-input:focus { outline: none; border-color: var(--violet); }
.is-chat-send {
  border: none; background: var(--grad); color: #fff;
  padding: 0 16px; border-radius: 10px; cursor: pointer;
  font-weight: 600; font-size: 13px;
}
.is-chat-send:hover { opacity: .9; }
.is-chat-send:disabled { opacity: .5; cursor: not-allowed; }

/* 移动端折叠按钮 */
.is-mobile-toggle { display: none; }

/* Tab 面板切换动画 */
.is-tab-pane { animation: fadeUp .25s ease both; }

/* 打字机光标 */
.is-typing-cursor::after {
  content: "▍"; animation: blink 0.8s infinite; color: var(--violet);
}
@keyframes blink { 50% { opacity: 0; } }

/* ===== AI 总结弹窗 ===== */
.summary-modal { max-width: 720px; max-height: 86vh; overflow-y: auto; }
.summary-head {
  display: flex; align-items: center; gap: 14px; padding: 24px 24px 0;
}
.summary-icon { font-size: 36px; }
.summary-head-text h2 { font-size: 22px; font-weight: 800; }
.summary-subtitle { font-size: 13px; color: var(--gray); margin-top: 2px; }

.summary-loading {
  text-align: center; padding: 48px 24px;
}
.loading-spinner {
  width: 42px; height: 42px; border: 4px solid #e2e8f0; border-top-color: var(--violet);
  border-radius: 50%; margin: 0 auto 18px; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 15px; color: var(--gray); }

.summary-content { padding: 20px 24px 28px; }
.summary-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px;
  border-bottom: 1px solid var(--line); padding-bottom: 0;
}
.summary-tab {
  border: none; background: none; cursor: pointer; padding: 10px 14px; font-size: 14px;
  color: var(--gray); border-radius: 10px 10px 0 0; font-weight: 500; transition: all .15s;
}
.summary-tab:hover { color: var(--violet); background: #faf5ff; }
.summary-tab.active { color: var(--violet); border-bottom: 2px solid var(--violet); font-weight: 700; }

.summary-pane { animation: fadeUp .3s ease both; }

/* ===== 摘要板块 ===== */
.summary-section { margin-bottom: 20px; }
.sec-title {
  font-size: 15px; font-weight: 700; color: var(--violet);
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.sec-text { font-size: 14px; line-height: 1.85; color: #334155; }
.sec-list { list-style: none; padding: 0; }
.sec-list li {
  padding: 7px 0 7px 20px; position: relative; font-size: 14px; line-height: 1.7;
  border-bottom: 1px dashed var(--line);
}
.sec-list li::before {
  content: "▸"; position: absolute; left: 0; color: var(--violet); font-size: 12px; top: 8px;
}
.sec-list li:last-child { border-bottom: none; }
.key-points { display: grid; gap: 10px; }
.key-point {
  background: linear-gradient(135deg, #faf5ff 0%, #f0f9ff 100%);
  border: 1px solid #e9d5ff; border-radius: 12px; padding: 12px 14px;
}
.kp-point { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.kp-detail { font-size: 13px; color: #475569; line-height: 1.6; }

/* ===== 字幕 ===== */
.transcript-toolbar {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.transcript-count { font-size: 13px; color: var(--gray); }
.btn-toggle-sub {
  border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 6px 14px;
  border-radius: 999px; font-size: 13px; color: var(--gray); transition: all .15s;
}
.btn-toggle-sub:hover { border-color: var(--violet); color: var(--violet); }
/* 字幕下载工具条 */
.transcript-actions { display: flex; align-items: center; gap: 8px; }
.sub-format {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 13px; font-family: inherit; padding: 6px 10px; border-radius: 999px;
  cursor: pointer; outline: none; transition: border-color .15s;
}
.sub-format:hover, .sub-format:focus { border-color: var(--violet); }
.btn-download-sub {
  border: none; cursor: pointer; color: #fff; font-size: 13px; font-weight: 700;
  background: var(--grad); padding: 7px 16px; border-radius: 999px;
  box-shadow: 0 4px 12px -4px rgba(124, 58, 237, .5);
  transition: transform .15s, box-shadow .15s;
}
.btn-download-sub:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -5px rgba(124, 58, 237, .6); }
.transcript-list { max-height: 55vh; overflow-y: auto; }
.sub-item {
  display: flex; gap: 12px; padding: 8px 10px; border-bottom: 1px solid #f1f5f9;
  font-size: 13px; line-height: 1.6; transition: background .15s;
}
.sub-item:hover { background: #f8fafc; }
.sub-item.collapsed { display: none; }
.sub-time {
  flex-shrink: 0; color: var(--violet); font-weight: 600; font-size: 12px;
  background: #faf5ff; padding: 2px 8px; border-radius: 6px; height: fit-content; min-width: 48px; text-align: center;
}
.sub-text { color: #334155; }

/* ===== 思维导图 ===== */
.mindmap-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.mindmap-tip { font-size: 12px; color: var(--gray); }
.mindmap-btns { display: flex; gap: 6px; }
.mindmap-btns button {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 8px;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.mindmap-btns button:hover { border-color: var(--violet); color: var(--violet); background: #faf5ff; }
.mindmap-divider { width: 1px; height: 20px; background: var(--line); margin: 0 2px; }
.mindmap-btns .btn-mm-export { border-color: #c7d2fe; color: var(--primary); background: #f5f8ff; }
.mindmap-btns .btn-mm-export:hover { border-color: var(--primary); background: var(--primary); color: #fff; }
.mindmap-wrap {
  width: 100%; height: 62vh; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; background: #fff; position: relative;
}
.markmap { width: 100%; height: 100%; display: block; cursor: grab; }
.markmap:active { cursor: grabbing; }
/* 全屏：铺满整个屏幕，方便查看超大树全貌 */
.mindmap-wrap:fullscreen { height: 100vh; border: none; border-radius: 0; }
.mindmap-wrap:-webkit-full-screen { height: 100vh; border: none; border-radius: 0; }

/* ===== AI 问答 ===== */
#pane-chat { display: flex; flex-direction: column; height: 60vh; }
.chat-messages { flex: 1; overflow-y: auto; padding: 4px; }
.chat-msg { display: flex; gap: 10px; margin-bottom: 16px; }
.chat-msg.chat-user { flex-direction: row-reverse; }
.chat-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: #f1f5f9;
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.chat-msg.chat-user .chat-avatar { background: #ede9fe; }
.chat-bubble {
  max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.7;
  background: #f1f5f9; color: #334155; word-break: break-word;
}
.chat-msg.chat-user .chat-bubble { background: var(--grad); color: #fff; }
.chat-input-wrap {
  display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
#chatInput {
  flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
  font-size: 14px; resize: none; max-height: 80px; font-family: inherit;
}
#chatInput:focus { outline: none; border-color: var(--violet); }
.chat-send-btn {
  border: none; background: var(--grad); color: #fff; padding: 0 20px;
  border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 14px;
}
.chat-send-btn:hover { opacity: .9; }
.typing-dots span {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gray);
  margin: 0 2px; animation: typing 1.4s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-6px); opacity: 1; } }

/* ===== AI 问答 Markdown 富文本排版 ===== */
.chat-bubble.markdown-body { padding: 12px 16px; max-width: 84%; }
.markdown-body > *:first-child { margin-top: 0 !important; }
.markdown-body > *:last-child { margin-bottom: 0 !important; }
.markdown-body p { margin: 0 0 10px; line-height: 1.78; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 {
  margin: 16px 0 8px; font-weight: 800; line-height: 1.4; color: #1e293b;
}
.markdown-body h1 { font-size: 19px; }
.markdown-body h2 { font-size: 17px; }
.markdown-body h3 { font-size: 15.5px; }
.markdown-body h4, .markdown-body h5, .markdown-body h6 { font-size: 14.5px; }
.markdown-body ul, .markdown-body ol { margin: 6px 0 10px; padding-left: 22px; }
.markdown-body ul { list-style: disc; }
.markdown-body ol { list-style: decimal; }
.markdown-body li { margin: 4px 0; line-height: 1.78; }
.markdown-body li > ul, .markdown-body li > ol { margin: 4px 0; }
.markdown-body strong { font-weight: 800; color: #0f172a; }
.markdown-body em { font-style: italic; }
.markdown-body a { color: var(--primary); text-decoration: underline; word-break: break-all; }
.markdown-body code {
  background: rgba(15, 23, 42, .07); color: #be123c;
  font-size: 12.5px; padding: 2px 6px; border-radius: 5px;
  font-family: "Cascadia Code", Consolas, "Courier New", monospace;
}
.markdown-body pre {
  background: #0f172a; color: #e2e8f0; padding: 12px 14px; border-radius: 10px;
  overflow-x: auto; margin: 8px 0 12px; font-size: 12.5px; line-height: 1.65;
}
.markdown-body pre code { background: none; color: inherit; padding: 0; font-size: 12.5px; }
.markdown-body blockquote {
  margin: 8px 0 12px; padding: 8px 14px; border-left: 3px solid #c7d2fe;
  background: #f8fafc; color: #475569; border-radius: 0 8px 8px 0;
}
.markdown-body hr { border: none; border-top: 1px solid var(--line); margin: 14px 0; }
.markdown-body table {
  border-collapse: collapse; margin: 8px 0 12px; font-size: 13px;
  display: block; width: max-content; max-width: 100%; overflow-x: auto;
}
.markdown-body th, .markdown-body td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.markdown-body th { background: #f8fafc; font-weight: 700; }

.summary-error { text-align: center; padding: 48px 24px; }
.error-icon { font-size: 40px; margin-bottom: 12px; }
.error-text { font-size: 15px; color: #b91c1c; }
.empty-tip { color: var(--gray); font-size: 14px; text-align: center; padding: 24px 0; }

.err-card {
  background: #fff5f5; border: 1px solid #fecaca; border-radius: 14px;
  padding: 14px 18px; font-size: 14px; color: #b91c1c; animation: fadeUp .35s ease both;
}

/* ===== 下载任务 ===== */
.tasks { margin-top: 32px; display: grid; gap: 12px; }
.task-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--card-shadow); padding: 14px 18px; animation: fadeUp .3s ease both;
}
.task-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; }
.task-status { font-size: 12px; font-weight: 600; color: var(--gray); white-space: nowrap; }
.task-status.ok { color: #16a34a; }
.task-status.err { color: #dc2626; }
.progress-bar {
  margin-top: 10px; height: 8px; border-radius: 999px; background: #eef2f7; overflow: hidden;
}
.progress-inner {
  height: 100%; width: 0; border-radius: 999px; background: var(--grad);
  transition: width .4s ease;
}
.task-foot { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #94a3b8; }
.btn-save {
  border: none; cursor: pointer; font-size: 13px; font-weight: 700; color: #fff;
  background: #16a34a; padding: 8px 18px; border-radius: 999px;
}
.btn-save:hover { background: #15803d; }

/* ===== 特性卡片 ===== */
.features { padding: 64px 0 72px; }
.section-title { text-align: center; font-size: 28px; font-weight: 900; }
.section-sub { text-align: center; margin-top: 10px; color: var(--gray); font-size: 15px; }
.feature-grid {
  margin-top: 36px; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--card-shadow); padding: 24px;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px -8px rgba(15, 23, 42, .12); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 11px; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37, 99, 235, .08);
}
.feature-card h3 { margin-top: 14px; font-size: 16px; font-weight: 800; }
.feature-card p { margin-top: 8px; font-size: 13.5px; color: var(--gray); line-height: 1.7; }

/* ===== 页脚 ===== */
.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; text-align: center; }
.footer p { font-size: 13px; color: #94a3b8; line-height: 1.9; }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; font-size: 14px; padding: 12px 22px;
  border-radius: 10px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 99;
  max-width: 86vw;
}
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ===== 支持平台展示 ===== */
.platform-showcase {
  padding: 64px 0 72px;
  background: var(--bg);
}
.platform-pills {
  margin: 36px auto 0;
  max-width: 920px;
  display: flex; flex-wrap: wrap; gap: 18px 16px;
  justify-content: center;
}
.platform-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 14px 30px;
  font-size: 16px; font-weight: 700; color: var(--ink);
  box-shadow: var(--card-shadow);
  transition: transform .15s, box-shadow .15s;
}
.platform-pill:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(37, 99, 235, .18); }
.platform-pill i { font-style: normal; font-size: 22px; line-height: 1; }
.platform-more {
  margin-top: 32px; text-align: center;
  color: var(--gray); font-size: 14px;
}

/* ===== 会员定价卡片 ===== */
.pricing { padding: 64px 0 80px; }
.price-grid {
  margin: 40px auto 0;
  max-width: 880px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  align-items: stretch;
}
.price-card {
  position: relative;
  border-radius: 22px;
  padding: 38px 38px 30px;
  display: flex; flex-direction: column;
}
.price-free {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
}
.price-vip {
  color: #fff;
  background: linear-gradient(160deg, #4f8df7 0%, #2f6fed 55%, #2563eb 100%);
  box-shadow: 0 24px 48px -16px rgba(37, 99, 235, .55);
  transform: translateY(-6px);
  overflow: hidden;
}
.price-vip::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.price-tag {
  position: absolute; top: 22px; right: 22px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff; font-size: 13px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.price-head h3 { font-size: 24px; font-weight: 900; }
.price-head p { margin-top: 8px; font-size: 14px; color: var(--gray); }
.price-vip .price-head p { color: rgba(255, 255, 255, .82); }
.price-amount {
  display: flex; align-items: baseline; gap: 4px;
  margin: 24px 0 26px;
}
.price-symbol { font-size: 22px; font-weight: 800; }
.price-num { font-size: 50px; font-weight: 900; line-height: 1; }
.price-unit { font-size: 16px; color: var(--gray); margin-left: 2px; }
.price-vip .price-unit { color: rgba(255, 255, 255, .75); }
.price-promo {
  margin-left: 10px;
  font-size: 12px; font-weight: 700;
  color: var(--primary); background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 10px; border-radius: 999px;
}
.price-vip .price-promo {
  color: #fff; background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .35);
}
.price-benefits { list-style: none; margin-bottom: 28px; flex: 1; }
.price-benefits li {
  position: relative;
  padding: 9px 0 9px 32px;
  font-size: 15px; font-weight: 600;
  color: #334155;
}
.price-benefits li::before {
  content: "✓";
  position: absolute; left: 0; top: 9px;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900;
  color: #16a34a;
  background: rgba(22, 163, 74, .1);
  border-radius: 50%;
}
.price-vip .price-benefits li { color: rgba(255, 255, 255, .95); }
.price-vip .price-benefits li::before {
  color: #fff;
  background: rgba(255, 255, 255, .25);
}
.price-btn {
  width: 100%; height: 54px;
  border: none; border-radius: 999px;
  font-size: 17px; font-weight: 800;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.price-btn-free {
  background: #f1f5f9; color: var(--gray);
  cursor: default;
}
.price-btn-vip {
  background: #fff; color: var(--primary);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .25);
}
.price-btn-vip:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -6px rgba(0, 0, 0, .3);
}
.price-btn-vip:disabled {
  background: rgba(255, 255, 255, .85); color: var(--primary);
  cursor: default; transform: none;
}
.price-note {
  margin-top: 12px; text-align: center;
  font-size: 12px; color: rgba(255, 255, 255, .65);
}

.hidden { display: none !important; }

/* ===== 移动端 ===== */
@media (max-width: 640px) {
  .hero { padding: 26px 0 22px; }
  .hero h1 { font-size: 28px; }
  .search-pill { flex-wrap: wrap; border-radius: 20px; padding: 14px; }
  .search-pill textarea { width: 100%; order: -1; padding: 4px 8px; }
  .btn-parse { flex: 1; }
  .btn-paste { display: none; }

  /* 视频卡片：双栏变单栏堆叠 */
  .video-card {
    grid-template-columns: 1fr; gap: 16px; padding: 16px;
  }
  .video-left { gap: 10px; }
  .video-thumb { width: 100%; height: 180px; }
  .btn-dl { margin-left: 0; flex: 1; }
  .btn-ai-summary { flex: 1; }
  .fmt-list { margin-right: 0; }
  .fmt-chip { padding: 5px 12px; font-size: 12px; }

  /* 右栏 AI 总结面板：移动端改为底部区域 */
  .inline-summary-panel {
    border-left: none; border-top: 3px solid #a78bfa;
    padding: 14px 0 0; max-height: none; overflow: visible;
    /* 默认折叠 */
    display: none;
  }
  .inline-summary-panel.mobile-expanded { display: block; }
  .inline-summary-panel .is-content { max-height: 60vh; overflow-y: auto; }

  /* 移动端折叠触发按钮 */
  .is-mobile-toggle {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; border: 1px dashed #a78bfa; background: #faf5ff;
    cursor: pointer; color: var(--violet); font-size: 13px; font-weight: 600;
    padding: 10px; border-radius: 10px; margin-top: 12px; transition: all .15s;
  }
  .is-mobile-toggle:hover { background: #f3e8ff; }

  .nav-right .badge-free, .nav-right .badge-vip { display: none; }
  .btn-member-nav { padding: 6px 12px; font-size: 12px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .compare-table { margin: 16px 12px 0; }
  .compare-row { font-size: 12px; padding: 8px 10px; }
  .modal-head { padding: 16px 16px 4px; }
  .plan-grid { margin: 16px 12px 0; }
  .guarantee { margin: 12px 12px 0; gap: 10px; }
  .platform-showcase { padding: 44px 0 48px; }
  .platform-pills { gap: 12px 10px; margin-top: 26px; }
  .platform-pill { padding: 10px 18px; font-size: 14px; }
  .platform-pill i { font-size: 18px; }
  .pricing { padding: 44px 0 56px; }
  .price-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
  .price-card { padding: 30px 26px 24px; }
  .price-vip { transform: none; }
  .price-num { font-size: 42px; }
  /* 字幕工具条 / 导图工具条在窄屏下折行，避免溢出 */
  .transcript-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .transcript-actions { justify-content: space-between; flex-wrap: wrap; }
  .mindmap-toolbar { flex-direction: column; align-items: stretch; }
  .mindmap-btns { flex-wrap: wrap; }
  .chat-bubble.markdown-body { max-width: 82%; }
}

/* ===== SEO 页脚内链（新增，不影响既有样式） ===== */
.footer-links {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  justify-content: center;
}
.footer-links a {
  color: #64748b; font-size: 13px; text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: var(--primary); text-decoration: underline; }

/* ===== GEO 快速事实区块（新增，不影响既有样式） ===== */
.facts-section { padding: 20px 0 56px; }
.facts-wrap {
  max-width: 880px; margin: 32px auto 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--card-shadow);
}
.facts-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.facts-table th, .facts-table td {
  padding: 13px 20px; border-bottom: 1px solid #eef1f7;
  text-align: left; vertical-align: top; line-height: 1.7;
}
.facts-table tr:last-child th, .facts-table tr:last-child td { border-bottom: none; }
.facts-table th {
  width: 130px; color: var(--primary); background: #f8faff;
  font-weight: 800; white-space: nowrap;
}
.facts-table td { color: #334155; }
.facts-table td a { color: var(--primary); text-decoration: none; font-weight: 600; }
.facts-table td a:hover { text-decoration: underline; }

/* ===== GEO 使用教程 / 工具对比区块（新增，不影响既有样式） ===== */
.howto { padding: 26px 0 40px; }
.howto-steps {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px; align-items: start; max-width: 960px; margin: 36px auto 0;
}
.howto-step { text-align: center; }
.howto-num {
  width: 52px; height: 52px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; font-size: 22px; font-weight: 800; color: var(--primary);
  background: linear-gradient(135deg, #eef2ff, #e8f9f5);
  border: 1px solid #dbe4ff;
}
.howto-step h3 { font-size: 16.5px; font-weight: 800; }
.howto-step p { margin-top: 9px; font-size: 13.5px; color: #5b6472; line-height: 1.8; }
.howto-arrow {
  font-size: 26px; color: #b9c4e8; font-weight: 300;
  align-self: center; padding-top: 10px; user-select: none;
}
.howto-note { margin-top: 30px; text-align: center; font-size: 13px; color: #94a3b8; }

.compare { padding: 26px 0 56px; }
.compare-wrap {
  max-width: 880px; margin: 34px auto 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--card-shadow);
}
.compare-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare-table th, .compare-table td {
  padding: 13px 20px; border-bottom: 1px solid #eef1f7;
  text-align: center; line-height: 1.7;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table th { background: #f8faff; font-weight: 800; color: #334155; }
.compare-table th:first-child { text-align: left; }
.compare-table td:first-child { text-align: left; color: #334155; }
.compare-table .col-us { color: var(--primary); font-weight: 700; }
.compare-table tbody tr:hover { background: #fafbff; }

/* 导航锚点（桌面显示，窄屏隐藏避免拥挤） */
.nav-links { display: flex; gap: 26px; margin-left: 40px; }
.nav-links a {
  font-size: 14px; color: #475569; text-decoration: none; font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--primary); }

@media (max-width: 860px) {
  .howto-steps { grid-template-columns: 1fr; gap: 30px; }
  .howto-arrow { transform: rotate(90deg); padding-top: 0; margin: -8px auto; }
  .nav-links { display: none; }
  .compare-wrap { overflow-x: auto; }
  .compare-table { min-width: 620px; }
}

/* ===== 用户账号（登录/注册，v20260913a）===== */
#authModal { z-index: 120; }  /* 高于会员弹窗(z-index:100)，登录时压在其上 */
.nav-auth { display: flex; align-items: center; gap: 8px; min-width: 0; }
.btn-login-nav {
  border: 1px solid rgba(255, 255, 255, .25); cursor: pointer; font-size: 13px; font-weight: 600;
  color: #fff; background: rgba(255, 255, 255, .1); padding: 8px 14px; border-radius: 999px;
  transition: background .15s;
}
.btn-login-nav:hover { background: rgba(255, 255, 255, .2); }
.user-chip {
  font-size: 13px; color: #e2e8f0; background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18); padding: 7px 12px; border-radius: 999px;
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-logout {
  border: none; cursor: pointer; font-size: 12px; color: #94a3b8;
  background: transparent; padding: 6px 8px; border-radius: 8px; transition: color .15s;
}
.btn-logout:hover { color: #e2e8f0; }

.modal-auth { max-width: 400px; padding-bottom: 20px; }
.auth-tabs { display: flex; gap: 8px; margin: 18px 28px 0; }
.auth-tab {
  flex: 1; padding: 10px; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); background: #f8fafc; color: var(--gray); transition: all .15s;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, .4);
}
.auth-form { display: flex; flex-direction: column; gap: 12px; margin: 16px 28px 0; }
.auth-form input {
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 14px; outline: none; transition: border-color .15s;
}
.auth-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.auth-form input::placeholder { color: #94a3b8; }
.auth-submit {
  padding: 12px; border-radius: 12px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 2px;
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, .4); transition: transform .15s;
}
.auth-submit:hover { transform: translateY(-1px); }
.auth-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.modal-auth .member-foot { margin: 14px 28px 0; }

@media (max-width: 768px) {
  .user-chip { max-width: 110px; }
  .auth-tabs, .auth-form { margin-left: 16px; margin-right: 16px; }
}
