/**
 * 心寓 MoodNest 网页版 - 全局设计系统
 * ============================================================
 * 本文件只放"全局层"：设计 token、背景系统、光标、通用卡片、按钮、表单、导航、弹窗、吐司
 * 各页面专属样式写在各自 views/*.js 的 css 字段里，随页面挂载注入
 *
 * 视觉方向（网页版独立于小程序）：
 *   通透粉彩背景 + 玻璃拟态卡片 + 大圆角 + 柔和多层阴影 + 情绪色联动的高光
 */

/* ============================================================
   1. 设计 token
   ============================================================ */
:root {
  /* 主题色系（较小程序提亮去灰，保持护眼低饱和） */
  --color-primary: #A8C6DB;
  --color-cream: #F5F0EB;
  --color-warm-gray: #8A9BA8;
  --color-accent: #57A8A0;
  --color-accent-soft: #7FC0B9;
  --color-dark: #33424A;
  --color-mid: #7C909E;
  --color-light: #C5CDD3;
  --color-card: #FFFFFF;
  --color-bubble: #D9EAE4;
  --color-mint: #4FC8D6;
  --color-pink: #FF8FA8;
  --color-warm: #FFC24D;
  --color-lavender: #A99BE3;
  --color-sage: #8FC6A6;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 13px;
  --radius-sm: 9px;

  /* 阴影：多层叠加，近处紧实、远处虚化，避免"脏灰" */
  --shadow-card: 0 2px 8px rgba(61, 74, 81, 0.05), 0 10px 30px rgba(61, 74, 81, 0.06);
  --shadow-soft: 0 6px 22px rgba(61, 74, 81, 0.09);
  --shadow-float: 0 14px 42px rgba(45, 55, 62, 0.16);
  --shadow-glow: 0 8px 26px var(--emo-glow);

  /* 玻璃拟态 */
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-blur: blur(18px) saturate(1.35);

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  /* 情绪主题变量（app.js setTheme 动态改写） */
  --emo-color: #9CC3D6;
  --emo-glow: rgba(130, 175, 200, 0.42);
  --emo-soft: rgba(156, 195, 214, 0.18);

  /* 背景渐变（app.js setTheme 随情绪改写，1.2s 平滑过渡） */
  --bg-top: #FEFAF7;
  --bg-bottom: #F3E6EC;

  /* 字体栈：现代无衬线，优先高分屏国产字体；不再使用书法体（避免"旧感"） */
  --font-sans: 'HarmonyOS Sans SC', 'MiSans', 'PingFang SC', 'Microsoft YaHei UI',
               'Microsoft YaHei', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: var(--font-sans);

  /* 文本墨色（比纯黑柔和，带一点青调，和背景同源） */
  --ink: #2F4750;
  --ink-soft: #4E6A74;
  --ink-mute: #7C99A3;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

/* ============================================================
   2. 基础重置
   ============================================================ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.62;
  letter-spacing: 0.1px;
  /* 三层叠加：顶部柔光 + 45° 主渐变 + 底部反光，比单段线性渐变更有空气感 */
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(168deg, var(--bg-top) 0%, var(--bg-top) 38%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  transition: background 1.2s var(--ease-out);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

input, textarea, button, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--emo-soft); color: var(--color-dark); }

/* 情绪色氛围层：三处柔光随 --emo-color 缓慢晕染，叠加在渐变底色之上 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(52% 38% at 88% 2%, var(--emo-soft) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(46% 34% at 4% 76%, var(--emo-soft) 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(60% 40% at 50% 108%, var(--emo-glow) 0%, rgba(255, 255, 255, 0) 72%);
  transition: background 1.2s var(--ease-out);
}

/* ============================================================
   3. 全局层：粒子画布 + 视图容器
   ============================================================ */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#view-root {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
}

