/* ============================================================
   山宛 · tokens.css（v9 共享设计令牌）
   时间印记 + 漂流物产品
   ============================================================ */

/* P0 · 浏览器默认 [hidden] 行为易被 display:flex/block 覆盖，全局强制生效 */
[hidden] { display: none !important; }

:root {
  /* ============================================================
     山宛 v10.1.0 · 山海信箱 · 主色板
     比例：沙土/信纸 60% / 土色 25% / 海+苔绿 10% / 火漆 5%
     ============================================================ */
  --sea-deep:    #39575B;   /* 深海水：辅助 */
  --sea:         #5E7F84;   /* 海色：等待/相遇 */
  --earth:       #6F4E37;   /* 深土褐：正文 */
  --terracotta:  #B5623F;   /* 陶土红：主按钮、寄信 */
  --clay:        #D9A37D;   /* 陶土浅：标签 */
  --ochre:       #C99A4F;   /* 赭石：徽标 */
  --moss:        #6F7E5A;   /* 苔绿：已回信 */
  --sand:        #F1E7D5;   /* 沙土：页面底色 */
  --paper:       #FFF9EE;   /* 信纸：卡片 */
  --stone:       #A99D8E;   /* 弱化文字 */
  --seal:        #A93F3F;   /* 火漆红：配对成功 */

  /* —— 派生中性色 —— */
  --ink:         #3A2E26;   /* 主文（土褐加深） */
  --ink-soft:    #6F5A4A;   /* 次要 */
  --ink-faint:   #A99D8E;   /* 辅助 = --stone */
  --paper-deep:  #FBF1DC;   /* 卡片 hover */
  --paper-blank: #FFF9EE;   /* = --paper */
  --paper-light: #FAF1DE;   /* 输入框底 */
  --sea-soft:    #A8C2BC;   /* 浅海（海面渐变浅端） */
  --lagoon:      #C8DAD5;   /* 沙滩边浅水 */
  --accent:      var(--terracotta);
  --accent-soft: var(--clay);
  --warm:        var(--clay);
  --ok:          var(--moss);
  --warn:        var(--terracotta);

  /* —— 旧版兼容别名（不要在新代码用） —— */
  --sea-foam:    #DCE5E0;
  --sea-mist:    #F1E7D5;   /* = --sand */
  --island:      var(--paper);

  /* —— 圆角（spec：主按钮 ≤8px，不使用大胶囊） —— */
  --r-sm: 4px;
  --r-md: 6px;     /* 主按钮 */
  --r-lg: 8px;     /* 卡片 */
  --r-pill: 999px;  /* tab bar / chip */

  /* —— 阴影 —— */
  --shadow:       0 1px 3px rgba(57, 87, 91, 0.08);
  --shadow-soft:  0 1px 2px rgba(57, 87, 91, 0.05);
  --shadow-card:  0 1px 3px rgba(57, 87, 91, 0.06), 0 6px 16px rgba(57, 87, 91, 0.10);
  --shadow-seal:  0 2px 12px rgba(169, 63, 63, 0.35);

  /* —— 间距 —— */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;  --s-4: 16px;  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;

  /* —— 触摸热区 —— */
  --touch: 44px;

  /* —— 字体（spec：UI / 信正文 / 手写） —— */
  --sans:  "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "LXGW WenKai", "KaiTi", "Noto Serif SC", "Songti SC", "PingFang SC", sans-serif;
  --hand:  "Caveat", "LXGW WenKai", "Hannotate SC", "KaiTi", "PingFang SC", cursive;

  /* —— 动效 —— */
  --bobbing: bobbing 6s ease-in-out infinite;
  --tide-slow: tide 12s linear infinite;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ============================================================
   v10.1.0 山宛 · 山海信箱 · 全局基础
   ============================================================ */
html, body {
  margin: 0; padding: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    /* 浅沙土渐变 */
    linear-gradient(180deg,
      var(--sand) 0%,
      #F5EBD8 40%,
      var(--sand) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}
/* 等高线纹理（浅）+ 信件纹理（重复）：双层叠加 */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  background-image:
    /* 沙土颗粒 */
    radial-gradient(circle at 25% 30%, rgba(169, 157, 142, 0.10) 0%, transparent 35%),
    radial-gradient(circle at 75% 60%, rgba(217, 163, 125, 0.08) 0%, transparent 40%),
    /* 等高线（很浅的横线） */
    repeating-linear-gradient(180deg,
      transparent 0,
      transparent 80px,
      rgba(111, 78, 55, 0.025) 80px,
      rgba(111, 78, 55, 0.025) 81px);
  background-size: 100% 100%, 100% 100%, 100% 200px;
}

/* v9.4.5 岛·海结构：body 当海（radial-gradient 从右上光源）
   v9.4.5 fix：使用 html 元素（避免 body 在 mobile/iframe 的渲染问题）
   + 移除 body::before noise（避免覆盖海色） */
html.island-html,
body.island-body {
  background:
    radial-gradient(120% 90% at 70% 10%, var(--lagoon) 0%, var(--sea) 45%, var(--sea-deep) 100%) !important;
  background-attachment: fixed !important;
  min-height: 100vh;
}
/* v9.4.5 fix：island-body 时禁用 body::before noise filter（避免覆盖海色） */
body.island-body::before { display: none !important; }

body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; opacity: 0.4;
  /* 双层叠加：等高线横线 + 沙土颗粒 */
  background-image:
    /* 沙土颗粒（极浅） */
    radial-gradient(circle at 25% 30%, rgba(217, 163, 125, 0.10) 0%, transparent 35%),
    radial-gradient(circle at 75% 60%, rgba(169, 157, 142, 0.08) 0%, transparent 40%),
    /* 等高线（很浅的横线，每 80px 一道） */
    repeating-linear-gradient(180deg,
      transparent 0,
      transparent 80px,
      rgba(111, 78, 55, 0.04) 80px,
      rgba(111, 78, 55, 0.04) 81px);
  background-size: 100% 100%, 100% 100%, 100% 200px;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
a:hover { color: var(--ink); border-bottom-color: var(--ink-soft); }

/* —— 页面容器 —— */
.page {
  position: relative; z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px 80px;
}
.page-wide {
  max-width: 1040px;
  padding: 24px 28px 80px;
}

/* v9.4.2 岛·海结构：page 岛面
   - 只对 .island-page 生效
   - 桌面端：page 浮在 body 海中，圆角 + 海色 box-shadow
   - 移动端：page 占满屏幕，加顶部"海岸过渡带"（深海→海平线→浅滩→纸） */
.island-page {
  background: var(--island);
  border-radius: 10px;
  margin: 18px auto;
  padding: 24px 26px 60px;
  box-shadow: 0 8px 30px rgba(30, 55, 60, 0.16), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}
/* 移动端：page 占满屏幕时没有 body 海，改为顶部加"海岸过渡带"
   v9.4.2 fix：改成纯 CSS 渐变（避免 SVG data url 渲染失败） */
.island-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: linear-gradient(180deg,
    var(--sea-deep) 0%,
    var(--sea) 25%,
    var(--lagoon) 60%,
    var(--sand) 92%,
    var(--island) 100%);
  pointer-events: none;
  z-index: 0;
}
.island-page > * { position: relative; z-index: 1; }
/* 移动端隐藏：page 占满屏幕时不显示岛面的圆角+阴影（body 海看不见） */
@media (max-width: 720px) {
  .island-page {
    border-radius: 0;
    margin: 0;
    padding: 70px 14px 60px;  /* 顶部留 70px 给海岸过渡带 */
    box-shadow: none;
    border: none;
  }
}

