/* ============================================================
   Saylo 官网 · 设计系统
   主视觉取自 App 原生资产：月下宫殿 + 紫粉金三重色
   ============================================================ */

@font-face {
  font-family: 'ZiHunHaiMa';
  src: url('../fonts/ZiHunHaiMa.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  /* 底色：夜宫紫 */
  --bg-0: #0b0616;
  --bg-1: #140b26;
  --bg-2: #1d1136;
  --bg-3: #261645;

  /* 玻璃卡片 */
  --card: rgba(255, 255, 255, 0.045);
  --card-hi: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.09);
  --line-hi: rgba(255, 255, 255, 0.18);

  /* 品牌三色 */
  --pink: #ff4d8d;
  --pink-2: #ff9dc0;
  --magenta: #c341ff;
  --violet: #7b4dff;
  --gold: #f7c86b;
  --gold-2: #ffe9b8;

  /* 文字 */
  --text: #f5f0ff;
  --dim: rgba(245, 240, 255, 0.64);
  --mute: rgba(245, 240, 255, 0.38);

  --grad-brand: linear-gradient(120deg, #ff4d8d 0%, #c341ff 55%, #7b4dff 100%);
  --grad-gold: linear-gradient(120deg, #f7c86b 0%, #ffe9b8 100%);
  --grad-warm: linear-gradient(120deg, #ff4d8d 0%, #ff9dc0 100%);

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-pink: 0 12px 40px rgba(255, 77, 141, 0.3);

  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Source Han Sans CN', 'Noto Sans SC', sans-serif;
  --display: 'ZiHunHaiMa', var(--sans);
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 全局星空氛围 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1000px 620px at 12% -8%, rgba(195, 65, 255, 0.20), transparent 62%),
    radial-gradient(900px 560px at 92% 4%, rgba(255, 77, 141, 0.16), transparent 60%),
    radial-gradient(1200px 800px at 50% 108%, rgba(123, 77, 255, 0.16), transparent 66%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { position: relative; z-index: 1; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===================== 顶部导航 ===================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  background: rgba(11, 6, 22, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img, .brand .fallback-logo {
  width: 42px; height: 42px; border-radius: 12px; object-fit: cover;
  box-shadow: 0 6px 20px rgba(255, 77, 141, 0.35);
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--display); font-size: 27px; letter-spacing: 0.5px;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-size: 10px; color: var(--mute); letter-spacing: 2.4px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { font-size: 14.5px; color: var(--dim); transition: color .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-links a.on { font-weight: 600; }
.nav-burger { display: none; font-size: 24px; color: var(--text); }

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 34px; border-radius: 999px; font-size: 16px; font-weight: 600;
  transition: transform .22s cubic-bezier(.2,.9,.3,1.2), box-shadow .22s, background .22s, border-color .22s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-pink); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 52px rgba(255, 77, 141, 0.5); }
.btn-gold { background: var(--grad-gold); color: #4a2c00; box-shadow: 0 12px 36px rgba(247, 200, 107, 0.3); }
.btn-gold:hover { transform: translateY(-3px); }
.btn-ghost { border: 1px solid var(--line-hi); color: var(--text); backdrop-filter: blur(10px); background: rgba(255,255,255,0.04); }
.btn-ghost:hover { border-color: var(--pink); color: #fff; background: rgba(255, 77, 141, 0.12); transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-lg { padding: 18px 44px; font-size: 17.5px; }
.btn-block { width: 100%; }

/* ===================== 通用排版 ===================== */
.sec { padding: 96px 0; position: relative; }
.sec-tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: 2.6px;
  color: var(--gold); text-transform: uppercase; margin-bottom: 18px; font-weight: 600;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--gold); opacity: .65; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h2.sec-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
h3 { font-size: 20px; }
.sec-desc { color: var(--dim); font-size: 16.5px; max-width: 720px; line-height: 1.85; }
.sec-head { margin-bottom: 52px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-desc { margin: 0 auto; }
.sec-head.center .eyebrow { justify-content: center; }
.grad-txt { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-gold-txt { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===================== 首页 Hero ===================== */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
/* 主视觉：2048x1152 横版（人物在右，左侧留空给文案）
   旧图是 1125x2436 竖版壁纸，position 调的是 32%；横版改为右侧对位，
   让人物重心落在渐变可见区（横向 50%~78%）。 */
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero-harem.webp');
  background-size: cover; background-position: 68% center;
  opacity: .68; transform: scale(1.04);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg-0) 4%, rgba(11,6,22,.86) 42%, rgba(11,6,22,.5) 78%, rgba(11,6,22,.86) 100%),
    linear-gradient(0deg, var(--bg-0) 1%, transparent 42%);
}
.hero .container { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 60px; }
.hero-inner { max-width: 660px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); margin-bottom: 22px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; display: block; }
.hero-lead { font-size: clamp(16px, 1.9vw, 19px); color: rgba(245,240,255,.82); margin-bottom: 16px; line-height: 1.9; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 34px 0 26px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.htag {
  font-size: 13px; padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--dim);
}
.hero-stats { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.hstat b { font-family: var(--display); font-size: 34px; display: block; background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.2; }
.hstat span { font-size: 13px; color: var(--mute); }

/* ===================== 题材矩阵 ===================== */
.genre-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.genre {
  position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3/4.1;
  border: 1px solid var(--line); transition: transform .35s, border-color .35s;
}
.genre img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.genre::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,6,22,.94) 6%, rgba(11,6,22,.35) 48%, transparent 76%);
}
.genre:hover { transform: translateY(-6px); border-color: rgba(255,77,141,.5); }
.genre:hover img { transform: scale(1.07); }
.genre-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; z-index: 2; }
.genre-txt b { display: block; font-size: 16px; margin-bottom: 3px; }
.genre-txt span { font-size: 12px; color: var(--dim); }

/* ===================== 角色卡 ===================== */
.char-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.char-card {
  position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-2);
  border: 1px solid var(--line); transition: transform .35s, border-color .35s, box-shadow .35s;
  display: flex; flex-direction: column; cursor: pointer;
}
.char-card:hover { transform: translateY(-7px); border-color: rgba(255,77,141,.5); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.cc-img { position: relative; aspect-ratio: 3/3.5; overflow: hidden; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .6s; }
.char-card:hover .cc-img img { transform: scale(1.06); }
.cc-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg-2) 2%, transparent 46%); }
.cc-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 3; flex-wrap: wrap; }
.badge {
  font-size: 11px; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(10px);
  background: rgba(11,6,22,.62); border: 1px solid var(--line-hi); color: var(--text);
}
.badge-hot { background: var(--grad-warm); border-color: transparent; color: #fff; font-weight: 600; }
.badge-gold { background: rgba(247,200,107,.16); border-color: rgba(247,200,107,.5); color: var(--gold-2); }
.cc-gender { position: absolute; top: 12px; right: 12px; z-index: 3; width: 26px; height: 26px;
  border-radius: 50%; display: grid; place-items: center; font-size: 14px;
  background: rgba(11,6,22,.62); border: 1px solid var(--line-hi); backdrop-filter: blur(10px); }
.cc-body { padding: 16px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.cc-name { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.cc-tagline { font-size: 13px; color: var(--pink-2); margin-bottom: 9px; }
.cc-desc { font-size: 13px; color: var(--dim); line-height: 1.7; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-meta { display: flex; align-items: center; gap: 8px; margin-top: 13px; font-size: 12px; color: var(--mute); }
.cc-stage { padding: 3px 10px; border-radius: 999px; background: rgba(123,77,255,.18);
  border: 1px solid rgba(123,77,255,.4); color: #c9b3ff; }
.cc-act { display: flex; gap: 8px; margin-top: 14px; }
.cc-act .btn { flex: 1; padding: 10px 0; font-size: 13.5px; }

/* ===================== 玩法 ===================== */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  padding: 28px 26px; border-radius: var(--r); background: var(--card);
  border: 1px solid var(--line); transition: transform .3s, border-color .3s, background .3s;
}
.feat:hover { transform: translateY(-5px); border-color: var(--line-hi); background: var(--card-hi); }
.feat-ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  margin-bottom: 17px; background: rgba(255,255,255,.06); border: 1px solid var(--line);
}
.feat-ico img { width: 36px; height: 36px; object-fit: contain; }
.feat h3 { font-size: 18px; margin-bottom: 9px; display: flex; align-items: center; gap: 9px; }
.feat p { font-size: 14px; color: var(--dim); line-height: 1.8; }
.feat .lock { font-size: 11.5px; color: var(--gold); margin-top: 11px; display: inline-block;
  padding: 3px 10px; border-radius: 999px; background: rgba(247,200,107,.12); border: 1px solid rgba(247,200,107,.3); }

/* ===================== 等级 / 默契度 ===================== */
.lv-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.lv-item { text-align: center; padding: 18px 8px; border-radius: var(--r-sm); background: var(--card);
  border: 1px solid var(--line); transition: .3s; }
.lv-item:hover { border-color: rgba(255,77,141,.45); transform: translateY(-4px); }
.lv-item img { width: 52px; height: 52px; margin: 0 auto 9px; object-fit: contain; }
.lv-item b { display: block; font-size: 13px; margin-bottom: 2px; }
.lv-item span { font-size: 11px; color: var(--mute); }

.stage-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stage { padding: 26px 22px; border-radius: var(--r); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,77,141,.1), rgba(123,77,255,.06)); position: relative; overflow: hidden; }
.stage b { display: block; font-size: 19px; margin-bottom: 7px; }
.stage p { font-size: 13.5px; color: var(--dim); line-height: 1.75; }
.stage em { font-style: normal; font-size: 12px; color: var(--gold); display: block; margin-top: 10px; }

/* ===================== VIP 权益 ===================== */
.vip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.vip-card { padding: 26px; border-radius: var(--r); border: 1px solid rgba(247,200,107,.28);
  background: linear-gradient(155deg, rgba(247,200,107,.1), rgba(255,77,141,.05)); }
.vip-card .vnum { font-family: var(--display); font-size: 30px; color: var(--gold-2); display: block; margin-bottom: 6px; }
.vip-card b { font-size: 17px; display: block; margin-bottom: 8px; }
.vip-card p { font-size: 14px; color: var(--dim); line-height: 1.8; }

/* ===================== 下载 CTA ===================== */
.cta-band {
  position: relative; border-radius: var(--r-lg); overflow: hidden; padding: 66px 48px; text-align: center;
  border: 1px solid var(--line-hi);
  background: linear-gradient(140deg, rgba(255,77,141,.2), rgba(123,77,255,.16)), var(--bg-2);
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; opacity: .28;
  background: url('../img/icon-palace.webp') center/contain no-repeat;
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 14px; }
.cta-band p { color: var(--dim); max-width: 620px; margin: 0 auto 30px; }

/* 变体：背景换成角色拼图合图（男女都有）。自带纵向压暗，保证白字可读 */
.cta-crowd {
  background:
    linear-gradient(180deg, rgba(11,6,22,.9) 0%, rgba(11,6,22,.66) 42%, rgba(11,6,22,.93) 100%),
    url('../img/cta-crowd.webp') center/cover no-repeat;
}
/* 角标改用一层整幅压暗 + 底部品牌色渐变，去掉原宫殿图标水印 */
.cta-crowd::before {
  opacity: 1; background: none;
  background-image:
    radial-gradient(120% 90% at 50% 0%, rgba(195,65,255,.34), transparent 58%),
    linear-gradient(0deg, rgba(123,77,255,.34), transparent 62%);
}
.cta-crowd h2, .cta-crowd p, .cta-crowd .eyebrow,
.cta-crowd .btn-ghost { text-shadow: 0 2px 16px rgba(6,3,13,.85); }

/* ===================== 页脚 ===================== */
.foot { border-top: 1px solid var(--line); padding: 56px 0 34px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.foot h4 { font-size: 14px; margin-bottom: 15px; color: var(--text); }
.foot ul { list-style: none; }
.foot li { margin-bottom: 10px; }
.foot a { font-size: 13.5px; color: var(--dim); transition: color .2s; }
.foot a:hover { color: var(--pink-2); }
.foot-desc { font-size: 13.5px; color: var(--mute); line-height: 1.85; max-width: 320px; margin-top: 14px; }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex;
  justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--mute); }