/* 页面切换入场：淡入 + 轻微上浮放大，柔和而不抢戏 */
.page-enter { animation: pageIn 0.44s var(--ease-out) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

/* 切页瞬间盖一层"呼吸帷幕"，遮住 DOM 替换，让切换更顺滑 */
.route-veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(170deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}
.route-veil.is-playing { animation: veilBreath 0.46s var(--ease-out) both; }
@keyframes veilBreath {
  0%   { opacity: 0; }
  38%  { opacity: 0.88; }
  100% { opacity: 0; }
}

/* 登录 → 主页面「进门」动画：两扇门向两侧滑开，中间透出光 */
.door-veil {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  overflow: hidden;
}
.door-veil[hidden] { display: none; }

.door-panel {
  position: absolute;
  top: 0; bottom: 0;
  width: 51%;
  background: linear-gradient(180deg, #FFFCF9 0%, #F6E9EF 100%);
  box-shadow: inset 0 0 70px rgba(255, 255, 255, 0.7);
}
.door-panel--l { left: 0; border-radius: 0 26px 26px 0; }
.door-panel--r { right: 0; border-radius: 26px 0 0 26px; }

.door-veil.is-open .door-panel--l {
  transform: translateX(-102%);
  transition: transform 0.86s cubic-bezier(0.76, 0, 0.24, 1);
}
.door-veil.is-open .door-panel--r {
  transform: translateX(102%);
  transition: transform 0.86s cubic-bezier(0.76, 0, 0.24, 1);
}

/* 门缝里透出的光晕：先聚后在门开时扩散 */
.door-light {
  position: absolute;
  left: 50%; top: 50%;
  width: 60px; height: 150%;
  transform: translate(-50%, -50%) scale(0.4, 0.2);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
}
.door-veil.is-open .door-light { animation: doorBloom 0.92s ease-out both; }
@keyframes doorBloom {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4, 0.2); }
  28%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(3.6, 1.7); }
}

/* ============================================================
   4. 自定义流动光圈光标（core/cursor.js）
   ============================================================ */
/* 只在脚本成功接管后隐藏系统光标；输入框保留 I 形光标便于定位 */
html.has-custom-cursor,
html.has-custom-cursor * { cursor: none; }
html.has-custom-cursor input,
html.has-custom-cursor textarea { cursor: text; }

.xm-cursor {
  position: fixed;
  left: 0; top: 0;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.xm-cursor.is-visible { opacity: 1; }

.xm-cursor__ring {
  position: absolute;
  left: 0; top: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.28s var(--ease-spring), opacity 0.28s ease;
}
/* 流动弧线：conic 渐变抠出环形缺口，持续旋转 */
.xm-cursor__ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(255, 255, 255, 0) 0 42%,
    var(--emo-color) 76%,
    rgba(255, 255, 255, 0) 96%);
  -webkit-mask: radial-gradient(farthest-side, rgba(0, 0, 0, 0) calc(100% - 2.4px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, rgba(0, 0, 0, 0) calc(100% - 2.4px), #000 calc(100% - 2px));
  animation: xmSpin 2.4s linear infinite;
  opacity: 0.95;
}
/* 环外柔光 */
.xm-cursor__ring::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--emo-glow) 0%, rgba(255, 255, 255, 0) 68%);
  opacity: 0.55;
  transition: opacity 0.3s ease;
}
.xm-cursor.is-hover .xm-cursor__ring { transform: translate(-50%, -50%) scale(1.62); }
.xm-cursor.is-hover .xm-cursor__ring::after { opacity: 0.9; }
.xm-cursor.is-press .xm-cursor__ring { transform: translate(-50%, -50%) scale(0.82); }
.xm-cursor.is-text .xm-cursor__ring { transform: translate(-50%, -50%) scale(0.72); opacity: 0.55; }

.xm-cursor-dot {
  position: fixed;
  left: 0; top: 0;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--emo-color);
  box-shadow: 0 0 12px var(--emo-glow);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.28s ease, scale 0.24s var(--ease-spring);
}
.xm-cursor-dot.is-visible { opacity: 1; }
.xm-cursor-dot.is-hover { scale: 0.6; }

@keyframes xmSpin { to { transform: rotate(360deg); } }

/* ============================================================
   5. 页面骨架（所有视图的最外层）
   ============================================================ */
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 20px calc(20px + var(--safe-bottom));
  overflow: hidden;
}

