/* ===== 情感AI伴侣 · 模块页（四 tab 沉浸式覆盖层） =====
   2026-10-28 Media 拍板：主页「情感AI伴侣」不再是八步定制那一页，
   进来就是这一页 —— 短剧 / AI恋人 / 恋爱剧场 / 创作者 + 底部「我的TA」「进入剧场」。
   原型见 docs/prototype/ai-love-module-v1.html。
   ⚠️ 所有选择器都限定在 #aiLoveOverlay 内，不污染主站的浅紫主题。 */

#aiLoveOverlay {
  position: fixed;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 390px);
  max-width: 100vw;
  z-index: 300;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: #0E0918;
  color: #F4EDFF;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#aiLoveOverlay.active { display: flex; }
@media (max-width: 480px) {
  #aiLoveOverlay { width: 100vw; left: 0; transform: none; }
}

/* 背景氛围光斑 */
#aiLoveOverlay .al-atm { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#aiLoveOverlay .al-atm b { position: absolute; border-radius: 50%; filter: blur(48px); opacity: .5; }
#aiLoveOverlay .al-atm b:nth-child(1) { width: 260px; height: 260px; background: #5B2FB8; top: -90px; left: -70px; }
#aiLoveOverlay .al-atm b:nth-child(2) { width: 220px; height: 220px; background: #8A2E5E; top: 120px; right: -90px; opacity: .35; }
#aiLoveOverlay .al-atm b:nth-child(3) { width: 300px; height: 300px; background: #3A1E7A; bottom: -130px; left: -60px; opacity: .4; }

/* ===== 顶栏 ===== */
#aiLoveOverlay .al-top {
  position: relative; z-index: 5; flex-shrink: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 0;
}
#aiLoveOverlay .al-top-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
#aiLoveOverlay .al-badge {
  width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #7A4BE0, #C05A9E);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  box-shadow: 0 4px 14px rgba(122,75,224,.45);
}
#aiLoveOverlay .al-title { font-size: 18px; font-weight: 800; letter-spacing: .3px; flex: 1; }
#aiLoveOverlay .al-close {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.07); border: 1px solid rgba(157,123,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: rgba(244,237,255,.72); cursor: pointer;
}
#aiLoveOverlay .al-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(157,123,255,.18);
  border-radius: 18px; padding: 9px 14px; margin-bottom: 2px; cursor: pointer;
}
#aiLoveOverlay .al-search svg { width: 15px; height: 15px; stroke: rgba(244,237,255,.45); fill: none; stroke-width: 2; flex-shrink: 0; }
#aiLoveOverlay .al-search span { font-size: 13px; color: rgba(244,237,255,.45); }

/* ===== Tab ===== */
#aiLoveOverlay .al-tabs {
  position: relative; z-index: 5; flex-shrink: 0;
  display: flex; gap: 9px; padding: 12px 16px 8px;
  overflow-x: auto; scrollbar-width: none;
}
#aiLoveOverlay .al-tabs::-webkit-scrollbar { display: none; }
#aiLoveOverlay .al-tab {
  flex-shrink: 0; padding: 8px 17px; border-radius: 22px;
  font-size: 13.5px; font-weight: 600; color: rgba(244,237,255,.72);
  background: rgba(255,255,255,.06); border: 1px solid rgba(157,123,255,.18);
  transition: all .25s cubic-bezier(.22,.68,.43,1.15); cursor: pointer; white-space: nowrap;
}
#aiLoveOverlay .al-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #6B3DD4, #9D7BFF);
  border-color: rgba(255,255,255,.45);
  box-shadow: 0 4px 18px rgba(107,61,212,.5), 0 0 22px rgba(157,123,255,.32);
  transform: scale(1.04);
}
#aiLoveOverlay .al-tab:active { transform: scale(.96); }

/* ===== 内容区 ===== */
#aiLoveOverlay .al-scroll {
  position: relative; z-index: 2; flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 4px 16px 96px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
#aiLoveOverlay .al-scroll::-webkit-scrollbar { display: none; }
#aiLoveOverlay .al-page { display: none; }
#aiLoveOverlay .al-page.on { display: block; animation: alFadeUp .32s ease; }
@keyframes alFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

