/* =========================================================
   咪咪的礼物 · 噜噜风仪表盘
   暖橙奶油色 · 左侧栏 + 中间清单 + 右栏卡片
   ========================================================= */
:root {
  --bg: #FCEFD8;           /* 页面奶油底 */
  --bg-2: #FBE7CB;
  --panel: #FFFFFF;        /* 大白面板 */
  --card: #FCEAD2;         /* 浅奶油卡片（加暖，和白面板拉开分隔）*/
  --card-2: #FFFDF8;

  --orange: #F4A02C;       /* 主橙 */
  --orange-deep: #EA8A1B;
  --orange-soft: #FBE6C6;  /* 浅橙（激活态/底衬）*/

  --text: #5E4A33;         /* 正文暖棕 */
  --head: #4C3A26;         /* 标题深棕 */
  --muted: #A38A6A;        /* 次要文字 */
  --line: #F0E4D2;         /* 分隔/描边 */

  --pink: #F08C9A;
  --danger: #D9776B;

  /* 分类标签配色 */
  --tag-peach-bg: #FCE2C6;  --tag-peach-fg: #D9842A;
  --tag-green-bg: #DEEBC9;  --tag-green-fg: #6E9A3E;
  --tag-blue-bg:  #D6E7F3;  --tag-blue-fg:  #4E8AB8;
  --tag-purple-bg:#E9DBF3;  --tag-purple-fg:#9166B8;
  --tag-gray-bg:  #EEE6D8;  --tag-gray-fg:  #8A7860;

  --radius: 26px;
  --radius-sm: 16px;
  --shadow: 0 10px 30px rgba(196,138,70,.14);
  --shadow-sm: 0 4px 14px rgba(196,138,70,.12);

  --font-display: "Smiley Sans", "得意黑", "华文圆体", "STYuanti", "幼圆", "YouYuan", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Ma Shan Zheng", "楷体", "KaiTi", cursive;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(120% 80% at 100% 0, #FDEBC9 0%, transparent 60%),
    radial-gradient(120% 80% at 0 100%, #FCEAD0 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--orange-deep); }

/* =========================================================
   外壳 / 三栏布局
   ========================================================= */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px max(16px, env(safe-area-inset-right)) 26px max(16px, env(safe-area-inset-left));
  position: relative;
}
.layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 312px;
  gap: 22px;
  align-items: start;
}

/* 右上角日期胶囊 */
.date-pill {
  position: absolute;
  top: 26px; right: max(16px, env(safe-area-inset-right));
  z-index: 5;
  background: var(--panel);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px; font-weight: 600; color: var(--head);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 7px;
}
.date-pill .dp-heart { color: var(--pink); }

/* =========================================================
   左侧栏
   ========================================================= */
.side { display: flex; flex-direction: column; gap: 18px; }
.side__brand { text-align: center; padding: 6px 4px 0; }
.side__capys { width: 130px; height: 130px; margin: 0 auto 6px; }
.side__capys svg, .side__capys img { width: 100%; height: 100%; object-fit: contain; display: block; }
.side__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--orange-deep); }
.side__subtitle { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--orange); margin-top: 2px; }

.side__nav { display: flex; flex-direction: column; gap: 6px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  border: none; background: transparent;
  padding: 13px 16px; border-radius: 16px;
  font-size: 16px; font-weight: 600; color: var(--muted);
  text-align: left; width: 100%;
  transition: background .18s, color .18s, transform .1s;
}
.nav-item .ni { width: 21px; height: 21px; flex: 0 0 21px; }
.nav-item:hover { background: rgba(244,160,44,.1); color: var(--orange-deep); }
.nav-item:active { transform: scale(.97); }
.nav-item.is-active { background: var(--orange-soft); color: var(--orange-deep); box-shadow: inset 0 0 0 1.5px rgba(244,160,44,.25); }