.warn18 { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 8px;
  background: rgba(255,77,141,.14); border: 1px solid rgba(255,77,141,.36); color: var(--pink-2); font-weight: 600; }

/* ===================== 下载弹窗（核心 CTA） ===================== */
.modal-mask {
  position: fixed; inset: 0; z-index: 999; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(6, 3, 13, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.modal-mask.show { display: flex; animation: fadeIn .22s ease; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal {
  width: 100%; max-width: 420px; border-radius: 26px; padding: 34px 30px 28px; text-align: center;
  background: linear-gradient(165deg, #241540, #170e2b);
  border: 1px solid rgba(255,255,255,.14); box-shadow: var(--shadow);
  position: relative; animation: pop .3s cubic-bezier(.2,.9,.3,1.25);
}
@keyframes pop { from { transform: scale(.9) translateY(14px); opacity: 0 } to { transform: none; opacity: 1 } }
.modal-x { position: absolute; top: 15px; right: 17px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; color: var(--mute); font-size: 19px; transition: .2s; }
.modal-x:hover { background: rgba(255,255,255,.08); color: var(--text); }
.modal-logo { width: 68px; height: 68px; border-radius: 19px; margin: 0 auto 17px; object-fit: cover;
  box-shadow: 0 12px 34px rgba(255,77,141,.42); }
.modal h3 { font-size: 21px; margin-bottom: 11px; }
.modal p { font-size: 14px; color: var(--dim); line-height: 1.8; margin-bottom: 22px; }
.modal-feats { text-align: left; margin: 0 0 22px; padding: 16px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.modal-feats li { list-style: none; font-size: 13px; color: var(--dim); margin-bottom: 9px; display: flex; gap: 9px; align-items: flex-start; }
.modal-feats li:last-child { margin-bottom: 0; }
.modal-feats li::before { content: '◆'; color: var(--gold); font-size: 10px; margin-top: 5px; flex-shrink: 0; }
.modal-note { font-size: 11.5px; color: var(--mute); margin-top: 14px; }

/* 弹窗内的下载地址列表（多地址可选，只出序号不露链接原文） */
.dl-picks { display: flex; flex-direction: column; gap: 10px; }
.dl-pick {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; color: #fff;
  background: var(--grad-brand); box-shadow: var(--shadow-pink);
  transition: transform .22s cubic-bezier(.2,.9,.3,1.2), box-shadow .22s;
}
.dl-pick:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(255,77,141,.45); }
.dl-pick + .dl-pick { background: rgba(255,255,255,.07); border: 1px solid var(--line-hi); box-shadow: none; }
.dl-pick + .dl-pick:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.dl-pick-tag {
  font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,.22); color: #fff;
}

/* ===================== 角色详情页 ===================== */
.detail-hero { position: relative; min-height: 74vh; display: flex; align-items: flex-end; overflow: hidden; }
.detail-hero .dh-bg { position: absolute; inset: 0; background-size: cover; background-position: center 26%; opacity: .6; }
.detail-hero .dh-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--bg-0) 3%, rgba(11,6,22,.72) 46%, rgba(11,6,22,.42) 100%); }
.dh-inner { position: relative; z-index: 2; width: 100%; padding-bottom: 52px; }
.dh-name { font-size: clamp(34px, 5.4vw, 58px); margin-bottom: 12px; }
.dh-line { font-size: 17px; color: var(--pink-2); margin-bottom: 18px; }
.dh-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.dh-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.dh-metrics { display: flex; gap: 32px; margin-top: 30px; flex-wrap: wrap; }
.dh-metric b { font-size: 22px; display: block; color: var(--gold-2); font-family: var(--display); }
.dh-metric span { font-size: 12.5px; color: var(--mute); }