#aiLoveOverlay .al-sec {
  font-size: 15px; font-weight: 800; margin: 16px 0 10px;
  display: flex; align-items: center; gap: 7px;
}
#aiLoveOverlay .al-sec i {
  width: 3px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, #9D7BFF, #E85A8A); display: inline-block;
}
#aiLoveOverlay .al-sec small { font-size: 11px; font-weight: 500; color: rgba(244,237,255,.45); margin-left: auto; }

/* ===== 短剧：看剧发现页（对标兽人排版；顶部首条静态播放） ===== */
#aiLoveOverlay .al-hb {
  position: relative; border-radius: 18px; overflow: hidden; margin-bottom: 16px;
  border: 1px solid rgba(157,123,255,.3); background: #1a1330; cursor: pointer; aspect-ratio: 16 / 9;
}
#aiLoveOverlay .al-hb-video, #aiLoveOverlay .al-hb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
#aiLoveOverlay .al-hb-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,9,24,0) 40%, rgba(14,9,24,.88) 100%); }
#aiLoveOverlay .al-hb-tag {
  position: absolute; top: 12px; left: 12px; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
  background: linear-gradient(135deg, #7B4BE8, #C05A9E); color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.4);
}
#aiLoveOverlay .al-hb-info { position: absolute; left: 14px; right: 52px; bottom: 12px; }
#aiLoveOverlay .al-hb-name { font-size: 17px; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
#aiLoveOverlay .al-hb-intro { font-size: 11px; line-height: 1.5; color: rgba(244,237,255,.82); margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#aiLoveOverlay .al-hb-play {
  position: absolute; right: 14px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 13px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
/* 横滑卡片行 */
#aiLoveOverlay .al-hscroll { display: flex; gap: 11px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#aiLoveOverlay .al-hscroll::-webkit-scrollbar { display: none; }
#aiLoveOverlay .al-hcard { flex: 0 0 auto; width: 116px; }
#aiLoveOverlay .al-hcard-img { position: relative; width: 116px; height: 154px; border-radius: 13px; overflow: hidden; background: #1a1330; border: 1px solid rgba(157,123,255,.2); }
#aiLoveOverlay .al-hcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 14%; display: block; }
#aiLoveOverlay .al-hcard-play {
  position: absolute; right: 7px; bottom: 7px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(123,75,232,.85); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px;
}
#aiLoveOverlay .al-hcard-name { font-size: 12.5px; font-weight: 800; margin-top: 7px; }
#aiLoveOverlay .al-hcard-sub { font-size: 10px; color: rgba(244,237,255,.5); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 双列网格（紧凑，不放大；放大的是 AI恋人横条，不是这里） */
#aiLoveOverlay .al-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#aiLoveOverlay .al-dcard { position: relative; border-radius: 13px; overflow: hidden; background: #1a1330; border: 1px solid rgba(157,123,255,.18); cursor: pointer; }
#aiLoveOverlay .al-dcard-img { position: relative; width: 100%; aspect-ratio: 2 / 3; background: #1a1330; }
#aiLoveOverlay .al-dcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; display: block; }
/* 底部压暗，保证名字可读 */
#aiLoveOverlay .al-dcard-mask {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,9,24,0) 42%, rgba(14,9,24,.55) 72%, rgba(14,9,24,.92) 100%);
}
/* 右上角点赞数：粉橙渐变大角标 */
#aiLoveOverlay .al-dcard-like {
  position: absolute; top: 8px; right: 8px; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 13px;
  background: linear-gradient(135deg, #FF5E8A, #FF8E53); color: #fff;
  box-shadow: 0 3px 10px rgba(255,94,138,.42); letter-spacing: .3px;
}
/* 名字压在图上（左下，白字描边）+ 旁边小标签 */
#aiLoveOverlay .al-dcard-name {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.75);
}
#aiLoveOverlay .al-dcard-tag {
  flex-shrink: 0; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 9px;
  background: rgba(14,9,24,.5); border: 1px solid rgba(255,255,255,.32); color: rgba(255,255,255,.92);
  white-space: nowrap; text-shadow: none;
}
/* 左上角 + 按钮（加入我的TA） */
#aiLoveOverlay .al-dcard-add {
  position: absolute; left: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #7B4BE8, #C05A9E); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; box-shadow: 0 3px 10px rgba(0,0,0,.4); z-index: 2;
}

