/* ============================================================
   v176 氛围基座 · 手账 × 温室玻璃
   暖纸色光泽 + 发丝线 + 小字距 kicker + 柔光斑
   —— 给应用内部用的「质感/沉浸/氛围」零件，不是内容样式
   ============================================================ */

:root {
  --atmo-wash: linear-gradient(180deg, rgba(255, 250, 246, .92) 0%, rgba(255, 252, 250, .38) 48%, rgba(255, 255, 255, 0) 100%);
  --atmo-glow: rgba(255, 176, 208, .34);
  --atmo-ink: var(--text-1);
  --atmo-line: var(--divider);
  --atmo-paper: var(--card);
}
[data-theme="zhimeng"] {
  --atmo-wash: linear-gradient(180deg, rgba(28, 36, 54, .92) 0%, rgba(28, 36, 54, .36) 48%, rgba(0, 0, 0, 0) 100%);
  --atmo-glow: rgba(120, 168, 255, .28);
}
[data-theme="coquette"] {
  --atmo-wash: linear-gradient(180deg, rgba(32, 18, 34, .92) 0%, rgba(32, 18, 34, .38) 48%, rgba(0, 0, 0, 0) 100%);
  --atmo-glow: rgba(255, 122, 182, .3);
}
[data-theme="glassy"] {
  --atmo-wash: linear-gradient(180deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .26) 50%, rgba(255, 255, 255, 0) 100%);
}

/* ---- 顶部氛围带：标题 + kicker + 发丝线 + 柔光斑 ---- */
.atmo-head {
  position: relative;
  padding: 20px 20px 16px;
  overflow: hidden;
}
.atmo-head::before {
  content: ''; position: absolute; inset: 0;
  background: var(--atmo-wash); pointer-events: none;
}
.atmo-head::after {
  content: ''; position: absolute; width: 190px; height: 190px;
  right: -52px; top: -78px; border-radius: 50%;
  background: radial-gradient(circle, var(--atmo-glow) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.atmo-head > * { position: relative; z-index: 1; }
.atmo-kicker {
  font: 500 10px/1.6 var(--font-mono, ui-monospace, monospace);
  letter-spacing: 1.9px; text-transform: uppercase; color: var(--text-3);
}
.atmo-title {
  font: 500 27px/1.22 var(--font-display, Georgia, serif);
  letter-spacing: .6px; color: var(--atmo-ink); margin: 5px 0 6px;
}
.atmo-sub {
  font-size: 12px; line-height: 1.75; color: var(--text-2);
  max-width: 30em; margin: 0;
}
.atmo-rule {
  width: 52px; height: 3px; border-radius: 2px;
  background: var(--accent); margin: 13px 0 2px;
  transform: rotate(-1.2deg); opacity: .9;
}
/* 右上角合影区（头像/贴纸） */
.atmo-aside {
  position: absolute; right: 18px; top: 22px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.atmo-ava {
  width: 58px; height: 58px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; background: var(--atmo-paper);
  border: 1px solid var(--atmo-line); box-shadow: var(--shadow-sm);
}
.atmo-aside small { font-size: 10px; color: var(--text-3); letter-spacing: .4px; }

/* ---- 指标条：把空白换成一行有信息量的小胶囊 ---- */
.atmo-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.atmo-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--atmo-paper); border: 1px solid var(--atmo-line);
  font-size: 11px; color: var(--text-2); box-shadow: var(--shadow-sm);
}
.atmo-chip b { color: var(--atmo-ink); font-weight: 600; }
.atmo-chip i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .85;
}

/* ---- 纸感卡片 ---- */
.atmo-card {
  position: relative; overflow: hidden;
  background: var(--atmo-paper); border: 1px solid var(--atmo-line);
  border-radius: 15px; padding: 15px 16px; box-shadow: var(--shadow-sm);
}
.atmo-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 62%);
}
.atmo-card > * { position: relative; z-index: 1; }
.atmo-card .hd {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px;
}
.atmo-card .hd b { font-size: 13.5px; color: var(--atmo-ink); font-weight: 650; }
.atmo-card .hd span {
  font: 500 9.5px/1.4 var(--font-mono, ui-monospace, monospace);
  letter-spacing: 1.3px; color: var(--text-3); text-transform: uppercase;
}

