/* ============================================================
   梦境 AI —— 各页面样式
   ============================================================ */

/* ---------------------------------------------------------- 首页 Hero */

.hero { position: relative; overflow: hidden; background: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(91, 91, 246, 0.14), transparent 60%),
    radial-gradient(760px 380px at 88% 0%, rgba(168, 85, 247, 0.12), transparent 62%),
    radial-gradient(600px 300px at 50% 100%, rgba(255, 107, 74, 0.07), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 76px 0 88px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 8px;
  border-radius: 999px; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); font-size: 13px; color: var(--text-2);
}
.hero-badge b {
  background: var(--grad); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 12px;
}
.hero h1 { font-size: 52px; line-height: 1.16; letter-spacing: -0.025em; margin-top: 22px; }
.hero h1 .line2 { display: block; margin-top: 4px; }
.hero-sub { font-size: 17px; color: var(--muted); margin-top: 20px; max-width: 520px; line-height: 1.8; }
.hero-ctas { display: flex; gap: 13px; margin-top: 30px; flex-wrap: wrap; }
.hero-metrics { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-metric b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.hero-metric span { font-size: 13px; color: var(--muted); }

.hero-visual { position: relative; }
.hero-visual .hv-img {
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); background: #fff;
}
.hero-visual .hv-img img { width: 100%; height: auto; }
.hv-card {
  position: absolute; background: #fff; border-radius: 14px; padding: 12px 14px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600;
  animation: floaty 5s ease-in-out infinite;
}
.hv-card .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.hv-card small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.hv-card-1 { top: 22px; left: -26px; animation-delay: -1s; }
.hv-card-2 { bottom: 40px; right: -22px; animation-delay: -2.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* 客户 logo 跑马灯 */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 52px; width: max-content; animation: slide 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-item { font-size: 17px; font-weight: 700; color: #b3b9cc; white-space: nowrap; letter-spacing: -0.01em; }

/* ---------------------------------------------------------- 场景板块 */

.scenario-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.scenario {
  position: relative; border-radius: var(--radius-lg); padding: 30px 24px; overflow: hidden;
  background: #fff; border: 1px solid var(--border); transition: all 0.25s ease;
}
.scenario:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.scenario .s-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  color: #fff; margin-bottom: 18px;
}
.scenario h3 { font-size: 19px; }
.scenario .s-line {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 15px;
  font-size: 13.5px; color: var(--text-2);
}
.scenario .s-line i {
  width: 6px; height: 6px; border-radius: 50%; margin-top: 8px; flex: none; background: var(--brand);
}
.scenario .s-line b { color: var(--text); font-weight: 700; }

/* ---------------------------------------------------------- 能力卡片 */

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; transition: all 0.24s ease; position: relative; overflow: hidden;
}
.feat:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #dcdff0; }
.feat .f-num {
  position: absolute; right: 20px; top: 16px; font-size: 44px; font-weight: 800;
  color: #f0f1f8; letter-spacing: -0.04em; line-height: 1;
}
.feat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
.feat h3 { font-size: 18px; margin-bottom: 10px; }
.feat p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.feat .f-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }

/* 功能横幅带 */
.band {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 42px; align-items: center;
  padding: 40px; border-radius: 24px; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.band.flip { direction: rtl; }
.band > * { direction: ltr; }
.band h3 { font-size: 26px; margin-top: 16px; }
.band p { color: var(--muted); margin-top: 14px; font-size: 15px; line-height: 1.85; max-width: 480px; }
.band .band-list { margin-top: 20px; display: flex; flex-direction: column; gap: 11px; }
.band .band-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.band .band-list svg { flex: none; margin-top: 3px; color: var(--brand); }
.band-media { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.band-media img { width: 100%; display: block; }

/* 精选形象 */
.showcase-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------------------------------------------------------- 数字人卡片 */

.av-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.24s ease; position: relative; cursor: pointer;
}
.av-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #d9dcf0; }
.av-thumb { position: relative; aspect-ratio: 3 / 3.4; overflow: hidden; background: #eef0f6; }
.av-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.av-card:hover .av-thumb img { transform: scale(1.05); }
.av-badge { position: absolute; top: 10px; left: 10px; }
.av-actions {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 12px;
  display: flex; gap: 7px; justify-content: center;
  background: linear-gradient(transparent, rgba(15, 17, 30, 0.72));
  opacity: 0; transform: translateY(8px); transition: all 0.22s ease;
}
.av-card:hover .av-actions { opacity: 1; transform: none; }
.av-body { padding: 13px 14px 15px; }
.av-name { font-weight: 700; font-size: 14.5px; }
.av-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.av-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.av-price { font-size: 13px; font-weight: 700; color: var(--brand); }
.av-uses { font-size: 11.5px; color: var(--muted); }

/* 详情弹窗 */
.detail-grid { display: grid; grid-template-columns: 220px 1fr; gap: 22px; }
.detail-media { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 3/3.4; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.kv-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.kv-list > div {
  display: flex; justify-content: space-between; gap: 12px; font-size: 13px;
  padding-bottom: 9px; border-bottom: 1px dashed var(--border);
}
.kv-list span { color: var(--muted); }
.kv-list b { font-weight: 600; }
.mini-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.mini-card { cursor: pointer; text-align: center; }
.mini-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 11px; border: 1px solid var(--border); transition: all 0.2s; }
.mini-card:hover img { border-color: var(--brand); transform: translateY(-2px); }
.mini-card span { display: block; font-size: 11.5px; color: var(--text-2); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------- 库页面头部 */

.page-head { padding: 46px 0 8px; }
.page-head h1 { font-size: 34px; }
.page-head p { color: var(--muted); margin-top: 11px; font-size: 15px; max-width: 700px; }

.filter-bar {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 15px 18px; margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  box-shadow: var(--shadow-sm);
}
.filter-bar .search { position: relative; flex: 1; min-width: 200px; }
.filter-bar .search input { padding-left: 36px; }
.filter-bar .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  padding: 6px 13px; border-radius: 999px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--border-2); background: #fff; color: var(--text-2);
  transition: all 0.16s; white-space: nowrap;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.grid-avatars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }

/* ---------------------------------------------------------- 模板卡片 */

.tpl-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.24s ease; cursor: pointer; position: relative;
}
.tpl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tpl-thumb { position: relative; aspect-ratio: 9 / 12; overflow: hidden; background: #eef0f6; }
.tpl-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.tpl-card:hover .tpl-thumb img { transform: scale(1.06); }
.tpl-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 45%, rgba(15, 17, 30, 0.8));
}
.tpl-play {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(0.85);
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.92);
  display: grid; place-items: center; opacity: 0; transition: all 0.22s; color: var(--brand);
}
.tpl-card:hover .tpl-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.tpl-meta-top { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.tpl-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 13px; color: #fff; z-index: 2; }
.tpl-info h4 { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tpl-info .row { margin-top: 7px; font-size: 11.5px; opacity: 0.86; gap: 10px; }
.tpl-body { padding: 12px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tpl-body .cat { font-size: 12.5px; color: var(--muted); }
.grid-templates { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 26px; }

/* ---------------------------------------------------------- 音色 */

.voice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.voice-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; transition: all 0.22s ease; position: relative;
}
.voice-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.voice-card.selected { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 91, 246, 0.14); }
.vc-head { display: flex; align-items: center; gap: 12px; }
.vc-avatar {
  width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 15px;
}
.vc-name { font-weight: 700; font-size: 14px; }
.vc-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.vc-play {
  margin-left: auto; width: 34px; height: 34px; border-radius: 50%; flex: none;
  border: 1px solid var(--border-2); background: #fff; cursor: pointer;
  display: grid; place-items: center; color: var(--brand); transition: all 0.18s;
}
.vc-play:hover { background: var(--brand-soft); border-color: var(--brand); }
.vc-play.playing { background: var(--brand); border-color: var(--brand); color: #fff; }
.vc-wave { display: flex; align-items: flex-end; gap: 2.5px; height: 26px; margin: 14px 0 10px; }
.vc-wave i { flex: 1; background: var(--brand-soft); border-radius: 2px; min-width: 2px; transition: background 0.2s; }
.voice-card.playing .vc-wave i { background: var(--brand); }
.vc-foot { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------------------------------------------------- 创作工作台 */

.studio-layout { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; padding: 30px 0 60px; }
.studio-main { min-width: 0; }
.steps { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.step {
  display: flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); font-size: 13px; color: var(--muted); font-weight: 600;
}
.step b {
  width: 22px; height: 22px; border-radius: 50%; background: #eef0f6; color: var(--muted);
  display: grid; place-items: center; font-size: 11.5px; flex: none;
}
.step.active { border-color: var(--brand); color: var(--brand); }
.step.active b { background: var(--brand); color: #fff; }
.step.done { color: var(--success); border-color: #c8ecd6; }
.step.done b { background: var(--success); color: #fff; }

.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-head {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.panel-head h3 { font-size: 15.5px; }
.panel-body { padding: 20px; }
.panel-body + .panel-body { border-top: 1px solid var(--border); }

.pick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.pick {
  position: relative; border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: #eef0f6; transition: all 0.18s; aspect-ratio: 3/3.6;
}
.pick img { width: 100%; height: 100%; object-fit: cover; }
.pick .pick-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px;
  background: linear-gradient(transparent, rgba(15, 17, 30, 0.78)); color: #fff;
  font-size: 11.5px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pick:hover { transform: translateY(-3px); }
.pick.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 91, 246, 0.16); }
.pick .pick-check {
  position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); color: #fff; display: none; place-items: center; font-size: 11px;
}
.pick.active .pick-check { display: grid; }

.script-box { position: relative; }
.script-box .textarea { min-height: 190px; font-size: 14.5px; }
.script-count { position: absolute; right: 12px; bottom: 12px; font-size: 12px; color: var(--muted); background: rgba(255,255,255,0.9); padding: 2px 8px; border-radius: 6px; }
.ai-hint-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ai-chip {
  padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--border-2);
  background: var(--surface-2); font-size: 12.5px; color: var(--text-2); cursor: pointer;
}
.ai-chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.opt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.opt {
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border-2);
  background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2);
  transition: all 0.16s;
}
.opt:hover { border-color: var(--brand); color: var(--brand); }
.opt.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 右侧栏 */
.studio-side { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.side-card h4 { font-size: 14px; margin-bottom: 14px; }
.balance-row { display: flex; align-items: baseline; justify-content: space-between; }
.balance-row b { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.cost-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 7px 0; }
.cost-line.total { border-top: 1px dashed var(--border-2); margin-top: 6px; padding-top: 12px; color: var(--text); font-weight: 700; }
.task-item {
  display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid #f2f3f9; align-items: center;
}
.task-item:last-child { border-bottom: none; }
.task-item img { width: 44px; height: 58px; border-radius: 8px; object-fit: cover; flex: none; background: #eef0f6; }
.task-item .ti-body { min-width: 0; flex: 1; }
.task-item .ti-title { font-size: 12.8px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-item .ti-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.progress { height: 5px; border-radius: 99px; background: #eef0f6; overflow: hidden; margin-top: 7px; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width 0.5s ease; }

/* 预览弹窗 */
.preview-stage { position: relative; aspect-ratio: 9/16; max-height: 520px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: #0e1020; }
.preview-stage img { width: 100%; height: 100%; object-fit: cover; opacity: 0.94; }
.preview-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(rgba(14, 16, 32, 0.45), rgba(14, 16, 32, 0.7)); color: #fff; text-align: center; padding: 24px;
}
.preview-caption {
  position: absolute; left: 16px; right: 16px; bottom: 22px; color: #fff; font-size: 13.5px; line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ---------------------------------------------------------- 个人中心 */

.me-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; padding: 30px 0 60px; }
.me-side { position: sticky; top: calc(var(--nav-h) + 20px); }
.me-profile { text-align: center; padding: 26px 18px; }
.me-profile img { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 14px; border: 2px solid var(--brand-soft); }
.me-profile h3 { font-size: 17px; }
.me-profile .role { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.me-menu { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 14px; }
.me-menu a, .me-menu button {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 13px 18px;
  font-size: 14px; color: var(--text-2); border: none; background: none; cursor: pointer; text-align: left;
  border-bottom: 1px solid #f4f5fa; transition: all 0.15s;
}
.me-menu a:last-child, .me-menu button:last-child { border-bottom: none; }
.me-menu a:hover, .me-menu button:hover { background: var(--brand-soft); color: var(--brand); }
/* 选中态必须同时覆盖 a 与 button：侧栏菜单在个人中心里是 <button>，
   只写 a.active 的话，点哪一项都没有视觉反馈（曾经就是这样）。
   :hover 那条已经写了两个选择器，这条漏了，页面上表现为「菜单点了没反应」。 */
.me-menu a.active, .me-menu button.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.me-menu .badge { margin-left: auto; font-size: 12px; color: var(--muted); }
.me-menu .badge.hot { color: var(--danger); font-weight: 700; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.stat-card b { display: block; font-size: 27px; font-weight: 800; letter-spacing: -0.02em; }
.stat-card span { font-size: 13px; color: var(--muted); }
.stat-card .sc-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 12px; }

.work-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: all 0.22s ease; position: relative;
}
.work-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.work-thumb { position: relative; aspect-ratio: 9/13; background: #eef0f6; overflow: hidden; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-thumb .w-status { position: absolute; top: 10px; left: 10px; }
.work-thumb .w-dur { position: absolute; right: 10px; bottom: 10px; font-size: 11px; color: #fff; background: rgba(0,0,0,0.6); padding: 2px 7px; border-radius: 6px; }
.work-body { padding: 13px 14px 14px; }
.work-body h4 { font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.work-body .w-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); }
.work-actions { display: flex; gap: 6px; margin-top: 12px; }
.grid-works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.tab-row { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab-row button {
  padding: 11px 18px; border: none; background: none; cursor: pointer; font-size: 14px;
  color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab-row button:hover { color: var(--text); }
.tab-row button.active { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------------------------------------------------------- 定价 */

.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; display: flex; flex-direction: column; position: relative; transition: all 0.24s ease;
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.plan.hot { border-color: var(--brand); box-shadow: var(--shadow-brand); background: linear-gradient(#fff, #fbfaff); }
.plan .p-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(91, 91, 246, 0.3);
}
.plan h3 { font-size: 17px; }
.plan .p-desc { font-size: 13px; color: var(--muted); margin-top: 6px; }
.plan .p-price { margin: 22px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plan .p-price b { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.plan .p-price span { color: var(--muted); font-size: 13px; }
.plan .p-origin { font-size: 12.5px; color: #b3b9cc; text-decoration: line-through; }
.plan ul { margin: 22px 0 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 9px; font-size: 13.5px; color: var(--text-2); align-items: flex-start; }
.plan li svg { flex: none; margin-top: 3px; color: var(--success); }
.plan li.dim { color: #b3b9cc; }
.plan li.dim svg { color: #c9cde0; }
.plan .btn { width: 100%; }

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 18px 22px; border: none; background: none; cursor: pointer;
  font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-q i { color: var(--muted); transition: transform 0.2s; font-style: normal; }
.faq-item.open .faq-q i { transform: rotate(45deg); color: var(--brand); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.faq-a > div { padding: 0 22px 20px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.faq-item.open .faq-a { max-height: 300px; }

/* ---------------------------------------------------------- 登录页 */

.auth-wrap {
  min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; align-items: center;
}
.auth-visual {
  height: 100%; min-height: 640px; background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center; padding: 60px 48px; position: relative; overflow: hidden;
}
.auth-visual::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 30% 20%, rgba(91,91,246,0.16), transparent 60%);
}
.auth-visual-inner { position: relative; max-width: 440px; }
.auth-visual h2 { font-size: 32px; margin-top: 22px; }
.auth-visual p { color: var(--text-2); margin-top: 14px; font-size: 15px; line-height: 1.85; }
.auth-points { margin-top: 28px; display: flex; flex-direction: column; gap: 15px; }
.auth-points li { display: flex; gap: 11px; font-size: 14px; color: var(--text-2); align-items: flex-start; }
.auth-points svg { color: var(--brand); flex: none; margin-top: 2px; }
.auth-card { max-width: 420px; width: 100%; margin: 0 auto; padding: 44px 40px; background: #fff; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 25px; }
.auth-card .sub { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.auth-switch { display: flex; background: var(--surface-2); border-radius: 11px; padding: 4px; margin: 24px 0; }
.auth-switch button {
  flex: 1; height: 36px; border: none; background: none; border-radius: 8px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.auth-switch button.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.demo-tip {
  margin-top: 18px; padding: 12px 14px; border-radius: 11px; background: var(--warn-soft);
  font-size: 12.5px; color: #8a5a00; line-height: 1.7;
}

/* ---------------------------------------------------------- CTA / 大数字 */

.cta-band {
  border-radius: 26px; padding: 62px 48px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #3b39cf 0%, #5b5bf6 45%, #8b5cf6 100%);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.08);
}
.cta-band::before { width: 340px; height: 340px; right: -80px; top: -140px; }
.cta-band::after { width: 240px; height: 240px; left: -60px; bottom: -120px; }
.cta-band h2 { font-size: 36px; position: relative; }
.cta-band p { position: relative; margin-top: 14px; font-size: 15.5px; opacity: 0.9; }
.cta-band .btn { position: relative; margin-top: 28px; background: #fff; color: var(--brand-700); border-color: transparent; }
.cta-band .btn:hover { background: #f4f4ff; }

.big-num { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }

/* ============================================================
   内容页（解决方案 / 资源 / 关于）
   页脚里的 12 条链接指向的落地页共用这套排版组件
   ============================================================ */

/* ---------------------------------------------------------- 行业痛点 */

.pain-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pain-item {
  display: flex; gap: 12px; padding: 18px 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border);
}
.pain-item .pi-ico {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--danger-soft); color: var(--danger); font-weight: 800; font-size: 16px;
}
.pain-item h4 { font-size: 14.5px; margin: 0; }
.pain-item p { margin: 5px 0 0; font-size: 13.2px; color: var(--muted); line-height: 1.75; }

/* ---------------------------------------------------------- 关键指标条 */

.metric-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.metric-item { background: #fff; padding: 24px 20px; text-align: center; }
.metric-item b {
  display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric-item span { display: block; margin-top: 6px; font-size: 12.8px; color: var(--muted); }

/* ---------------------------------------------------------- 客户证言 */

.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.quote-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; }
.quote-card .q-mark { font-size: 32px; line-height: 1; color: var(--brand-soft-2); font-weight: 800; }
.quote-card p { margin: 8px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.85; }
.quote-card .q-who { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.quote-card .q-av {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--brand-700); font-weight: 800; font-size: 13px;
}
.quote-card .q-name { font-size: 13px; font-weight: 700; }
.quote-card .q-role { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------- 正文排版（协议 / 政策 / 文档） */

.doc-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 36px; align-items: start; }

.doc-nav {
  position: sticky; top: calc(var(--nav-h) + 20px);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
  max-height: calc(100vh - var(--nav-h) - 44px); overflow-y: auto;
}
.doc-nav h5 { margin: 0 0 10px; font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.doc-nav a {
  display: block; padding: 7px 10px; border-radius: 8px; font-size: 13.2px; color: var(--text-2);
  text-decoration: none; line-height: 1.5;
}
.doc-nav a:hover { background: var(--brand-soft); color: var(--brand-700); }
.doc-nav .dn-group { margin: 14px 0 4px; padding: 0 10px; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }
.doc-nav .dn-group:first-child { margin-top: 0; }

.prose { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px 38px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-size: 19px; margin: 34px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 18px);
}
.prose h3 { font-size: 15.5px; margin: 24px 0 8px; scroll-margin-top: calc(var(--nav-h) + 18px); }
.prose h4 { font-size: 14px; margin: 18px 0 6px; color: var(--text-2); }
.prose p { margin: 10px 0; font-size: 14px; color: var(--text-2); line-height: 1.9; }
.prose ul, .prose ol { margin: 10px 0; padding-left: 22px; }
.prose li { font-size: 14px; color: var(--text-2); line-height: 1.9; margin-bottom: 5px; }
.prose li > ul, .prose li > ol { margin: 5px 0; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--brand-700); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.prose blockquote {
  margin: 14px 0; padding: 12px 18px; border-left: 3px solid var(--brand);
  background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose blockquote p { margin: 0; font-size: 13.4px; }
.prose .doc-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12.6px; color: var(--muted);
  padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 8px;
}

/* 文档内表格 */
.doc-table { width: 100%; border-collapse: collapse; font-size: 13.4px; margin: 12px 0; }
.doc-table th, .doc-table td {
  text-align: left; padding: 10px 13px; border: 1px solid var(--border); vertical-align: top; line-height: 1.7;
}
.doc-table th { background: var(--surface-2); font-weight: 700; font-size: 12.8px; color: var(--text-2); white-space: nowrap; }
.doc-table td { color: var(--text-2); }
.doc-table tbody tr:hover td { background: #fbfbfe; }
.doc-table td.mono, .doc-table th.mono { font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace; font-size: 12.6px; }
.table-scroll { overflow-x: auto; margin: 12px 0; }
.table-scroll .doc-table { margin: 0; min-width: 560px; }

/* ---------------------------------------------------------- 代码 */

.code-inline {
  background: #f1f2f8; border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px;
  font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace;
  font-size: 12.4px; color: #b4460f; word-break: break-word;
}
.code-block {
  background: #16182b; color: #e7eaf6; border-radius: var(--radius); padding: 16px 18px;
  overflow-x: auto; margin: 12px 0; position: relative;
  font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace; font-size: 12.7px; line-height: 1.8;
}
.code-block pre { margin: 0; font: inherit; }
.code-block .cb-title {
  display: block; margin: -4px 0 10px; padding-bottom: 9px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11.6px; color: #9aa2bd; letter-spacing: 0.03em;
}
.code-block .cm { color: #7f88a6; }
.code-block .ky { color: #a78bfa; }
.code-block .st { color: #7ee2a8; }
.code-block .nu { color: #fbbf24; }

/* ---------------------------------------------------------- 方法徽章 */

.m-badge {
  display: inline-block; font-size: 10.8px; font-weight: 800; padding: 2px 7px; border-radius: 6px;
  letter-spacing: 0.04em; font-family: ui-monospace, Menlo, Consolas, monospace; white-space: nowrap;
}
.m-get { background: #e8f5ee; color: #15803d; }
.m-post { background: #eef0ff; color: #4a49e8; }
.m-put { background: #fff7e6; color: #b45309; }
.m-patch { background: #f3e8ff; color: #7e22ce; }
.m-del { background: #fdecec; color: #b91c1c; }

/* ---------------------------------------------------------- 时间线（发展历程 / 更新日志） */

.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--border) 100%);
}
.tl-item { position: relative; padding-bottom: 28px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand); box-sizing: border-box;
}
.tl-item.soft::before { border-color: var(--border-2); }
.tl-date { font-size: 12.4px; color: var(--muted); font-weight: 700; letter-spacing: 0.02em; }
.tl-title { font-size: 16.5px; font-weight: 700; margin-top: 3px; }
.tl-body { margin-top: 8px; font-size: 13.6px; color: var(--text-2); line-height: 1.85; }
.tl-body ul { margin: 8px 0 0; padding-left: 20px; }
.tl-body li { margin-bottom: 5px; }
.tl-body li::marker { color: var(--brand); }
.tl-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }

/* 版本标签 */
.ver-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft);
  color: var(--brand-700); font-size: 12px; font-weight: 800; letter-spacing: 0.02em;
}
.ver-badge.latest { background: var(--grad); color: #fff; }

/* ---------------------------------------------------------- 招聘岗位 */

/* 岗位卡片里的任职要求摘要：只在列表页露三条要点，
   完整的任职要求放在「职位详情」弹窗里，避免卡片被文字撑得长短不一。 */
.job-req { display: grid; gap: 5px; margin: 10px 0 0; padding: 0; list-style: none; }
.job-req li { position: relative; padding-left: 15px; font-size: 12.5px; color: var(--text-2); line-height: 1.65; }
.job-req li::before {
  content: ''; position: absolute; left: 4px; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
}

/* 弹窗内部用 .form-grid 排版时，.field 自带的 margin-bottom 会和 grid gap 叠加，
   行距会明显大于列距，看起来像「错行」。 */
.form-grid > .field { margin-bottom: 0; }

.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px;
  transition: all 0.22s ease;
}
.job-card:hover { border-color: #c9cbf5; box-shadow: var(--shadow); transform: translateY(-2px); }
.job-title { font-size: 15.5px; font-weight: 700; }
.job-meta { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 7px; }
.job-desc { margin-top: 9px; font-size: 13.2px; color: var(--muted); line-height: 1.75; max-width: 640px; }
.job-side { text-align: right; flex: 0 0 auto; }
.job-side .j-sal { font-size: 15px; font-weight: 800; color: var(--accent); white-space: nowrap; }

/* ---------------------------------------------------------- 福利卡 */

.perk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perk {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px;
}
.perk .p-ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-700); font-size: 17px; margin-bottom: 12px;
}
.perk h4 { margin: 0; font-size: 14.5px; }
.perk p { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.75; }

/* ---------------------------------------------------------- 联系表单 */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 26px; align-items: start; }
.contact-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 32px; }
.contact-panel h2 { font-size: 20px; margin: 0 0 6px; }
.contact-panel .cp-sub { font-size: 13.4px; color: var(--muted); margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.contact-item {
  display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-item .ci-ico {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--brand-700);
}
.contact-item h4 { margin: 0; font-size: 13.8px; }
.contact-item p { margin: 4px 0 0; font-size: 13.2px; color: var(--muted); line-height: 1.7; }
.contact-item .ci-val { font-size: 14.5px; font-weight: 700; color: var(--text); margin-top: 3px; }

/* ---------------------------------------------------------- 提示条 */

.note-box { border-radius: var(--radius); padding: 14px 18px; font-size: 13.4px; line-height: 1.85; border: 1px solid; margin: 14px 0; }
.note-info { background: #f2f4ff; border-color: #dbdef8; color: #3b3ba8; }
.note-warn { background: #fff9ec; border-color: #f3e0b8; color: #8a5a00; }
.note-danger { background: #fdf0f0; border-color: #f6d3d4; color: #a3242a; }
.note-box b { font-weight: 700; }
.note-box a { color: inherit; text-decoration: underline; }

/* ---------------------------------------------------------- 勾选清单 */

.tick-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 22px; margin: 14px 0; }
.tick-item { display: flex; gap: 9px; font-size: 13.6px; color: var(--text-2); line-height: 1.7; }
.tick-item::before { content: "✓"; color: var(--success); font-weight: 800; flex: 0 0 auto; }

/* ---------------------------------------------------------- 收银台 */

.pay-wrap { max-width: 980px; margin: 0 auto; }
.pay-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: start; }

.pay-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.pay-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.pay-head h2 { font-size: 17px; margin: 0; }
.pay-head .step-no { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* 金额区 */
.pay-amount { text-align: center; padding: 22px 0 26px; border-bottom: 1px dashed var(--border-2); margin-bottom: 22px; }
.pay-amount .cur { font-size: 20px; font-weight: 700; color: var(--text); vertical-align: 14px; margin-right: 2px; }
.pay-amount .num { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.pay-amount .yuan { font-size: 14px; color: var(--muted); margin-top: 6px; }
.pay-amount .subject { font-size: 14px; color: var(--text-2); margin-bottom: 10px; }

/* 套餐信息 */
.pay-plan { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.pay-plan .pp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pay-plan .pp-name { font-weight: 700; font-size: 15px; }
.pay-plan .pp-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pay-plan ul { margin: 10px 0 0; padding-left: 18px; }
.pay-plan li { font-size: 13px; color: var(--text-2); line-height: 1.9; }

/* 支付方式选择 */
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; background: var(--surface); }
.pay-method:hover { border-color: var(--border-2); background: var(--surface-2); }
.pay-method.on { border-color: var(--brand); background: var(--brand-soft); }
.pay-method .pm-ico { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #fff; }
.pay-method .pm-body { flex: 1; min-width: 0; }
.pay-method .pm-name { font-size: 14px; font-weight: 600; }
.pay-method .pm-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pay-method .pm-radio { width: 17px; height: 17px; flex: 0 0 17px; border-radius: 50%; border: 1.5px solid var(--border-2); position: relative; }
.pay-method.on .pm-radio { border-color: var(--brand); }
.pay-method.on .pm-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); }

/* 二维码区 */
.pay-qr { text-align: center; }
.pay-qr .qr-box { width: 220px; height: 220px; margin: 0 auto; padding: 11px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; }
.pay-qr .qr-box img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.pay-qr .qr-tip { font-size: 13px; color: var(--text-2); margin-top: 14px; line-height: 1.8; }
.pay-qr .qr-timer { font-size: 12px; color: var(--muted); margin-top: 8px; }
.pay-qr .qr-timer b { color: var(--accent); font-variant-numeric: tabular-nums; }
.pay-qr .qr-actions { margin-top: 18px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* 状态提示 */
.pay-status { text-align: center; padding: 30px 10px; }
.pay-status .ps-ico { width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.pay-status .ps-ico.ok { background: var(--success-soft); color: var(--success); }
.pay-status .ps-ico.warn { background: var(--warn-soft); color: var(--warn); }
.pay-status .ps-ico.err { background: var(--danger-soft); color: var(--danger); }
.pay-status h3 { font-size: 18px; margin: 0 0 8px; }
.pay-status p { font-size: 14px; color: var(--text-2); margin: 0 0 6px; }
.pay-status .ps-actions { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* 等待付款的转圈 */
.spin { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; display: inline-block; vertical-align: -2px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pay-side-note { font-size: 12px; color: var(--muted); line-height: 1.9; }
.pay-side-note li { margin-bottom: 4px; }
.pay-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.pay-kv:last-child { border-bottom: 0; }
.pay-kv .k { color: var(--muted); }
.pay-kv .v { color: var(--text); font-weight: 600; text-align: right; word-break: break-all; }

/* ===================== 首页弹窗公告 ===================== */
/* 弹窗主体复用 .modal 的遮罩与容器，这里只补内容区样式：
   公告内容长度不可控（可能三行，也可能是带图的图文），所以正文区域限高可滚动，
   避免运营填长文案时把按钮顶出屏幕。 */
.ann-wrap { margin: -4px 0 0; }
.ann-cover { margin: 0 0 16px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.ann-cover img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.ann-body { font-size: 14.5px; line-height: 1.9; color: var(--text-2); white-space: pre-wrap; word-break: break-word; max-height: 46vh; overflow-y: auto; }
.ann-wrap .modal-foot { justify-content: stretch; }
.ann-wrap + * { margin-top: 0; }

@media (max-width: 720px) {
  .ann-body { max-height: 40vh; }
  .ann-cover img { max-height: 200px; }
}

@media (max-width: 860px) {
  .pay-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   账号体系（注册 / 登录 / 找回密码 / 邀请 / 用户组）
   三张表单共用同一套组件，样式集中一处，避免各页各写一遍
   ============================================================ */

/* 表单标签里的补充说明（如「选填」） */
.lbl-opt { color: var(--muted); font-weight: 400; }

/* 字段下方的即时校验提示：默认灰，通过绿，失败红由脚本改 color */
.field-hint { display: block; font-size: 12.5px; margin-top: 6px; color: var(--muted); }
.field-hint:empty { display: none; }

/* 图形验证码：固定宽高，避免图片到达前后表单高度跳动 */
.gcaptcha {
  width: 118px; height: 40px; flex: none; border-radius: 10px;
  border: 1px solid var(--border-2); background: var(--surface-2);
  cursor: pointer; object-fit: cover; overflow: hidden;
}
.gcaptcha:active { opacity: 0.72; }

/* 文字按钮（用验证码登录 / 换个手机号 之类） */
.link-btn {
  border: none; background: none; padding: 0; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--brand);
}
.link-btn:hover { color: var(--brand-700); text-decoration: underline; }
.link-btn:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }

.login-mode-row { display: flex; justify-content: flex-end; margin: -4px 0 16px; }

/* 注册渠道切换：手机号 / 邮箱 */
.channel-switch {
  display: flex; gap: 4px; margin-bottom: 18px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 11px; padding: 4px;
}
.channel-switch button {
  flex: 1; height: 34px; border: none; background: none; border-radius: 8px;
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted);
  transition: all 0.16s;
}
.channel-switch button.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }

/* 演示模式：短信/邮件通道没配好时，直接把验证码摊在页面上 */
.demo-code-tip {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 18px; padding: 11px 13px; border-radius: 11px;
  background: var(--warn-soft); border: 1px solid #ffe2ad;
  font-size: 12.5px; color: #8a5a00; line-height: 1.6;
}
.demo-code-tip b { flex: none; }
.demo-code-tip code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px; font-weight: 700; letter-spacing: 0.16em;
  padding: 3px 10px; border-radius: 7px; background: #fff; color: #8a5a00;
}

/* 邀请落地横幅（从 /login.html?invite=XXXX 进来时出现） */
.invite-banner {
  display: flex; align-items: flex-start; gap: 11px;
  margin-bottom: 20px; padding: 13px 14px; border-radius: 13px;
  background: linear-gradient(120deg, #fff4ec 0%, #fdf0ff 100%);
  border: 1px solid #ffdcc9;
}
.invite-banner .ib-icon { font-size: 22px; line-height: 1.1; flex: none; }
.invite-banner b { display: block; font-size: 13.5px; color: var(--text); }
.invite-banner p { font-size: 12.5px; color: var(--text-2); margin-top: 3px; line-height: 1.6; }
.invite-banner .ib-close {
  flex: none; border: none; background: none; cursor: pointer; padding: 0 2px;
  font-size: 18px; line-height: 1; color: var(--muted);
}
.invite-banner .ib-close:hover { color: var(--text); }

/* ---------------------------------------------------- 用户组徽章 */
/* 图标与颜色都来自后台，前台只负责按白名单渲染 */

.uv-badge {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  padding: 2px 9px; border-radius: 999px; border: 1px solid transparent;
  font-size: 12px; font-weight: 600; line-height: 1.7; white-space: nowrap;
  vertical-align: middle;
}
.uv-badge .uv-icon { font-size: 12px; line-height: 1; }
.uv-badge-sm { padding: 1px 7px; font-size: 11.5px; gap: 3px; }
.uv-badge-sm .uv-icon { font-size: 11px; }

/* ---------------------------------------------------- 导航消息铃铛 */

.nav-bell { position: relative; padding: 0 10px; }
.nav-dot {
  position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 10.5px; font-style: normal; font-weight: 700; line-height: 17px;
  text-align: center; box-shadow: 0 0 0 2px #fff;
}

/* ============================================================
   成长体系（个人中心的新增面板）
   签到日历 / 我的邀请 / 消息中心 / 我的投递 / 实名认证
   ============================================================ */

/* ---------------------------------------------------------- 每日签到 */

.signin-hero {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 24px; border-radius: var(--radius);
  background: linear-gradient(120deg, #fff6ef 0%, #f4f2ff 100%);
  border: 1px solid #ffe6d5;
}
.signin-hero .sh-fire { font-size: 42px; line-height: 1; flex: none; }
.signin-hero .sh-main { flex: 1; min-width: 200px; }
.signin-hero .sh-streak { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.signin-hero .sh-streak small { font-size: 15px; font-weight: 600; color: var(--text-2); margin-left: 4px; }
.signin-hero .sh-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* 签到按钮：已签到的样子和未签到明显不同，避免用户反复点 */
.btn-signin { height: 46px; padding: 0 32px; font-size: 15px; border-radius: 12px; }
.btn-signin.done {
  background: var(--success-soft); border-color: #bfe8cd; color: var(--success);
  box-shadow: none; cursor: default;
}

.signin-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.signin-nums .sn { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.signin-nums .sn b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.signin-nums .sn span { font-size: 12.5px; color: var(--muted); }

/* 30 天日历：固定 10 列，行数随天数自然换行。
   aspect-ratio 让格子始终是正方形，不用写死像素高度。 */
.signin-cal { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.cal-cell {
  aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center;
  font-size: 11px; font-weight: 600; line-height: 1;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  cursor: default; transition: all 0.15s;
}
.cal-cell.on { background: var(--grad); border-color: transparent; color: #fff; }
.cal-cell.on.makeup { background: linear-gradient(120deg, #f59e0b, #f97316); }
.cal-cell.today { box-shadow: 0 0 0 2px var(--brand); }
.cal-cell.today.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); }
.cal-cell:hover { transform: translateY(-2px); }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.cal-legend i {
  display: inline-block; width: 12px; height: 12px; border-radius: 4px;
  margin-right: 6px; vertical-align: -2px; border: 1px solid var(--border);
}
.cal-legend i.lg-on { background: var(--grad); border-color: transparent; }
.cal-legend i.lg-makeup { background: linear-gradient(120deg, #f59e0b, #f97316); border-color: transparent; }
.cal-legend i.lg-today { box-shadow: 0 0 0 2px var(--brand); }
.cal-cell .cc-day { opacity: 0.55; font-weight: 500; }

/* 连签奖励档位进度 */
.reward-track { display: grid; gap: 10px; }
.reward-row { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.reward-row .rr-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.reward-row .rr-bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.reward-row.done .rr-bar i { background: linear-gradient(120deg, #16a34a, #22c55e); }
.reward-row .rr-label { width: 132px; flex: none; color: var(--text-2); }
.reward-row .rr-coins { width: 76px; flex: none; text-align: right; font-weight: 700; color: var(--brand); }
.reward-row.done .rr-coins { color: var(--success); }

/* ---------------------------------------------------------- 我的邀请 */

.invite-code-box {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 20px; border-radius: var(--radius);
  background: linear-gradient(120deg, #f4f2ff 0%, #fff6ef 100%);
  border: 1px solid #e5e1ff;
}
.invite-code-box .ic-label { font-size: 12.5px; color: var(--muted); }
.invite-code-box .ic-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 26px; font-weight: 800; letter-spacing: 0.14em; color: var(--brand-700);
  line-height: 1.2; word-break: break-all;
}
.invite-link-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.invite-link-row .input { flex: 1; min-width: 220px; font-size: 12.5px; height: 36px; }

.invite-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.invite-stats .ivs { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.invite-stats .ivs b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.invite-stats .ivs span { font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------- 消息中心 */

.msg-list { display: grid; gap: 10px; }
.msg-item {
  position: relative; display: flex; gap: 13px; align-items: flex-start;
  padding: 15px 16px; border: 1px solid var(--border); border-radius: 12px;
  background: #fff; transition: all 0.16s;
}
.msg-item:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.msg-item.unread { background: var(--surface-2); border-color: #dcdefb; }
.msg-item .mi-icon {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  display: grid; place-items: center; font-size: 16px; background: var(--brand-soft);
}
.msg-item .mi-body { flex: 1; min-width: 0; }
.msg-item .mi-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg-item.unread .mi-title { font-weight: 700; }
.msg-item .mi-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--danger); flex: none;
}
.msg-item .mi-text {
  font-size: 13px; color: var(--text-2); line-height: 1.7; margin-top: 5px;
  white-space: pre-wrap; word-break: break-word;
}
.msg-item .mi-foot { display: flex; align-items: center; gap: 12px; margin-top: 9px; font-size: 12px; color: var(--muted); }
.msg-item .mi-acts { display: flex; gap: 6px; flex: none; align-items: center; }

/* ---------------------------------------------------------- 我的投递 */

.deliver-list { display: grid; gap: 12px; }
.deliver-item {
  border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 16px 18px;
  transition: all 0.16s;
}
.deliver-item:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.deliver-item .di-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.deliver-item .di-title { font-size: 15px; font-weight: 700; }
.deliver-item .di-meta { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.deliver-item .di-foot { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }

/* 投递状态流程条（投递 → 初筛 → 面试 → 录用），让候选人一眼看到进度 */
.flow-bar { display: flex; align-items: center; gap: 0; margin-top: 14px; flex-wrap: wrap; }
.flow-bar .fb-step {
  display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted);
}
.flow-bar .fb-step::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: var(--border-2); flex: none;
}
.flow-bar .fb-step.on { color: var(--brand); font-weight: 600; }
.flow-bar .fb-step.on::before { background: var(--brand); }
.flow-bar .fb-line { width: 26px; height: 2px; background: var(--border); margin: 0 8px; flex: none; }
.flow-bar .fb-step.reject { color: var(--danger); font-weight: 600; }
.flow-bar .fb-step.reject::before { background: var(--danger); }

/* ---------------------------------------------------------- 实名认证 */

.rn-status {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: 12px; font-size: 13.5px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.rn-status.ok { background: var(--success-soft); border-color: #bfe8cd; color: #0f7a37; }
.rn-status.wait { background: var(--warn-soft); border-color: #ffe2ad; color: #8a5a00; }
.rn-status.bad { background: var(--danger-soft); border-color: #f6c9cb; color: #a32227; }
.rn-status .rn-ico { font-size: 20px; line-height: 1; flex: none; }

/* 输入验证码 + 获取按钮并排，按钮宽度按内容自适应 */
.code-row { display: flex; gap: 8px; align-items: stretch; }
.code-row .input { flex: 1; min-width: 0; }
.code-row .btn { flex: none; white-space: nowrap; padding: 0 14px; }

/* ---------------------------------------------------------- 首页快捷创作窗口 */

.quick-create {
  position: relative; border-radius: var(--radius-lg); padding: 26px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow);
}

/* 创建窗口与右侧说明两栏；说明栏跟着表单顶部对齐，不要拉伸 */
.qc-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.qc-steps { display: grid; gap: 14px; }
.qc-step { display: flex; gap: 12px; align-items: flex-start; }
.qc-step .qs-n {
  width: 26px; height: 26px; flex: none; border-radius: 9px;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
  background: var(--brand-soft); color: var(--brand);
}
.qc-step b { font-size: 13.5px; display: block; }
.qc-step p { font-size: 12.5px; color: var(--muted); line-height: 1.65; margin-top: 2px; }

/* 字数与消耗提示条：生成前把账算清楚，避免点下去才被告知梦豆不足 */
.qc-cost-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
  padding: 9px 12px; border-radius: 10px; background: var(--surface-2);
  border: 1px solid var(--border);
}
.qc-cost-bar .sep { color: var(--border-2); }
.qc-cost-bar b { color: var(--text); font-size: 13.5px; }
.qc-cost-bar .warn { color: var(--danger); font-weight: 700; }
.qc-cost-bar .ok { color: var(--success); font-weight: 700; }
.quick-create .qc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.quick-create .qc-head h3 { font-size: 17px; }
.quick-create .qc-tag { margin-left: auto; }
.quick-create .qc-sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.quick-create .textarea { min-height: 108px; resize: vertical; }
.quick-create .qc-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.quick-create .qc-foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.quick-create .qc-cost { font-size: 12.5px; color: var(--muted); }
.quick-create .qc-cost b { color: var(--brand); font-size: 15px; }
.quick-create .qc-presets { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.quick-create .qc-presets .chip { font-size: 12px; }

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { position: static; max-height: none; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .quote-grid, .pain-list, .contact-grid { grid-template-columns: 1fr; }
  .perk-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .prose { padding: 24px 20px; }
  .metric-strip { grid-template-columns: 1fr; }
  .perk-grid, .tick-list, .form-grid { grid-template-columns: 1fr; }
  .job-card { flex-direction: column; align-items: flex-start; }
  .job-side { text-align: left; }
  .contact-panel { padding: 24px 20px; }
}

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 64px; }
  .hero h1 { font-size: 40px; }
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid, .grid-avatars, .voice-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-templates { grid-template-columns: repeat(3, 1fr); }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-works { grid-template-columns: repeat(3, 1fr); }
  .pick-grid { grid-template-columns: repeat(5, 1fr); }
  .band { grid-template-columns: 1fr; padding: 28px; }
  .band.flip { direction: ltr; }
  .studio-layout { grid-template-columns: 1fr; }
  .studio-side { position: static; }
  .me-layout { grid-template-columns: 1fr; }
  .me-side { position: static; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .mini-grid { grid-template-columns: repeat(4, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-media { max-width: 240px; }
}

@media (max-width: 720px) {
  .hero h1 { font-size: 32px; }
  .scenario-grid, .feat-grid, .showcase-grid, .grid-avatars, .voice-grid,
  .grid-templates, .plans-grid, .grid-works, .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .pick-grid { grid-template-columns: repeat(3, 1fr); }
  .section-title { font-size: 24px; }
  .band { padding: 22px; }
  .band h3 { font-size: 21px; }
  .cta-band { padding: 42px 24px; }
  .cta-band h2 { font-size: 26px; }
  .hero-metrics { gap: 22px; }
  .hero-metric b { font-size: 21px; }
  .auth-card { padding: 30px 22px; margin: 20px 16px; }
  .filter-bar { padding: 12px; }
  .gcaptcha { width: 96px; }
  .demo-code-tip, .invite-banner { padding: 10px 12px; }
  .uv-badge b { display: none; }  /* 小屏导航只留图标，避免把按钮撑变形 */

  /* 成长体系面板：小屏收紧内边距与列数 */
  .signin-hero { padding: 18px; gap: 16px; }
  .signin-hero .sh-streak { font-size: 32px; }
  .signin-nums, .invite-stats { grid-template-columns: repeat(2, 1fr); }
  .signin-cal { grid-template-columns: repeat(7, 1fr); gap: 5px; }
  .quick-create { padding: 18px; }
  .qc-grid { grid-template-columns: 1fr; }
  .quick-create .qc-picks { grid-template-columns: 1fr; }
  .invite-code-box { padding: 16px; }
  .invite-code-box .ic-code { font-size: 22px; }
  .msg-item { padding: 13px; gap: 10px; }
  .msg-item .mi-acts { flex-direction: column; align-items: stretch; }
  .reward-row .rr-label { width: 96px; font-size: 12px; }
  .reward-row .rr-coins { width: 62px; }
  .deliver-item { padding: 14px; }
}
