/* ============================================================
   晚叙 · 夜色沉浸主题（方案 A 温馨版）
   覆盖在 styles.css 之后加载：
   - 底景由卡通风景换成夜色摄影 + 琥珀暖光
   - 暖橙主按钮、暖白文字、玻璃质感面板
   - 修复 flex 容器内按钮被拉伸/压缩变形
   ============================================================ */

:root {
  /* 浅色：暖白纸感，与夜色同一套暖橙语言 */
  --ink-rgb: 43, 37, 33;
  --surface-rgb: 255, 252, 247;
  --shadow-rgb: 120, 80, 40;
  --surface-1: #fffdf8;
  --surface-2: #faf3e8;
  --surface-3: #f4ebdd;
  --text: #2b2521;
  --panel: rgba(255, 252, 247, 0.8);
  --panel-solid: #fffdf8;
  --amber: #b9742f;
  --amber-deep: #9c5f24;
  --ink: #2a1a0c;
  --radius: 12px;
}

html[data-theme="dark"] {
  /* 夜色：蓝黑底 + 暖白文字 + 琥珀点缀 */
  --ink-rgb: 240, 234, 226;
  --surface-rgb: 26, 31, 46;
  --shadow-rgb: 0, 0, 0;
  --surface-1: #1a1f2e;
  --surface-2: #202536;
  --surface-3: #141926;
  --text: #f2ece3;
  --dim: rgba(240, 234, 226, 0.72);
  --dimmer: rgba(240, 234, 226, 0.5);
  --line: rgba(240, 234, 226, 0.12);
  --line-strong: rgba(240, 234, 226, 0.26);
  --panel: rgba(24, 29, 44, 0.74);
  --panel-solid: #1a1f2e;
  --amber: #f0b27c;
  --amber-deep: #f6c493;
  --ink: #2a1a0c;
}

body {
  background: #f6f1ea;
}
html[data-theme="dark"] body {
  background: #0b1020;
}

/* ---------- 底景：柔和夜色摄影 + 琥珀暖光 + 蒙版，隐藏卡通风景元素 ---------- */

.scenery {
  background-color: #f6f1ea;
  background-image: none;
}

html[data-theme="dark"] .scenery {
  background-color: #0b1020;
  background-image: none;
}

/* 照片单独作为模糊底层，只提供氛围，不抢文字 */
.scenery::before {
  content: "";
  position: absolute;
  inset: -4%;
  background: url("./assets/scene-night.jpg") center / cover no-repeat;
  filter: blur(4px) saturate(0.72) brightness(1.5) sepia(0.28);
  animation: none;
}

html[data-theme="dark"] .scenery::before {
  background: url("media/bg-night.jpg") center / cover no-repeat;
  filter: blur(7px) saturate(0.9) brightness(0.85) sepia(0.2);
}

/* 浅色蒙版：透出日落景色，中部仍保证文字可读 */
.scenery::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 44% at 18% 4%, rgba(255, 196, 146, 0.5), transparent 70%),
    radial-gradient(52% 40% at 90% 12%, rgba(206, 176, 200, 0.32), transparent 70%),
    radial-gradient(58% 42% at 92% 90%, rgba(168, 182, 202, 0.3), transparent 70%),
    linear-gradient(180deg, rgba(250, 244, 236, 0.34), rgba(250, 244, 236, 0.48) 30%, rgba(248, 241, 232, 0.66) 62%, rgba(246, 240, 232, 0.8));
}