/* —— 海面背景（漂流台/解锁页用）—— */
.sea-bg {
  background:
    linear-gradient(180deg, var(--sea-mist) 0%, var(--paper) 60%);
  position: relative;
  overflow: hidden;
}
.sea-bg::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(82, 113, 125, 0.08), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(82, 113, 125, 0.05), transparent 50%);
  pointer-events: none; z-index: 0;
}

/* v9.4.5 漂流台海面场景：page 海面渐变（不用 fixed，避免 mobile/iframe 不稳）
   hero / cards 浮在 page 上（用 box-shadow + 半透明） */
.drift-page {
  /* 顶部深海 → 中部海面 → 下部浅滩 → 底部沙滩 */
  background: linear-gradient(180deg,
    var(--sea-deep) 0%,
    var(--sea) 28%,
    var(--lagoon) 65%,
    var(--sand) 100%) !important;
  min-height: 100vh;
  position: relative;
  --island: var(--paper-blank);
}

/* —— 动画 —— */
@keyframes bobbing {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@keyframes tide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-40px); }
}
/* v9.4.1 漂流感：动点缓慢左右移动（"正在靠近"主角标题旁小活点） */
@keyframes drift-approach {
  0%, 100% { transform: translateX(0);   opacity: 0.6; }
  50%      { transform: translateX(8px); opacity: 1; }
}
/* v9.4.1：纸船微晃（空海/海面地图用） */
@keyframes boat-sway {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(2px, -1px) rotate(1.5deg); }
}
/* v9.4.1：海平线海浪缓慢移动（背景用） */
@keyframes tide-bg {
  0%   { background-position: 0 0; }
  100% { background-position: -200px 0; }
}
.bobbing  { animation: var(--bobbing); }
.tide     { animation: var(--tide-slow); }
.drift-approach { animation: drift-approach 3.5s ease-in-out infinite; }
.boat-sway      { animation: boat-sway 5s ease-in-out infinite; }

