/* ===========================================================
   7788星光 Starlight — 情感陪伴网站 样式表
   设计语言：暖调淡蓝画布 + 柔光氛围 + 半透明白卡
   =========================================================== */

:root {
  --bg: #e8f5f9;
  --bg-deep: #dceff5;
  --card: rgba(255, 255, 255, 0.74);
  --card-solid: #ffffff;
  --ink: #1f1f1f;
  --ink-2: #555555;
  --ink-3: #777777;
  --muted: #99a8ae;
  --primary: #7aaec0;
  --primary-deep: #4e8ca3;
  --primary-soft: #e9f3f7;
  --pink: #ffb2c1;
  --pink-deep: #d98a9c;
  --pink-soft: #fdeef1;
  --honey: #d4a574;
  --honey-deep: #c08a55;
  --honey-soft: #f7efe3;
  --green: #c7e5d4;
  --green-deep: #5fa283;
  --green-soft: #edf7f2;
  --line: #d4e5eb;
  --line-soft: #e6eef1;
  --shadow-sm: 0 2px 12px rgba(78, 140, 163, 0.08);
  --shadow-md: 0 8px 26px rgba(78, 140, 163, 0.12);
  --shadow-lg: 0 18px 48px rgba(78, 140, 163, 0.16);
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --maxw: 1240px;
  --font: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --font-num: "Outfit", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  overflow-x: hidden;
}

