/* styles.ai-companion.css — AI伴侣专属空间 + 角色日常聊天页 */

/* =================================================================
   AI伴侣专属空间首页（筑梦岛风格：头部 / banner / 分类 / 卡片流）
   ================================================================= */
.ai-companion-space {
  position: absolute;
  inset: 0;
  z-index: 1200;
  display: none;
  background-color: #1a1428;
  background-image: linear-gradient(180deg, #160f24 0%, #1a1428 38%, #231636 78%, #2a1a44 100%);
  overflow: hidden;
  flex-direction: column;
}
.ai-companion-space::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -30%;
  width: 160%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.18) 0%, rgba(139,92,246,0) 60%);
  pointer-events: none;
  z-index: 0;
}
.ai-companion-space.active { display: flex; }

/* 头部 */
.aics-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1201;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: linear-gradient(180deg, rgba(22,15,36,0.98), rgba(26,20,40,0.92));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168,85,247,0.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.aics-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.aics-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(168,85,247,0.3);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .12s ease, background .15s ease;
}
.aics-back:active { transform: scale(0.92); background: rgba(168,85,247,0.25); }
.aics-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 8px rgba(168,85,247,0.3);
}
.aics-search {
  flex: 1;
  height: 38px;
  border-radius: 19px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(168,85,247,0.25);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  color: rgba(255,255,255,0.55);
  font-size: 14.5px;
}
.aics-search-icon { font-size: 15px; opacity: 0.8; }

/* 主体滚动区 */
.aics-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  /* 减少顶部内边距，让 banner 紧贴 header 底部（原 110px 偏大） */
  padding: calc(96px + env(safe-area-inset-top, 0px)) 16px 96px;
  scrollbar-width: none;
  position: relative;
  z-index: 1;
  background: transparent;
}
.aics-body::-webkit-scrollbar { display: none; }

/* 顶部 Banner 区：左侧大卡片 + 右侧小数据看板 */
.aics-banner-zone {
  display: flex;
  gap: 10px;
  padding: 4px 2px 12px;
  align-items: stretch;
}
.aics-banner-hero {
  position: relative;
  flex: 1 1 58%;
  min-height: 126px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, #9B6DFF 0%, #7B68EE 50%, #5A3FCC 100%);
  box-shadow: 0 10px 30px rgba(123,104,238,0.42), 0 0 35px rgba(155,109,255,0.30), inset 0 1px 0 rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  display: flex;
  align-items: flex-end;
  transition: transform .14s ease;
}
.aics-banner-hero::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  border: 2px solid rgba(255,255,255,0.45);
  opacity: 0;
  transform: scale(0.96);
  animation: aicsHeroPulse 2.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}