/* —— 锯齿票根（漂流台用）—— */
.ticket-edge {
  --notch: 8px;
  -webkit-mask:
    radial-gradient(circle 4px at 0 50%, transparent 98%, #000) 0 / var(--notch) 100%,
    linear-gradient(#000, #000);
  -webkit-mask-composite: source-in;
          mask:
    radial-gradient(circle 4px at 0 50%, transparent 98%, #000) 0 / var(--notch) 100%,
    linear-gradient(#000, #000);
          mask-composite: intersect;
}

/* ============================================================
   v9.6.0 漂流瓶互动页 · 海滩场景
   - 整页是手绘线条 SVG 海滩（天空+远海+灯塔+远船+沙滩）
   - 沙滩上 2 个瓶子 CTA：丢一个 / 捞一个
   ============================================================ */
.drift-bottle-stage {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 24px;
  /* 桌面/移动自适应（用 aspect-ratio） */
  aspect-ratio: 9 / 16;
  max-height: 720px;
  background: linear-gradient(180deg,
    #B5D8E0 0%,        /* 天空浅青 */
    #95C0CC 35%,       /* 远海上 */
    #7DA9B7 60%,       /* 远海 */
    #C8B89A 88%,       /* 沙滩 */
    #B59C7B 100%);     /* 沙底 */
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(47, 70, 84, 0.20), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.drift-bottle-stage .stage-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* 沙滩上的两个 CTA 按钮 */
.drift-bottle-stage .bottle-cta {
  position: absolute;
  bottom: 18%;
  width: 38%;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s;
  z-index: 2;
}
.drift-bottle-stage .bottle-cta.left  { left: 8%; }
.drift-bottle-stage .bottle-cta.right { right: 8%; }
.drift-bottle-stage .bottle-cta:hover {
  transform: translateY(-3px);
}
.drift-bottle-stage .bottle-cta .bottle-icon-cta {
  width: 64px; height: 84px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(60, 50, 40, 0.18));
}
.drift-bottle-stage .bottle-cta .cta-label {
  font-family: var(--hand);
  font-size: 17px;
  color: var(--ink);
  letter-spacing: 2px;
  margin-top: 4px;
}
.drift-bottle-stage .bottle-cta .cta-hint {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .drift-bottle-stage {
    aspect-ratio: 3 / 4;
    max-height: none;
  }
  .drift-bottle-stage .bottle-cta .bottle-icon-cta {
    width: 50px; height: 66px;
  }
  .drift-bottle-stage .bottle-cta .cta-label {
    font-size: 15px;
  }
}

/* ============================================================
   v9.7.0 漂流物详情 · 3 状态切换
   - locked: 瓶子 + 模糊内容
   - opening: 瓶塞弹出 + 瓶子倾斜晃动 + 瓶子淡出
   - letter: 只有信纸
   ============================================================ */

/* 打开动画：瓶子倾斜晃动（开始取信） */
@keyframes bottle-tilt {
  0%   { transform: rotate(0deg) translateY(0); }
  20%  { transform: rotate(-4deg) translateY(-2px); }
  40%  { transform: rotate(4deg) translateY(-1px); }
  60%  { transform: rotate(-3deg) translateY(-3px); }
  80%  { transform: rotate(2deg) translateY(-1px); }
  100% { transform: rotate(0deg) translateY(0); }
}
/* 瓶塞向上弹出（同步 0.9s） */
@keyframes cork-pop {
  0%   { transform: translateY(0) rotate(0); opacity: 1; }
  60%  { transform: translateY(0) rotate(0); opacity: 1; }
  85%  { transform: translateY(-46px) rotate(-12deg); opacity: 0.85; }
  100% { transform: translateY(-58px) rotate(-18deg); opacity: 0; }
}
/* 信纸从底部展开 */
@keyframes letter-unfold {
  0%   { transform: translateY(40px) scale(0.96); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
/* 瓶子淡出（取信完成） */
@keyframes bottle-fade {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.85); }
}

/* 锁定视图：瓶子包装 */
.bottle-stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
  padding: 16px 0 8px;
  transition: opacity 0.4s;
}
.bottle-stage .bottle-art {
  width: 96px; height: 128px;
  display: block;
  position: relative;
}
.bottle-stage .bottle-art svg {
  width: 100%; height: 100%;
  display: block;
}
/* 瓶塞单独 group，方便 pop 动画 */
.bottle-stage .bottle-art .bottle-cork {
  transform-origin: 50% 8%;
}
/* opening 状态：所有动画开跑 */
.bottle-stage.opening {
  animation: bottle-fade 0.4s ease 0.6s forwards;
}
.bottle-stage.opening .bottle-art {
  animation: bottle-tilt 0.55s ease-in-out;
}
.bottle-stage.opening .bottle-art .bottle-cork {
  animation: cork-pop 0.9s ease-out forwards;
}

/* 信纸（letter 视图） */
.letter-view {
  background: linear-gradient(180deg, var(--paper-blank) 0%, #FBF5EA 100%);
  border: 1px solid rgba(60, 50, 40, 0.12);
  border-radius: var(--r-md);
  padding: 28px 26px 24px;
  margin: 16px 0;
  position: relative;
  box-shadow: 0 6px 20px rgba(60, 50, 40, 0.10), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  font-family: var(--hand);
  animation: letter-unfold 0.6s ease-out;
}
.letter-view .letter-from {
  font-family: var(--hand);
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 2px;
  text-align: center;
  margin: 0 0 6px;
  font-weight: 500;
}
.letter-view .letter-greeting {
  font-family: var(--hand);
  font-size: 16px;
  color: var(--ink-soft);
  margin: 16px 0 12px;
  letter-spacing: 1px;
}
.letter-view .letter-body {
  font-family: var(--hand);
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink);
  letter-spacing: 0.5px;
  white-space: pre-wrap;
  margin: 0 0 20px;
  min-height: 60px;
}
.letter-view .letter-sign {
  font-family: var(--hand);
  font-size: 14px;
  color: var(--ink-soft);
  text-align: right;
  letter-spacing: 0.5px;
  line-height: 1.6;
  margin: 0 0 4px;
}
.letter-view .letter-sign strong { color: var(--ink); font-weight: 500; }
/* 已回信印章（信纸右上角） */
.letter-view .letter-stamp {
  position: absolute;
  top: 12px; right: 14px;
  font-family: var(--hand);
  font-size: 11px;
  color: var(--warm);
  background: rgba(201, 140, 112, 0.10);
  border: 1.2px solid var(--warm);
  border-radius: 50%;
  padding: 12px 10px;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 1px;
  transform: rotate(8deg);
  opacity: 0.85;
  pointer-events: none;
}
/* 沙色海雾（信纸背景） */
.letter-section {
  background: linear-gradient(180deg, var(--sea-mist) 0%, var(--paper-light) 18%, var(--paper-light) 100%);
  border-radius: var(--r-lg);
  padding: 24px 20px 8px;
  margin: 0 0 12px;
  position: relative;
}
/* "放回海里"小字链接 */
.letter-view .letter-let-go {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  text-decoration: none;
  margin-top: 16px;
  letter-spacing: 0.5px;
}
.letter-view .letter-let-go:hover { color: var(--ink-soft); }
/* 解锁后的"匿名回信 / 收入印记库"操作行 */
.letter-actions {
  display: flex; gap: 8px; margin: 16px 0 8px;
}
.letter-actions .btn { flex: 1; padding: 12px 8px; font-size: 14px; }
/* 已回信状态：回信按钮灰 */
.letter-actions .btn:disabled,
.letter-actions .btn.disabled {
  background: transparent;
  color: var(--ink-faint);
  border-color: var(--ink-faint);
  cursor: not-allowed;
}
@media (max-width: 460px) {
  .letter-view { padding: 22px 20px 18px; }
  .letter-view .letter-body { font-size: 16px; line-height: 1.75; }
}

.bottle-picker {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px 12px;
  background: var(--paper-light);
  border: 1px dashed rgba(60, 50, 40, 0.18);
  border-radius: var(--r-md);
  overflow-x: auto;
}
.bottle-card {
  flex: 0 0 auto;
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px 6px;
  background: var(--paper-blank);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.bottle-card:hover {
  border-color: rgba(60, 50, 40, 0.18);
  transform: translateY(-1px);
}
.bottle-card.active {
  border-color: var(--accent);
  background: var(--paper-blank);
  box-shadow: 0 0 0 1px var(--accent), 0 2px 6px rgba(60, 50, 40, 0.10);
}
.bottle-card .bottle-icon {
  width: 28px; height: 36px;
  display: block;
}
.bottle-card .bottle-name {
  font-family: var(--hand);
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
  line-height: 1.1;
  white-space: nowrap;
}
.bottle-card.active .bottle-name { color: var(--ink); }

/* 选瓶器标题行（"选瓶子" + 当前选中名） */
.bottle-picker-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 0 0 8px;
}
.bottle-picker-head .label {
  font-family: var(--hand);
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 1.5px;
  margin: 0;
}
.bottle-picker-head .current {
  font-family: var(--hand);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
}
.bottle-picker-head .current strong {
  color: var(--accent);
  font-weight: 500;
}

/* 已选瓶子小预览（写内容时显示在顶部） */
.bottle-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(140, 122, 104, 0.10);
  border-radius: var(--r-pill);
  font-family: var(--hand);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
}
.bottle-preview .bottle-icon {
  width: 14px; height: 18px;
}
.bottle-preview strong {
  color: var(--ink);
  font-weight: 500;
}

/* 漂流台卡片 + 详情页用的瓶型图标（不参与选瓶） */
.bottle-on-card {
  width: 18px; height: 24px;
  flex-shrink: 0;
  opacity: 0.7;
}
.bottle-on-detail {
  width: 48px; height: 64px;
  margin: 0 auto 8px;
  display: block;
}

/* ============================================================
   v9.4.1 漂流感 · 共享组件
   - .drift-status: 3 态胶囊（漂流中 / 正在靠近 / 已经搁浅）
   - .drift-trail:  海上轨迹（出发点 · 途中 · 你）解锁页用
   - .drift-tide-line: 横向潮汐线（漂流台用）
   - .drift-current:  卡片间虚线"洋流路径"
   ============================================================ */

/* —— 漂流感状态色 ——
   漂流中：浅海绿（远）
   正在靠近：海蓝（近）
   已经搁浅：暖橙（到岸） */
:root {
  --drift-floating:  #7FA89A;   /* 漂流中：浅海绿 */
  --drift-approach:  #52717D;   /* 正在靠近：海蓝 */
  --drift-stranded:  #C98C70;   /* 已经搁浅：暖橙 */
}

.drift-status {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--hand);
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  line-height: 1.4;
}
.drift-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.drift-status.floating  { color: var(--drift-floating); background: rgba(127, 168, 154, 0.10); }
.drift-status.approach  { color: var(--drift-approach); background: rgba(82, 113, 125, 0.12); }
.drift-status.stranded  { color: var(--drift-stranded); background: rgba(201, 140, 112, 0.10); }

/* —— 海上轨迹（drift-unlock.html 详情页）—— */
.drift-trail {
  position: relative;
  background: linear-gradient(180deg, var(--sea-mist) 0%, var(--paper-light) 100%);
  border: 1px solid rgba(82, 113, 125, 0.20);
  border-radius: var(--r-lg);
  padding: 22px 24px 20px;
  margin: 0 0 18px;
}
.drift-trail .trail-track {
  position: relative;
  height: 48px;
  margin: 8px 0 4px;
}
.drift-trail .trail-line {
  position: absolute;
  left: 28px; right: 28px; top: 50%;
  height: 1px;
  background-image: linear-gradient(90deg, var(--sea) 0%, var(--sea) 50%, transparent 50%, transparent 100%);
  background-size: 8px 1px;
  background-repeat: repeat-x;
  opacity: 0.45;
}
.drift-trail .trail-point {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--paper-blank);
  border: 1.4px solid var(--sea);
  display: flex; align-items: center; justify-content: center;
  color: var(--sea-deep);
  font-family: var(--hand);
  font-size: 11px;
  letter-spacing: 0.5px;
}
.drift-trail .trail-point svg { width: 16px; height: 16px; }
.drift-trail .trail-point.from { left: 0; }
.drift-trail .trail-point.to   { right: 0; transform: translate(50%, -50%); }
.drift-trail .trail-mid {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--sea);
  box-shadow: 0 0 0 4px rgba(82, 113, 125, 0.18), 0 0 0 10px rgba(82, 113, 125, 0.08);
  transition: left 0.8s ease-out;
}
.drift-trail .trail-mid.stranded {
  background: var(--warm);
  box-shadow: 0 0 0 4px rgba(201, 140, 112, 0.20), 0 0 0 10px rgba(201, 140, 112, 0.08);
  animation: none;
}
.drift-trail .trail-mid.approach {
  background: var(--sea);
  animation: drift-approach 3.5s ease-in-out infinite;
}
.drift-trail .trail-labels {
  display: flex; justify-content: space-between;
  margin-top: 10px;
  font-family: var(--hand);
  font-size: 12px;
  color: var(--sea-deep);
  letter-spacing: 1px;
}
.drift-trail .trail-labels .mid-label {
  flex: 1; text-align: center;
  color: var(--sea);
}