.info-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; align-items: start; }
.panel { padding: 30px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.panel + .panel { margin-top: 20px; }
.panel h3 { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; font-size: 17px; }
.panel h3::before { content: ''; width: 4px; height: 17px; border-radius: 2px; background: var(--grad-brand); }
.panel p { font-size: 14.5px; color: var(--dim); line-height: 1.9; }
.kv { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv b { color: var(--mute); font-weight: 400; min-width: 74px; flex-shrink: 0; }
.kv span { color: var(--dim); }
.opening { position: relative; padding: 20px 22px; border-radius: 16px 16px 16px 4px;
  background: linear-gradient(150deg, rgba(195,65,255,.16), rgba(255,77,141,.09));
  border: 1px solid rgba(255,255,255,.1); font-size: 14.5px; line-height: 1.9; color: var(--text); }
.opening + .opening { margin-top: 12px; }

/* 关系进程 */
.rel-steps { display: flex; gap: 0; margin: 8px 0 4px; }
.rel-step { flex: 1; text-align: center; position: relative; padding-top: 30px; }
.rel-step::before { content: ''; position: absolute; top: 8px; left: 50%; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg-3); border: 2px solid var(--line-hi); transform: translateX(-50%); z-index: 2; }
.rel-step::after { content: ''; position: absolute; top: 14px; left: 50%; width: 100%; height: 2px; background: var(--line); }
.rel-step:last-child::after { display: none; }
.rel-step.done::before { background: var(--grad-brand); border-color: transparent; box-shadow: 0 0 14px rgba(255,77,141,.7); }
.rel-step.done::after { background: linear-gradient(90deg, var(--pink), var(--violet)); }
.rel-step b { font-size: 13px; display: block; }
.rel-step span { font-size: 11px; color: var(--mute); }

/* ===================== 聊天页 ===================== */
.chat-page { height: 100vh; display: flex; flex-direction: column; max-width: 720px; margin: 0 auto;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: rgba(11,6,22,.86); backdrop-filter: blur(18px); flex-shrink: 0; }
.chat-back { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-size: 19px; color: var(--dim); transition: .2s; flex-shrink: 0; }
.chat-back:hover { background: rgba(255,255,255,.08); color: var(--text); }
.chat-ava { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: 50% 16%; border: 2px solid rgba(255,77,141,.55); flex-shrink: 0; }
.chat-id { flex: 1; min-width: 0; }
.chat-id b { font-size: 15.5px; display: block; line-height: 1.3; }
.chat-id span { font-size: 11.5px; color: var(--mute); }
.chat-id span i { font-style: normal; color: #6ee7a8; }
.chat-mode { display: flex; gap: 6px; }
.mode-btn { font-size: 12px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--dim); transition: .2s; }
.mode-btn:hover { border-color: var(--line-hi); color: var(--text); }
.mode-btn.on { background: var(--grad-brand); border-color: transparent; color: #fff; }

.intimacy-bar { display: flex; align-items: center; gap: 10px; padding: 9px 16px; flex-shrink: 0;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025); }
.ib-label { font-size: 11.5px; color: var(--mute); white-space: nowrap; }
.ib-track { flex: 1; height: 7px; border-radius: 99px; background: rgba(255,255,255,.09); overflow: hidden; position: relative; }
.ib-fill { height: 100%; width: 0; border-radius: 99px; background: var(--grad-warm); transition: width .7s cubic-bezier(.2,.9,.3,1);
  box-shadow: 0 0 12px rgba(255,77,141,.6); }
.ib-val { font-size: 11.5px; color: var(--pink-2); min-width: 60px; text-align: right; white-space: nowrap; }
.ib-ava { width: 17px; height: 17px; object-fit: contain; }

.chat-body { flex: 1; overflow-y: auto; padding: 22px 16px 14px; display: flex; flex-direction: column; gap: 16px; }
.chat-body::-webkit-scrollbar { width: 5px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 9px; }
.msg { display: flex; gap: 10px; max-width: 84%; animation: msgIn .34s cubic-bezier(.2,.9,.3,1.1); }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }
.msg img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 16%; flex-shrink: 0; border: 1.5px solid rgba(255,77,141,.45); }
.bubble { padding: 12px 16px; border-radius: 18px 18px 18px 5px; font-size: 14.5px; line-height: 1.78;
  background: rgba(255,255,255,.075); border: 1px solid var(--line); }