/* ===== AI恋人 ===== */
#aiLoveOverlay .al-shelf-note {
  font-size: 11px; line-height: 1.6; color: rgba(244,237,255,.45);
  background: rgba(157,123,255,.07); border: 1px solid rgba(157,123,255,.14);
  border-radius: 12px; padding: 10px 12px; margin: 2px 0 14px;
}
#aiLoveOverlay .al-shelf-note b { color: rgba(201,184,255,.9); font-weight: 700; }
#aiLoveOverlay .al-filter-row { display: flex; gap: 8px; margin: 4px 0 14px; }
#aiLoveOverlay .al-chip {
  padding: 6px 15px; border-radius: 16px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.05); border: 1px solid rgba(157,123,255,.18);
  color: rgba(244,237,255,.72); cursor: pointer; transition: all .2s;
}
#aiLoveOverlay .al-chip.on { background: rgba(157,123,255,.22); border-color: rgba(157,123,255,.32); color: #fff; }

#aiLoveOverlay .al-lover-list { display: flex; flex-direction: column; gap: 13px; }
#aiLoveOverlay .al-lover {
  display: flex; gap: 13px; padding: 13px; border-radius: 18px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(157,123,255,.2);
  cursor: pointer; transition: all .2s; position: relative; overflow: hidden;
}
#aiLoveOverlay .al-lover:active { background: rgba(255,255,255,.085); transform: scale(.99); }
#aiLoveOverlay .al-lover-pic {
  width: 96px; height: 122px; border-radius: 14px; overflow: hidden; flex-shrink: 0;
  background: #1a1330; border: 1px solid rgba(157,123,255,.2);
}
#aiLoveOverlay .al-lover-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 14%; }
#aiLoveOverlay .al-lover-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#aiLoveOverlay .al-lover-name { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
#aiLoveOverlay .al-lover-age { font-size: 11.5px; color: rgba(244,237,255,.45); margin-top: 3px; }
#aiLoveOverlay .al-lover-title {
  font-size: 12.5px; color: #FF8FB4; margin-top: 6px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#aiLoveOverlay .al-lover-tags { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
#aiLoveOverlay .al-ltag {
  font-size: 9.5px; padding: 2.5px 8px; border-radius: 9px;
  background: rgba(157,123,255,.14); border: 1px solid rgba(157,123,255,.22);
  color: rgba(244,237,255,.8);
}
#aiLoveOverlay .al-lover-readonly {
  margin-top: auto; padding-top: 9px; font-size: 10px; color: rgba(157,123,255,.62);
  border-top: 1px dashed rgba(157,123,255,.16); letter-spacing: .2px;
  display: flex; align-items: center; justify-content: space-between;
}

/* 状态徽章 */
#aiLoveOverlay .al-pill {
  font-size: 9.5px; font-weight: 700; padding: 3px 9px; border-radius: 10px; margin-left: auto;
}
#aiLoveOverlay .al-pill.trying { background: rgba(232,90,138,.18); color: #FF9DBE; border: 1px solid rgba(232,90,138,.35); }
#aiLoveOverlay .al-pill.loving { background: rgba(157,123,255,.2); color: #C9BFFF; border: 1px solid rgba(157,123,255,.4); }