@keyframes aicsHeroPulse {
  0%,100% { opacity: 0; transform: scale(0.96); }
  50% { opacity: 0.55; transform: scale(1.025); }
}
.aics-banner-hero:active { transform: scale(0.985); }
.aics-banner-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: blur(7px) brightness(0.65) saturate(1.25);
  transform: scale(1.14);
  opacity: 0.45;
  mix-blend-mode: soft-light;
}
.aics-banner-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(78% 120% at 84% 8%, rgba(255,255,255,0.32), rgba(155,109,255,0) 60%),
              linear-gradient(180deg, rgba(255,255,255,0.10), rgba(30,15,60,0.34));
  pointer-events: none;
  animation: aicsHeroGlow 6s ease-in-out infinite;
}
@keyframes aicsHeroGlow {
  0%,100% { opacity: 0.9; }
  50% { opacity: 1; }
}
.aics-banner-hero-content {
  position: relative;
  z-index: 2;
  padding: 14px 16px;
}
.aics-banner-hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.22);
  padding: 3px 9px;
  border-radius: 10px;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.aics-banner-hero-title {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
  letter-spacing: 0.5px;
}
.aics-banner-hero-slogan {
  font-size: 12.5px;
  color: rgba(255,255,255,0.92);
  margin-top: 6px;
  line-height: 1.5;
  white-space: nowrap;
}
/* 右侧小卡片：数据看板（粉系三段渐变 + 暖光高饱和） */
.aics-banner-mini {
  flex: 0 0 36%;
  border-radius: 20px;
  background: linear-gradient(135deg, #FF6BAA 0%, #E83F97 55%, #C72B7A 100%);
  box-shadow: 0 10px 26px rgba(232,63,151,0.34), 0 0 28px rgba(255,107,170,0.22), inset 0 1px 0 rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.24);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  cursor: pointer;
  padding: 12px 13px;
  transition: transform .14s ease, box-shadow .2s ease;
}
.aics-banner-mini:active { transform: scale(0.96); box-shadow: 0 6px 18px rgba(232,63,151,0.24), inset 0 0 0 1px rgba(255,255,255,0.18); }
.aics-mini-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.18);
  padding: 2px 8px;
  border-radius: 9px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.aics-mini-title {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.aics-mini-board {
  display: flex;
  gap: 6px;
  width: 100%;
  margin-top: 3px;
}
.aics-mini-cell {
  flex: 1;
  background: rgba(0,0,0,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 10px;
  padding: 6px 3px;
  text-align: center;
  min-width: 0;
}
.aics-mini-num {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255,255,255,0.35);
  font-variant-numeric: tabular-nums;
}
.aics-mini-label {
  font-size: 10px;
  color: rgba(255,255,255,0.92);
  margin-top: 3px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 分类快捷区 */
.aics-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 20px 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 板块标题 + 爱心发光 + 我的专属 Tab */
.aics-section-head { margin-top: 6px; }
.aics-hot-title {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.72);
  margin: 2px 0 8px;
  text-shadow: none;
  letter-spacing: 0.3px;
}
.aics-hot-flame {
  filter: grayscale(0.55) saturate(0.45) brightness(1.05);
  font-size: 14px;
  margin-right: 1px;
  opacity: 0.75;
}
.aics-hot-text { opacity: 0.85; }
.aics-mine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}
.aics-mine-title {
  font-size: 21px;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 10px rgba(168,85,247,0.35);
}
.aics-heart-icon {
  /* 粉红色：匹配右侧数据看板卡片的粉紫渐变基调 */
  color: #ff8fb8;
  font-size: 19px;
  /* 强制文本渲染（非 emoji），确保 color 属性生效 */
  font-family: "Segoe UI Symbol", "Apple Symbols", "Symbola", sans-serif;
  animation: aicsHeartGlow 2.2s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255,143,184,0.85), 0 0 18px rgba(255,143,184,0.5);
}
@keyframes aicsHeartGlow {
  0%,100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.22); opacity: 1; }
}
.aics-mine-tabs {
  display: flex;
  gap: 6px;
}
.aics-mine-tab {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(168,85,247,0.18);
  padding: 5px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all .15s ease;
}
.aics-mine-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(124,58,237,0.3);
}
.aics-categories {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.aics-categories::-webkit-scrollbar { display: none; }
/* 热门心动恋人：横向滑动头像列表 */
.aics-hot-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.aics-hot-list::-webkit-scrollbar { display: none; }
.aics-hot-card {
  flex-shrink: 0;
  width: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: transform .12s ease;
}
.aics-hot-card:active { transform: scale(0.95); }
.aics-hot-avatar-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(160deg, var(--ring, #a855f7), transparent 70%);
  box-shadow: 0 0 18px -3px var(--ring, #a855f7);
  position: relative;
}
.aics-hot-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.aics-hot-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 8px rgba(168,85,247,0.35);
}
.aics-cat-card {
  flex-shrink: 0;
  width: 126px;
  height: 72px;
  border-radius: 15px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(168,85,247,0.22);
  box-shadow: 0 2px 12px rgba(139,92,246,0.1);
  cursor: pointer;
  transition: transform .12s ease, background .15s ease;
}
.aics-cat-card:active { transform: scale(0.96); background: rgba(168,85,247,0.15); }
.aics-cat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(168,85,247,0.35);
}
.aics-cat-text {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
}

/* AI角色卡片流 */
.aics-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(168,85,247,0.18);
  box-shadow: 0 4px 18px rgba(0,0,0,0.18), 0 0 0 1px rgba(168,85,247,0.04);
  margin-bottom: 14px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  position: relative;
  overflow: hidden;
}
.aics-card:active { transform: scale(0.985); box-shadow: 0 6px 24px rgba(139,92,246,0.22); background: rgba(255,255,255,0.1); }
.aics-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #a855f7, #7c3aed);
  opacity: 0;
  transition: opacity .2s ease;
}
.aics-card:hover::before { opacity: 1; }
.aics-card-avatar-wrap {
  flex-shrink: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(160deg, var(--ring, #a855f7), transparent 70%);
  box-shadow: 0 0 16px -2px var(--ring, #a855f7);
}
.aics-card-avatar {
  width: 130px;
  height: 172px;
  border-radius: 15px;
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.aics-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3px 0;
}
.aics-card-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}
.aics-card-name {
  font-size: 19.5px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 10px rgba(168,85,247,0.25);
}
.aics-card-gender {
  font-size: 12px;
  font-weight: 700;
  color: #d9b8ff;
  background: rgba(168,85,247,0.18);
  padding: 2px 8px;
  border-radius: 9px;
}
.aics-card-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin-bottom: 8px;
  min-height: 0;
  overflow: hidden;
}
.aics-card-tag {
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(236,72,153,0.16);
  color: #ffc2e0;
  letter-spacing: 0.2px;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aics-card-tag.purple {
  background: rgba(139,92,246,0.2);
  color: #e3ccff;
}
.aics-card-desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  word-break: break-word;
}
.aics-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.58);
}
.aics-card-stat { font-weight: 600; }
.aics-card-stat b {
  color: #ffd56b;
  font-weight: 800;
  font-size: 14.5px;
  margin-left: 2px;
  text-shadow: 0 0 8px rgba(255,213,107,0.35);
}
/* 我的专属恋人卡片：全页视觉C位，卡片本身弱紫边框，白色亮光+淡紫柔光集中在头像外圈 */
.aics-card--mine {
  background: rgba(255,255,255,0.09);
  border-color: rgba(168,85,247,0.22);
  box-shadow: 0 4px 18px rgba(0,0,0,0.18), 0 0 0 1px rgba(168,85,247,0.06);
}
.aics-card--mine .aics-card-avatar-wrap {
  padding: 3px;
  border-radius: 17px;
  background: linear-gradient(160deg, rgba(255,255,255,0.65), rgba(168,120,255,0.45) 50%, rgba(236,120,255,0.25) 100%);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.65), 0 0 24px rgba(168,120,255,0.75), 0 0 40px rgba(168,120,255,0.35);
  animation: aicsMineAvatarGlow 2.8s ease-in-out infinite;
}
@keyframes aicsMineAvatarGlow {
  0%,100% { box-shadow: 0 0 0 1.5px rgba(255,255,255,0.55), 0 0 20px rgba(168,120,255,0.65), 0 0 36px rgba(168,120,255,0.3); }
  50% { box-shadow: 0 0 0 2.5px rgba(255,255,255,0.9), 0 0 40px rgba(168,120,255,1.0), 0 0 66px rgba(168,120,255,0.55); }
}
.aics-card--mine .aics-card-avatar {
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
/* 我的专属恋人卡片：去掉基类::before 的左侧 4px 紫色 hover 竖条，避免静态截图/移动端 hover 残留时多出深色竖条（v20260721_0020） */
.aics-card--mine::before { display: none !important; }
/* 右上角相机图标（放大 + 星光点缀） */
.aics-card-cam {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.25), rgba(124,58,237,0.6));
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 0 12px rgba(168,120,255,0.6);
  z-index: 4;
  cursor: pointer;
  animation: aicsCamStar 2.8s ease-in-out infinite;
}
.aics-card-cam:active { transform: scale(0.92); }
@keyframes aicsCamStar {
  0%,100% { box-shadow: 0 0 10px rgba(168,120,255,0.5); }
  50% { box-shadow: 0 0 18px rgba(168,120,255,0.9), 0 0 5px rgba(255,255,255,0.75); }
}
/* 右上角短剧图标（替代原相机位，v20260721_1900） */
.aics-card-story {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: radial-gradient(circle at 35% 30%, rgba(255,180,220,0.3), rgba(236,72,153,0.65));
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 0 12px rgba(236,72,153,0.6);
  z-index: 4;
  cursor: pointer;
  animation: aicsStoryStar 2.8s ease-in-out infinite;
}
.aics-card-story:active { transform: scale(0.92); }
@keyframes aicsStoryStar {
  0%,100% { box-shadow: 0 0 10px rgba(236,72,153,0.5); }
  50% { box-shadow: 0 0 18px rgba(236,72,153,0.95), 0 0 5px rgba(255,255,255,0.75); }
}
/* 轻量化数据小字：相处天数 */
.aics-card-days {
  font-size: 12px;
  color: rgba(255,255,255,0.56);
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.aics-card-statbtn {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  padding: 7px 14px;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(124,58,237,0.3);
}
/* 空状态兜底 */
.aics-mine-empty {
  text-align: center;
  padding: 26px 18px 30px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(168,85,247,0.3);
  margin-bottom: 14px;
}
.aics-mine-empty-art {
  font-size: 40px;
  filter: drop-shadow(0 0 12px rgba(255,93,143,0.5));
  animation: aicsHeartGlow 2.6s ease-in-out infinite;
}
.aics-mine-empty-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #fff;
  margin-top: 10px;
}
.aics-mine-empty-sub {
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-top: 6px;
}
.aics-mine-empty-btn {
  margin-top: 14px;
  border: none;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124,58,237,0.32);
}