/* 装饰层：奶白基底上的薄荷圆 / 樱花粉圆 / 淡金光斑 + 星星叶子 */
.bg-decoration {
  position: absolute;
  inset: 0 0 auto 0;
  height: 460px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-circle { position: absolute; border-radius: 50%; filter: blur(10px); }

.bg-circle--mint {
  width: 280px; height: 280px; top: -110px; right: -90px;
  background: radial-gradient(circle, rgba(79, 200, 214, 0.26), rgba(79, 200, 214, 0));
}
.bg-circle--pink {
  width: 210px; height: 210px; top: 60px; left: -80px;
  background: radial-gradient(circle, rgba(255, 143, 168, 0.24), rgba(255, 143, 168, 0));
}
.bg-circle--glow {
  width: 150px; height: 150px; top: 150px; right: 30%;
  background: radial-gradient(circle, rgba(255, 194, 77, 0.20), rgba(255, 194, 77, 0));
}

/* 情绪氛围大圆（随情绪色，浮在装饰层里） */
.bg-circle--emo {
  width: 340px; height: 340px; bottom: -140px; right: -110px;
  background: radial-gradient(circle, var(--emo-glow), rgba(255, 255, 255, 0));
  transition: background 1.2s var(--ease-out);
}

/* 装饰符号：默认给一个柔和的薄荷色，避免未指定颜色时继承深墨色显得发黑 */
.bg-deco { position: absolute; opacity: 0.55; user-select: none; color: var(--color-mint); }

/* 内容层（在装饰之上） */
.page-body {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   6. 顶部导航
   ============================================================ */
.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  flex: 0 0 auto;
}

.nav--plain { height: 46px; }

.nav-back {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 2px 10px rgba(61, 74, 81, 0.07);
  font-size: 17px;
  color: var(--color-dark);
  transition: transform 0.2s var(--ease-spring), background 0.2s ease, box-shadow 0.2s ease;
}
.nav-back:hover {
  background: #fff;
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 6px 18px rgba(61, 74, 81, 0.12);
}
.nav-back:active { transform: scale(0.94); }

.nav-title {
  flex: 1;
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: 0.4px;
}

.nav-action {
  font-size: 13px;
  color: var(--color-accent);
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  transition: transform 0.18s var(--ease-out), background 0.18s ease;
}
.nav-action:hover { transform: translateY(-1px); background: #fff; }

/* ============================================================
   7. 卡片 / 区块（玻璃拟态）
   ============================================================ */
.card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  padding: 17px;
  transition: transform 0.26s var(--ease-out), box-shadow 0.26s ease, background 0.26s ease;
}

.card + .card { margin-top: 14px; }

/* 顶部一条随情绪色流动的高光，提升"高级感" */
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.8;
  pointer-events: none;
}

.card-title {
  font-size: 15px;
  font-weight: 650;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-title small {
  font-weight: 400;
  font-size: 12px;
  color: var(--color-mid);
}

.section-label {
  font-size: 12.5px;
  color: var(--color-mid);
  margin: 20px 2px 10px;
  letter-spacing: 0.6px;
}

/* ============================================================
   8. 按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 550;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.22s ease, opacity 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
  background: linear-gradient(135deg, var(--emo-color), var(--color-accent));
  color: #fff;
  box-shadow: 0 8px 22px var(--emo-glow);
}
.btn-primary:hover:not(:disabled):not(.is-disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--emo-glow);
}

.btn-primary:disabled,
.btn-primary.is-disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-soft {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--color-dark);
  border: 1px solid var(--glass-border);
  box-shadow: 0 3px 12px rgba(61, 74, 81, 0.07);
}
.btn-soft:hover { transform: translateY(-1px); background: #fff; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.45);
  color: var(--color-mid);
  border: 1px solid rgba(168, 198, 219, 0.7);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.75); }

.btn-block { display: flex; width: 100%; }

.btn-sm { padding: 7px 14px; font-size: 13px; }

/* 主行动按钮（页面底部大按钮） */
.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.4px;
  color: #fff;
  background: linear-gradient(135deg, var(--emo-color) 0%, var(--color-accent) 100%);
  box-shadow: 0 10px 28px var(--emo-glow);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.24s ease, opacity 0.2s ease;
}
.action-btn:hover:not(.is-disabled) { transform: translateY(-2px); box-shadow: 0 14px 34px var(--emo-glow); }
.action-btn:active { transform: scale(0.98); }
.action-btn.is-disabled { opacity: 0.45; box-shadow: none; }