/* ===== 恋爱剧场 ===== */
#aiLoveOverlay .al-intro {
  position: relative; border-radius: 20px; padding: 22px 18px 18px; overflow: hidden;
  background: linear-gradient(155deg, rgba(107,61,212,.35), rgba(192,90,158,.22) 65%, rgba(20,12,36,.9));
  border: 1px solid rgba(157,123,255,.32);
  box-shadow: 0 14px 40px rgba(0,0,0,.4);
}
#aiLoveOverlay .al-intro::before {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(157,123,255,.4), transparent 70%);
  top: -70px; right: -50px; filter: blur(10px);
}
#aiLoveOverlay .al-intro-emoji { font-size: 26px; margin-bottom: 10px; }
#aiLoveOverlay .al-intro-h { font-size: 21px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; position: relative; }
#aiLoveOverlay .al-intro-p { font-size: 12.5px; line-height: 1.65; color: rgba(244,237,255,.78); position: relative; }
#aiLoveOverlay .al-intro-steps { display: flex; gap: 8px; margin: 18px 0 16px; position: relative; }
#aiLoveOverlay .al-istep {
  flex: 1; text-align: center; padding: 11px 6px; border-radius: 12px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.1);
}
#aiLoveOverlay .al-istep b { display: block; font-size: 15px; margin-bottom: 4px; }
#aiLoveOverlay .al-istep span { font-size: 9.5px; color: rgba(244,237,255,.72); line-height: 1.35; display: block; }
#aiLoveOverlay .al-intro-cta {
  position: relative; width: 100%; padding: 14px; border-radius: 15px; border: none;
  background: linear-gradient(135deg, #8B5CF6, #E85A8A); color: #fff;
  font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit;
  box-shadow: 0 8px 26px rgba(139,92,246,.5);
}
#aiLoveOverlay .al-intro-note { position: relative; text-align: center; font-size: 10.5px; color: rgba(244,237,255,.55); margin-top: 11px; }

#aiLoveOverlay .al-script {
  display: flex; gap: 13px; padding: 13px; border-radius: 18px;
  background: rgba(255,255,255,.055); border: 1px solid rgba(157,123,255,.18);
  margin-bottom: 12px; cursor: pointer;
}
#aiLoveOverlay .al-script-pic { width: 78px; height: 100px; border-radius: 13px; overflow: hidden; flex-shrink: 0; background: #1a1330; }
#aiLoveOverlay .al-script-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 14%; }
#aiLoveOverlay .al-script-main { flex: 1; min-width: 0; }
#aiLoveOverlay .al-script-t { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
#aiLoveOverlay .al-script-sub { font-size: 11.5px; color: rgba(244,237,255,.45); margin-bottom: 9px; }
#aiLoveOverlay .al-progress { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 6px; }
#aiLoveOverlay .al-progress i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #8B5CF6, #E85A8A); }
#aiLoveOverlay .al-script-meta { display: flex; justify-content: space-between; font-size: 10px; color: rgba(244,237,255,.45); }

/* ===== 创作者 ===== */
#aiLoveOverlay .al-creator-hero {
  border-radius: 18px; padding: 20px 17px;
  background: linear-gradient(140deg, rgba(232,90,138,.28), rgba(107,61,212,.3));
  border: 1px solid rgba(157,123,255,.32); margin-bottom: 16px; position: relative; overflow: hidden;
}
#aiLoveOverlay .al-creator-hero h3 { font-size: 17px; font-weight: 800; margin-bottom: 7px; }
#aiLoveOverlay .al-creator-hero p { font-size: 12px; line-height: 1.6; color: rgba(244,237,255,.75); margin-bottom: 14px; }
#aiLoveOverlay .al-creator-btn {
  display: inline-block; padding: 10px 20px; border-radius: 14px;
  background: #fff; color: #6B3DD4; font-size: 12.5px; font-weight: 800; cursor: pointer;
}

/* 空态 */
#aiLoveOverlay .al-empty {
  text-align: center; padding: 26px 16px; border-radius: 16px;
  background: rgba(255,255,255,.035); border: 1px dashed rgba(157,123,255,.22);
  margin-bottom: 12px;
}
#aiLoveOverlay .al-empty-art { font-size: 26px; margin-bottom: 8px; }
#aiLoveOverlay .al-empty-t { font-size: 13px; font-weight: 700; margin-bottom: 5px; }
#aiLoveOverlay .al-empty-s { font-size: 11px; line-height: 1.6; color: rgba(244,237,255,.45); }