/* —— 横向潮汐线（漂流台顶部海平线）—— */
.drift-tide-line {
  display: block;
  width: 100%;
  height: 28px;
  margin: 4px 0 20px;
  color: var(--sea);
  opacity: 0.55;
}

/* —— 卡片间虚线"洋流路径"（漂流台网格用）—— */
.drift-current {
  position: relative;
  padding-top: 18px;
}
.drift-current::before {
  content: '';
  position: absolute;
  left: 24px; top: 0; right: 24px;
  height: 12px;
  background-image:
    radial-gradient(circle 1.5px at 0 50%, var(--sea) 99%, transparent 100%),
    radial-gradient(circle 1.5px at 25% 50%, var(--sea) 99%, transparent 100%),
    radial-gradient(circle 1.5px at 50% 50%, var(--sea) 99%, transparent 100%),
    radial-gradient(circle 1.5px at 75% 50%, var(--sea) 99%, transparent 100%),
    radial-gradient(circle 1.5px at 100% 50%, var(--sea) 99%, transparent 100%);
  background-size: 100% 4px;
  background-repeat: no-repeat;
  background-position: 0 50%, 25% 50%, 50% 50%, 75% 50%, 100% 50%;
  opacity: 0.45;
}

/* ============================================================
   顶栏
   ============================================================ */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  padding: 0 0 16px;
}
.nav-logo {
  font-family: var(--hand);
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 1px;
  padding: 8px 0;
  min-height: var(--touch);
  display: inline-flex; align-items: center;
  border-bottom: none !important;
}
.nav-logo:hover { border-bottom: none !important; }
.nav-logo .seal {
  width: 24px; height: 24px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: rgba(140, 122, 104, 0.10);
  color: var(--accent);
  text-align: center; line-height: 22px;
  font-size: 12px; font-weight: 600;
  margin-right: 6px;
}
.nav-links { display: flex; gap: 2px; flex-wrap: wrap; }
.nav-link {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 10px;
  min-height: var(--touch);
  min-width: 44px;
  display: inline-flex; align-items: center;
  border-radius: var(--r-md);
  border-bottom: none !important;
  letter-spacing: 0.5px;
}
.nav-link:hover, .nav-link:active {
  color: var(--ink);
  background: rgba(60, 50, 40, 0.04);
  border-bottom: none !important;
}
.nav-link.active { color: var(--ink); font-weight: 500; }
.nav-link.nav-switch { color: var(--clay); border-left: 1px solid rgba(111, 78, 55, 0.15); margin-left: 4px; padding-left: 12px; }