/* 底部创建按钮 + 合规提示 */
.aics-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1201;
  padding: 12px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, #2a1a44 0%, rgba(35,22,54,0.92) 48%, rgba(26,20,40,0) 100%);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(168,85,247,0.18);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.aics-create-btn {
  position: relative;
  width: 100%;
  height: 50px;
  border-radius: 25px;
  border: none;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(124,58,237,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform .12s ease, box-shadow .2s ease;
}
.aics-create-btn:active { transform: scale(0.98); box-shadow: 0 4px 14px rgba(124,58,237,0.3); }
/* 内部流动星光动效 */
.aics-create-stars {
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  animation: aicsStarFlow 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes aicsStarFlow {
  0% { left: -60%; }
  60%,100% { left: 120%; }
}
.aics-compliance {
  font-size: 9.5px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

/* 回忆相册悬浮按钮 + 面板 */
.aics-album-fab {
  position: absolute;
  right: 16px;
  bottom: 78px;
  z-index: 1202;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.42);
  background: radial-gradient(circle at 35% 30%, #8b4fe0, #4B0082);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(168,85,247,0.18), 0 8px 26px rgba(0,0,0,0.45);
  animation: aiccPhraseFabGlow 2.8s ease-in-out infinite;
  transition: transform .12s ease;
}
.aics-album-fab:active { transform: scale(0.9); }
.aics-album-mask {
  position: absolute;
  inset: 0;
  z-index: 1260;
  background: rgba(0,0,0,0.5);
  display: none;
}
.aics-album-mask.show { display: block; }
.aics-album-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 86%;
  max-width: 360px;
  z-index: 1261;
  background: linear-gradient(180deg, #1a1428, #231636);
  border-left: 1px solid rgba(168,85,247,0.3);
  box-shadow: -6px 0 30px rgba(0,0,0,0.5);
  transform: translateX(106%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
}
.aics-album-panel.show { transform: translateX(0); }

/* ===== TA的专属短剧剧集列表（底部弹层） v20260721_1900 ===== */
.aics-story-mask {
  position: absolute;
  inset: 0;
  z-index: 1260;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.aics-story-mask.show { opacity: 1; pointer-events: auto; }
.aics-story-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1261;
  max-height: 78%;
  background: linear-gradient(180deg, #231636, #1a1428);
  border-top: 1px solid rgba(168,85,247,0.3);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -14px 44px rgba(0,0,0,0.55);
  transform: translateY(110%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.aics-story-panel.show { transform: translateY(0); }
.aics-story-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(168,85,247,0.15);
}
.aics-story-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.aics-story-film { font-size: 18px; }
.aics-story-sub { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 3px; }
.aics-story-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
}
.aics-story-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
}
.aics-story-ep {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 14px;
  cursor: pointer;
  transition: background .15s ease;
}
.aics-story-ep:active { background: rgba(168,85,247,0.16); }
.aics-story-ep + .aics-story-ep { border-top: 1px solid rgba(255,255,255,0.06); }
.aics-story-ep-cover {
  position: relative;
  flex-shrink: 0;
  width: 88px;
  height: 56px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aics-story-ep-play {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}
.aics-story-ep-dur {
  position: absolute;
  right: 4px;
  bottom: 4px;
  font-size: 10px;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 1px 5px;
  border-radius: 6px;
}
.aics-story-ep-info { flex: 1; min-width: 0; }
.aics-story-ep-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aics-story-ep-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aics-story-ep-go { flex-shrink: 0; color: rgba(255,255,255,0.4); font-size: 20px; }
.aics-story-empty { text-align: center; padding: 40px 20px; color: rgba(255,255,255,0.6); }
.aics-story-empty-art { font-size: 36px; margin-bottom: 10px; }
.aics-story-empty-title { font-size: 15px; font-weight: 700; color: #fff; }
.aics-story-empty-sub { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 6px; line-height: 1.5; }

.aics-album-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.aics-album-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.aics-album-sub {
  font-size: 12px;
  color: rgba(201,160,240,0.8);
  margin-top: 3px;
}
.aics-album-close {
  font-size: 22px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aics-album-close:active { color: #fff; }
.aics-album-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 24px;
  -webkit-overflow-scrolling: touch;
}
.aics-album-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(168,85,247,0.18);
  margin-bottom: 10px;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.aics-album-card:active { background: rgba(168,85,247,0.16); transform: scale(0.985); }
.aics-album-cover {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px var(--ring, #a855f7), 0 0 12px -2px var(--ring, #a855f7);
}
.aics-album-info { flex: 1; min-width: 0; }
.aics-album-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.aics-album-gender {
  font-size: 12px;
  color: #d9b8ff;
  margin-left: 3px;
}
.aics-album-last {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aics-album-count {
  font-size: 11px;
  color: rgba(255,213,107,0.85);
  margin-top: 2px;
}
.aics-album-go {
  font-size: 22px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

/* 轻量角色简介弹层（半屏面板） */
.aics-profile-mask {
  position: absolute;
  inset: 0;
  z-index: 1210;
  background: rgba(8,6,18,0.72);
  backdrop-filter: blur(6px);
  display: none;
}
.aics-profile-mask.show { display: block; }
.aics-profile-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1211;
  max-height: 78vh;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, rgba(40,30,68,0.98), rgba(22,15,36,0.98));
  border-top: 1px solid rgba(168,85,247,0.28);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  transform: translateY(110%);
  transition: transform .32s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.aics-profile-panel.show { transform: translateY(0); }
.aics-profile-head {
  position: relative;
  padding: 10px 14px 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.aics-profile-drag {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.22);
}
.aics-profile-close {
  position: absolute;
  right: 14px;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
}
.aics-profile-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 18px 16px;
}
.aics-profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.aics-profile-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(168,85,247,0.45);
  box-shadow: 0 0 22px rgba(168,85,247,0.35);
}
.aics-profile-meta { flex: 1; min-width: 0; }
.aics-profile-name {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
}
.aics-profile-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}
.aics-profile-block {
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(168,85,247,0.14);
  padding: 14px;
  margin-bottom: 12px;
}
.aics-profile-btitle {
  font-size: 15px;
  font-weight: 800;
  color: #d9b8ff;
  margin-bottom: 10px;
}
.aics-profile-bd {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  margin-top: 8px;
}
.aics-profile-label {
  flex-shrink: 0;
  width: 38px;
  color: rgba(255,255,255,0.45);
}
.aics-profile-val { color: rgba(255,255,255,0.88); flex: 1; }
.aics-profile-rels { display: flex; flex-direction: column; gap: 8px; }
.aics-profile-rel {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.aics-profile-rel-role {
  flex-shrink: 0;
  color: #ffd56b;
  font-weight: 700;
  min-width: 74px;
}
.aics-profile-rel-desc { color: rgba(255,255,255,0.72); flex: 1; }
.aics-profile-bond {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
}
.aics-profile-empty {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 10px;
}
.aics-profile-foot {
  padding: 10px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(168,85,247,0.14);
}
.aics-profile-chat {
  width: 100%;
  height: 48px;
  border-radius: 24px;
  border: none;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(124,58,237,0.32);
}

/* ================================================================
   AI伴侣日常聊天页（复用试爱聊天室风格，但为日常陪伴模式）
   ================================================================ */
.ai-companion-chat {
  position: absolute;
  inset: 0;
  z-index: 1250;
  display: none;
  background: linear-gradient(180deg, #160f24 0%, #1a1428 40%, #231636 80%, #2a1a44 100%);
  overflow: hidden;
}
.ai-companion-chat.active { display: block; }
.aicc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5) blur(6px) saturate(1.1);
  transform: scale(1.15);
  z-index: 0;
}
/* 场景色调叠层（按 data-scene 切换，全员电影感夜景磨砂底） */
.aicc-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.92;
  transition: background .6s ease;
  background: linear-gradient(160deg, rgba(30,20,55,0.85), rgba(15,10,30,0.92));
}
/* 顾沉·雨夜别墅冷蓝 */
#aiCompanionChatPage[data-scene^="m1"] .aicc-scene { background: radial-gradient(120% 80% at 72% 18%, rgba(90,150,255,0.38), transparent 60%), linear-gradient(160deg, rgba(20,32,72,0.84), rgba(8,10,28,0.92)); }
/* 陆言·书房暖光 */
#aiCompanionChatPage[data-scene^="m2"] .aicc-scene { background: radial-gradient(120% 80% at 28% 30%, rgba(255,184,92,0.34), transparent 60%), linear-gradient(160deg, rgba(58,40,20,0.82), rgba(20,14,10,0.92)); }
/* 温景然·医院柔光浅紫 */
#aiCompanionChatPage[data-scene^="m3"] .aicc-scene { background: radial-gradient(120% 80% at 50% 24%, rgba(196,150,255,0.32), transparent 60%), linear-gradient(160deg, rgba(40,30,62,0.82), rgba(18,14,36,0.92)); }
/* 秦砚·律师暖粉 */
#aiCompanionChatPage[data-scene^="f1"] .aicc-scene { background: radial-gradient(120% 80% at 62% 28%, rgba(255,150,200,0.34), transparent 60%), linear-gradient(160deg, rgba(60,26,52,0.82), rgba(24,12,30,0.92)); }
/* 林语知·烘焙暖光 */
#aiCompanionChatPage[data-scene^="f2"] .aicc-scene { background: radial-gradient(120% 80% at 38% 34%, rgba(255,200,150,0.32), transparent 60%), linear-gradient(160deg, rgba(55,36,26,0.82), rgba(24,15,12,0.92)); }
/* 苏甜·画室柔光 */
#aiCompanionChatPage[data-scene^="f3"] .aicc-scene { background: radial-gradient(120% 80% at 50% 30%, rgba(186,162,255,0.32), transparent 60%), linear-gradient(160deg, rgba(45,30,62,0.82), rgba(20,14,36,0.92)); }
/* 呼吸式微弱光斑层（缓慢呼吸，不干扰阅读） */
.aicc-orbs {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.aicc-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.5;
  animation: aiccOrbBreath 9s ease-in-out infinite;
}
.aicc-orb.o1 { width: 180px; height: 180px; left: -40px; top: 18%; background: rgba(168,85,247,0.55); }
.aicc-orb.o2 { width: 220px; height: 220px; right: -60px; top: 46%; background: rgba(217,184,255,0.42); animation-delay: 3s; }
.aicc-orb.o3 { width: 160px; height: 160px; left: 30%; bottom: -30px; background: rgba(120,140,255,0.42); animation-delay: 6s; }
@keyframes aiccOrbBreath {
  0%,100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.62; transform: scale(1.12); }
}
.aicc-blur {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(26,20,40,0.5);
}
@supports (backdrop-filter: blur(1px)) {
  .aicc-blur { backdrop-filter: blur(7px); background: rgba(26,20,40,0.42); }
}
.aicc-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(76px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  z-index: 99999;
  display: flex;
  align-items: center;
  padding: 0 12px;
  padding-top: env(safe-area-inset-top, 0px);
  gap: 10px;
  background: #1a1428;
  border-bottom: 1px solid rgba(168,85,247,0.35);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.aicc-back {
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
  transition: transform .15s ease;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(0,0,0,0.5);
}
.aicc-back:active { transform: scale(1.25); }
.aicc-nav-center {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.aicc-nav-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  box-shadow: 0 0 0 2px rgba(217,184,255,0.9), 0 0 12px 2px rgba(168,85,247,0.7);
  flex-shrink: 0;
  display: none;
}
/* 头像发光环随人设切换（与专属空间卡片光效联动） */
#aiCompanionChatPage[data-scene^="m1"] .aicc-nav-avatar { box-shadow: 0 0 0 2px rgba(150,200,255,0.95), 0 0 13px 2px rgba(90,150,255,0.7); }
#aiCompanionChatPage[data-scene^="m2"] .aicc-nav-avatar { box-shadow: 0 0 0 2px rgba(255,205,140,0.95), 0 0 13px 2px rgba(255,184,92,0.7); }
#aiCompanionChatPage[data-scene^="m3"] .aicc-nav-avatar { box-shadow: 0 0 0 2px rgba(214,180,255,0.95), 0 0 13px 2px rgba(196,150,255,0.7); }
#aiCompanionChatPage[data-scene^="f1"] .aicc-nav-avatar { box-shadow: 0 0 0 2px rgba(255,170,210,0.95), 0 0 13px 2px rgba(255,150,200,0.7); }
#aiCompanionChatPage[data-scene^="f2"] .aicc-nav-avatar { box-shadow: 0 0 0 2px rgba(255,210,165,0.95), 0 0 13px 2px rgba(255,200,150,0.7); }
#aiCompanionChatPage[data-scene^="f3"] .aicc-nav-avatar { box-shadow: 0 0 0 2px rgba(200,180,255,0.95), 0 0 13px 2px rgba(186,162,255,0.7); }
.aicc-nav-meta { min-width: 0; }
.aicc-nav-name {
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aicc-nav-sub {
  font-size: 12.5px;
  color: rgba(255,255,255,0.78);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aicc-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.aicc-more-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.aicc-more-btn:active { background: rgba(168,85,247,0.35); }

/* 消息区 */
.aicc-msgs {
  position: absolute;
  top: calc(76px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  bottom: 144px;
  z-index: 4;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* 顶部/底部短剧字幕式渐隐虚化 */
.aicc-msgs::before, .aicc-msgs::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  z-index: 6;
  pointer-events: none;
}
.aicc-msgs::before { top: 0; background: linear-gradient(to bottom, rgba(26,20,40,0.7), transparent); }
.aicc-msgs::after { bottom: 0; background: linear-gradient(to top, rgba(26,20,40,0.7), transparent); }
.aicc-msg-row { display: flex; align-items: flex-start; gap: 8px; max-width: 100%; animation: aiccMsgIn .42s ease both; }
@keyframes aiccMsgIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.aicc-msg-row.user { justify-content: flex-end; align-items: flex-end; }
.aicc-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.aicc-avatar.ai { background: linear-gradient(135deg, #A855F7, #4B0082); color: #fff; }
.aicc-avatar.user { background: #fff; color: #4B0082; }
.aicc-bubble {
  max-width: 76%;
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-line;
  word-break: break-word;
}
/* AI（TA）气泡：浅白磨砂圆角 + 底部淡紫投影 */
.aicc-msg-row.ai .aicc-bubble {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #2a2440;
  border: 1px solid rgba(255,255,255,0.5);
  border-bottom-left-radius: 5px;
  box-shadow: 0 6px 18px rgba(124,58,237,0.22);
}
/* 用户气泡：紫粉渐变磨砂圆角 + 微弱外发光 */
.aicc-msg-row.user .aicc-bubble {
  background: linear-gradient(135deg, #C77DFF, #7B2FF7);
  color: #fff;
  border-bottom-right-radius: 5px;
  box-shadow: 0 0 16px rgba(199,125,255,0.5), 0 6px 18px rgba(123,47,247,0.3);
}
/* 括号动作描述文字浅紫，区分对话正文 */
.aicc-action-text { color: #9D7BD8; font-style: italic; opacity: 0.95; }
.aicc-msg-row.user .aicc-action-text { color: rgba(255,255,255,0.85); font-style: italic; }

/* 快捷区 */
.aicc-quick-zone {
  position: absolute;
  bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  padding: 6px 16px;
}
.aicc-phrase-fab {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(217,184,255,0.85);
  background: radial-gradient(circle at 35% 30%, #9b5cf0, #4B0082);
  color: #fff;
  font-size: 27px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(168,85,247,0.22), 0 0 22px rgba(168,85,247,0.7);
  animation: aiccPhraseFabGlow 2.4s ease-in-out infinite;
  transition: transform .12s ease;
}
.aicc-phrase-fab:active { transform: scale(0.9); }
@keyframes aiccPhraseFabGlow {
  0%,100% { box-shadow: 0 0 0 4px rgba(168,85,247,0.18), 0 0 14px rgba(168,85,247,0.45); }
  50% { box-shadow: 0 0 0 7px rgba(168,85,247,0.3), 0 0 28px rgba(168,85,247,0.85); }
}
.aicc-quick-caps {
  display: none;
}
.aicc-quick-cap {
  flex-shrink: 0;
  font-size: 13px;
  padding: 8px 13px;
  border-radius: 16px;
  white-space: nowrap;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.aicc-quick-cap:active { background: #A855F7; transform: scale(0.96); }

/* ===== 连续短剧 FAB（玫红·与紫色台词本区分）v20260721_0020 ===== */
.aicc-drama-fab {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255,180,220,0.85);
  background: radial-gradient(circle at 35% 30%, #ff7eb3, #c2185b);
  color: #fff;
  font-size: 27px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(236,72,153,0.22), 0 0 22px rgba(236,72,153,0.7);
  animation: aiccDramaFabGlow 2.4s ease-in-out infinite;
  transition: transform .12s ease;
}
.aicc-drama-fab:active { transform: scale(0.9); }
@keyframes aiccDramaFabGlow {
  0%,100% { box-shadow: 0 0 0 4px rgba(236,72,153,0.18), 0 0 14px rgba(236,72,153,0.45); }
  50% { box-shadow: 0 0 0 7px rgba(236,72,153,0.32), 0 0 28px rgba(236,72,153,0.85); }
}
/* 台词本 FAB 微调：📜 比 🎬 略小一号，避免超出按钮 */
.aicc-phrase-fab { font-size: 24px; }

/* ===== 连续短剧面板（底部弹出，与台词本面板同构）v20260721_0020 ===== */
.aicc-drama-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.aicc-drama-mask.show { opacity: 1; pointer-events: auto; }
.aicc-drama-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 78vh;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, rgba(32,18,50,0.97), rgba(20,10,36,0.98));
  border-top: 1px solid rgba(255,180,220,0.25);
  box-shadow: 0 -16px 40px rgba(0,0,0,0.55);
  z-index: 31;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.2,.9,.3,1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.aicc-drama-panel.show { transform: translateY(0); }
.aicc-drama-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255,180,220,0.15);
}
.aicc-drama-info { display: flex; flex-direction: column; gap: 4px; }
.aicc-drama-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffd5e8;
  text-shadow: 0 0 12px rgba(236,72,153,0.35);
}
.aicc-drama-sub { font-size: 12.5px; color: rgba(255,200,225,0.55); }
.aicc-drama-close {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  font-size: 20px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
}
.aicc-drama-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 18px;
  -webkit-overflow-scrolling: touch;
}
.aicc-drama-ep {
  background: rgba(255,180,220,0.06);
  border: 1px solid rgba(255,180,220,0.18);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.aicc-drama-ep:active { transform: scale(0.99); background: rgba(255,180,220,0.12); }
.aicc-drama-ep-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffd5e8;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.aicc-drama-ep-num {
  display: inline-block;
  min-width: 30px;
  padding: 1px 7px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ff7eb3, #c2185b);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 2px 8px rgba(236,72,153,0.35);
}
.aicc-drama-ep-scene {
  font-size: 12.5px;
  color: rgba(255,200,225,0.6);
  margin-bottom: 8px;
  font-style: italic;
}
.aicc-drama-ep-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.aicc-drama-ep-line {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  padding: 3px 0;
}
.aicc-drama-ep-line.who-other { color: rgba(217,184,255,0.95); }
.aicc-drama-ep-line.who-me { color: rgba(255,200,225,0.95); }
.aicc-drama-foot {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(255,180,220,0.15);
}
.aicc-drama-foot-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 12px;
  background: rgba(255,180,220,0.1);
  border: 1px solid rgba(255,180,220,0.22);
  color: #ffd5e8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}
.aicc-drama-foot-btn:active { background: rgba(255,180,220,0.22); }
.aicc-drama-empty {
  text-align: center;
  color: rgba(255,200,225,0.5);
  font-size: 13px;
  padding: 30px 0;
}

/* 输入区 + 底部操作栏 */
.aicc-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 6;
  background: rgba(26,20,40,0.94);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.aicc-input-bar {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px;
}
.aicc-input-bar input {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.12);
  padding: 0 16px;
  font-size: 15px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.18);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.aicc-input-bar input:focus {
  border-color: rgba(199,125,255,0.75);
  background: rgba(255,255,255,0.14);
  box-shadow: 0 0 0 1.5px rgba(199,125,255,0.5), 0 0 14px rgba(168,85,247,0.45);
}
.aicc-input-bar input::placeholder { color: rgba(255,255,255,0.5); }
.aicc-send {
  height: 40px;
  padding: 0 18px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, #A855F7, #4B0082);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.aicc-send:active { transform: scale(0.96); }
.aicc-actions-bar {
  height: auto;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  padding: 8px 10px 12px;
  gap: 10px;
  border-top: 1px solid rgba(168,85,247,0.15);
}
.aicc-action-btn {
  flex: 1;
  height: 48px;
  border: 1px solid rgba(168,85,247,0.22);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.9);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
  transition: transform .15s ease, background .2s ease, box-shadow .22s ease;
}
.aicc-action-btn:hover {
  transform: translateY(-3px);
  background: rgba(168,85,247,0.18);
  box-shadow: 0 10px 22px rgba(124,58,237,0.32);
}
.aicc-action-btn:active { transform: scale(0.97); background: rgba(168,85,247,0.26); }
.aicc-action-btn.gift { color: #FFD56B; }

/* 礼物面板 */
.aicc-gift-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1260;
  background: rgba(26,20,40,0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(168,85,247,0.3);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -14px 44px rgba(0,0,0,0.55);
  padding: 18px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateY(110%);
  transition: transform .28s ease;
}
.aicc-gift-panel.show { transform: translateY(0); }
.aicc-gift-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.aicc-gift-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.aicc-gift-close {
  font-size: 22px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
}
.aicc-gift-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.aicc-gift-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 14px 4px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(168,85,247,0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform .18s ease, background .2s ease, box-shadow .22s ease, border-color .2s ease;
  min-height: 84px;
}
.aicc-gift-item:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 10px 26px var(--glow, rgba(168,85,247,0.5));
}
.aicc-gift-item:active { transform: scale(0.97); background: rgba(168,85,247,0.18); }
.aicc-gift-item.is-selected {
  background: linear-gradient(180deg, rgba(255,90,150,0.35), rgba(168,50,230,0.35));
  border-color: rgba(255,105,180,0.65);
  box-shadow: 0 8px 24px var(--glow, rgba(255,105,180,0.45)), 0 0 0 1px rgba(255,255,255,0.1) inset;
  transform: translateY(-2px) scale(1.04);
}
.aicc-gift-icon { font-size: 32px; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.aicc-gift-price { font-size: 12px; color: rgba(255,255,255,.85); font-weight: 700; letter-spacing: 0.2px; }
.aicc-gift-item.is-selected .aicc-gift-price { color: #fff; }
.aicc-gift-send {
  position: absolute;
  left: 50%; bottom: 6px; transform: translateX(-50%);
  border: none; border-radius: 20px;
  background: linear-gradient(135deg, #FF4D8D, #C23D9A);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 14px;
  box-shadow: 0 4px 12px rgba(255,77,141,0.45);
  cursor: pointer;
  white-space: nowrap;
}
.aicc-gift-send:active { transform: translateX(-50%) scale(0.95); }
.aicc-gift-mask {
  position: absolute;
  inset: 0;
  z-index: 1259;
  background: rgba(0,0,0,0.45);
  display: none;
}
.aicc-gift-mask.show { display: block; }

/* 更多下拉 */
.aicc-more-dropdown {
  position: absolute;
  top: calc(80px + env(safe-area-inset-top, 0px));
  right: 10px;
  z-index: 100001;
  min-width: 170px;
  background: rgba(26,20,40,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(168,85,247,0.28);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 14px 44px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.aicc-more-dropdown.show { display: flex; }
.aicc-more-item {
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  transition: background .15s ease;
}
.aicc-more-item:active { background: rgba(168,85,247,0.22); }
.aicc-more-item.danger { color: #ff9a9a; }

/* AI伴侣聊天页专用台词面板 */
.aicc-phrase-mask {
  position: absolute;
  inset: 0;
  z-index: 1265;
  background: rgba(0,0,0,0.35);
  display: none;
}
.aicc-phrase-mask.show { display: block; }
.aicc-phrase-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 84%;
  max-width: 340px;
  z-index: 1266;
  background: rgba(26,20,40,0.94);
  backdrop-filter: blur(14px);
  border-right: 1px solid rgba(168,85,247,0.3);
  box-shadow: 4px 0 24px rgba(0,0,0,0.45);
  transform: translateX(-106%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
}
.aicc-phrase-panel.show { transform: translateX(0); }
.aicc-phrase-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.aicc-phrase-info { flex: 1; min-width: 0; }
.aicc-phrase-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aicc-phrase-sub {
  font-size: 12.5px;
  color: rgba(201,160,240,0.85);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aicc-phrase-close {
  font-size: 22px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}
.aicc-phrase-close:active { color: #fff; }
.aicc-phrase-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 18px;
}
.aicc-phrase-foot {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.aicc-phrase-foot-btn {
  flex: 1;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 8px 4px;
  cursor: pointer;
}
.aicc-phrase-foot-btn:active { background: rgba(168,85,247,0.2); }

/* ===== 羁绊数据看板弹窗 ===== */
.bond-report {
  position: absolute;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.bond-report-mask {
  position: absolute;
  inset: 0;
  background: rgba(10,6,20,0.72);
  backdrop-filter: blur(6px);
}
.bond-report-box {
  position: relative;
  width: 100%;
  max-width: 360px;
  border-radius: 22px;
  padding: 22px 20px 18px;
  background: linear-gradient(160deg, rgba(46,32,72,0.96), rgba(28,18,46,0.98));
  border: 1px solid rgba(168,85,247,0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
  animation: bondReportPop .26s ease;
}
@keyframes bondReportPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.bond-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bond-report-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}
.bond-report-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
}
.bond-report-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 5px;
  margin-bottom: 16px;
}
.bond-report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bond-report-cell {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
}
.bond-report-num {
  font-size: 30px;
  font-weight: 800;
  color: #ffd56b;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255,213,107,0.35);
  font-variant-numeric: tabular-nums;
}
.bond-report-label {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 7px;
}
.bond-report-more {
  width: 100%;
  margin-top: 16px;
  border: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(168,85,247,0.3);
  color: #c9a8ff;
  font-size: 13px;
  font-weight: 700;
  padding: 11px;
  border-radius: 14px;
  cursor: pointer;
  transition: background .15s ease;
}
.bond-report-more:active { background: rgba(168,85,247,0.2); }