/* ============================================================
   9. 情绪网格（emotion-check / 首页打卡 / chat 预选共用）
   ============================================================ */
.emotion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.emotion-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 15px 6px;
  border-radius: var(--radius-md);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.24s var(--ease-spring), background 0.24s ease,
              border-color 0.24s ease, box-shadow 0.24s ease;
  cursor: pointer;
}

.emotion-item:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 10px 26px rgba(61, 74, 81, 0.10);
}

.emotion-item.is-active {
  background: #fff;
  border-color: var(--emo-color);
  box-shadow: 0 10px 26px var(--emo-glow);
  transform: translateY(-3px);
}

.emotion-item .e-emoji { font-size: 27px; line-height: 1.1; }
.emotion-item .e-label { font-size: 13px; color: var(--color-dark); }
.emotion-item .e-desc { font-size: 11px; color: var(--color-mid); }

/* ============================================================
   10. 表单
   ============================================================ */
.input, .textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(168, 198, 219, 0.5);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  resize: none;
}

.input:focus, .textarea:focus {
  border-color: var(--emo-color);
  background: #fff;
  box-shadow: 0 0 0 4px var(--emo-soft);
}

.input::placeholder, .textarea::placeholder { color: #B9C4CC; }

.error-tip {
  display: block;
  font-size: 12.5px;
  color: #E0745E;
  margin-top: 8px;
  padding-left: 4px;
}

/* ============================================================
   11. 弹窗 / 吐司 / 空状态
   ============================================================ */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(48, 58, 64, 0.38);
  backdrop-filter: blur(6px) saturate(1.1);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.24s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  width: 100%;
  max-width: 366px;
  max-height: 84vh;
  overflow-y: auto;
  background: rgba(255, 253, 251, 0.94);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 24px 21px 19px;
  box-shadow: var(--shadow-float);
  animation: popIn 0.3s var(--ease-spring) both;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.modal-title { font-size: 17px; font-weight: 650; margin: 0 0 10px; }
.modal-body { font-size: 14px; color: var(--color-dark); }
.modal-body p { margin: 0 0 10px; }
.modal-hint { font-size: 12.5px; color: var(--color-mid); }

.modal-btns {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.modal-btns .btn { flex: 1; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 12vh;
  transform: translateX(-50%) translateY(12px);
  z-index: 120;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(48, 58, 64, 0.82);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13.5px;
  box-shadow: 0 12px 32px rgba(45, 55, 62, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease, transform 0.26s var(--ease-spring);
  max-width: 80vw;
  text-align: center;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty-state {
  text-align: center;
  color: var(--color-mid);
  font-size: 13.5px;
  padding: 28px 16px;
}
.empty-state .es-icon { font-size: 30px; display: block; margin-bottom: 8px; opacity: 0.7; }

/* 加载中三点 */
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-mid);
  animation: typingDot 1.2s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* 通用小徽章 / 标签 */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  background: var(--emo-soft);
  color: var(--color-accent);
}

/* 提示横幅（AI 未连接等） */
.banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  line-height: 1.5;
  background: rgba(255, 240, 214, 0.9);
  border: 1px solid rgba(255, 214, 150, 0.7);
  color: #8A6A32;
  margin-bottom: 12px;
}
.banner .banner-icon { flex: 0 0 auto; }

/* ============================================================
   12. 响应式：桌面端加宽多栏（比赛投影演示用）
   ============================================================ */
@media (min-width: 768px) {
  body { font-size: 15.5px; }
  .page-body { max-width: 720px; }
}

@media (min-width: 1024px) {
  .page { padding-left: 32px; padding-right: 32px; }
  .page-body { max-width: 1040px; }
  .page-body--wide { max-width: 1040px; }
  .emotion-grid { grid-template-columns: repeat(5, 1fr); }
}

/* 滚动条（桌面端更秀气，不抢视线） */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb {
  background: rgba(168, 198, 219, 0.6);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(140, 170, 195, 0.8); }
::-webkit-scrollbar-track { background: transparent; }

/* 尊重用户的减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}