/* ============================================================
   懒人速成片仿版 · 设计系统 main.css
   1:1 对标 ai.zhailaoban.com 的视觉规范
   主色 #ff6b35 橙 · 卡片式 · 单栏 · 移动优先
   ============================================================ */

:root {
  --orange: #ff6b35;
  --ink: #222;
  --muted: #777;
  --line: #eee;
  --bg: #f6f7f9;
  --card: #fff;
  --green: #07c160;
  --orange-deep: #d4521e;
  --orange-text: #a8530f;
  --orange-bg: #fff0e6;
  --orange-bg-light: #fff6f1;
  --orange-bg-hover: #ffefe4;
  --orange-line: #ffd9c2;
  --radius-card: 14px;
  --radius-btn: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #fff6f1 0%, #f6f7f9 100%);
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line);
}
.hero h1 { margin: 4px 0 6px; font-size: 26px; }
.hero .sub { font-size: 16px; color: #333; font-weight: 700; margin-bottom: 6px; }
.hero .note { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ---------- 卡片 ---------- */
.pg-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px;
  margin: 20px 0;
}
.pg-card .pc-title { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.pg-card .pc-sub { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }

/* ---------- 按钮 ---------- */
.btn-primary, .btn-ghost, .btn-deep, .btn-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none; font-family: inherit;
  transition: filter .12s, border-color .12s, background .12s, color .12s;
}
.btn-primary {
  border: none; background: var(--orange); color: #fff;
  border-radius: var(--radius-btn); padding: 13px 22px;
  font-size: 15px; font-weight: 700;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost {
  border: 1px solid var(--line); background: #fff; color: #555;
  border-radius: var(--radius-btn); padding: 12px 18px;
  font-size: 14px; font-weight: 600;
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-deep {
  border: 1px solid var(--orange); background: #fff7f2; color: var(--orange);
  border-radius: var(--radius-btn); padding: 13px 22px;
  font-size: 15px; font-weight: 700;
}
.btn-deep:hover { background: var(--orange-bg-hover); }
.btn-link {
  display: inline-block; background: none; border: 0; color: var(--orange);
  font-size: 13.5px; font-weight: 600; padding: 8px 0;
}
.btn-danger { border: 1px solid #e64545; background: #fff; color: #e64545; border-radius: 6px; padding: 8px 14px; font-size: 13px; cursor: pointer; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- 选项网格 ---------- */
.opt-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-top: 14px;
}
.opt-btn {
  border: 1px solid var(--line); background: #fff; color: #333;
  border-radius: var(--radius-btn); padding: 14px 12px;
  font-size: 14px; font-weight: 600; cursor: pointer; text-align: center;
  transition: all .12s; font-family: inherit;
}
.opt-btn:hover { border-color: var(--orange); color: var(--orange); }
.opt-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ---------- 诊断 stepper ---------- */
.quiz-progress { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.quiz-q { font-size: 19px; font-weight: 800; margin-bottom: 2px; }
.quiz-tip { font-size: 12.5px; color: #aaa; margin-top: 4px; }
.quiz-nav { margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.quiz-hint { font-size: 12.5px; color: #aaa; }

/* ---------- 标签 chip ---------- */
.res-tag, .card-chip {
  display: inline-block; background: var(--orange-bg); color: var(--orange-deep);
  border-radius: 10px; padding: 4px 11px; font-size: 13px; margin: 0 6px 6px 0;
}
.card-chip.gray { background: #f3f4f6; color: #666; }

/* ---------- 定位卡 ---------- */
.card-sec { margin-bottom: 16px; }
.card-sec:last-child { margin-bottom: 0; }
.card-k { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.card-name { font-size: 22px; font-weight: 800; }
.card-v { font-size: 14px; color: #333; line-height: 1.7; }
.card-tag { font-size: 16px; font-weight: 700; color: var(--orange-deep); line-height: 1.6; }
.card-list { margin: 0; padding-left: 18px; font-size: 14px; color: #333; line-height: 1.8; }
.card-divider { height: 1px; background: var(--line); margin: 16px 0; }
.card-ai { font-size: 11px; color: #bbb; margin-left: 6px; }
.card-action {
  background: #fff7f2; border: 1px solid var(--orange-line);
  border-radius: 10px; padding: 14px; font-size: 14px;
  color: var(--orange-text); line-height: 1.7;
}
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.mode-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fafafa; }
.mode-item b { display: block; margin-bottom: 5px; }
.mode-item span { color: var(--muted); font-size: 12.5px; line-height: 1.55; }

/* 示例定位卡（全站唯一深色块） */
.sample-position {
  margin-top: 18px; padding: 16px; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, #202534, #30384d);
}
.sample-position .sp-k { font-size: 12px; color: #9aa3b8; margin-bottom: 8px; }
.sample-position .sp-main { font-size: 15px; font-weight: 700; line-height: 1.7; }
.sample-position .sp-sub { font-size: 12.5px; color: #b8c0d4; margin-top: 8px; line-height: 1.6; }

/* ---------- 徽标 ---------- */
.set-badge, .res-badge {
  display: inline-block; font-size: 12px; color: var(--orange-text);
  background: var(--orange-bg); border-radius: 8px; padding: 3px 10px; margin-bottom: 10px;
}

/* ---------- 结果页 ---------- */
.res-title { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.res-k { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.res-why { font-size: 14px; color: #444; line-height: 1.7; margin-bottom: 12px; }
.res-tip { font-size: 12.5px; color: #999; }
.res-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.res-login {
  margin-top: 14px; padding: 12px 14px; background: #fff7f2;
  border: 1px solid var(--orange-line); border-radius: 10px;
  font-size: 13px; color: var(--orange-text);
}
.res-deepcta {
  margin-top: 16px; padding: 14px; background: #fff7f2;
  border: 1px dashed var(--orange); border-radius: 10px;
}
.res-deepcta .dt { font-size: 14px; font-weight: 700; color: var(--orange-text); margin-bottom: 8px; }

/* ---------- 表单 ---------- */
input[type="text"], input[type="password"], input[type="tel"], input[type="number"],
textarea, select {
  width: 100%; padding: 12px 14px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  outline: none; transition: border-color .12s;
}
input:focus, textarea:focus, select:focus { border-color: var(--orange); }
textarea { resize: vertical; line-height: 1.7; }
label.f-label { display: block; font-size: 13px; font-weight: 700; color: #444; margin: 14px 0 6px; }
.f-hint { font-size: 12px; color: #aaa; margin-top: 4px; }
.field-row { display: flex; gap: 10px; align-items: center; }

/* ---------- 页签 ---------- */
.mode-tabs { display: flex; gap: 4px; background: #f0f1f3; border-radius: 10px; padding: 5px; margin-bottom: 14px; flex-wrap: wrap; }
.mode-tabs .mode-tab {
  flex: 1; min-width: 90px; height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; border-radius: 7px; cursor: pointer;
  color: #555; border: none; background: none; font-family: inherit;
  transition: background .15s, color .15s; white-space: nowrap;
}
.mode-tabs .mode-tab:hover { color: var(--orange); }
.mode-tabs .mode-tab.active { background: var(--orange); color: #fff; }

/* ---------- 进度 ---------- */
.progress-wrap { margin: 18px 0; }
.progress-outer { height: 12px; background: #f0f1f3; border-radius: 8px; overflow: hidden; }
.progress-inner { height: 100%; background: var(--orange); border-radius: 8px; transition: width .4s; width: 0; }
.progress-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ---------- Toast / 弹窗 ---------- */
#toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: rgba(0,0,0,.82); color: #fff; padding: 10px 20px;
  border-radius: 10px; font-size: 14px; z-index: 3000;
  opacity: 0; pointer-events: none; transition: opacity .25s; max-width: 90vw;
}
#toast.show { opacity: 1; }
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 2000; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: #fff; border-radius: 14px; padding: 22px; max-width: 460px;
  width: 100%; max-height: 84vh; overflow: auto; position: relative;
}
.modal-box h3 { margin: 0 0 12px; font-size: 17px; }
.modal-close {
  position: absolute; top: 12px; right: 14px; border: none; background: none;
  font-size: 20px; color: #999; cursor: pointer; line-height: 1;
}

/* ---------- 列表卡片（选题/样片/文案等） ---------- */
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.item-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
}
.item-card h4 { margin: 0; font-size: 15px; line-height: 1.5; }
.item-card .ic-meta { font-size: 12px; color: #999; }
.item-card .ic-body { font-size: 13px; color: #555; line-height: 1.7; max-height: 120px; overflow: hidden; }
.item-card .ic-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.item-card .ic-acts button, .item-card .ic-acts a {
  border: 1px solid var(--line); background: #fff; color: #555; border-radius: 8px;
  padding: 6px 12px; font-size: 12.5px; cursor: pointer; text-decoration: none; font-family: inherit;
}
.item-card .ic-acts .ic-primary { border-color: var(--orange); color: var(--orange); }

/* ---------- 筛选器 ---------- */
.filters { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-row .fr-k { font-size: 12.5px; color: var(--muted); flex: 0 0 42px; }
.pill {
  border: 1px solid var(--line); background: #fff; color: #555; border-radius: 999px;
  padding: 5px 13px; font-size: 12.5px; cursor: pointer; font-family: inherit; transition: all .12s;
}
.pill:hover { border-color: var(--orange); color: var(--orange); }
.pill.active { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ---------- 价格卡 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 16px 0; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; text-align: center; position: relative;
}
.price-card.recommend { border: 2px solid var(--orange); }
.price-card .pc-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff; border-radius: 999px;
  font-size: 11px; padding: 3px 12px; font-weight: 700;
}
.price-card .p-name { font-size: 16px; font-weight: 800; }
.price-card .p-price { font-size: 30px; font-weight: 900; color: var(--orange); margin: 8px 0 2px; }
.price-card .p-price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.price-card .p-credits { font-size: 13px; color: #555; margin-bottom: 10px; }
.price-card .p-desc { font-size: 12px; color: var(--muted); line-height: 1.7; text-align: left; margin-bottom: 14px; }

/* ---------- FAQ 折叠 ---------- */
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 8px 0; }
details.faq summary { font-size: 14px; font-weight: 700; cursor: pointer; }
details.faq .faq-a { font-size: 13.5px; color: #555; line-height: 1.8; margin-top: 8px; }

/* ---------- 提示条 / 横幅 ---------- */
.banner {
  background: #fff7f2; border: 1px solid var(--orange-line); border-radius: 10px;
  padding: 10px 14px; font-size: 13px; color: var(--orange-text); margin: 12px 0; line-height: 1.6;
}
.banner.green { background: #f0fbf4; border-color: #bfe8cf; color: #1f7a44; }

/* ---------- 步骤卡 ---------- */
.steps { counter-reset: step; margin: 14px 0; }
.step-item { display: flex; gap: 14px; padding: 12px 0; }
.step-num {
  counter-increment: step; flex: 0 0 32px; height: 32px; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.step-num::before { content: counter(step); }
.step-body b { display: block; margin-bottom: 3px; font-size: 14.5px; }
.step-body span { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- 功能卡 ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; }
.feat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.feat-card .f-icon { font-size: 24px; margin-bottom: 8px; }
.feat-card b { display: block; font-size: 15px; margin-bottom: 6px; }
.feat-card span { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---------- 滑杆 ---------- */
.slider-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.slider-row label { flex: 0 0 64px; font-size: 13px; color: #444; font-weight: 600; }
.slider-row input[type="range"] { flex: 1; accent-color: var(--orange); }
.slider-row .sl-val { flex: 0 0 44px; text-align: right; font-size: 13px; color: var(--orange); font-weight: 700; }

/* ---------- 版本卡（秒出文结果） ---------- */
.version-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 12px 0; }
.version-card .vc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.version-card .vc-head b { font-size: 14.5px; }
.version-card .vc-count { font-size: 12px; color: #999; }
.version-card .vc-text { font-size: 14px; line-height: 1.85; color: #333; padding: 12px; background: #fafafa; border-radius: 8px; min-height: 120px; outline: none; }
.version-card .vc-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.version-card .vc-acts select { width: auto; padding: 6px 10px; font-size: 12.5px; }

/* ---------- 工具区布局（懒人速成片两栏） ---------- */
.tool-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 960px) {
  .tool-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
  .tool-side { position: sticky; top: 76px; }
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 30px;
  font-size: 12.5px; color: #999; text-align: center; line-height: 2;
}
.site-footer a { color: #777; text-decoration: none; margin: 0 8px; }
.site-footer a:hover { color: var(--orange); }

/* ---------- 通用工具类 ---------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .gap8 { gap: 8px; } .gap10 { gap: 10px; }
.hidden { display: none !important; }

#loading { padding: 60px 0; text-align: center; color: var(--muted); font-size: 15px; }

/* ============================================================
   业务组件层（对标小程序 wxml 的组件语义，配色沿用橙色）
   ============================================================ */

/* ---------- 页头（列表页统一） ---------- */
.page-head { padding: 22px 0 6px; }
.page-head .ph-title { font-size: 22px; font-weight: 900; margin: 0 0 6px; }
.page-head .ph-copy { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin: 0; }

/* ---------- 分组标题 + 右侧链接 ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 10px; }
.section-head .sh-title { font-size: 16px; font-weight: 800; color: #2c2c2c; }
.section-head .sh-extra { font-size: 12.5px; color: var(--muted); }
.section-head .sh-link { font-size: 12.5px; color: var(--orange); text-decoration: none; font-weight: 600; }
.section-head .sh-link:hover { text-decoration: underline; }

/* ---------- 列表行（账户中心菜单、说明行） ---------- */
.list-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.list-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid #f2f3f5; text-decoration: none; color: inherit;
  background: #fff; cursor: pointer; transition: background .12s;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: #fffaf7; }
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .lr-title { font-size: 14.5px; font-weight: 600; color: #2c2c2c; display: flex; align-items: center; gap: 6px; }
.list-row .lr-sub { font-size: 12.5px; color: #999; margin-top: 3px; line-height: 1.5; }
.list-row .lr-arrow { color: #c8cbd0; font-size: 18px; flex: 0 0 auto; }
.list-row .lr-value { font-size: 13.5px; color: #666; }
.list-row.danger .lr-title { color: #d83b3b; }

/* ---------- 统计网格 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #eef0f2; border-radius: 10px; overflow: hidden; }
.stat-grid.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid.cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-cell { background: #fff; padding: 14px 10px; text-align: center; }
.stat-cell .sc-num { font-size: 20px; font-weight: 900; color: #2c2c2c; line-height: 1.2; }
.stat-cell .sc-num.up { color: #138b5b; }
.stat-cell .sc-num.down { color: #d83b3b; }
.stat-cell .sc-num.accent { color: var(--orange); }
.stat-cell .sc-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; border-radius: 6px;
  padding: 2px 8px; font-size: 11.5px; font-weight: 700; line-height: 1.6;
  background: #f1f2f4; color: #687386;
}
.badge.ok { background: #e8f7ef; color: #287a55; }
.badge.warn { background: #fff3d7; color: #8a5a08; }
.badge.bad { background: #ffecec; color: #b83030; }
.badge.info { background: var(--orange-bg); color: var(--orange-text); }
.badge.dot::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ---------- 提示条（黄底左粗边，对标 .notice） ---------- */
.notice {
  background: #fff8e6; border-left: 3px solid #f5b72e; border-radius: 8px;
  padding: 11px 14px; font-size: 12.5px; color: #6b551f; line-height: 1.7; margin: 12px 0;
}
.notice.warn { background: #fff4e8; border-left-color: #e5652a; color: #8c380e; }
.notice.info { background: #fff7f2; border-left-color: var(--orange); color: var(--orange-text); }
.notice b { color: inherit; }

/* ---------- 空态 ---------- */
.empty { text-align: center; padding: 44px 20px; }
.empty .em-icon { font-size: 36px; color: #d6d9dd; margin-bottom: 10px; }
.empty .em-title { font-size: 15px; font-weight: 700; color: #444; margin-bottom: 6px; }
.empty .em-copy { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }

/* ---------- 事实表（任务详情） ---------- */
.kv-list { display: flex; flex-direction: column; }
.kv-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid #f2f3f5; font-size: 14px; }
.kv-row:last-child { border-bottom: none; }
.kv-row .kv-k { color: var(--muted); flex: 0 0 auto; }
.kv-row .kv-v { color: #2c2c2c; text-align: right; word-break: break-all; }

/* ---------- 细进度条 ---------- */
.progress-bar { height: 6px; background: #f0f1f3; border-radius: 4px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: var(--orange); border-radius: 4px; transition: width .4s; width: 0; }

/* ---------- 二维码 / 占位框 ---------- */
.qr-box {
  width: 190px; height: 190px; margin: 14px auto; border-radius: 10px;
  border: 1px dashed var(--orange-line); background: var(--orange-bg-light);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--orange-text); font-size: 12.5px; text-align: center; padding: 12px;
}
.qr-box .qr-icon { font-size: 30px; }

/* ---------- 图片灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.86); z-index: 2600;
  display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out;
}
.lightbox img { max-width: 96vw; max-height: 90vh; border-radius: 6px; }

/* ---------- 表单行 ---------- */
.form-row { margin: 14px 0; }
.form-row .f-label { display: block; font-size: 13px; font-weight: 700; color: #444; margin-bottom: 6px; }
.form-row .f-label .req { color: var(--orange); }
.form-row input, .form-row textarea, .form-row select { width: 100%; }
.form-row .f-error { font-size: 12px; color: #d83b3b; margin-top: 5px; }
.field-inline { display: flex; gap: 8px; }

/* ---------- 头像 ---------- */
.avatar {
  width: 48px; height: 48px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--orange), #ff9a6b); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800;
}
.avatar.lg { width: 56px; height: 56px; border-radius: 14px; font-size: 24px; }

/* ---------- 金额 ---------- */
.money { color: var(--orange); font-weight: 900; }
.money small { font-size: 13px; font-weight: 500; color: var(--muted); }

/* ---------- 分段控件 ---------- */
.seg { display: inline-flex; background: #f0f1f3; border-radius: 8px; padding: 3px; gap: 2px; }
.seg button {
  border: none; background: none; font-family: inherit; font-size: 13px; font-weight: 600;
  color: #666; padding: 6px 14px; border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.seg button.active { background: #fff; color: var(--orange); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---------- 可点卡片 ---------- */
.click-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; margin: 12px 0; text-decoration: none; color: inherit; transition: border-color .12s, box-shadow .12s;
}
.click-card:hover { border-color: var(--orange-line); box-shadow: 0 2px 10px rgba(255,107,53,.08); }
.click-card .cc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.click-card .cc-title { font-size: 15px; font-weight: 700; line-height: 1.5; }
.click-card .cc-copy { font-size: 13px; color: #777; line-height: 1.7; margin-top: 6px; }

/* ---------- 资源卡（资源页专用） ---------- */
.resource-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.resource-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-bottom: 1px solid #f2f3f5; cursor: pointer; text-decoration: none; color: inherit; }
.resource-card:last-child { border-bottom: none; }
.resource-card:hover { background: #fffaf7; }
.resource-card .rc-icon { flex: 0 0 34px; font-size: 24px; text-align: center; }
.resource-card .rc-main { flex: 1; min-width: 0; }
.resource-card .rc-title { font-size: 14.5px; font-weight: 800; color: #2c2c2c; }
.resource-card .rc-meta { font-size: 11.5px; color: var(--orange); margin-top: 2px; }
.resource-card .rc-copy { font-size: 12.5px; color: #888; line-height: 1.6; margin-top: 4px; }
.resource-card .rc-arrow { color: #c8cbd0; font-size: 18px; }

/* ---------- 对话气泡（AI 客服） ---------- */
.chat-wrap { display: flex; flex-direction: column; height: calc(100vh - 220px); min-height: 420px; }
.chat-list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 82%; padding: 11px 14px; border-radius: 12px; font-size: 14px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.bubble.bot { align-self: flex-start; background: #f4f5f7; color: #2c2c2c; border-top-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--orange); color: #fff; border-top-right-radius: 4px; }
.bubble.loading { color: #999; }
.chat-composer { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; background: #fff; }
.chat-composer textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 移动端底部 tabbar ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    background: rgba(255,255,255,.98); border-top: 1px solid var(--line);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 10.5px; color: #8b8f96; text-decoration: none; padding: 3px 0; position: relative;
  }
  .tabbar a .tb-icon { font-size: 19px; line-height: 1; }
  .tabbar a.active { color: var(--orange); font-weight: 700; }
  .tabbar a .tb-dot {
    position: absolute; top: 0; right: 50%; margin-right: -16px;
    min-width: 15px; height: 15px; border-radius: 8px; background: #e53935; color: #fff;
    font-size: 9px; line-height: 15px; text-align: center; padding: 0 3px; font-weight: 700;
  }
  body.has-tabbar { padding-bottom: 64px; }
}

/* ---------- 加载态 ---------- */
.loading-line { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 0; }
.load-more { text-align: center; padding: 16px 0; }


/* ---------- 品牌小字备注（全站复用） ---------- */
.brand-tagline {
  font-size: 11.5px; color: #9aa0a6; line-height: 1.7; letter-spacing: .2px;
  margin: 8px 0 0;
}
.brand-tagline b { color: #5f6570; font-weight: 700; font-style: normal; }
.brand-tagline .bt-sep { margin: 0 5px; color: #c9ccd1; }
@media (max-width: 640px) { .brand-tagline { font-size: 11px; } }
.page-hero .page-hero-tagline,
.page-hero-tagline {
  font-size: 11.5px; color: #a3a7ad; line-height: 1.7; margin: 7px 0 0; letter-spacing: .2px;
}
.page-hero-tagline b { color: #5f6570; font-weight: 700; font-style: normal; }
.page-hero-tagline .bt-sep { margin: 0 5px; color: #cdd0d4; }
