/* ==========================================================================
   方便面互助社 · UI「暖面食堂 / 面票」（正式站样式层）
   加载顺序： /css/style.css → /css/ui.css（本文件）。同权重后者胜，用于覆盖旧观感；
   回退：删掉 index.html 里 ui.css 这一行 + 还原 index.html（备份 /root/fbm-backup-20260915-ui-v4/）
   —— 概念：把「一碗热面的温度」画出来。奶油纸底 + 墨棕描边 + 柿红 + 硬投影 +
   宋体大标题 + 蒸汽动画 + 票券（面票）卡片。刻意避开「深色海报」与「薄荷绿 SaaS 卡」
   两种已经用过的语言，让平台有自己的面孔。
   加载顺序： /css/style.css → 本文件（同权重后者胜）
   ========================================================================== */

/* ---------- 1. 令牌 ---------- */
:root{
  --paper:#fff8ef;        /* 奶油纸底 */
  --paper-2:#fffdf9;      /* 卡面 */
  --paper-3:#f6ead9;      /* 次级面 */
  --ink:#2b1e17;          /* 墨棕 */
  --ink-2:#6b584b;        /* 次级文字 */
  --ink-3:#a2917f;        /* 弱文字 */
  --line:#2b1e17;         /* 描边色（统一用墨棕，形成手绘感） */
  --line-soft:rgba(43,30,23,.14);
  --hot:#e8551f;          /* 柿红·主行动色 */
  --hot-dark:#c44312;
  --hot-soft:#fdece2;
  --yolk:#ffc24b;         /* 蛋黄·点缀 */
  --leaf:#2f9e6b;         /* 成功/完成 */
  --leaf-soft:#e7f6ee;
  --alert:#c4432c;

  --primary:#e8551f; --primary-dark:#c44312; --primary-light:#fdece2; --primary-bg:#fff3ea;
  --success:#2f9e6b; --warning:#cf8a12; --danger:#c4432c;
  --bg:var(--paper); --card-bg:var(--paper-2);
  --text:var(--ink); --text-secondary:var(--ink-2); --text-light:var(--ink-3);
  --border:var(--line-soft); --border-strong:rgba(43,30,23,.28);

  --radius:20px; --radius-sm:14px; --radius-xs:10px;
  --shadow-sm:2px 2px 0 rgba(43,30,23,.06);
  --shadow:6px 6px 0 rgba(43,30,23,.08);
  --shadow-lg:10px 10px 0 rgba(43,30,23,.1);
  --hard:3px 3px 0 var(--ink);
  --header-height:58px; --bottom-nav-height:66px; --maxw:1120px;

  --font-display:"Noto Serif SC","Source Han Serif SC","Songti SC",STSong,SimSun,"Songti TC",serif;
  --font-body:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
}

body{
  font-family:var(--font-body);
  background:var(--paper);
  /* 纸张点阵，营造印刷/手绘质感 */
  background-image:radial-gradient(rgba(43,30,23,.055) 1px, transparent 1px);
  background-size:20px 20px;
  color:var(--ink);
  font-size:15px;
  line-height:1.7;
}
a{ color:var(--hot-dark); }
::selection{ background:var(--yolk); color:var(--ink); }

/* ---------- 2. 顶部栏 ---------- */
.navbar{
  height:var(--header-height);
  background:rgba(255,248,239,.92);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  border-bottom:2px solid var(--ink);
  box-shadow:none; color:var(--ink);
}
.nav-inner{ max-width:var(--maxw); padding:0 16px; gap:8px; }
.nav-left,.nav-right{ flex:1 1 0; min-width:0; display:flex; align-items:center; }
.nav-right{ justify-content:flex-end; gap:12px; }
.nav-title{
  flex:0 0 auto; font-family:var(--font-display);
  font-size:16px; font-weight:800; letter-spacing:.01em; color:var(--ink);
}
.nav-back,.nav-user{
  font-size:13px; font-weight:700;
  padding:7px 14px; border-radius:999px;
  background:var(--paper-2); border:2px solid var(--ink); color:var(--ink);
  box-shadow:2px 2px 0 var(--ink);
  white-space:nowrap; transition:transform .12s,box-shadow .12s;
}
.nav-back:hover,.nav-user:hover{ transform:translate(1px,1px); box-shadow:1px 1px 0 var(--ink); }

.brand{ display:inline-flex; align-items:center; gap:10px; cursor:pointer; }
.brand-mark{
  width:34px; height:34px; border-radius:11px;
  display:grid; place-items:center; color:#fff;
  background:var(--hot); border:2px solid var(--ink);
  box-shadow:2px 2px 0 var(--ink);
}
.brand-mark svg{ width:18px; height:18px; }
.brand-name{ font-family:var(--font-display); font-size:16.5px; font-weight:800; letter-spacing:.02em; color:var(--ink); }
.nav-desktop{ display:none; }