/* ===== 我的TA 卡片 ===== */
#aiLoveOverlay .al-ta-card {
  border-radius: 18px; padding: 12px; margin-bottom: 12px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(157,123,255,.1), rgba(255,255,255,.04));
  border: 1px solid rgba(157,123,255,.32);
  box-shadow: 0 8px 26px rgba(0,0,0,.28);
}
#aiLoveOverlay .al-ta-card.trying {
  border-color: rgba(232,90,138,.28);
  background: linear-gradient(160deg, rgba(232,90,138,.09), rgba(255,255,255,.03));
}
#aiLoveOverlay .al-ta-top { display: flex; gap: 12px; position: relative; }
#aiLoveOverlay .al-ta-pic {
  width: 86px; height: 112px; border-radius: 13px; overflow: hidden; flex-shrink: 0;
  border: 1px solid rgba(157,123,255,.35); background: #1a1330;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
#aiLoveOverlay .al-ta-card.trying .al-ta-pic { border-color: rgba(232,90,138,.3); }
#aiLoveOverlay .al-ta-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 14%; }
#aiLoveOverlay .al-ta-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#aiLoveOverlay .al-ta-name-row { display: flex; align-items: center; gap: 7px; }
#aiLoveOverlay .al-ta-name { font-size: 16px; font-weight: 800; }
#aiLoveOverlay .al-ta-days { font-size: 10px; color: rgba(244,237,255,.45); margin-top: 3px; }
#aiLoveOverlay .al-ta-tags { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
#aiLoveOverlay .al-ta-say {
  font-size: 11px; line-height: 1.5; color: rgba(244,237,255,.62); margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
#aiLoveOverlay .al-ta-acts {
  display: flex; gap: 7px; margin-top: 12px; padding-top: 11px;
  border-top: 1px solid rgba(157,123,255,.14); position: relative;
}
#aiLoveOverlay .al-ta-btn {
  flex: 1; text-align: center; padding: 9px 4px; border-radius: 12px;
  font-size: 11.5px; font-weight: 700; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(157,123,255,.18);
  color: rgba(244,237,255,.72); white-space: nowrap; transition: all .2s;
}
#aiLoveOverlay .al-ta-btn:active { transform: scale(.97); }
#aiLoveOverlay .al-ta-btn.primary {
  background: linear-gradient(135deg, #6B3DD4, #9D7BFF);
  border-color: rgba(255,255,255,.28); color: #fff;
  box-shadow: 0 4px 14px rgba(107,61,212,.45); flex: 1.25;
}

/* ===== 底部导航 ===== */
#aiLoveOverlay .al-nav {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 8;
  display: flex; gap: 10px;
  padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 14px);
  background: linear-gradient(180deg, rgba(14,9,24,0), rgba(14,9,24,.92) 40%);
  border-top: 1px solid rgba(157,123,255,.12);
  /* 【2026-10-28 Media】与嘉宾详情页底栏同一套手感：滑动时淡出让位，停手淡入回来。
     基础态=回来（.38s 缓出，柔）；.is-scrolling=隐藏（.18s 快） */
  transition: transform .38s cubic-bezier(.22,.61,.36,1), opacity .3s ease;
}
#aiLoveOverlay .al-nav.is-scrolling {
  transform: translateY(120%); opacity: 0; pointer-events: none;
  transition: transform .18s ease, opacity .16s ease;
}
#aiLoveOverlay .al-nav-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px; border-radius: 15px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(157,123,255,.18);
  font-size: 15px; font-weight: 800; color: rgba(244,237,255,.85); transition: all .2s;
}
#aiLoveOverlay .al-nav-btn:active { transform: scale(.98); }
#aiLoveOverlay .al-nav-btn.primary {
  background: linear-gradient(135deg, #7B4BE8, #C05A9E);
  border-color: rgba(255,255,255,.25); color: #fff;
  box-shadow: 0 6px 20px rgba(123,75,232,.42);
}
#aiLoveOverlay .al-nav-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ===== 二级页（含人物档案：已提升为顶层浮层，可在试爱聊天室内打开） ===== */
.al-subpage {
  position: absolute; inset: 0; z-index: 20; background: #0E0918;
  display: none; flex-direction: column;
}
.al-subpage.on { display: flex; animation: alSlideIn .28s ease; }
@keyframes alSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
/* 人物档案：顶层浮层，覆盖在试爱聊天室之上 */
#al-sub-profile { position: fixed; z-index: 500; }
.al-sub-top {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 12px;
  border-bottom: 1px solid rgba(157,123,255,.1);
}
.al-sub-back {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.07); border: 1px solid rgba(157,123,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: rgba(244,237,255,.72); cursor: pointer;
}
.al-sub-title { font-size: 16.5px; font-weight: 800; flex: 1; }
.al-sub-tag {
  font-size: 10px; color: rgba(244,237,255,.45);
  border: 1px solid rgba(157,123,255,.18); padding: 4px 9px; border-radius: 10px;
}
.al-sub-body { flex: 1; overflow-y: auto; padding: 14px 16px 30px; scrollbar-width: none; }
.al-sub-body::-webkit-scrollbar { display: none; }