.side__card {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 16px 14px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.side__card-capys { width: 118px; height: 110px; margin: 0 auto 8px; }
.side__card-capys svg, .side__card-capys img { width: 100%; height: 100%; object-fit: contain; display: block; }
.side__card-text { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.6; }

.side__view { text-align: center; }
.view-badge {
  border: 1.5px solid var(--line); background: var(--panel);
  color: var(--muted); border-radius: 999px;
  padding: 7px 14px; font-size: 13px;
}
.view-badge.is-him { color: var(--orange-deep); border-color: var(--orange); }

/* =========================================================
   中间主面板
   ========================================================= */
.main {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  min-width: 0;
}

/* —— 顶部 Banner —— */
.hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  padding: 28px 30px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1.5fr auto;
  align-items: center;
  gap: 16px;
  background:
    radial-gradient(80% 120% at 12% 10%, #FFF6E6 0%, transparent 60%),
    linear-gradient(180deg, #FFF3DF 0%, #FDEBCF 52%, #EAF0D2 100%);
}
.hero::after { /* 草地小花点缀 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  background:
    radial-gradient(circle at 12% 70%, #F5B642 0 2.5px, transparent 3px),
    radial-gradient(circle at 30% 85%, #EF8FA0 0 2px, transparent 2.5px),
    radial-gradient(circle at 52% 72%, #F5B642 0 2px, transparent 2.5px),
    radial-gradient(circle at 74% 84%, #E98AA0 0 2.5px, transparent 3px),
    radial-gradient(circle at 90% 74%, #F5B642 0 2px, transparent 2.5px);
  pointer-events: none;
}
.hero__left { position: relative; z-index: 1; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 29px);
  font-weight: 800; color: var(--head);
  line-height: 1.3; margin: 0;
}
.hero__title .hero__heart { white-space: nowrap; } /* ♥ 跟随上一行，不单独换行 */
.hero__heart { color: var(--orange); }
.hero__sub { margin-top: 12px; font-size: 15px; color: #8a6f4c; }
.hero__art { width: clamp(180px, 19vw, 240px); position: relative; z-index: 1; }
.hero__art svg, .hero__art img { width: 100%; height: auto; display: block; }

/* —— 面板头：标题 + 添加 —— */
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 6px 6px 14px;
}
.panel-head__title { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--head); display: flex; align-items: center; gap: 10px; }
.count-pill { font-size: 13px; font-weight: 600; color: var(--pink); background: #FCE7E2; padding: 3px 11px; border-radius: 999px; font-family: var(--font-body); }

/* —— 筛选条 —— */
.filters {
  display: flex; gap: 9px; flex-wrap: wrap;
  padding: 0 6px 14px;
}
.chip-f {
  border: none; background: var(--card);
  color: var(--muted); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 600;
  transition: background .15s, color .15s;
}
.chip-f:hover { color: var(--orange-deep); }
.chip-f.is-on { background: var(--orange); color: #fff; box-shadow: 0 4px 12px rgba(244,160,44,.35); }

/* =========================================================
   愿望卡片
   ========================================================= */
.wish-list { display: flex; flex-direction: column; gap: 12px; }

.wcard {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card);
  border: 1px solid #F6E3C6;
  border-radius: 18px;
  padding: 14px;
  position: relative;
  box-shadow: 0 3px 10px rgba(206,146,74,.10);
  transition: transform .12s, box-shadow .2s;
}
.wcard:hover { box-shadow: 0 8px 20px rgba(206,146,74,.18); transform: translateY(-2px); }
.wcard__thumb {
  flex: 0 0 72px; width: 72px; height: 72px;
  border-radius: 14px; object-fit: cover; background: #F3E7D4;
}
.wcard__thumb.is-empty { display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--muted); }
.wcard__main { flex: 1; min-width: 0; }
.wcard__title { font-size: 16px; font-weight: 700; color: var(--head); word-break: break-word; }
.wcard__tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 6px 0; align-items: center; }
.tag {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--tag-gray-bg); color: var(--tag-gray-fg);
}
.tag--peach { background: var(--tag-peach-bg); color: var(--tag-peach-fg); }
.tag--green { background: var(--tag-green-bg); color: var(--tag-green-fg); }
.tag--blue  { background: var(--tag-blue-bg);  color: var(--tag-blue-fg); }
.tag--purple{ background: var(--tag-purple-bg);color: var(--tag-purple-fg); }
.tag--gift  { background: #FCEFD0; color: var(--orange-deep); }
.wcard__note { font-family: var(--font-body); font-size: 13.5px; color: #9a7546; margin-top: 3px; overflow-wrap: anywhere; }
.wcard__link { font-size: 12px; color: var(--orange-deep); word-break: break-all; }

.wcard__side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.wstatus { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.wstatus--want { color: var(--orange); }
.wstatus--idle { color: #B6A286; }
.wstatus--done { color: #6E9A3E; }
.wcard__date { font-size: 12px; color: var(--muted); white-space: nowrap; }
.wcard__price { font-size: 13px; font-weight: 600; color: var(--head); }
.wcard__acts { display: flex; gap: 6px; margin-top: 4px; }
.icon-btn {
  border: none; background: transparent; color: var(--muted);
  font-size: 12px; padding: 3px 8px; border-radius: 8px;
}
.icon-btn:hover { background: rgba(0,0,0,.05); color: var(--head); }
.icon-btn.danger:hover { color: var(--danger); }

.secret-flag {
  position: absolute; top: 10px; right: 12px;
  font-size: 11px; background: #FBEFD2; color: #B07D16;
  padding: 2px 9px; border-radius: 999px;
}
.wcard.is-masked .wcard__title { color: var(--muted); }

/* 添加新愿望卡（虚线） */
.add-card {
  display: flex; align-items: center; gap: 14px;
  border: 2px dashed #F0CE9A; border-radius: 18px;
  padding: 16px 18px; background: #FFFBF3;
  transition: background .15s, border-color .15s;
}
.add-card:hover { background: #FFF4E2; border-color: var(--orange); }
.add-card__text { flex: 1; }
.add-card__title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--orange-deep); }
.add-card__sub { font-size: 13px; color: var(--muted); }
.add-card__plus { font-size: 26px; color: var(--orange); line-height: 1; }
.add-card__capy { width: 64px; height: 64px; flex: 0 0 64px; }
.add-card__capy svg, .add-card__capy img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* =========================================================
   右栏卡片
   ========================================================= */
.rail { display: flex; flex-direction: column; gap: 18px; }
.rcard {
  background: var(--panel);
  border: 1px solid #F4E7D2;
  border-radius: 22px;
  padding: 18px 18px 20px;
  box-shadow: 0 6px 18px rgba(206,146,74,.13);
}
.rcard__head { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--head); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.rcard__head .rc-heart { color: var(--pink); }

.rnote { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--text); line-height: 1.8; white-space: pre-line; }
.rnote__capys { width: 96px; height: 64px; margin: 10px 0 0 auto; }
.rnote__capys svg, .rnote__capys img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* 进度环 */
.ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ring { width: 150px; height: 150px; }
.ring__pct { font-family: var(--font-display); font-size: 24px; font-weight: 800; fill: var(--orange-deep); }
.ring-sub { text-align: center; font-size: 14px; color: var(--text); }
.ring-sub b { color: var(--orange-deep); }
.ring-cheer { text-align: center; font-size: 13px; color: var(--muted); margin-top: 2px; }

.tip-text { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--text); line-height: 1.8; white-space: pre-line; }
.tip-capys { width: 110px; height: 60px; margin: 8px 0 0 auto; }
.tip-capys svg, .tip-capys img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* =========================================================
   其它页面（已实现 / 惊喜 / 日记 / 关于）
   ========================================================= */
.section-hint { font-size: 13px; color: var(--muted); padding: 0 6px 12px; }

.mcard {
  background: var(--card); border-radius: 18px; padding: 14px; margin-bottom: 12px;
}
.mcard__date { font-family: var(--font-hand); font-size: 17px; color: var(--orange-deep); }
.mcard__title { font-weight: 700; color: var(--head); margin: 2px 0; }
.mcard__photo { width: 100%; border-radius: 14px; margin: 8px 0; }
.mcard__words { font-family: var(--font-hand); font-size: 17px; color: #9a7a52; overflow-wrap: anywhere; }

.count-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border-radius: 18px; padding: 14px 16px; margin-bottom: 12px;
}
.count-card__emoji { font-size: 30px; }
.count-card__info { flex: 1; }
.count-card__label { font-weight: 700; color: var(--head); }
.count-card__date { font-size: 13px; color: var(--muted); }
.count-card__num { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--orange); line-height: 1; }
.count-card__unit { font-size: 12px; color: var(--muted); text-align: center; }
.count-card.is-today { background: linear-gradient(120deg, #FFF1DC, #FBE2CC); }
.count-card.is-today .count-card__num { font-size: 17px; }

.diary-note {
  background: var(--card); border-radius: 16px; padding: 12px 16px; margin-bottom: 10px;
  font-family: var(--font-hand); font-size: 18px; color: var(--text); overflow-wrap: anywhere;
}

.about { text-align: center; padding: 18px 10px 26px; }
.about__capys { width: 220px; height: 150px; margin: 0 auto 10px; max-width: 80%; }
.about__capys svg, .about__capys img { width: 100%; height: 100%; object-fit: contain; display: block; }
.about__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--head); }
.about__text { font-family: var(--font-hand); font-size: 19px; color: var(--text); margin: 8px auto; max-width: 440px; line-height: 1.8; }
.about__stats { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 16px; }
.stat { background: var(--card); border-radius: 16px; padding: 14px 22px; min-width: 96px; }
.stat__num { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--orange-deep); }
.stat__label { font-size: 13px; color: var(--muted); }