html[data-theme="dark"] .scenery::after {
  background:
    radial-gradient(64% 42% at 24% 0%, rgba(255, 190, 132, 0.36), transparent 72%),
    radial-gradient(50% 32% at 88% 88%, rgba(240, 170, 110, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(14, 13, 24, 0.52), rgba(14, 13, 24, 0.6) 30%, rgba(14, 13, 24, 0.78) 62%, rgba(12, 12, 22, 0.92));
}

/* 旧卡通风景（太阳/月亮/星/云/鸟/山）全部移除 */
.scenery > * {
  display: none !important;
}

/* ---------- 标题：细宋体，夜里带一点暖 ---------- */

.lobby-title {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-weight: 500;
  letter-spacing: 6px;
}

html[data-theme="dark"] .lobby-title {
  background: linear-gradient(180deg, #fff6ea 20%, #f0c298 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 22px rgba(240, 178, 124, 0.22);
}

html:not([data-theme="dark"]) .lobby-title {
  background: none;
  color: #3a2f24;
  -webkit-text-fill-color: #3a2f24;
  text-shadow: none;
}

/* ---------- 按钮：暖橙主按钮，修复变形 ---------- */

.btn {
  flex: 0 0 auto; /* 避免在 flex 行内被压缩/拉伸 */
}

.btn--gold,
.btn--send {
  background: linear-gradient(135deg, #f8cd9e, #eda468);
  color: #2a1a0c;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(237, 164, 104, 0.26);
}

.btn--gold:hover,
.btn--send:hover {
  filter: brightness(1.05);
}

.btn--send {
  flex: 0 0 auto;
  min-width: 76px;
  height: 44px;
}

.btn--img {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
}

.btn--outline {
  background: rgba(var(--surface-rgb), 0.32);
}

/* ---------- 面板：统一玻璃质感与圆角 ---------- */

.modal__panel {
  border-radius: 18px;
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.messages {
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.bot-offer,
.waiting-panel {
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- 输入框：圆角跟随主题 ---------- */

.composer input,
.waiting-panel__input {
  border-radius: var(--radius);
}

/* ============================================================
   第二轮：气泡 / 广场 / 我的中心 / VIP 套餐卡
   全部使用主题变量，明暗自动适配
   ============================================================ */

/* ---------- 聊天气泡与消息区 ---------- */

.msg {
  border-radius: 16px;
}

.msg--peer {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  box-shadow: none;
  border-radius: 4px 16px 16px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.msg--me {
  border: 0;
  background: linear-gradient(135deg, #f8cd9e, #eda468);
  color: #2a1a0c;
  box-shadow: 0 6px 18px rgba(237, 164, 104, 0.22);
  border-radius: 16px 4px 16px 16px;
}

.messages {
  background: rgba(var(--surface-rgb), 0.34);
  border: 1px solid var(--line);
}

/* ---------- 广场：去掉浅底下的深色残留 ---------- */

.plaza-form,
.plaza-post {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.plaza-tab {
  background: transparent;
  color: var(--dim);
  border: 1px solid transparent;
}

.plaza-tab.is-active {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line);
}

#plaza-text,
.plaza-search input {
  background: rgba(var(--surface-rgb), 0.7);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
}

#plaza-text::placeholder,
.plaza-search input::placeholder {
  color: var(--dimmer);
}

.plaza-tag,
.plaza-sort__item,
.plaza-filter {
  background: transparent;
  color: var(--dim);
  border: 1px solid var(--line);
}

.plaza-tag.is-active,
.plaza-sort__item.is-active,
.plaza-filter.is-active {
  color: var(--amber-deep);
  border-color: var(--amber);
  background: rgba(237, 164, 104, 0.1);
}

.plaza-post__text,
.plaza-post__name {
  color: var(--text);
}

.plaza-post__time,
.plaza-post__city,
.plaza-note {
  color: var(--dim);
}

.plaza-post__actions button {
  background: rgba(var(--ink-rgb), 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

/* ---------- 我的中心 ---------- */

.me-profile,
.me-stat,
.me-action,
.me-section {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.me-profile,
.me-section {
  border-radius: 16px;
}

.me-stat {
  border-radius: 14px;
}

.me-stat strong {
  color: var(--amber-deep);
}

.me-stat span {
  color: var(--dim);
}

.me-action {
  border-radius: 12px;
  color: var(--text);
}

.me-name {
  background: none;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  text-shadow: none;
}

.me-id,
.me-hint,
.me-post__meta {
  color: var(--dim);
}

.me-interaction-stats > * {
  background: rgba(var(--ink-rgb), 0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
}

.me-post {
  border-color: var(--line);
}

.me-post__text {
  color: var(--text);
}

.me-post__delete {
  color: var(--danger);
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.2);
}

.badge--vip {
  background: rgba(237, 164, 104, 0.18);
  color: var(--amber-deep);
  border: 0;
}

/* ---------- VIP 套餐卡 ---------- */

.plan-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: none;
}

.plan-card:hover {
  border-color: var(--amber);
  background: rgba(237, 164, 104, 0.1);
}

.plan-card__days {
  color: var(--text);
}

.plan-card__price {
  color: var(--amber-deep);
}

.plan-card__bonus {
  color: var(--dim);
}

/* ============================================================
   第三轮：金色昵称柔化 + 右上角 VIP 会员按钮
   ============================================================ */

/* 金色昵称：保留暖金辨识，但去掉荧光与流动，降低刺眼感 */
.is-gold {
  font-weight: 600;
  background-image: linear-gradient(92deg, #f7dcae, #eeb47e);
  filter: none;
  animation: none;
  color: var(--amber-deep);
}

html:not([data-theme="dark"]) .is-gold {
  background-image: linear-gradient(92deg, #c98a3c, #a5662c);
}

/* 右上角 VIP 会员：与主题圆钮同高、无描边、柔和暖橙胶囊 */
.vip-link,
.vip-link.is-vip,
html[data-theme="dark"] .vip-link,
html[data-theme="dark"] .vip-link.is-vip {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(237, 164, 104, 0.16);
  color: var(--amber-deep);
  font-size: 12px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: none;
}

.vip-link svg {
  width: 12px;
  height: 12px;
}

.vip-link:hover,
.vip-link.is-vip:hover,
html[data-theme="dark"] .vip-link:hover {
  background: rgba(237, 164, 104, 0.26);
}

/* ============================================================
   第四轮：暗色清晰度 / 聊天密度 / 绚丽昵称 / VIP 细金边
   ============================================================ */

/* ---------- 暗色：广场与我的中心提高对比 ---------- */

html[data-theme="dark"] .plaza-post,
html[data-theme="dark"] .plaza-form,
html[data-theme="dark"] .me-profile,
html[data-theme="dark"] .me-section,
html[data-theme="dark"] .me-stat,
html[data-theme="dark"] .me-action {
  background: rgba(34, 41, 60, 0.88);
  border-color: rgba(240, 234, 226, 0.18);
}

html[data-theme="dark"] .plaza-post__text,
html[data-theme="dark"] .plaza-post__name,
html[data-theme="dark"] .me-post__text,
html[data-theme="dark"] .me-name,
html[data-theme="dark"] .me-action {
  color: #f7f2ea;
}

html[data-theme="dark"] .plaza-post__time,
html[data-theme="dark"] .plaza-post__city,
html[data-theme="dark"] .plaza-note,
html[data-theme="dark"] .me-id,
html[data-theme="dark"] .me-hint,
html[data-theme="dark"] .me-post__meta {
  color: rgba(240, 234, 226, 0.68);
}

html[data-theme="dark"] .plaza-tab,
html[data-theme="dark"] .plaza-tag,
html[data-theme="dark"] .plaza-sort__item,
html[data-theme="dark"] .plaza-filter {
  color: rgba(240, 234, 226, 0.75);
  border-color: rgba(240, 234, 226, 0.22);
}

html[data-theme="dark"] .plaza-tab.is-active {
  background: rgba(237, 164, 104, 0.22);
  color: #f6c493;
}

html[data-theme="dark"] #plaza-text,
html[data-theme="dark"] .plaza-search input {
  background: rgba(18, 24, 38, 0.85);
  color: #f2ece3;
  border-color: rgba(240, 234, 226, 0.2);
}

html[data-theme="dark"] .me-stat strong {
  color: #f6c493;
}

html[data-theme="dark"] .me-stat span {
  color: rgba(240, 234, 226, 0.7);
}

html[data-theme="dark"] .me-interaction-stats > * {
  background: rgba(240, 234, 226, 0.08);
  border-color: rgba(240, 234, 226, 0.16);
  color: #f2ece3;
}

/* ---------- 聊天：同屏显示更多对话 ---------- */

.chat-head {
  padding-top: 4px;
  padding-bottom: 8px;
}

.messages {
  gap: 8px;
  padding: 10px;
}

.msg {
  padding: 7px 11px;
  font-size: 14px;
  line-height: 1.55;
}

.msg__tool {
  font-size: 10px;
  opacity: 0.55;
  padding: 0;
}

.msg__time {
  opacity: 0.6;
}

/* ---------- 金色昵称：恢复绚丽渐变，荧光减半 ---------- */

.is-gold {
  font-weight: 700;
  background-image: linear-gradient(92deg, #fff3c4 0%, #ffd166 22%, #f2a92b 48%, #ffd166 74%, #fff3c4 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 4px rgba(255, 190, 70, 0.35));
  animation: gold-shimmer 6s linear infinite;
}

html:not([data-theme="dark"]) .is-gold {
  background-image: linear-gradient(92deg, #e6a94e, #c07a2a, #e6a94e);
  filter: none;
}

/* ---------- VIP 会员：精致细金边 + 内柔光 ---------- */

.vip-link,
.vip-link.is-vip,
html[data-theme="dark"] .vip-link,
html[data-theme="dark"] .vip-link.is-vip {
  border: 1px solid rgba(237, 164, 104, 0.42);
  background: linear-gradient(135deg, rgba(248, 205, 158, 0.18), rgba(237, 164, 104, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .vip-link,
html[data-theme="dark"] .vip-link.is-vip {
  border-color: rgba(240, 178, 124, 0.45);
  color: #f6c493;
}

/* ============================================================
   第五轮：气泡附加信息合并一行 / 暗色小字增强 / 头部压缩
   ============================================================ */

/* 时间 + 操作 + 已读 同一行，气泡更矮 */
.msg__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 3px;
}

.msg__tools {
  display: inline-flex;
  gap: 8px;
  margin: 0;
  margin-right: auto;
  opacity: 0.75;
}

.msg__time {
  display: inline;
  margin: 0;
  font-size: 10px;
  opacity: 0.6;
}

.msg__state {
  font-size: 10px;
  opacity: 0.65;
}

/* 我方暖橙气泡内：附加信息用深棕，避免暖白字看不清 */
.msg--me .msg__tool,
.msg--me .msg__time,
.msg--me .msg__state {
  color: rgba(42, 26, 12, 0.66);
  opacity: 1;
}

.msg--me .msg__tool:hover {
  color: #2a1a0c;
}

.msg--peer .msg__tool {
  color: var(--dim);
}

/* 头部再紧凑，让消息区更高 */
.chat-head {
  padding-top: 2px;
  padding-bottom: 6px;
}

.chat-head .avatar--sm {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

/* 暗色小字增强 */
html[data-theme="dark"] .chat-head .peer__meta {
  color: rgba(240, 234, 226, 0.78);
  font-size: 11px;
}

html[data-theme="dark"] .quick-bar button {
  color: rgba(240, 234, 226, 0.88);
}

html[data-theme="dark"] .chat-note {
  color: rgba(240, 234, 226, 0.72);
}

html[data-theme="dark"] .chat-head .tag {
  font-size: 10.5px;
}

/* 暗色辅助文字兜底：快捷短语、提示行、防诈骗折叠摘要 */
html[data-theme="dark"] .quick-bar,
html[data-theme="dark"] .quick-bar * {
  color: rgba(240, 234, 226, 0.9);
}

html[data-theme="dark"] .chat-note,
html[data-theme="dark"] .chat-safety summary,
html[data-theme="dark"] details summary {
  color: rgba(240, 234, 226, 0.75);
}

/* ============================================================
   第六轮：边缘白边修复 + 双主题整体润色
   ============================================================ */

/* 根节点补主题底色，橡皮筋/溢出时不再露出白色边缘 */
html {
  background: #f6f1ea;
}
html[data-theme="dark"] {
  background: #0b1020;
}

/* 主题切换时颜色平滑过渡 */
body,
.btn,
.card,
.plaza-post,
.me-stat,
.me-action,
.me-section,
.me-profile,
.messages,
.msg,
input,
textarea {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* 浅色：卡片层次更清楚，柔和暖影 */
html[data-theme="light"] .plaza-post,
html[data-theme="light"] .plaza-form,
html[data-theme="light"] .me-profile,
html[data-theme="light"] .me-section,
html[data-theme="light"] .me-stat,
html[data-theme="light"] .me-action {
  background: rgba(255, 252, 247, 0.9);
  border-color: rgba(120, 90, 60, 0.14);
  box-shadow: 0 6px 20px rgba(120, 90, 60, 0.07);
  color: #2b2521;
}

html[data-theme="light"] .plaza-post__text,
html[data-theme="light"] .plaza-post__name,
html[data-theme="light"] .me-post__text,
html[data-theme="light"] .me-name,
html[data-theme="light"] .me-action {
  color: #2b2521;
}

/* 暗色：卡片再亮一点，与夜色拉开层次 */
html[data-theme="dark"] .plaza-post,
html[data-theme="dark"] .plaza-form,
html[data-theme="dark"] .me-profile,
html[data-theme="dark"] .me-section,
html[data-theme="dark"] .me-stat,
html[data-theme="dark"] .me-action {
  background: rgba(40, 48, 70, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* 交互反馈：按压、聚焦、hover 统一 */
.btn:active,
.me-action:active,
.plaza-tag:active,
.quick-bar button:active {
  transform: scale(0.97);
}

.composer input:focus,
#plaza-text:focus,
.plaza-search input:focus,
.waiting-panel__input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(237, 164, 104, 0.18);
  outline: none;
}

.plaza-post:hover,
.me-action:hover {
  border-color: rgba(237, 164, 104, 0.45);
}

/* 输入区与底部贴合安全区，避免 iPhone 底部白条 */
.composer {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* 细滚动条，暗色不突兀 */
.messages::-webkit-scrollbar-thumb {
  background: rgba(237, 164, 104, 0.35);
}

/* ============================================================
   第七轮：主题一致性兜底
   修复暗色下背景仍为浅色（米白底 + 深色卡片）的问题
   ============================================================ */

html[data-theme="dark"],
html[data-theme="dark"] body {
  background-color: #0b1020 !important;
}

html[data-theme="dark"] .scenery {
  background-color: #0b1020 !important;
  background-image: none !important;
}

html[data-theme="dark"] .scenery::before {
  background-image: url("./assets/scene-night.jpg") !important;
  opacity: 1 !important;
  filter: blur(6px) brightness(1.22) saturate(1.12) sepia(0.18) !important;
}

html[data-theme="dark"] .scenery::after {
  background:
    radial-gradient(95% 50% at 50% -8%, rgba(255, 180, 100, 0.3), transparent 70%),
    linear-gradient(180deg, rgba(8, 11, 24, 0.28) 0%, rgba(9, 12, 26, 0.48) 40%, rgba(8, 10, 22, 0.82) 100%) !important;
}

/* 浅色下卡片与输入框一律浅色深字，杜绝浅色页面配深色卡片 */
html[data-theme="light"] .plaza-post,
html[data-theme="light"] .plaza-form,
html[data-theme="light"] .plaza-search input,
html[data-theme="light"] #plaza-text,
html[data-theme="light"] .me-profile,
html[data-theme="light"] .me-section,
html[data-theme="light"] .me-stat,
html[data-theme="light"] .me-action {
  background: rgba(255, 252, 247, 0.92) !important;
  color: #2b2521 !important;
}

html[data-theme="light"] .plaza-post__text,
html[data-theme="light"] .plaza-post__name,
html[data-theme="light"] .plaza-post__meta,
html[data-theme="light"] .me-post__text,
html[data-theme="light"] .me-name {
  color: #2b2521 !important;
}

html[data-theme="light"] .plaza-search input::placeholder,
html[data-theme="light"] #plaza-text::placeholder {
  color: rgba(43, 37, 33, 0.45) !important;
}

/* 浅色文字兜底：此前为暗色提亮的暖白字不带主题前缀，会污染浅色，统一压回深色 */
html[data-theme="light"] .plaza-post__name,
html[data-theme="light"] .plaza-post__text,
html[data-theme="light"] .plaza-head,
html[data-theme="light"] .me-name,
html[data-theme="light"] .me-stat strong,
html[data-theme="light"] .me-post__text,
html[data-theme="light"] .me-section__title,
html[data-theme="light"] .me-action {
  color: #2b2521 !important;
}

html[data-theme="light"] .plaza-post__meta,
html[data-theme="light"] .plaza-tag,
html[data-theme="light"] .me-guest,
html[data-theme="light"] .me-stat span,
html[data-theme="light"] .me-post__time,
html[data-theme="light"] .me-section__hint {
  color: rgba(43, 37, 33, 0.62) !important;
}

/* 页脚界面版本号 */
.build-version {
  font-size: 10px;
  opacity: 0.55;
}

/* 暗色：广场/我的中心整页容器原写死浅色渐变，改为深色，消除白色空隙 */
html[data-theme="dark"] #screen-plaza,
html[data-theme="dark"] #screen-me {
  background: linear-gradient(180deg, rgba(15, 19, 34, 0.86) 0%, rgba(10, 13, 26, 0.94) 100%) !important;
}

/* 浅色：广场分栏分隔线与文字加深 */
html[data-theme="light"] .plaza-tabs {
  border-color: rgba(120, 90, 60, 0.28) !important;
}

html[data-theme="light"] .plaza-tab {
  color: rgba(43, 37, 33, 0.72) !important;
}

html[data-theme="light"] .plaza-tab.is-active {
  color: #2b2521 !important;
}

html[data-theme="light"] .plaza-tab + .plaza-tab {
  border-left: 1px solid rgba(120, 90, 60, 0.2);
}

/* ============================================================
   浅色 UI 细节补充
   ============================================================ */

/* 卡片：顶部高光 + 柔和暖影，更有质感 */
html[data-theme="light"] .card,
html[data-theme="light"] .plaza-post,
html[data-theme="light"] .plaza-form,
html[data-theme="light"] .me-stat,
html[data-theme="light"] .me-action,
html[data-theme="light"] .me-section,
html[data-theme="light"] .me-profile {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 8px 22px rgba(120, 90, 60, 0.08);
}

/* 头像：暖色描边环 */
html[data-theme="light"] .avatar,
html[data-theme="light"] .me-avatar,
html[data-theme="light"] .plaza-avatar {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 4px 10px rgba(180, 120, 60, 0.18);
}

/* 输入框：轻微内阴影，聚焦暖橙光晕 */
html[data-theme="light"] .composer input,
html[data-theme="light"] #plaza-text,
html[data-theme="light"] .plaza-search input,
html[data-theme="light"] .waiting-panel__input {
  box-shadow: inset 0 1px 3px rgba(120, 90, 60, 0.07);
}

html[data-theme="light"] .composer input:focus,
html[data-theme="light"] #plaza-text:focus,
html[data-theme="light"] .plaza-search input:focus {
  box-shadow: inset 0 1px 3px rgba(120, 90, 60, 0.05), 0 0 0 3px rgba(237, 164, 104, 0.22);
}

/* 标签 / 筛选 chip：选中态更明确 */
html[data-theme="light"] .chip.is-active,
html[data-theme="light"] .plaza-tag.is-active,
html[data-theme="light"] .plaza-sort .is-active {
  border-color: rgba(217, 138, 80, 0.55) !important;
  background: rgba(237, 164, 104, 0.16) !important;
  color: #a5662c !important;
}

/* 按钮：悬停轻微提亮，主按钮带一点立体 */
html[data-theme="light"] .btn:hover {
  filter: brightness(1.04);
}

/* 弹窗：更柔和的圆角与暖色投影 */
html[data-theme="light"] .modal__panel {
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(90, 60, 30, 0.18);
}

/* 分割线更细更柔 */
html[data-theme="light"] hr,
html[data-theme="light"] .divider,
html[data-theme="light"] .me-section__head {
  border-color: rgba(120, 90, 60, 0.12) !important;
}

/* 浅色滚动条 */
html[data-theme="light"] .messages::-webkit-scrollbar-thumb {
  background: rgba(180, 130, 80, 0.32);
}

/* 链接与强调文字统一暖色 */
html[data-theme="light"] a {
  color: #a5662c;
}

/* 页脚版本号居中、更淡 */
html[data-theme="light"] .build-version {
  opacity: 0.5;
}

/* ============================================================
   卡片圆角调大 + 标题装饰
   ============================================================ */

.card,
.plaza-post,
.plaza-form,
.me-profile,
.me-section {
  border-radius: 20px !important;
}

.me-stat,
.me-action {
  border-radius: 16px !important;
}

.modal__panel {
  border-radius: 20px !important;
}

/* 主标题：两侧细渐变线装饰，克制不花哨 */
.lobby-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.lobby-title::before,
.lobby-title::after {
  content: "";
  flex: 0 0 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber));
  opacity: 0.65;
}

.lobby-title::after {
  transform: scaleX(-1);
}