/* 页面底层的柔光氛围（CSS 径向渐变，浏览器渲染更细腻） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 4%, rgba(255, 178, 193, 0.42), transparent 42%),
    radial-gradient(circle at 12% 22%, rgba(255, 245, 196, 0.5), transparent 40%),
    radial-gradient(circle at 68% 82%, rgba(199, 229, 212, 0.45), transparent 44%),
    radial-gradient(circle at 4% 74%, rgba(184, 196, 214, 0.36), transparent 40%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: rgba(122, 174, 192, 0.28); }

.wrap { width: min(100% - 64px, var(--maxw)); margin-inline: auto; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(150deg, #8dbecd, var(--primary));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(122, 174, 192, 0.4);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-size: 19px; letter-spacing: 0.02em; }
.brand-en { font-family: var(--font-num); font-size: 11px; color: var(--muted); letter-spacing: 0.16em; margin-left: 2px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 10px;
  font-size: 15px; color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--primary-deep); background: rgba(122, 174, 192, 0.1); }
.nav a.active { color: var(--ink); background: rgba(122, 174, 192, 0.16); font-weight: 600; }

.header-right { display: flex; align-items: center; gap: 14px; }
.relief-chip {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
}
.relief-chip b { font-family: var(--font-num); font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 14px;
  padding: 14px 30px; font-size: 15px; font-weight: 500;
  transition: transform 0.18s, box-shadow 0.22s, background 0.22s, color 0.22s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 10px 24px rgba(122, 174, 192, 0.38);
}
.btn-primary:hover { background: #6ba3b6; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(122, 174, 192, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.72); color: var(--primary-deep);
  border: 1px solid rgba(122, 174, 192, 0.55);
}
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 13px; border-radius: 999px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------------- 通用区块 ---------------- */
.section { padding: 76px 0; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.kicker {
  font-family: var(--font-num);
  font-size: 12px; font-weight: 500; letter-spacing: 0.28em;
  color: var(--primary-deep); text-transform: uppercase;
  margin-bottom: 10px;
}
.h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.14; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.25; font-weight: 700; margin: 0 0 12px; }
.h3 { font-size: 20px; font-weight: 700; margin: 0; }
.lead { font-size: 17px; color: var(--ink-2); margin: 18px 0 0; max-width: 40em; }
.sub { font-size: 15px; color: var(--ink-2); margin: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------------- 首页 Hero ---------------- */
.hero { padding: 92px 0 88px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 40px; align-items: center;
}
.hero h1 { margin: 0; }
.hero .lead { font-size: 18px; line-height: 1.9; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.trust { display: flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 13px; color: var(--ink-3); }
.trust svg { flex: none; }

.tarot-stage {
  position: relative; height: 430px;
  display: flex; align-items: center; justify-content: center;
}
.tarot-card {
  position: absolute; width: 190px; height: 290px; border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.tarot-card.back-1 {
  left: 6%; top: 8%;
  background: linear-gradient(150deg, rgba(212, 165, 116, 0.9), rgba(199, 229, 212, 0.78));
  transform: rotate(-8deg);
}
.tarot-card.back-2 {
  left: 26%; top: 18%;
  background: linear-gradient(150deg, rgba(255, 178, 193, 0.92), rgba(122, 174, 192, 0.8));
  transform: rotate(-3deg);
}
.tarot-card.front {
  left: 46%; top: 26%;
  background: rgba(255, 255, 255, 0.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 20px;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.tarot-card.front .card-name { font-size: 18px; font-weight: 600; }
.tarot-card.front .card-en { font-family: var(--font-num); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.tarot-card.front .card-line { width: 56px; height: 1px; background: var(--line); }
.tarot-card.front .card-kw { font-size: 11px; color: var(--ink-3); }

/* ---------------- 四大入口 ---------------- */
.entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.entry {
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  position: relative; overflow: hidden;
}
.entry:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(122, 174, 192, 0.4); }
.entry-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
}
.entry-icon svg { width: 26px; height: 26px; }
.entry h3 { font-size: 20px; }
.entry p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.75; flex: 1; }
.entry-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
.entry-arrow { transition: transform 0.22s; }
.entry:hover .entry-arrow { transform: translateX(4px); }

.tone-honey .entry-icon { background: var(--honey-soft); }
.tone-honey .entry-meta { color: var(--honey-deep); }
.tone-pink .entry-icon { background: var(--pink-soft); }
.tone-pink .entry-meta { color: var(--pink-deep); }
.tone-blue .entry-icon { background: var(--primary-soft); }
.tone-blue .entry-meta { color: var(--primary-deep); }
.tone-green .entry-icon { background: var(--green-soft); }
.tone-green .entry-meta { color: var(--green-deep); }

/* ---------------- 咨询师卡片 ---------------- */
.consultant-list { display: flex; flex-direction: column; gap: 18px; }
.consultant {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 250px 150px 130px;
  gap: 24px; align-items: center;
  padding: 24px 26px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.consultant:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 700; color: #fff;
  letter-spacing: 0.02em;
  flex: none;
}
.avatar.lg { width: 72px; height: 72px; font-size: 22px; }
.c-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.c-name { font-size: 18px; font-weight: 700; }
.badge {
  font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 999px;
  white-space: nowrap;
}
.badge-honey { background: var(--honey-soft); color: var(--honey-deep); }
.badge-pink { background: var(--pink-soft); color: var(--pink-deep); }
.badge-blue { background: var(--primary-soft); color: var(--primary-deep); }
.badge-green { background: var(--green-soft); color: var(--green-deep); }
.c-qual { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tag {
  font-size: 12px; padding: 3px 12px; border-radius: 999px;
  border: 1px solid currentColor; opacity: 0.92;
}
.c-exp { display: flex; flex-direction: column; gap: 8px; }
.c-exp-top { display: flex; justify-content: space-between; font-size: 12px; }
.c-exp-top span { color: var(--muted); }
.c-exp-top b { font-family: var(--font-num); color: var(--primary-deep); font-weight: 600; }
.bar { height: 6px; border-radius: 999px; background: #e3edf1; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; }
.c-rate { text-align: right; }
.c-rate b { font-family: var(--font-num); font-size: 24px; display: block; line-height: 1.2; }
.c-rate span { font-size: 11px; color: var(--ink-3); }
.c-action { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.c-price { font-family: var(--font-num); font-size: 15px; font-weight: 600; color: var(--ink); }
.c-status { font-size: 11px; color: var(--green-deep); display: inline-flex; align-items: center; gap: 5px; }
.c-status.busy { color: var(--honey-deep); }
.c-status.off { color: var(--muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* 筛选条 */
.filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.62);
  color: var(--ink-2); border-radius: 999px; padding: 8px 18px; font-size: 14px;
  transition: all 0.18s;
}
.chip:hover { border-color: rgba(122, 174, 192, 0.6); color: var(--primary-deep); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(122, 174, 192, 0.34); }
.search-field {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; min-width: 240px;
}
.search-field input { border: none; background: transparent; outline: none; font-size: 14px; width: 100%; font-family: inherit; color: var(--ink); }

/* ---------------- 游戏区 ---------------- */
.games-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 24px; align-items: start; }
.stress-panel { padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.stress-panel .label { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.ring-wrap { position: relative; width: 168px; height: 168px; }
.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: #e3edf1; stroke-width: 12; }
.ring-fill { fill: none; stroke: var(--primary); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.ring-center {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
}
.ring-center b { font-family: var(--font-num); font-size: 34px; line-height: 1; display: block; }
.ring-center span { font-size: 12px; color: var(--muted); }
.stat-row { display: flex; width: 100%; justify-content: space-around; }
.stat { text-align: center; }
.stat b { font-family: var(--font-num); font-size: 22px; display: block; }
.stat span { font-size: 12px; color: var(--ink-3); }
.tip-box {
  width: 100%; display: flex; gap: 8px; align-items: center;
  background: var(--green-soft); border-radius: 12px; padding: 12px 14px;
  font-size: 12px; color: var(--green-deep); line-height: 1.6;
}

.game-list { display: flex; flex-direction: column; gap: 16px; }
.game-item {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 18px; align-items: center; padding: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.game-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.game-thumb {
  height: 84px; border-radius: 14px; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.game-thumb svg { width: 34px; height: 34px; opacity: 0.92; }
.game-item h3 { font-size: 17px; margin-bottom: 4px; }
.game-item p { margin: 0; font-size: 13px; color: var(--ink-2); }
.game-meta { font-size: 12px; color: var(--primary-deep); font-weight: 500; margin-top: 8px; }
.game-item .play { align-self: center; }

/* 游戏弹层 */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(31, 47, 54, 0.42);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-mask.open { display: flex; }
.modal {
  background: #fbfeff; border-radius: 26px; width: min(760px, 100%);
  max-height: 90vh; overflow: auto;
  box-shadow: 0 30px 80px rgba(31, 47, 54, 0.3);
  padding: 28px;
  animation: pop 0.28s ease;
}
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.modal-head h3 { font-size: 22px; margin: 0 0 6px; }
.modal-head p { margin: 0; font-size: 13px; color: var(--ink-2); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); display: grid; place-items: center; flex: none;
}
.icon-btn:hover { color: var(--ink); border-color: var(--primary); }

/* 泡泡游戏 */
.bubble-area {
  position: relative; height: 380px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, #eef8fb, #f9f4ee 60%, #fdeef1);
  border: 1px solid var(--line);
  touch-action: manipulation;
}
.bubble {
  position: absolute; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; color: #3f6472; text-align: center;
  padding: 6px; cursor: pointer;
  animation: bubbleIn 0.4s ease, drift 6s ease-in-out infinite;
  transition: transform 0.18s, opacity 0.24s;
  user-select: none;
}
.bubble:hover { transform: scale(1.08); }
.bubble.pop { transform: scale(1.6); opacity: 0; pointer-events: none; }
@keyframes bubbleIn { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes drift {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -14px; }
}

/* 拼图 */
.puzzle-wrap { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.puzzle-board {
  display: grid; grid-template-columns: repeat(3, 96px); grid-template-rows: repeat(3, 96px);
  gap: 6px; padding: 6px; background: #eef5f8; border-radius: 16px;
  border: 1px solid var(--line);
}
.tile {
  border-radius: 10px; cursor: pointer; position: relative;
  transition: transform 0.14s, box-shadow 0.14s;
  background-image: linear-gradient(135deg, #cfe9f0 0%, #9ec9d6 34%, #ffc9d4 68%, #efe1c9 100%);
  background-size: 300% 300%;
}
.tile:hover { transform: scale(0.97); }
.tile.empty { background: #eef5f8; background-image: none; cursor: default; box-shadow: inset 0 0 0 1px var(--line-soft); }
.puzzle-side { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 12px; }
.puzzle-side .kv { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.puzzle-side .kv b { font-family: var(--font-num); color: var(--ink); }

/* 调色盘 */
.palette-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.color-chip {
  border: 2px solid transparent; border-radius: 14px; padding: 12px;
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  background: #fff; box-shadow: var(--shadow-sm);
  transition: transform 0.16s, border-color 0.16s;
}
.color-chip:hover { transform: translateY(-2px); }
.color-chip.selected { border-color: var(--primary); }
.swatch { width: 22px; height: 22px; border-radius: 7px; flex: none; }
.palette-canvas {
  height: 180px; border-radius: 18px; margin-top: 16px;
  border: 1px solid var(--line);
  background: #f2f7f9;
  transition: background 0.6s ease;
  display: grid; place-items: center;
  font-size: 13px; color: rgba(31, 31, 31, 0.55);
}

/* ---------------- 树洞 ---------------- */
.tree-layout { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 28px; align-items: start; }
.composer { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.composer textarea {
  width: 100%; min-height: 150px; resize: vertical; font-family: inherit;
  font-size: 15px; line-height: 1.8; padding: 16px; border-radius: 16px;
  border: 1px solid var(--line); background: #fff; outline: none; color: var(--ink);
}
.composer textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(122, 174, 192, 0.14); }
.mood-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mood {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 14px; font-size: 13px; color: var(--ink-2); transition: all 0.16s;
}
.mood.active { color: #fff; border-color: transparent; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: #d9e6ea; position: relative; transition: background 0.2s; outline: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { transform: translateX(16px); }

.post-list { display: flex; flex-direction: column; gap: 14px; }
.post { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.post-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff; font-weight: 600; flex: none; }
.post-name { font-size: 14px; font-weight: 600; }
.post-time { font-size: 11px; color: var(--muted); margin-left: auto; font-family: var(--font-num); }
.post-body { font-size: 15px; line-height: 1.85; color: #2f3b40; white-space: pre-wrap; word-break: break-word; }
.post-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.react {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 5px 14px; font-size: 12px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px; transition: all 0.16s;
}
.react:hover { border-color: var(--primary); color: var(--primary-deep); }
.react.done { background: var(--primary-soft); border-color: rgba(122, 174, 192, 0.5); color: var(--primary-deep); }
.reply {
  background: rgba(255, 255, 255, 0.8); border-left: 2px solid var(--pink);
  padding: 10px 14px; border-radius: 0 12px 12px 0; font-size: 13px; color: var(--ink-2);
  line-height: 1.8;
}
.empty-state { padding: 46px 24px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------------- 塔罗 ---------------- */
.tarot-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.draw-stage {
  min-height: 340px; display: flex; align-items: center; justify-content: center;
  gap: 22px; flex-wrap: wrap;
  padding: 36px; border-radius: var(--r-xl);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.7), rgba(233, 243, 247, 0.55));
  border: 1px solid var(--line);
}
.draw-hint { text-align: center; color: var(--ink-2); font-size: 14px; max-width: 420px; }
.draw-hint b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.tcard {
  width: 172px; height: 264px; border-radius: 16px; perspective: 900px; flex: none;
}
.tcard-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}
.tcard.flipped .tcard-inner { transform: rotateY(180deg); }
.tcard-face {
  position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 16px; text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-md);
}
.tcard-back {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(150deg, #8fb9c7, #6f9fb0 55%, #b9a58c);
  color: rgba(255, 255, 255, 0.9);
}
.tcard-front {
  background: rgba(255, 255, 255, 0.95); transform: rotateY(180deg);
  border-color: var(--line);
}
.tcard-front .pos { font-size: 11px; letter-spacing: 0.16em; color: var(--muted); font-family: var(--font-num); text-transform: uppercase; }
.tcard-front .nm { font-size: 17px; font-weight: 700; }
.tcard-front .en { font-family: var(--font-num); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.tcard-front .rev { font-size: 11px; color: var(--pink-deep); }
.tcard-front .glyph { margin: 4px 0; }
.reading { margin-top: 28px; display: grid; gap: 14px; }
.reading-item { padding: 20px 24px; }
.reading-item h4 { margin: 0 0 6px; font-size: 15px; }
.reading-item p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.85; }
.history-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.history-item { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--ink-2); padding: 12px 16px; background: rgba(255, 255, 255, 0.6); border-radius: 12px; border: 1px solid var(--line); }
.history-item b { color: var(--ink); font-weight: 600; }
.history-item span.time { margin-left: auto; font-family: var(--font-num); font-size: 11px; color: var(--muted); }

/* ---------------- CTA / 页脚 ---------------- */
.cta-band {
  padding: 76px 0; text-align: center;
  background: linear-gradient(100deg, rgba(220, 239, 245, 0.9), rgba(253, 238, 241, 0.9));
  border-top: 1px solid rgba(212, 229, 235, 0.8);
  border-bottom: 1px solid rgba(212, 229, 235, 0.8);
}
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 12px; }
.cta-band p { color: var(--ink-2); margin: 0 0 28px; font-size: 16px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.site-footer { padding: 56px 0 32px; background: rgba(255, 255, 255, 0.72); border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 0.7fr)); gap: 40px; }
.footer-brand p { color: var(--ink-2); font-size: 13px; line-height: 1.9; max-width: 32em; margin: 14px 0 0; }
.footer-col h4 { font-size: 14px; margin: 0 0 14px; }
.footer-col a { display: block; font-size: 13px; color: var(--ink-2); padding: 5px 0; transition: color 0.16s; }
.footer-col a:hover { color: var(--primary-deep); }
.footer-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}

/* ---------------- 提示 Toast ---------------- */
.toast-stack { position: fixed; right: 24px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: rgba(31, 47, 54, 0.92); color: #fff; font-size: 13px;
  padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg);
  animation: toastIn 0.26s ease;
  max-width: 320px; line-height: 1.6;
}
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------------- 预约弹层 ---------------- */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.slot {
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 12px; font-size: 13px; color: var(--ink-2); transition: all 0.16s;
}
.slot:hover { border-color: var(--primary); color: var(--primary-deep); }
.slot.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.form-row { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.form-row label { font-size: 13px; color: var(--ink-2); }
.form-row input, .form-row select {
  font-family: inherit; font-size: 14px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; outline: none; color: var(--ink);
}
.form-row input:focus, .form-row select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(122, 174, 192, 0.14); }
.modal-actions { display: flex; gap: 12px; margin-top: 22px; justify-content: flex-end; }
.result-box { text-align: center; padding: 28px 12px; }
.result-box .big { font-family: var(--font-num); font-size: 48px; font-weight: 700; color: var(--primary-deep); line-height: 1.1; }
.result-box p { color: var(--ink-2); font-size: 14px; margin: 10px 0 20px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .entry-grid { grid-template-columns: repeat(2, 1fr); }
  .consultant { grid-template-columns: 64px minmax(0, 1fr) 200px 120px; }
  .c-action { display: none; }
  .games-layout { grid-template-columns: 1fr; }
  .tree-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .wrap { width: min(100% - 36px, var(--maxw)); }
  .nav { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .tarot-stage { height: 330px; }
  .tarot-card { width: 150px; height: 230px; }
  .consultant { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; }
  .c-exp, .c-rate { grid-column: 2; text-align: left; }
  .c-rate b { font-size: 20px; }
  .c-exp { max-width: 260px; }
  .section { padding: 52px 0; }
  .entry-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .modal { padding: 20px; }
  .bubble-area { height: 320px; }
  .puzzle-board { grid-template-columns: repeat(3, 84px); grid-template-rows: repeat(3, 84px); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===========================================================
   账号 / 登录弹层 / 我的空间（云端版新增）
   =========================================================== */
.account-slot { display: flex; align-items: center; }
.account-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); text-decoration: none;
  transition: border-color .2s, color .2s, transform .2s;
}
.account-chip:hover { border-color: var(--primary); color: var(--primary-deep); transform: translateY(-1px); }
.account-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(140deg, var(--primary), var(--primary-deep));
  color: #fff; display: grid; place-items: center;
  font-size: 12px; font-weight: 600; flex: none;
}
.account-name { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.auth-modal { width: min(440px, 100%); }
.auth-tabs { display: flex; gap: 4px; background: #eef5f8; padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.auth-tab {
  flex: 1; padding: 9px 0; border: none; background: transparent; border-radius: 9px;
  font-size: 14px; color: var(--ink-2); cursor: pointer; font-family: inherit; transition: background .2s, color .2s;
}
.auth-tab.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.auth-field input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
  font-size: 15px; font-family: inherit; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.auth-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(122, 174, 192, 0.16); }
.auth-code-row { display: flex; gap: 10px; }
.auth-code-row input { flex: 1; min-width: 0; }
.auth-code-row .btn { flex: none; height: 44px; padding: 0 16px; }
.auth-error { color: #c0566b; font-size: 13px; min-height: 18px; margin: 2px 0 10px; }
.auth-submit { width: 100%; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0 14px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-others { display: flex; gap: 10px; }
.auth-others .btn { flex: 1; justify-content: center; }
.auth-note { font-size: 11px; color: var(--muted); margin: 16px 0 0; line-height: 1.7; }

.auth-hint {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--honey-soft); color: #8a6a45;
  font-size: 12.5px; padding: 10px 14px; border-radius: 12px;
}
.auth-hint[hidden] { display: none; }
.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--primary-deep); font-size: 13px; font-family: inherit;
  text-decoration: underline; text-underline-offset: 3px;
}
.badge-muted { background: #eef1f2; color: #8a9599; }
.is-muted { opacity: 0.6; }
.reply-more { font-size: 12px; color: var(--muted); margin-top: 6px; }
.reply-tips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-sug {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; color: var(--ink-2);
  cursor: pointer; font-family: inherit; transition: border-color .2s, color .2s;
}
.chip-sug:hover { border-color: var(--primary); color: var(--primary-deep); }
.modal textarea {
  width: 100%; min-height: 110px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff;
  font-family: inherit; font-size: 14px; line-height: 1.7; color: var(--ink);
  resize: vertical;
}
.modal textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(122, 174, 192, 0.16); }

.profile-card { padding: 26px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(140deg, var(--primary), var(--primary-deep));
  color: #fff; display: grid; place-items: center;
  font-size: 24px; font-weight: 600; flex: none;
}
.me-name-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nick-input {
  padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font-size: 15px; font-family: inherit; color: var(--ink);
  min-width: 180px; flex: 1; max-width: 280px;
}
.nick-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(122, 174, 192, 0.16); }
.me-stat-row { display: flex; gap: 34px; flex-wrap: wrap; }
.me-stat b { display: block; font-family: var(--font-num); font-size: 26px; color: var(--primary-deep); line-height: 1.2; }
.me-stat span { font-size: 12px; color: var(--ink-3); }
.me-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.me-tab {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8); font-size: 14px; color: var(--ink-2);
  cursor: pointer; font-family: inherit; transition: all .2s;
}
.me-tab:hover { border-color: var(--primary); color: var(--primary-deep); }
.me-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.me-meta { font-size: 12px; color: var(--muted); }
.post-list > * + * { margin-top: 14px; }
#me-root .history-item + .history-item { margin-top: 10px; }

@media (max-width: 860px) {
  .relief-chip { display: none; }
  .account-name { display: none; }
  .auth-others { flex-direction: column; }
  .me-stat-row { gap: 22px; }
}

/* 本机预览提示 */
.cloud-notice {
  position: fixed; left: 20px; bottom: 20px; z-index: 180;
  max-width: 300px; padding: 10px 14px;
  background: #fff7e6; border: 1px solid #f0d9b5; border-radius: 12px;
  color: #8a6a45; font-size: 12px; line-height: 1.6;
  box-shadow: var(--shadow-md);
}

/* ===========================================================
   内容安全与危机干预（树洞 / 全站页脚）
   =========================================================== */
.safety-note {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 11px 14px; border-radius: 12px;
  background: #F4F8FA; border: 1px solid #E1ECF0;
  color: #6B7C82; font-size: 12px; line-height: 1.7;
}
.safety-note svg { flex: none; margin-top: 2px; color: #7AAEC0; }
.safety-note a {
  color: #B8607A; font-weight: 600; text-decoration: none;
  border-bottom: 1px dashed currentColor;
}

.safety-mask .safety-panel { width: min(500px, 100%); padding: 26px 26px 22px; }
.safety-crisis .safety-panel { border-top: 3px solid #E6A8B9; }
.safety-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.safety-badge {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: #FDEEF1; color: #C4708A;
}
.safety-badge-warn { background: #FBF0E4; color: #C08A55; }
.safety-badge-soft { background: #E9F3F7; color: #4E8CA3; }
.safety-head h3 { margin: 0; font-size: 19px; line-height: 1.45; }
.safety-lead { margin: 0 0 6px; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.safety-hotline {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 16px 18px; margin: 16px 0 14px;
  border-radius: 14px; background: #FDF3F5; border: 1px solid #F6DCE3;
}
.safety-hotline-info b {
  display: block; font-family: var(--font-num); font-size: 30px;
  line-height: 1.1; color: #B8607A; letter-spacing: 0.5px;
}
.safety-hotline-info span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.safety-hotline-info em { display: block; font-size: 11.5px; font-style: normal; color: var(--ink-3); margin-top: 2px; }
.safety-list { margin: 0 0 4px; padding-left: 20px; font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }
.safety-tip { margin: 12px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--ink-3); }
.safety-actions { justify-content: space-between; flex-wrap: wrap; }

.footer-help {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 26px; padding: 13px 18px; border-radius: 13px;
  background: rgba(253, 243, 245, 0.85); border: 1px solid #F3E0E6;
  font-size: 12.5px; color: #7A6A6E; line-height: 1.7;
}
.footer-help-tag {
  flex: none; padding: 3px 10px; border-radius: 999px;
  background: #fff; color: #B8607A; font-size: 11.5px; font-weight: 600;
}
.footer-help a {
  color: #B8607A; font-weight: 700; text-decoration: none;
  border-bottom: 1px dashed currentColor;
}

@media (max-width: 640px) {
  .safety-hotline { flex-direction: column; align-items: flex-start; }
  .safety-hotline .btn { width: 100%; justify-content: center; }
  .safety-actions .btn { flex: 1; justify-content: center; }
}

.safety-list li::marker { color: #C4708A; }
.safety-panel .btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(122, 174, 192, 0.22); }

/* ===========================================================
   树洞：心情筛选 + 举报入口
   =========================================================== */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-chip {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  font-size: 12.5px; color: var(--ink-2);
  cursor: pointer; font-family: inherit; transition: all .2s;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary-deep); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.react-quiet { color: var(--muted); font-size: 12.5px; }
.react-quiet:hover { color: #C4708A; border-color: #E6A8B9; }

.reply-report {
  margin-left: 8px; padding: 0; border: none; background: none;
  color: var(--muted); font-size: 11.5px; cursor: pointer;
  font-family: inherit; opacity: .7; transition: color .2s, opacity .2s;
}
.reply-report:hover { color: #C4708A; opacity: 1; }

.report-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.reason-chip {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; color: var(--ink-2);
  cursor: pointer; font-family: inherit; transition: all .2s;
}
.reason-chip:hover { border-color: var(--primary); color: var(--primary-deep); }
.reason-chip.active { background: #FDEEF1; border-color: #E6A8B9; color: #B8607A; }