/* ---------- 3. 容器 ---------- */
.main-content{
  max-width:var(--maxw);
  padding:16px;
  padding-bottom:calc(var(--bottom-nav-height) + 34px);
  margin-top:var(--header-height);
}

/* ---------- 4. 底部导航（手机） ---------- */
.bottom-nav{
  left:12px; right:12px; bottom:12px; height:62px; max-width:none;
  border-radius:22px;
  background:rgba(43,30,23,.96);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  border:2px solid var(--ink);
  box-shadow:0 14px 30px -14px rgba(43,30,23,.6);
  transition:transform .22s ease,opacity .22s ease;
}
.nav-item{
  gap:2px; margin:6px 4px; border-radius:16px;
  font-size:11px; font-weight:700; letter-spacing:.02em;
  color:rgba(255,248,239,.68);
  transition:color .16s,background .16s;
}
.nav-item.active{ color:#fff; background:var(--hot); }
.nav-item.active .nav-icon{ transform:none; }
.nav-icon{ font-size:20px; display:flex; align-items:center; justify-content:center; line-height:1; }
.nav-icon svg{ width:21px; height:21px; stroke-width:1.9; }
.badge{
  position:absolute; top:-4px; right:-9px;
  min-width:16px; height:16px; padding:0 4px; border-radius:999px;
  background:var(--yolk); color:var(--ink);
  border:1.5px solid var(--ink);
  font-size:10px; font-weight:800; line-height:13px; text-align:center;
}
body.kb-open .bottom-nav{ transform:translateY(calc(100% + 30px)); opacity:0; pointer-events:none; }

/* ---------- 5. 首页 · 主视觉 ---------- */
.hv{
  position:relative; overflow:hidden;
  display:grid; grid-template-columns:1fr; gap:18px;
  padding:26px 22px 24px;
  border:2px solid var(--ink); border-radius:26px;
  background:linear-gradient(180deg,#fffdf9 0%, #fff4e6 100%);
  box-shadow:var(--shadow-lg);
}
.hv-mark{   /* 描边大字水印：坐在插画后方，作为「海报感」纹理 */
  position:absolute; right:12px; top:-30px;
  font-family:var(--font-display); font-size:210px; font-weight:900; line-height:1;
  color:transparent; -webkit-text-stroke:2px rgba(43,30,23,.10);
  pointer-events:none; user-select:none; z-index:0;
}
.hv-in{ position:relative; z-index:1; }
.hv-stamp{
  display:inline-flex; align-items:center; gap:7px;
  padding:6px 13px; border-radius:999px;
  background:var(--paper-2); border:2px solid var(--ink);
  box-shadow:2px 2px 0 var(--ink);
  font-size:12px; font-weight:700; color:var(--ink);
  transform:rotate(-1.2deg);
}
.hv-stamp .dot{ width:7px; height:7px; border-radius:50%; background:var(--hot); }
.hv-stamp b{ color:var(--hot-dark); font-weight:800; }   /* 「无需泄漏隐私」描红（小字用深柿红保证对比度） */
.hv-title{
  font-family:var(--font-display);
  margin:15px 0 0;
  font-size:33px; line-height:1.24; font-weight:900;
  letter-spacing:.015em; color:var(--ink);
  text-wrap:balance;
}
.hv-title em{ font-style:normal; color:var(--hot); }   /* 描红：把「温暖 / 善意」点出来 */
/* 「说一声 / 帮一把」对句：描边圆圈图标 + 一句话，不用外框，避免 hero 里盒子太多 */
.hv-lines{ display:flex; flex-direction:column; gap:11px; margin-top:20px; }
.hv-line{ display:flex; align-items:center; gap:11px; font-size:15px; font-weight:700; color:var(--ink); letter-spacing:.01em; }
.hv-line .ic{
  flex:0 0 auto; width:30px; height:30px; border-radius:50%;
  display:grid; place-items:center;
  border:2px solid var(--ink); box-shadow:2px 2px 0 rgba(43,30,23,.85);
}
.hv-line .ic svg{ width:16px; height:16px; }
.hv-line.need .ic{ background:var(--hot-soft); color:var(--hot-dark); }
.hv-line.give .ic{ background:var(--leaf-soft); color:var(--leaf); }
.hv-sub{ font-size:14.5px; line-height:1.85; color:var(--ink-2); max-width:44ch; }
.hv-br{ display:none; }
.hv-cta{ display:flex; flex-wrap:wrap; gap:11px; margin-top:22px; }
.hv-cta .btn{ flex:1 1 auto; min-width:142px; }
.hv-art{ position:relative; display:flex; align-items:flex-end; justify-content:center; height:196px; }
.hv-pod{ position:relative; display:inline-flex; flex-direction:column; align-items:center; }
.hv-bowl{
  position:relative;
  width:172px; height:172px; border-radius:50%;
  background:#e9f0e5;   /* 与照片背景同色系，圆边不露底 */
  border:2px solid var(--ink);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.hv-img{
  /* 圆环里现在是实拍照片（原来是 SVG 插画）：不能再用 multiply + 暖色底，
     否则照片会被染成浑浊的土黄 —— 直接原色铺满，object-position 让碗居中 */
  width:100%; height:100%; object-fit:cover; object-position:50% 52%;
  mix-blend-mode:normal; opacity:1; display:block;
}
/* 蒸汽：贴在碗正上方（bottom:100% 永远贴合碗口），始终可见地飘动 */
.hv-steam{
  position:absolute; left:50%; bottom:calc(100% - 12px);
  width:118px; margin-left:-59px; height:84px;
  overflow:visible; pointer-events:none;
}
.hv-steam path{
  fill:none; stroke:rgba(43,30,23,.30); stroke-width:4.8; stroke-linecap:round;
  animation:steam 4.4s ease-in-out infinite;
}
.hv-steam path:nth-child(2){ animation-delay:.7s; }
.hv-steam path:nth-child(3){ animation-delay:1.4s; }
@keyframes steam{
  0%{ opacity:.22; transform:translateY(9px) scaleY(.9); }
  50%{ opacity:.72; transform:translateY(0) scaleY(1.02); }
  100%{ opacity:.22; transform:translateY(-11px) scaleY(1.1); }
}
@media (prefers-reduced-motion: reduce){ .hv-steam path{ animation:none; opacity:.45; } }

/* 版块标题：宋体 + 手绘下划线 */
.sec{
  position:relative; display:inline-block;
  margin:34px 0 16px;
  font-family:var(--font-display);
  font-size:21px; font-weight:900; letter-spacing:.02em; color:var(--ink);
}
.sec::after{
  content:""; position:absolute; left:2px; right:-6px; bottom:1px; height:9px;
  background:linear-gradient(90deg, rgba(255,194,75,.75), rgba(232,85,31,.28));
  border-radius:3px; z-index:-1;
  transform:rotate(-.6deg);
}

/* ---------- 6. 首页 · 面票卡片 ---------- */
.tk-row{ display:grid; grid-template-columns:1fr; gap:16px; }
.tk{
  position:relative;
  background:var(--paper-2);
  border:2px solid var(--ink); border-radius:20px;
  padding:20px 18px 6px;
  box-shadow:var(--shadow);
}
.tk::before,.tk::after{   /* 票券打孔 */
  content:""; position:absolute; width:16px; height:16px; border-radius:50%;
  background:var(--paper); border:2px solid var(--ink);
  top:74px;
}
.tk::before{ left:-10px; }
.tk::after{ right:-10px; }
.tk-hd{ display:flex; align-items:center; gap:12px; padding-bottom:14px; border-bottom:2px dashed var(--line-soft); }
.tk-ico{
  width:42px; height:42px; flex:0 0 auto; border-radius:13px;
  display:grid; place-items:center;
  border:2px solid var(--ink); box-shadow:2px 2px 0 var(--ink);
}
.tk-ico svg{ width:21px; height:21px; }
.tk-ico.need{ background:var(--hot-soft); color:var(--hot-dark); }
.tk-ico.give{ background:var(--leaf-soft); color:var(--leaf); }
.tk-h3{ font-family:var(--font-display); font-size:18px; font-weight:900; letter-spacing:.02em; }
.tk-steps{ list-style:none; margin:0; padding:0; }
.tk-step{ display:flex; gap:13px; padding:15px 0; }
.tk-step + .tk-step{ border-top:1px dashed var(--line-soft); }
.tk-no{
  flex:0 0 auto; width:29px; height:29px; border-radius:50%;
  display:grid; place-items:center;
  background:var(--yolk); border:2px solid var(--ink);
  font-family:var(--font-display); font-size:14px; font-weight:900; color:var(--ink);
  transform:rotate(-3deg);
}
.tk-st{ font-size:14.5px; font-weight:800; margin-bottom:4px; }
.tk-sd{ font-size:13px; line-height:1.75; color:var(--ink-2); }
.tk-note{
  display:flex; align-items:flex-start; gap:7px;
  margin-top:9px; padding:8px 12px;
  border-radius:12px; background:var(--paper-3);
  border:1.5px dashed rgba(43,30,23,.2);
  font-size:12.5px; line-height:1.6; color:var(--ink-2);
}
.tk-note svg{ width:13px; height:13px; flex:0 0 auto; margin-top:3px; color:var(--hot-dark); }

/* ---------- 7. 首页 · 规则 ---------- */
.pledge{
  background:var(--paper-2);
  border:2px solid var(--ink); border-radius:20px;
  padding:6px 20px; box-shadow:var(--shadow);
}
.pledge-row{
  display:flex; align-items:flex-start; gap:12px;
  padding:14px 0; font-size:13.5px; color:var(--ink-2);
}
.pledge-row + .pledge-row{ border-top:1px dashed var(--line-soft); }
.pledge-ico{
  flex:0 0 auto; width:22px; height:22px; margin-top:1px; border-radius:50%;
  display:grid; place-items:center;
  background:var(--leaf-soft); border:2px solid var(--leaf); color:var(--leaf);
}
.pledge-ico svg{ width:12px; height:12px; stroke-width:3; }

/* ---------- 8. 首页 · 社区动态 ---------- */
.tally{
  display:grid; grid-template-columns:repeat(3,1fr);
  background:var(--ink); color:var(--paper);
  border:2px solid var(--ink); border-radius:20px;
  box-shadow:var(--shadow); overflow:hidden;
}
.tally-cell{ padding:20px 8px; text-align:center; position:relative; }
.tally-cell + .tally-cell::before{
  content:""; position:absolute; left:0; top:18%; bottom:18%;
  border-left:1.5px dashed rgba(255,248,239,.28);
}
.tally-num{
  display:block; font-family:var(--font-display);
  font-size:30px; font-weight:900; line-height:1.1;
  color:var(--yolk); font-variant-numeric:tabular-nums;
}
.tally-label{ display:block; margin-top:5px; font-size:11.5px; letter-spacing:.06em; color:rgba(255,248,239,.72); }

.home-note{ margin-top:24px; text-align:center; font-size:13.5px; color:var(--ink-2); }
.home-sub{ text-align:center; font-size:11.5px; color:var(--ink-3); padding-bottom:6px; }

/* ---------- 9. 通用组件 ---------- */
.card{
  background:var(--card-bg);
  border:2px solid var(--ink);
  border-radius:18px;
  padding:16px 18px;
  box-shadow:var(--shadow);
}
.section-title{
  position:relative; display:inline-block;
  font-family:var(--font-display); font-size:18px; font-weight:900; letter-spacing:.02em;
  border-left:none; padding-left:0; margin:24px 0 14px;
}
.section-title::after{
  content:""; position:absolute; left:2px; right:-6px; bottom:1px; height:8px;
  background:linear-gradient(90deg, rgba(255,194,75,.7), rgba(232,85,31,.22));
  border-radius:3px; z-index:-1;
}

.btn{
  min-height:46px; padding:11px 20px;
  border-radius:13px; border:2px solid var(--ink);
  background:var(--paper-2); color:var(--ink);
  font-size:14.5px; font-weight:800; letter-spacing:.01em; gap:7px;
  box-shadow:var(--hard); transition:transform .12s,box-shadow .12s,background .16s;
}
.btn svg{ width:16px; height:16px; }
.btn:hover:not(:disabled){ transform:translate(-1px,-1px); box-shadow:4px 4px 0 var(--ink); }
.btn:active:not(:disabled){ transform:translate(3px,3px); box-shadow:0 0 0 var(--ink); }
.btn-primary{ background:var(--hot); color:#fffdf9; }
.btn-primary:hover:not(:disabled){ background:#f2600f; }
.btn-outline{ background:var(--paper-2); }
.btn-success{ background:var(--leaf); color:#fff; }
.btn-danger{ background:var(--paper-2); color:var(--alert); border-color:var(--alert); box-shadow:3px 3px 0 rgba(196,67,44,.5); }
.btn-danger:hover:not(:disabled){ box-shadow:4px 4px 0 rgba(196,67,44,.5); }
.btn-cancel{ background:var(--paper-3); color:var(--ink-2); }
.btn-sm{ min-height:36px; padding:6px 14px; font-size:12.5px; border-radius:999px; box-shadow:2px 2px 0 var(--ink); }
.btn-sm:hover:not(:disabled){ box-shadow:3px 3px 0 var(--ink); }
.btn-block{ width:100%; }
.btn:disabled{ opacity:.5; box-shadow:none; transform:none; }
.btn.active{ background:var(--yolk); color:var(--ink); }

/* 表单 */
.form-group{ margin-bottom:16px; }
.form-label{ display:block; font-size:13px; font-weight:800; color:var(--ink-2); margin-bottom:7px; letter-spacing:.02em; }
.form-input,.form-select,textarea.form-input,.filter-bar select{
  width:100%; padding:12px 14px;
  border:2px solid var(--ink); border-radius:13px;
  background:var(--paper-2); color:var(--ink); font-size:15px;
  transition:box-shadow .14s,background .14s;
}
.form-input::placeholder{ color:var(--ink-3); }
.form-input:focus,.form-select:focus,textarea.form-input:focus{
  outline:none; background:#fff; box-shadow:4px 4px 0 rgba(232,85,31,.28);
}
textarea.form-input{ min-height:96px; resize:vertical; line-height:1.75; }
.form-row{ display:flex; gap:12px; }
.form-half{ flex:1 1 0; min-width:0; }
.checkbox-label{ display:flex; align-items:flex-start; gap:9px; font-size:13px; color:var(--ink-2); }
.checkbox-label input[type="checkbox"]{ width:18px; height:18px; margin-top:1px; accent-color:var(--hot); }
.radio-group{ display:flex; flex-wrap:wrap; gap:9px; }
.radio-item{
  display:inline-flex; align-items:center; gap:7px;
  padding:8px 15px; border-radius:999px;
  border:2px solid var(--ink); background:var(--paper-2);
  font-size:13px; font-weight:700; cursor:pointer;
  box-shadow:2px 2px 0 var(--ink); transition:transform .12s,box-shadow .12s;
}
.radio-item.active{ background:var(--yolk); }
.radio-item:hover{ transform:translate(1px,1px); box-shadow:1px 1px 0 var(--ink); }
.privacy-notice{
  display:flex; gap:9px; margin-top:10px; padding:12px 14px;
  border-radius:13px; background:var(--hot-soft);
  border:1.5px dashed rgba(196,67,18,.35);
  font-size:12.5px; line-height:1.75; color:#8a4a2c;
}
.tip-text{ font-size:12.5px; color:var(--ink-3); margin-top:6px; line-height:1.75; }

/* 列表工具条 */
.page-tools{ display:flex; align-items:center; gap:9px; padding-bottom:2px; margin-bottom:8px; }
.page-tools .btn{ min-height:0; }
.filter-bar{ display:flex; gap:10px; margin-bottom:12px; }
.filter-bar select{ flex:1; }

/* 需求卡片 */
.need-card{ cursor:pointer; transition:transform .14s,box-shadow .14s; }
.need-card:hover{ transform:translate(-2px,-2px); box-shadow:8px 8px 0 rgba(43,30,23,.1); }
.need-header{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.need-user{ font-size:13px; font-weight:700; color:var(--ink-2); }
.need-status{
  border-radius:999px; padding:3px 11px;
  font-size:11.5px; font-weight:800; letter-spacing:.02em;
  border:1.5px solid var(--ink); white-space:nowrap;
}
.status-pending{ background:var(--yolk); color:var(--ink); }
.status-claimed{ background:#dfe9ff; color:#2a4a97; }
.status-shipped{ background:#e7e2ff; color:#4b3aa0; }
.status-completed{ background:var(--leaf-soft); color:#1c6b48; }
.status-cancelled{ background:#f0eae4; color:#7c6a5c; }
.need-body{ margin-bottom:8px; }
.need-quantity{
  font-family:var(--font-display); font-size:27px; font-weight:900; letter-spacing:.01em;
  color:var(--hot-dark); font-variant-numeric:tabular-nums;
}
.need-quantity small{ font-family:var(--font-body); font-size:13px; font-weight:700; color:var(--ink-2); }
.need-desc{ font-size:13.5px; line-height:1.75; color:var(--ink-2); margin-top:4px; }
.need-location{ font-size:12.5px; color:var(--ink-3); margin-top:5px; }
.need-footer{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin-top:10px; padding-top:10px; border-top:1px dashed var(--line-soft);
  font-size:12px; color:var(--ink-3);
}

/* 详情 */
.detail-header{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:14px; }
.detail-header h3{ font-family:var(--font-display); font-size:19px; font-weight:900; }
.detail-row{ display:flex; gap:12px; padding:11px 0; font-size:13.5px; border-bottom:1px dashed var(--line-soft); }
.detail-row:last-child{ border-bottom:none; }
.detail-label{ flex:0 0 76px; color:var(--ink-3); font-weight:700; }
.detail-action{ display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }
.claim-info{ background:var(--hot-soft); border:1.5px dashed rgba(196,67,18,.3); border-radius:14px; padding:14px; margin:12px 0; font-size:13.5px; line-height:1.85; }
.claim-header{ display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:14.5px; font-weight:800; margin-bottom:4px; }
.claim-item{ padding:12px 0; border-bottom:1px dashed var(--line-soft); font-size:13px; }
.claim-item:last-child{ border-bottom:none; }
.claim-warning{ background:#fff6e2; border:1.5px dashed rgba(207,138,18,.45); border-radius:13px; padding:11px 13px; font-size:12.5px; line-height:1.75; color:#8a6314; margin-bottom:12px; }
.claim-rules .rule-item{ display:flex; gap:8px; font-size:12.5px; color:var(--ink-2); padding:5px 0; line-height:1.75; }
.claims-section{ margin-top:18px; }
.claims-section h4{ font-family:var(--font-display); font-size:15px; font-weight:900; margin-bottom:8px; }
.my-claim-tag{ display:inline-block; padding:2px 10px; border-radius:999px; background:var(--yolk); border:1.5px solid var(--ink); font-size:11.5px; font-weight:800; }

/* 空态 / 加载 */
.empty-state{ text-align:center; padding:52px 20px; }
.empty-icon{ font-size:42px; opacity:.7; margin-bottom:12px; }
.empty-state p{ font-size:13.5px; color:var(--ink-3); margin-bottom:16px; }
.load-more{ text-align:center; padding:16px 0 4px; }
.load-more .btn{ min-width:150px; }

/* 弹窗 / Toast */
.modal-overlay{
  position:fixed; inset:0; z-index:300;
  background:rgba(43,30,23,.42);
  -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px);
  display:flex; align-items:center; justify-content:center; padding:18px;
}
.modal-card,.modal-dialog{
  width:100%; max-width:480px; max-height:86vh; overflow:auto;
  background:var(--paper-2); border:2px solid var(--ink); border-radius:20px;
  padding:22px; box-shadow:10px 10px 0 rgba(43,30,23,.22);
}
.modal-actions{ display:flex; gap:10px; margin-top:16px; }
.modal-actions .btn{ flex:1; }
.agreement-card{ max-width:560px; }
.agreement-content{ max-height:50vh; overflow:auto; font-size:13.5px; line-height:1.9; color:var(--ink-2); margin:10px 0 16px; }
.agreement-content p{ margin-bottom:6px; }
.agreement-content strong{ color:var(--ink); }
.toast{
  /* ⚠️ 必须同时重置 top：基础样式写的是 top:68px，这里只写 bottom 的话
     fixed 元素会被上下同时拉伸 → 变成一整条竖条（站长报的「一个竖条」） */
  position:fixed; top:auto; bottom:94px; left:50%; right:auto;
  height:auto; transform:translateX(-50%); z-index:400;
  max-width:88%; padding:11px 18px; border-radius:999px;
  background:var(--ink); color:var(--paper);
  border:2px solid var(--ink); box-shadow:4px 4px 0 rgba(43,30,23,.25);
  font-size:13.5px; font-weight:700;
}

/* 登录 */
.auth-page{ display:flex; align-items:flex-start; justify-content:center; padding-top:26px; }
.auth-card{
  width:100%; max-width:390px;
  background:var(--paper-2); border:2px solid var(--ink); border-radius:22px;
  padding:28px 24px; box-shadow:var(--shadow-lg);
}
.auth-logo{
  width:56px; height:56px; margin:0 auto 14px; border-radius:18px;
  display:grid; place-items:center; font-size:26px;
  background:var(--hot-soft); border:2px solid var(--ink); box-shadow:2px 2px 0 var(--ink);
}
.auth-title{ text-align:center; font-family:var(--font-display); font-size:21px; font-weight:900; margin-bottom:8px; }
.auth-link{ text-align:center; font-size:13px; }
.auth-error{ background:#fdeeea; border:1.5px solid var(--alert); color:var(--alert); border-radius:12px; padding:10px 13px; font-size:12.5px; margin-bottom:12px; }

/* 我的 */
.mine-profile{
  display:flex; align-items:center; gap:14px;
  background:linear-gradient(150deg,#fffdf9,#fff4e6);
  border:2px solid var(--ink); border-radius:20px; padding:18px; box-shadow:var(--shadow);
}
.mine-avatar{
  width:54px; height:54px; flex:0 0 auto; border-radius:17px;
  display:grid; place-items:center; font-size:25px;
  background:var(--yolk); border:2px solid var(--ink); box-shadow:2px 2px 0 var(--ink);
}
.mine-info{ min-width:0; }
.mine-name{ font-family:var(--font-display); font-size:18px; font-weight:900; }
.mine-phone{ font-size:12.5px; color:var(--ink-3); margin-top:2px; }

/* 消息 */
.msg-card{ position:relative; cursor:pointer; transition:transform .14s,box-shadow .14s; }
.msg-card:hover{ transform:translate(-2px,-2px); box-shadow:8px 8px 0 rgba(43,30,23,.1); }
.msg-card.unread{ background:#fffaf0; }
.msg-hd{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:4px; }
.msg-title{ font-size:14.5px; font-weight:800; }
.msg-time{ font-size:11.5px; color:var(--ink-3); }
.msg-dot{ position:absolute; top:16px; right:16px; width:8px; height:8px; border-radius:50%; background:var(--hot); border:1.5px solid var(--ink); }
.msg-body{ font-size:13px; line-height:1.75; color:var(--ink-2); }

/* 旧首页类兜底（其它页面可能仍引用） */
.stats-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.stat-item{ background:var(--paper-2); border:2px solid var(--ink); border-radius:16px; padding:16px 8px; text-align:center; box-shadow:var(--shadow-sm); }
.stat-num{ display:block; font-family:var(--font-display); font-size:24px; font-weight:900; color:var(--hot-dark); }
.stat-label{ display:block; margin-top:4px; font-size:11.5px; color:var(--ink-3); }
.rules-section{ background:var(--paper-2); border:2px solid var(--ink); border-radius:18px; padding:6px 18px; }
.rule-item{ display:flex; gap:10px; padding:12px 0; font-size:13.5px; color:var(--ink-2); }
.rule-item + .rule-item{ border-top:1px dashed var(--line-soft); }
.guide-panel{ background:var(--paper-2); border:2px solid var(--ink); border-radius:20px; overflow:hidden; box-shadow:var(--shadow); }
.guide-panel-header{ display:flex; align-items:center; gap:10px; padding:14px 18px; font-family:var(--font-display); font-size:16px; font-weight:900; border-bottom:2px dashed var(--line-soft); }
.guide-panel-body{ padding:16px 18px; }
.guide-step{ display:flex; gap:12px; padding:12px 0; }
.guide-step-num{ width:26px; height:26px; flex:0 0 auto; border-radius:50%; display:grid; place-items:center; background:var(--yolk); border:2px solid var(--ink); font-size:12.5px; font-weight:900; }
.guide-step-title{ font-size:14px; font-weight:800; }
.guide-step-desc{ font-size:13px; color:var(--ink-2); line-height:1.75; }
.guide-step-example{ margin-top:7px; padding:7px 11px; border-radius:10px; background:var(--paper-3); font-size:12.5px; color:var(--ink-2); }
.guide-step-connector{ display:none; }
.guide-panels-row{ display:grid; grid-template-columns:1fr; gap:16px; }

/* ---------- 10. 响应式 ---------- */
@media (min-width:600px){
  .hv-title{ font-size:40px; }
  .hv-br{ display:inline; }
  .hv-sub{ font-size:15px; }
  .hv-line{ font-size:15.5px; }
  .tk-row{ gap:18px; }
  .tally-num{ font-size:34px; }
}

@media (min-width:900px){
  .main-content{ padding:30px 24px 72px; }
  .nav-desktop{ display:flex; align-items:center; gap:4px; }
  .nav-desktop a{
    font-family:var(--font-display);
    font-size:14.5px; font-weight:800; color:var(--ink-2);
    padding:7px 13px; border-radius:11px; cursor:pointer;
    border:2px solid transparent; transition:.16s;
  }
  .nav-desktop a:hover{ color:var(--ink); background:rgba(255,194,75,.3); }
  .nav-desktop a.active{ color:var(--ink); background:var(--yolk); border-color:var(--ink); box-shadow:2px 2px 0 var(--ink); }
  .nav-desktop .nav-badge{ display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--hot); margin-left:5px; vertical-align:2px; }
  .bottom-nav{ display:none; }
  .nav-title{ display:none; }
  .nav-back{ display:none; }

  .hv{
    grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
    align-items:center; gap:30px;
    padding:46px 46px 42px; border-radius:30px;
  }
  .hv-title{ font-size:52px; }
  .hv-mark{ font-size:300px; top:-60px; right:-20px; }
  .hv-cta .btn{ flex:0 0 auto; min-width:172px; }
  .hv-art{ height:300px; align-items:center; }
  .hv-bowl{ width:240px; height:240px; }
  .hv-steam{ width:146px; margin-left:-73px; height:104px; }

  .tk-row,.guide-panels-row{ grid-template-columns:1fr 1fr; gap:22px; }
  /* 规则卡：桌面改两栏，避免 4 行短句拉满整行显得空 */
  .pledge{ display:grid; grid-template-columns:1fr 1fr; padding:8px 24px; }
  .pledge-row{ padding:15px 0; }
  .pledge-row + .pledge-row{ border-top:none; }
  .pledge-row:nth-child(n+3){ border-top:1px dashed var(--line-soft); }
  .pledge-row:nth-child(odd){ border-right:1px dashed var(--line-soft); padding-right:26px; }
  .pledge-row:nth-child(even){ padding-left:26px; }
  /* 轻微倾斜 = 手工贴上去的海报感；hover 时回正 */
  .tk-row .tk:nth-child(1){ transform:rotate(-.55deg); }
  .tk-row .tk:nth-child(2){ transform:rotate(.6deg); }
  .tk-row .tk{ transition:transform .18s ease; }
  .tk-row .tk:hover{ transform:rotate(0deg) translateY(-2px); }
  .sec{ margin:44px 0 18px; font-size:24px; }
  .section-title{ font-size:19px; }
  .tally-num{ font-size:40px; }
  .modal-card,.modal-dialog{ padding:26px; }
  .toast{ bottom:34px; }

  .page:has(textarea){ max-width:860px; margin-left:auto; margin-right:auto; }
  .page:has(.detail-row){ max-width:900px; margin-left:auto; margin-right:auto; }
  .page:has(.msg-card){ max-width:900px; margin-left:auto; margin-right:auto; }
  .page:has(.page-tools){ max-width:980px; margin-left:auto; margin-right:auto; }
  .page:has(.mine-profile){ max-width:900px; margin-left:auto; margin-right:auto; }
}

@media (max-width:430px){
  .page-tools{ flex-wrap:wrap; overflow-x:visible; padding-bottom:0; }
  .page-tools .btn{ flex:0 0 auto; }
  .page-tools .btn.btn-primary{ flex:1 1 100%; order:9; margin-top:8px; padding:10px 14px; font-size:13.5px; }
}
@media (max-width:400px){
  .nav-inner{ padding:0 12px; }
  .nav-left,.nav-right{ flex:0 0 auto; min-width:0; }
  .nav-title{ flex:1 1 auto; min-width:0; margin:0 6px; font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .nav-back,.nav-user{ padding:6px 10px; font-size:12.5px; white-space:nowrap; }
  .brand-name{ display:none; }
  .hv{ padding:22px 18px 20px; }
  .hv-title{ font-size:30px; }
  .hv-mark{ font-size:158px; right:-6px; top:-16px; }
  .tally-num{ font-size:25px; }
}

/* 手机端顶部居中标题本身就是「🍜 方便面互助社」，再放 logo 会出现两个泡面图标 → 隐藏品牌块 */
@media (max-width:899px){ .brand{ display:none !important; } }

/* ==========================================================================
   页面级组件精修（需求列表 / 详情 / 发布 / 我的 / 消息 / 弹窗）
   配合 index.html 里「装饰性 emoji → 线性 SVG」的替换
   ========================================================================== */
.ic{ width:1em; height:1em; vertical-align:-.14em; flex:0 0 auto; }

/* 需求卡 */
.need-user{ display:inline-flex; align-items:center; gap:6px; }
.need-user .ic{ color:var(--ink-2); }
.need-location{ display:flex; align-items:flex-start; gap:5px; }
.need-location > span{ min-width:0; }
.need-location .ic{ color:var(--hot-dark); }
.need-footer > span{ display:inline-flex; align-items:center; gap:5px; }
.need-footer .ic{ color:var(--ink-3); }

/* 空态：图标放进描边圆章 */
.empty-icon{
  width:76px; height:76px; margin:0 auto 16px; border-radius:50%;
  display:grid; place-items:center; font-size:0;
  background:var(--paper-2); border:2px solid var(--ink);
  box-shadow:3px 3px 0 rgba(43,30,23,.12);
}
.empty-icon .ic{ width:34px; height:34px; color:var(--hot-dark); }

/* 小节标题带图标 */
.section-title{ display:inline-flex; align-items:center; gap:9px; }
.section-title .ic{ width:18px; height:18px; color:var(--hot-dark); }

/* 按钮 / 标签内的小图标 */
.btn-sm .ic{ width:14px; height:14px; }
.my-claim-tag{ display:inline-flex; align-items:center; gap:5px; cursor:pointer; }
.my-claim-tag .ic{ width:13px; height:13px; }

/* 我的 / 登录 */
.mine-avatar .ic{ width:26px; height:26px; }
.mine-phone{ display:flex; align-items:center; gap:5px; }
.mine-phone .ic{ width:13px; height:13px; }
.auth-logo .ic{ width:26px; height:26px; color:var(--hot-dark); }

/* 详情 / 认领记录 */
.claim-info{ display:flex; align-items:flex-start; gap:8px; }
.claim-info .ic{ width:15px; height:15px; margin-top:3px; color:var(--hot-dark); }
.claim-header > span{ display:inline-flex; align-items:center; gap:6px; }
.claim-header .ic{ width:16px; height:16px; color:var(--hot-dark); }
.tip-text{ display:flex; align-items:center; gap:7px; }
.tip-text .ic{ width:15px; height:15px; color:var(--leaf); }

/* 弹窗与卡片标题：宋体 + 图标 */
.modal-card h3, .modal-dialog h3{
  display:flex; align-items:center; gap:9px;
  font-family:var(--font-display); font-size:18px; font-weight:900; margin-bottom:14px;
}
.modal-card h3 .ic, .modal-dialog h3 .ic{ width:19px; height:19px; color:var(--hot-dark); }
.card > h3{
  display:flex; align-items:center; gap:9px;
  font-family:var(--font-display); font-size:19px; font-weight:900; margin-bottom:12px;
}

/* ==========================================================================
   清掉旧样式层留在伪元素上的装饰（改版后仍会照画）
   ① .section-title::before —— 旧「大气品牌感」层留下的 7×19 绿色竖条，
      站长在「消息页」看到的那根竖条就是它（只有一个小节标题时最显眼）
   ② .privacy-notice::before —— 旧层写死的 🔒 emoji，会压住提示文字
   ③ .need-card::after —— 旧的卡片顶部渐变细条
   ========================================================================== */
.section-title::before,
.privacy-notice::before,
.need-card::after{ content:none !important; display:none !important; }

/* 表单字段下的即时提示（手机号格式不对时立刻说清） */
.field-hint{ margin:7px 0 0; font-size:12px; line-height:1.5; font-weight:700; color:var(--hot-dark); }

/* 按钮禁用态：看得懂、但点不动（避免误点消耗真短信 / 重复提交）
   ⚠️ 不用半透明压暗：primary 按钮压暗后是「浅底浅字」，对比度只有 1.6:1（白字白底同款问题）
   改用 paper-3 底 + ink-2 字，对比度 5.4:1，明显「不可用」但看得清 */
.btn:disabled, .btn:disabled:hover{
  cursor:not-allowed; box-shadow:none; transform:none; opacity:1;
  background:var(--paper-3); color:var(--ink-2); border-color:rgba(43,30,23,.35);
}
.btn:disabled:hover{ transform:none; box-shadow:none; }