/* ---- 次级信息行（时间线/动向） ---- */
.atmo-line-list { display: flex; flex-direction: column; gap: 0; }
.atmo-line-list li {
  list-style: none; display: flex; gap: 11px; padding: 9px 2px;
  border-top: 1px solid var(--atmo-line); font-size: 12px; color: var(--text-2);
}
.atmo-line-list li:first-child { border-top: 0; }
.atmo-line-list .ico {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 9px;
  background: var(--atmo-paper); border: 1px solid var(--atmo-line);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.atmo-line-list .tx { flex: 1; min-width: 0; line-height: 1.55; }
.atmo-line-list .tx b { color: var(--atmo-ink); font-weight: 600; }
.atmo-line-list time {
  font: 500 9.5px/1.5 var(--font-mono, ui-monospace, monospace);
  color: var(--text-3); letter-spacing: .6px; flex-shrink: 0;
}

/* ---- 空态构图：三张叠纸 + 一句邀请，而不是孤零零一个 emoji ---- */
.atmo-empty {
  position: relative; overflow: hidden;
  margin: 10px 16px 18px; padding: 26px 18px 22px; text-align: center;
  min-height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px dashed var(--atmo-line); border-radius: 18px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 176, 208, .12), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(255, 252, 250, .75), rgba(255, 255, 255, .18));
}
[data-theme="zhimeng"] .atmo-empty {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(120, 168, 255, .12), rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0));
}
[data-theme="coquette"] .atmo-empty {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 122, 182, .14), rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0));
}
.atmo-empty .art { position: relative; height: 78px; margin: 2px 0 12px; }
.atmo-empty .art i {
  position: absolute; top: 12px; width: 74px; height: 52px;
  border-radius: 7px; background: var(--atmo-paper);
  border: 1px solid var(--atmo-line); box-shadow: var(--shadow-sm);
}
.atmo-empty .art i:nth-child(1) { left: 50%; margin-left: -54px; transform: rotate(-8deg); opacity: .88; }
.atmo-empty .art i:nth-child(2) {
  left: 50%; margin-left: -37px; transform: rotate(1.5deg);
  background: linear-gradient(180deg, var(--atmo-paper), rgba(255, 176, 208, .18));
}
.atmo-empty .art i:nth-child(3) { left: 50%; margin-left: -20px; transform: rotate(9deg); opacity: .88; }
.atmo-empty .art i:nth-child(2)::after {
  content: ''; position: absolute; left: 12px; right: 12px; top: 14px; height: 3px;
  border-radius: 3px; background: var(--atmo-line);
  box-shadow: 0 9px 0 -0.5px var(--atmo-line), 0 18px 0 -1px var(--atmo-line);
  opacity: .8;
}
.atmo-empty h3 {
  font: 500 17px/1.5 var(--font-display, Georgia, serif);
  color: var(--atmo-ink); margin: 0 0 5px; letter-spacing: .3px;
}
.atmo-empty p { font-size: 12px; line-height: 1.8; color: var(--text-2); margin: 0 auto; max-width: 24em; }
.atmo-empty .btn { margin-top: 14px; }

/* ---- 情绪点阵（日记用） ---- */
.atmo-mood {
  display: flex; gap: 9px; align-items: center; margin-top: 13px;
  padding: 9px 12px; border-radius: 999px;
  background: var(--atmo-paper); border: 1px solid var(--atmo-line);
  box-shadow: var(--shadow-sm); width: fit-content; max-width: 100%;
}
.atmo-mood .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); opacity: .45; flex-shrink: 0;
}
.atmo-mood .dot.on { opacity: 1; box-shadow: 0 0 0 3px rgba(255, 176, 208, .28); }
.atmo-mood small { font-size: 10px; color: var(--text-3); letter-spacing: .4px; margin-left: 2px; }

/* ---- 邮局件（慢信用） ---- */
.atmo-stamp {
  position: relative; width: 62px; height: 72px; flex-shrink: 0;
  border-radius: 6px; background: var(--atmo-paper);
  border: 1px solid var(--atmo-line);
  box-shadow: var(--shadow-sm); transform: rotate(4deg);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.atmo-stamp::before {
  content: ''; position: absolute; inset: 5px;
  border: 1px dashed var(--atmo-line); border-radius: 3px;
}
.atmo-stamp::after {
  content: 'POST'; position: absolute; bottom: 6px; left: 0; right: 0;
  text-align: center; font: 500 7px/1 var(--font-mono, ui-monospace, monospace);
  letter-spacing: 1.4px; color: var(--text-3);
}

/* ---- 列表脚注：内容不够长时，给收尾一个交代而不是一片白 ---- */
.atmo-foot {
  margin: 18px auto 28px; max-width: 270px; text-align: center;
  font: 500 10px/1.9 var(--font-mono, ui-monospace, monospace);
  letter-spacing: 1.3px; color: var(--text-3);
}
.atmo-foot::before {
  content: ''; display: block; height: 1px; width: 46px;
  margin: 0 auto 10px; background: var(--atmo-line);
}

/* ---- 通用：把 app 主体铺一层很淡的纸色，消掉「大白板」 ---- */
.atmo-surface {
  background:
    linear-gradient(180deg, rgba(255, 250, 246, .55) 0%, rgba(255, 255, 255, 0) 220px);
}
[data-theme="zhimeng"] .atmo-surface {
  background: linear-gradient(180deg, rgba(28, 36, 54, .5) 0%, rgba(0, 0, 0, 0) 220px);
}
[data-theme="coquette"] .atmo-surface {
  background: linear-gradient(180deg, rgba(32, 18, 34, .5) 0%, rgba(0, 0, 0, 0) 220px);
}