/* ============================================================
   按钮（统一 3 套）
   ============================================================ */
/* ============================================================
   按钮（v10.1.0 · 主按钮陶土红 / ≤8px 圆角 / 不用大胶囊）
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--touch);
  padding: 12px 20px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  border: 1px solid var(--terracotta);
  background: var(--terracotta);
  color: var(--paper);
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s, transform 0.05s;
  text-decoration: none;
}
.btn:hover:not(:disabled) { background: #A45734; border-color: #A45734; }
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn.loading { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-secondary {
  background: var(--paper); color: var(--earth);
  border-color: var(--stone);
}
.btn-secondary:hover:not(:disabled) { background: var(--paper-deep); border-color: var(--clay); }
.btn-ghost {
  background: transparent; color: var(--terracotta);
  border: none; padding: 8px 10px;
  letter-spacing: 1px; font-size: 13px;
  min-height: var(--touch);
}
.btn-ghost:hover { color: var(--earth); }
.btn-link {
  background: transparent; color: var(--terracotta);
  border: none; padding: 8px 4px;
  min-height: var(--touch);
  font-size: 13px;
  text-decoration: none;
}
.btn-link:hover { color: var(--earth); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 12px; min-height: 36px; letter-spacing: 1px; }
.btn-seal {
  background: var(--seal); border-color: var(--seal); color: var(--paper);
}
.btn-seal:hover:not(:disabled) { background: #8B2F2F; border-color: #8B2F2F; box-shadow: var(--shadow-seal); }

/* ============================================================
   卡片
   ============================================================ */