.msg.me { align-self: flex-end; flex-direction: row-reverse; max-width: 78%; }
.msg.me .bubble { border-radius: 18px 18px 5px 18px; background: var(--grad-brand); border-color: transparent; color: #fff; }
.msg.me img { display: none; }
.typing { display: flex; gap: 5px; padding: 15px 18px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: blink 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%,60%,100% { opacity: .28; transform: translateY(0) } 30% { opacity: 1; transform: translateY(-4px) } }

.chat-sys { text-align: center; font-size: 11.5px; color: var(--mute); padding: 7px 0; }
.chat-sys span { padding: 4px 14px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.chat-sys.gold span { color: var(--gold-2); border-color: rgba(247,200,107,.4); background: rgba(247,200,107,.1); }

.quick-wrap { flex-shrink: 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: rgba(11,6,22,.9); backdrop-filter: blur(18px); }
.quick-list { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 11px; scrollbar-width: none; }
.quick-list::-webkit-scrollbar { display: none; }
.quick {
  font-size: 13.5px; padding: 10px 17px; border-radius: 999px; white-space: nowrap; flex-shrink: 0;
  border: 1px solid rgba(255,77,141,.42); color: var(--pink-2); background: rgba(255,77,141,.1); transition: .2s;
}
.quick:hover { background: rgba(255,77,141,.24); color: #fff; transform: translateY(-2px); }
.input-row { display: flex; gap: 10px; align-items: center; }
.input-row input {
  flex: 1; padding: 13px 18px; border-radius: 999px; font-size: 14.5px; font-family: inherit;
  background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--text); outline: none; transition: .2s;
}
.input-row input:focus { border-color: rgba(255,77,141,.6); background: rgba(255,255,255,.1); }
.input-row input::placeholder { color: var(--mute); }
.send-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-size: 17px; flex-shrink: 0; transition: .2s; }
.send-btn:hover { transform: scale(1.07); }

/* 聊天选择角色条 */
.picker { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 9px;
  overflow-x: auto; background: rgba(255,255,255,.02); flex-shrink: 0; scrollbar-width: none; }
.picker::-webkit-scrollbar { display: none; }
.pk { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; width: 60px; }
.pk img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 16%; border: 2px solid transparent; transition: .2s; }
.pk span { font-size: 11px; color: var(--mute); }
.pk.on img { border-color: var(--pink); box-shadow: 0 0 16px rgba(255,77,141,.6); }
.pk.on span { color: var(--pink-2); }