/* ===== 出厂设定（只读） ===== */
.al-pf-hero {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 3 / 3.3; margin-bottom: 15px;
  border: 1px solid rgba(157,123,255,.32); box-shadow: 0 14px 36px rgba(0,0,0,.5);
}
.al-pf-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.al-pf-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,9,24,0) 32%, rgba(14,9,24,.6) 62%, rgba(14,9,24,.97) 100%);
}
.al-pf-body { position: absolute; left: 16px; right: 16px; bottom: 15px; }
.al-pf-name { font-size: 25px; font-weight: 800; letter-spacing: .5px; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.al-pf-age { font-size: 11.5px; color: rgba(244,237,255,.68); margin-top: 5px; }
.al-pf-quote {
  font-size: 12.5px; line-height: 1.6; color: #FF8FB4; margin-top: 9px;
  padding-left: 9px; border-left: 2px solid rgba(232,90,138,.5);
}
.al-pf-block {
  background: rgba(255,255,255,.055); border: 1px solid rgba(157,123,255,.18);
  border-radius: 16px; padding: 14px; margin-bottom: 12px;
}
.al-pf-block-t {
  font-size: 12.5px; font-weight: 800; color: rgba(201,184,255,.95);
  margin-bottom: 9px; display: flex; align-items: center; gap: 6px;
}
.al-pf-text { font-size: 12px; line-height: 1.75; color: rgba(244,237,255,.7); }
.al-pf-act-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid rgba(157,123,255,.1);
}
.al-pf-act-row:last-child { border-bottom: none; padding-bottom: 0; }
.al-pf-act-num {
  width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0;
  background: rgba(157,123,255,.16); border: 1px solid rgba(157,123,255,.26);
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 800; color: #C9BFFF;
}
.al-pf-act-t { font-size: 12px; font-weight: 600; color: rgba(244,237,255,.85); }
.al-pf-act-lock { font-size: 9.5px; color: rgba(244,237,255,.45); margin-left: auto; white-space: nowrap; }
.al-pf-lock-note {
  font-size: 10px; color: rgba(244,237,255,.45); margin-top: 9px; line-height: 1.5;
  padding-top: 9px; border-top: 1px dashed rgba(157,123,255,.16);
}
.al-cta-bar {
  flex-shrink: 0; padding: 11px 16px calc(env(safe-area-inset-bottom, 0px) + 14px);
  border-top: 1px solid rgba(157,123,255,.12);
  background: linear-gradient(180deg, rgba(14,9,24,0), rgba(14,9,24,.92) 45%);
}
.al-cta {
  width: 100%; padding: 14px; border-radius: 15px; border: none;
  background: linear-gradient(135deg, #7B4BE8, #C05A9E); color: #fff;
  font-size: 14.5px; font-weight: 800; cursor: pointer; font-family: inherit;
  box-shadow: 0 8px 24px rgba(123,75,232,.45);
}

/* ===== 搜索面板 ===== */
#aiLoveOverlay .al-search-input {
  flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(157,123,255,.18);
  border-radius: 14px; padding: 9px 13px; color: #F4EDFF; font-size: 13px;
  font-family: inherit; outline: none;
}
#aiLoveOverlay .al-search-input::placeholder { color: rgba(244,237,255,.45); }