.card {
  background: var(--paper-blank);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  position: relative;
}
.card-deep { background: var(--paper-light); }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  bottom: 80px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper-blank);
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1000;
  font-family: var(--serif);
  max-width: 90vw;
  text-align: center;
  letter-spacing: 0.5px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.ok  { background: var(--ok); }
.toast.err { background: var(--warm); }
.toast.warn { background: var(--warn); }

/* ============================================================
   Modal
   ============================================================ */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(60, 50, 40, 0.4);
  display: none;
  align-items: center; justify-content: center;
  z-index: 500;
  padding: 20px;
}
.modal-mask.show { display: flex; }
.modal-card {
  background: var(--paper-blank);
  border-radius: var(--r-lg);
  padding: 28px 24px 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-title {
  font-family: var(--serif);
  font-size: 17px;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: 1px;
  font-weight: 500;
}
.modal-body {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 16px;
}
.modal-notice {
  background: rgba(201, 140, 112, 0.10);
  border: 1px solid var(--warm);
  color: var(--warm);
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  margin: 0 0 16px;
}
.modal-ok {
  background: rgba(122, 154, 135, 0.12);
  border: 1px solid var(--ok);
  color: var(--ok);
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  margin: 0 0 16px;
}
.modal-actions { display: flex; gap: 8px; }
.modal-actions .btn { flex: 1; padding: 12px 14px; font-size: 13px; }
.modal-close {
  position: absolute; top: 8px; right: 12px;
  min-width: var(--touch); min-height: var(--touch);
  background: none; border: none;
  font-size: 22px; color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ============================================================
   文本层级
   ============================================================ */
.t-title {
  font-family: var(--hand);
  font-size: 32px; line-height: 1.3;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: 1px;
  font-weight: 400;
}
.t-h2 {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.t-h3 {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 6px;
  font-weight: 500;
}
.t-body { font-size: 14px; color: var(--ink-soft); line-height: 1.7; margin: 0 0 12px; }
.t-faint { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.5px; }
.t-mute  { color: var(--ink-soft); }

/* ============================================================
   表单
   ============================================================ */
.input, .textarea, .select {
  width: 100%;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  padding: 10px 12px;
  background: var(--paper-blank);
  border: 1px solid var(--ink-faint);
  border-radius: var(--r-md);
  min-height: var(--touch);
  outline: none;
  transition: border-color 0.2s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.label {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 1px;
  margin: 0 0 6px;
}
.opt-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--paper-blank);
  border: 1px solid rgba(60, 50, 40, 0.10);
  border-radius: var(--r-md);
  min-height: var(--touch);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.opt-row:hover { background: var(--paper-light); }
.opt-row.active { border-color: var(--accent); background: var(--paper-light); }
.opt-row input[type="radio"], .opt-row input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px; height: 18px; flex-shrink: 0;
}

/* ============================================================
   额度条
   ============================================================ */
.quota-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 14px;
  background: var(--paper-blank);
  border: 1px solid rgba(60, 50, 40, 0.08);
  border-radius: var(--r-md);
  font-size: 12px;
  color: var(--ink-soft);
}
.quota-cell { text-align: center; }
.quota-cell strong { display: block; font-size: 18px; color: var(--ink); font-weight: 500; margin: 2px 0; }
.quota-cell .q-label { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.5px; }
.quota-cell.over strong { color: var(--warm); }

/* ============================================================
   移动端
   ============================================================ */
@media (max-width: 600px) {
  .page { padding: 12px 12px 60px; }
  .nav { padding: 0 0 12px; }
  .nav-link { font-size: 12px; padding: 6px 8px; min-width: 36px; }
  .t-title { font-size: 26px; }
  .card { padding: 16px; }
  .quota-bar { grid-template-columns: repeat(3, 1fr); padding: 10px 8px; }
  .quota-cell strong { font-size: 16px; }
  .modal-card { padding: 24px 18px 18px; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; }
}

/* ============================================================
   v10.1.0 · 山宛 · 5 项底部 tab bar（信箱 / 发现 / 写信 / 配对 / 我的）
   ============================================================ */
.tab-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: flex; align-items: stretch;
  background: var(--paper);
  border-top: 1px solid rgba(111, 78, 55, 0.12);
  box-shadow: 0 -2px 12px rgba(57, 87, 91, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tab-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  min-height: 56px;
  padding: 8px 0 6px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--stone);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
}
.tab-item .tab-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.tab-item .tab-icon svg { width: 22px; height: 22px; }
.tab-item.active { color: var(--terracotta); }
.tab-item.active .tab-icon svg { stroke: var(--terracotta); }
.tab-item.active::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px;
  background: var(--terracotta);
  border-radius: 0 0 2px 2px;
}
.tab-item .badge {
  position: absolute; top: 4px; right: calc(50% - 22px);
  background: var(--seal); color: var(--paper);
  font-size: 10px; font-weight: 500;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0;
}
/* 加 tab bar 后页面要预留底部空间 */
.has-tabbar .page { padding-bottom: 80px; }
.has-tabbar body { padding-bottom: 56px; }