/* ===================== 工具类 ===================== */
.center { text-align: center; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 44px; }
.breadcrumb { font-size: 12.5px; color: var(--mute); padding: 20px 0 0; }
.breadcrumb a:hover { color: var(--pink-2); }

/* ===================== 响应式 ===================== */
@media (max-width: 1024px) {
  .char-grid { grid-template-columns: repeat(3, 1fr); }
  .genre-grid { grid-template-columns: repeat(4, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .lv-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .sec { padding: 62px 0; }
  .container { padding: 0 18px; }
  /* 移动端 hero 是竖窗口，横版图 cover 后横向只剩中间一条 —— 人物脸会跑出画面。
     改为把人物（右侧重心）拉到可视区，并加大图幅裁切容差。 */
  .hero-bg { background-position: 62% center; opacity: .58; transform: scale(1.12); }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(11,6,22,.72) 0%, rgba(11,6,22,.42) 38%, rgba(11,6,22,.9) 82%, var(--bg-0) 100%),
      linear-gradient(90deg, var(--bg-0) 4%, rgba(11,6,22,.5) 60%, rgba(11,6,22,.72) 100%);
  }
  /* 右上角 CTA 已移除，移动端导航不能再靠「隐藏 nav-links」兜底，
     否则顶栏只剩一个 logo、没有任何入口。
     改用「logo 图标 + 6 项全显示」：隐藏品牌文字（logo 图本身已带 Saylo 字样）、
     收紧内外边距与字号，让 6 项在 360px 宽下也排得下。 */
  .nav-in { padding-left: 16px; padding-right: 16px; gap: 12px; }
  .brand-txt { display: none; }
  .nav-links {
    gap: 14px; margin-left: auto; min-width: 0;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 13px; }
  .char-grid { grid-template-columns: repeat(2, 1fr); gap: 13px; }
  .genre-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: 1fr; }
  .stage-row { grid-template-columns: 1fr 1fr; }
  .vip-grid { grid-template-columns: 1fr; }
  .lv-row { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .lv-item { padding: 13px 4px; }
  .lv-item img { width: 38px; height: 38px; }
  .hero-stats { gap: 26px; }
  .hstat b { font-size: 27px; }
  .cta-band { padding: 44px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .cc-img { aspect-ratio: 3/3.3; }
  .cc-body { padding: 12px 12px 14px; }
  .cc-name { font-size: 16px; }
  .cc-desc { -webkit-line-clamp: 2; }
  .dh-metrics { gap: 22px; }
  .rel-steps { overflow-x: auto; }
}