/* 情侣位：没有 couple 图时，把噜妹+噜噜两只单图并排拼成一对（底部对齐）*/
.hero__art { aspect-ratio: 6 / 5; }
.capy-pair { display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.capy-pair img { width: 50%; height: 100%; object-fit: contain; display: block; }

/* 空状态 */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty__capy { width: 104px; height: 104px; margin: 0 auto 8px; }
.empty__capy svg, .empty__capy img { width: 100%; height: 100%; object-fit: contain; display: block; }
.empty__text { font-family: var(--font-hand); font-size: 19px; }

/* 页脚 */
.foot {
  text-align: center; margin-top: 22px;
  font-size: 14px; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.foot .foot-heart { color: var(--pink); }
.foot .sep { opacity: .5; }

/* =========================================================
   按钮通用
   ========================================================= */
.btn {
  border: none; border-radius: 999px;
  padding: 11px 20px; font-size: 15px; font-weight: 700;
  transition: transform .1s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.96); }
.btn--primary { background: linear-gradient(180deg, #F7AC3E, #F0922A); color: #fff; box-shadow: 0 6px 16px rgba(240,146,42,.4); }
.btn--ghost { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }
.btn--danger { background: transparent; color: var(--danger); }
.btn--block { width: 100%; }
.btn--sm { padding: 7px 14px; font-size: 13px; }

/* =========================================================
   弹层 / 表单（沿用，居中卡片 / 手机底部抽屉）
   ========================================================= */
.modal-mask {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(94,74,51,.34);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease both;
}
.modal {
  background: var(--panel);
  width: 100%; max-width: 460px;
  max-height: 92vh; max-height: 92dvh;
  overflow-y: auto;
  border-radius: 24px;
  padding: 22px 22px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 20px 60px rgba(94,74,51,.28);
  animation: pop .26s cubic-bezier(.22,1,.36,1) both;
}
.modal__handle { display: none; }
.modal__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--head); margin-bottom: 16px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input[type=text], .field input[type=url], .field input[type=number], .field input[type=date],
.field textarea, .field select {
  width: 100%; border: 1.5px solid var(--line); background: var(--card-2);
  border-radius: 14px; padding: 11px 13px;
  font-size: 16px; color: var(--text); font-family: inherit;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }

.star-pick { display: flex; gap: 4px; font-size: 26px; }
.star-pick span { color: #EBD9C2; padding: 6px 7px; transition: transform .12s; }
.star-pick span.on { color: var(--orange); }
.star-pick span:active { transform: scale(1.3); }

.switch-row { display: flex; align-items: center; justify-content: space-between; background: var(--card); border-radius: 14px; padding: 11px 14px; }
.switch-row small { color: var(--muted); display: block; }
.switch { position: relative; width: 52px; height: 30px; flex: 0 0 52px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: .2s; }
.switch .slider::before { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--orange); }
.switch input:checked + .slider::before { transform: translateX(22px); }

.img-pick { display: flex; align-items: center; gap: 12px; }
.img-pick__preview { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #F3E7D4; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--muted); }

.modal__actions { display: flex; gap: 10px; margin-top: 6px; }
.modal__actions .btn { flex: 1; }

.status-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.status-pick button { border: 1.5px solid var(--line); background: var(--card-2); color: var(--muted); border-radius: 999px; padding: 9px 16px; font-size: 14px; }
.status-pick button.on { border-color: var(--orange); color: var(--orange-deep); background: #FFF3E0; }

/* toast / 飘心 */
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 80; background: rgba(76,58,38,.92); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.2); animation: toastIn .25s ease both; }
.float-heart { position: fixed; z-index: 70; pointer-events: none; font-size: 20px; animation: floatUp 1.6s ease-out forwards; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-120px) scale(1.1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.wcard, .mcard, .count-card, .rcard { animation: fadeUp .4s ease both; }

/* =========================================================
   响应式：窄屏堆叠
   ========================================================= */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; gap: 16px; }
  .date-pill { position: static; margin: 0 0 12px auto; width: fit-content; }
  /* 侧栏变顶部：品牌 + 横向导航 */
  .side { gap: 12px; }
  .side__brand { display: flex; align-items: center; gap: 12px; text-align: left; padding: 0; }
  .side__capys { width: 60px; height: 60px; margin: 0; flex: 0 0 60px; }
  .side__title { font-size: 19px; }
  .side__subtitle { font-size: 15px; }
  .side__nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .nav-item { flex: 0 0 auto; padding: 9px 13px; font-size: 15px; }
  .side__card { display: none; }
  .side__view { text-align: left; }
  .rail { flex-direction: column; }
}

@media (max-width: 560px) {
  .shell { padding: 16px 12px 24px; }
  .main { padding: 12px; }
  .hero { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; }
  .hero__art { width: 160px; margin: 8px auto 0; }
  .hero::after { display: none; }
  .panel-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .panel-head .btn { width: 100%; }
  .wcard__side { align-items: flex-start; }
  .modal-mask { align-items: flex-end; padding: 0; }
  .modal { max-width: 100%; border-radius: 24px 24px 0 0; }
  .modal__handle { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 14px; }
}

/* 手机端：导航变成底部 Tab 栏（像 App 一样固定在底部）*/
@media (max-width: 768px) {
  .side__nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    flex-direction: row; flex-wrap: nowrap; gap: 0; justify-content: space-around;
    background: rgba(255,253,249,.97);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 18px rgba(196,138,70,.14);
  }
  .nav-item {
    flex: 1 1 0; min-width: 0; width: auto;
    flex-direction: column; gap: 3px;
    padding: 4px 1px; border-radius: 12px;
    font-size: 10.5px; line-height: 1.1;
    justify-content: center; text-align: center;
  }
  .nav-item span { white-space: nowrap; }
  .nav-item .ni { width: 23px; height: 23px; flex: none; }
  .nav-item:hover { background: transparent; }
  .nav-item.is-active { background: transparent; box-shadow: none; color: var(--orange-deep); }
  .shell { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .08s !important; }
}