/* 桌面端：tab bar 改为顶部 nav-like（spec 移动端优先，但桌面要可见） */
@media (min-width: 768px) {
  .tab-bar {
    position: sticky; top: 0; bottom: auto;
    border-top: none; border-bottom: 1px solid rgba(111, 78, 55, 0.12);
    box-shadow: 0 2px 12px rgba(57, 87, 91, 0.06);
  }
  .has-tabbar body { padding-bottom: 0; }
  .has-tabbar .page { padding-top: 24px; padding-bottom: 80px; }
}

/* ============================================================
   v10.1.0 · 火漆印章（配对成功 / 关键动作）
   ============================================================ */
@keyframes seal-press {
  0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
  50%  { transform: scale(1.15) rotate(-10deg); opacity: 1; }
  72%  { transform: scale(0.95) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(-8deg); opacity: 1; }
}
.seal-stamp {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 72px; height: 72px;
  background: var(--seal);
  color: var(--paper);
  border-radius: 50%;
  font-family: var(--hand);
  font-size: 20px;
  letter-spacing: 2px;
  box-shadow: var(--shadow-seal), inset 0 -4px 8px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.10);
  position: relative;
  transform: rotate(-8deg);
  animation: seal-press 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.seal-stamp::before {
  content: '';
  position: absolute; inset: 6px;
  border: 1.5px dashed rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  pointer-events: none;
}
.seal-stamp.sm { width: 48px; height: 48px; font-size: 14px; }
.seal-stamp.lg { width: 96px; height: 96px; font-size: 28px; }
.seal-stamp.xl { width: 120px; height: 120px; font-size: 36px; box-shadow: 0 6px 24px rgba(169, 63, 63, 0.45), inset 0 -4px 8px rgba(0,0,0,0.18); }

/* v11.1 · 信纸展开（收件 / 回信成功）≤ 800ms */
@keyframes paper-unfold {
  0%   { transform: translateY(8px) scale(0.96); opacity: 0; }
  60%  { transform: translateY(-2px) scale(1.01); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.paper-unfold { animation: paper-unfold 0.7s cubic-bezier(0.16, 0.84, 0.44, 1) both; transform-origin: center bottom; }

/* v11.1 · 信封轻晃（空状态 / 等待）≤ 800ms */
@keyframes envelope-sway {
  0%   { transform: rotate(-3deg) translateY(0); }
  40%  { transform: rotate(3deg) translateY(-4px); }
  70%  { transform: rotate(-2deg) translateY(-2px); }
  100% { transform: rotate(0deg) translateY(0); }
}
.envelope-sway { animation: envelope-sway 0.8s ease-in-out; transform-origin: center; }

/* v11.1 · 配对成功欢迎页 */
.welcome-seal {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 56px 24px 32px;
  text-align: center;
}
.welcome-seal .seal-glow {
  position: absolute; left: 50%; top: 56px; transform: translateX(-50%);
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(169, 63, 63, 0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 2.4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(0.95); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.05); }
}
.welcome-seal h1 {
  font-family: var(--hand);
  font-size: 24px;
  color: var(--earth);
  letter-spacing: 2px;
  margin: 18px 0 8px;
}
.welcome-seal .lead { font-size: 14px; color: var(--ink); line-height: 1.85; margin: 0 0 4px; letter-spacing: 0.3px; }
.welcome-seal .sub  { font-size: 12px; color: var(--ink-soft); line-height: 1.7; margin: 0; letter-spacing: 1px; }

/* 信封轻晃（加载态） */
@keyframes letter-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}
.letter-bob { animation: letter-bob 2.4s ease-in-out infinite; }

/* 沙纹纹理叠加（页面背景）等高线已在 body::before */

/* ============================================================
   v11.0 · 视觉与叙事重构
   ============================================================ */

/* P0.2 · 已登录页面：顶部 nav 隐藏，只留 5-tab 底栏 */
body.has-tabbar .nav,
body.has-tabbar nav.nav {
  display: none !important;
}

/* P0.2 · 5-tab 写一封：中央凸起 FAB */
.tab-item.primary {
  position: relative;
}
.tab-item.primary .tab-icon {
  position: relative;
  width: 56px; height: 56px;
  margin-top: -22px;
  background: var(--terracotta);
  color: var(--paper);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(181, 98, 63, 0.35), 0 1px 3px rgba(58, 46, 38, 0.18);
  border: 3px solid var(--paper);
  transition: transform 0.15s, box-shadow 0.15s;
}
.tab-item.primary .tab-icon::after {
  content: '';
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 249, 238, 0.4);
  pointer-events: none;
}
.tab-item.primary:hover .tab-icon,
.tab-item.primary.active .tab-icon {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(181, 98, 63, 0.45), 0 1px 3px rgba(58, 46, 38, 0.18);
}
.tab-item.primary .tab-icon svg { width: 26px; height: 26px; stroke: var(--paper); }
.tab-item.primary.active::after { display: none; }  /* FAB 不要上面那个小竖线 */
.tab-item.primary span:last-child {
  font-family: var(--hand);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--terracotta);
  margin-top: 2px;
}
.tab-item.primary { color: var(--terracotta); }

/* P0.1 · 首页 letter hero：信 + tagline */
.letter-hero {
  text-align: center;
  padding: 48px 16px 8px;
  margin-bottom: 8px;
}
.letter-hero .illust {
  width: 280px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 8px;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(58, 46, 38, 0.10));
}
.letter-hero .tagline {
  font-family: var(--hand);
  font-size: 24px;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: 2px;
  margin: 12px 0 8px;
  font-weight: 500;
}
.letter-hero .tagline em {
  font-style: normal;
  color: var(--terracotta);
}
.letter-hero .sub {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 3px;
  margin: 0 0 4px;
}
.letter-hero .eyebrow {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--ink-faint);
  margin-bottom: 18px;
  padding: 4px 12px;
  border: 1px dashed rgba(111, 78, 55, 0.20);
  border-radius: 12px;
}
@media (max-width: 600px) {
  .letter-hero { padding: 32px 12px 4px; }
  .letter-hero .tagline { font-size: 20px; letter-spacing: 1.5px; }
}

/* homePanel 时 hero 紧凑一些 */
body.has-tabbar .letter-hero {
  padding: 36px 16px 0;
}
body.has-tabbar .letter-hero .illust {
  width: 200px;
}
body.has-tabbar .letter-hero .tagline {
  font-size: 20px;
}

/* 桌面端 */
@media (min-width: 768px) {
  .letter-hero .illust { width: 320px; }
  .letter-hero .tagline { font-size: 28px; }
}

/* v11.1 · 已登录首页：今日状态 + 主按钮 */
.today-state {
  margin: 0 0 24px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid rgba(111, 78, 55, 0.10);
  border-radius: 10px;
  text-align: left;
}
.today-state .ts-title {
  font-family: var(--hand);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 2px;
  margin: 0 0 10px;
}
.today-state .ts-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.today-state .ts-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink); line-height: 1.5;
  letter-spacing: 0.3px;
}
.today-state .ts-item b { color: var(--terracotta); font-weight: 500; }
.today-state .ts-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.today-state .dot-warn { background: var(--terracotta); }
.today-state .dot-info { background: var(--sea); }
.today-state .dot-ok   { background: var(--moss); }
.today-state .ts-empty {
  font-size: 13px; color: var(--ink-soft);
  margin: 0; letter-spacing: 0.3px;
  line-height: 1.7;
}

.primary-cta {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px;
  background: var(--terracotta);
  color: var(--paper);
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--hand);
  font-size: 18px;
  letter-spacing: 3px;
  box-shadow: 0 6px 16px rgba(181, 98, 63, 0.30);
  transition: transform 0.15s, box-shadow 0.15s;
  margin: 0 0 16px;
}
.primary-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(181, 98, 63, 0.40); }
.primary-cta .cta-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.primary-cta .cta-icon svg { width: 24px; height: 24px; stroke: currentColor; }
.primary-cta .cta-text { flex: 1; text-align: left; }
.primary-cta .cta-arrow {
  font-size: 22px; font-weight: 300;
  transition: transform 0.15s;
}
.primary-cta:hover .cta-arrow { transform: translateX(4px); }

/* P0.3 · 首页极简配额提示（取代旧 quota-card） */
.quota-soft {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 8px 0 24px;
  padding: 5px 14px;
  background: var(--paper-deep);
  border: 1px solid rgba(111, 78, 55, 0.10);
  border-radius: 20px;
  font-size: 12px; color: var(--ink-soft); letter-spacing: 0.5px;
}
.quota-soft .q-dot {
  width: 6px; height: 6px; background: var(--moss); border-radius: 50%;
  display: inline-block;
}
.quota-soft b { color: var(--ink); font-weight: 500; font-family: var(--hand); font-size: 14px; }
