/* ==========================================================================
   羊毛情报局 — 温暖编辑风
   warm paper · white cards · amber & sage · soft hairlines

   结构：
     1 token / 基础
     2 顶栏（品牌标题 + 搜索 + 统计）
     3 紧凑首屏（一行）
     4 分区标题（分类图标徽标）
     5 卡片 + 折叠详情
     6 跳转卡（热榜板）
     7 热榜双板（桌面）/ 单板（手机）
     8 右侧竖版滑轨（桌面 + 手机）
     9 分类内横滑翻页（手机）
    10 搜索弹层 / 广告位 / 页脚
    11 响应式
   ========================================================================== */

:root{
  --bg: #FAF9F5;
  --bg-deep: #F4F4EF;
  --paper: #FFFDF9;
  --card: #FFFFFF;
  --panel: #FFFFFF;
  --panel-2: #FBF8F2;
  --line: #ECEEF2;
  --line-2: #DEE2E8;
  --ink: #18181B;
  --ink-2: #52525B;
  --ink-3: #6B6B73;
  --ink-4: #A6A6AE;
  --amber: #F59E0B;
  --amber-deep: #B45309;
  --terra: #EA580C;
  --amber-soft: #FFF7ED;
  --amber-line: #FED7AA;
  --mint: #059669;
  --mint-soft: #ECFDF5;
  --mint-line: #BBF7D0;
  --r-lg: 20px;
  --r-md: 18px;
  --r-sm: 10px;
  --rail: 64px;
  --shell: 1120px;
  --topbar: 60px;
  --catbar: 46px;
  --shadow-1: 0 1px 2px rgba(28,25,23,.04), 0 2px 12px rgba(28,25,23,.04);
  --shadow-2: 0 2px 4px rgba(28,25,23,.05), 0 14px 34px -18px rgba(28,25,23,.18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

*,*::before,*::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}
html, body{ overflow-x: hidden; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(245,158,11,.13), transparent 62%),
    radial-gradient(760px 460px at 92% -12%, rgba(5,150,105,.09), transparent 60%),
    radial-gradient(760px 520px at 50% 106%, rgba(234,88,12,.055), transparent 66%),
    linear-gradient(180deg, #FCF9F4 0%, #FAF7F2 42%, #F7F2E9 100%);
}

a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }
::selection{ background: rgba(245,158,11,.28); color: #23180c; }

.shell{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 26px;
}

/* sprite 里的 <svg> 走 <use> 引用，这里只定基本盒模型 */
.i{ display: block; flex: none; }

/* 单语页面：/ 只渲染中文、/en/ 只渲染英文，DOM 里不再有成对的双语节点，
   所以这里不再需要 .t-zh / .t-en 的显示开关；语言由 URL 决定，切换是整页跳转。 */

/* 右下角语言徽标：躲在右侧竖版滑轨下方、正文右侧留白里，
   双端都不压卡片、不挡滑轨（手机上滑轨宽 44px、正文右留白 50px）。 */
.lang-switch{
  position: fixed;
  right: 14px;
  bottom: 16px;
  z-index: 70;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(5,150,105,.32);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  color: #065F46;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px -12px rgba(6,78,59,.6), 0 1px 2px rgba(28,25,23,.07);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.lang-switch:hover{ background: #FFFFFF; transform: translateY(-1px); box-shadow: 0 10px 22px -14px rgba(6,78,59,.65); }
.lang-switch:active{ transform: translateY(0); }
.lang-switch:focus-visible{ outline: 2px solid rgba(5,150,105,.5); outline-offset: 2px; }

/* ---------------------------------------------------------------- top bar */

.topbar{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250,247,242,.9);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid rgba(28,25,23,.07);
}
.topbar-in{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--topbar);
}
.brand{ display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark{
  width: 30px; height: 30px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: #ECFDF5;
  border: 1px solid #BBF7D0;
  box-shadow: 0 3px 10px -7px rgba(5,150,105,.5), inset 0 1px 0 #FFFFFF;
  flex: none;
}
.brand-mark svg{ width: 23px; height: 23px; display: block; }
.brand-text{ display: block; min-width: 0; }
.brand-name{
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  color: var(--ink);
}
.brand-sub{
  display: block;
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: .02em;
  line-height: 1.2;
  margin-top: 1px;
  white-space: nowrap;
}
.topbar-stats{
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* 统计徽标：全站只在顶栏保留这一份 */
.stats-pill{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  line-height: 1.45;
  white-space: nowrap;
  text-decoration: none;
  transition: filter .16s ease, transform .16s ease;
}
.stats-pill b{
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: -.01em;
}
.stats-pill.mint{ background: #ECFDF5; border-color: #BBF7D0; color: #065F46; }
.stats-pill.mint b{ color: #047857; }
.stats-pill.amber{ background: #FEF3C7; border-color: #FDE68A; color: #92400E; }
.stats-pill.amber b{ color: #B45309; }
.stats-pill.stone{ background: #F4F4F0; border-color: #E7E5E1; color: #52525B; }
.stats-pill.stone b{ color: #3F3F46; }
a.stats-pill{ cursor: pointer; }
a.stats-pill:hover{ filter: brightness(.985); transform: translateY(-1px); }
a.stats-pill:active{ transform: translateY(0); }

.search-btn{
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--ink-2);
  font-size: 12.5px;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.search-btn:hover{ border-color: var(--line-2); color: var(--ink); box-shadow: var(--shadow-2); }
.search-btn svg{ width: 14px; height: 14px; flex: none; }
.search-btn .sb-q{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--ink-3);
}
.search-btn .sb-text{ overflow: hidden; text-overflow: ellipsis; }
.search-btn kbd{
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink-4);
}

/* --------------------------------------------- 手机横滑分类条已取消 */
/* 手机端改由右侧竖版滑轨承担分类导航，顶栏下方不再有吸顶横滑条。 */
.catbar{ display: none; }

/* ------------------------------------------------------------------- hero */
/* 紧凑首屏：视觉上只留「标语 + 北京时间更新」。
   站名已在顶栏，h1 只保留语义（sr-only），供屏幕阅读器与搜索引擎识别，不占视觉空间。 */
.hero{
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 0 2px;
  min-height: 0;
}
.hero h1{
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero-tag{
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
}
.hero-meta{
  margin: 0 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-3);
  white-space: nowrap;
  font-feature-settings: "tnum";
}
.hero-meta .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,.18);
}
.hm-short{ display: none; }

main{ padding-bottom: 0; }

/* ---------------------------------------------------------------- modules */

.module{
  padding: 18px 0 4px;
}
/* 最后一个分区（已结束活动档案）直接贴到页脚，不再叠一层底部留白 */
.module:last-of-type{ padding-bottom: 0; }
.module + .module{ border-top: 1px solid rgba(28,25,23,.055); }

.module-head{
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  min-width: 0;
}
.module-badge{
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
}
.module-badge svg{ width: 16px; height: 16px; display: block; }
.module h2{
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.015em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  white-space: nowrap;
  color: var(--ink);
}
.module h2 .count{
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 1px 7px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  letter-spacing: 0;
}
.module-desc{
  margin: 0 0 0 auto;
  font-size: 12.2px;
  line-height: 1.5;
  color: var(--ink-3);
  flex: 0 1 auto;
  min-width: 0;
  max-width: 540px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.module-empty{
  display: none;
  padding: 18px;
  border: 1px dashed rgba(28,25,23,.14);
  border-radius: var(--r-md);
  color: var(--ink-3);
  font-size: 12.5px;
  text-align: center;
  background: rgba(255,255,255,.6);
}

/* 分类内翻页：手机 / 桌面同一套，卡片一律切成 .page 横向滑，页码条在底部 */
.more{ display: none !important; }

/* 手机 + 桌面共用的翻页条 */
.pager-bar{
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--ink-3);
}
.pager-label{ min-width: 46px; text-align: center; font-feature-settings: "tnum"; }
.pager-bar .pg{
  width: 30px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  box-shadow: var(--shadow-1);
}
.pager-bar .pg:disabled{ opacity: .3; cursor: default; box-shadow: none; }
.pager-bar .pg:active:not(:disabled){ background: var(--amber-soft); border-color: var(--amber-line); }

/* ------------------------------------------------------------------ cards */

/* 无 JS 时退化为双列网格平铺；有 JS 时同一 .track 变成横向吸附翻页 */
.track{
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

/* 有 JS：分类内改为横向吸附翻页（手机 5 张/页、桌面双列 8 张/页） */
html.js .module:not(.hot-strip) .track{
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  gap: 0;
  scrollbar-width: none;
}
html.js .module:not(.hot-strip) .track::-webkit-scrollbar{ display: none; }
html.js .page{
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
}
html.js .pager-bar{ display: flex; }

.card{
  position: relative;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-1);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  overflow: hidden;
  scroll-margin-top: 78px;
  /* 性能：屏幕外的卡片跳过布局与绘制，139 张的长列表只算首屏那几张 */
  content-visibility: auto;
  /* 占位高度写的是「内容区」，不含上下各 1px 边框：桌面实测外高 99.5px（→97.5px）、
     手机 81px（→79px，见手机媒体查询）。占位和真实高度对齐，滚动或横滑翻页才不会抖 */
  contain-intrinsic-size: auto 97.5px;
}
.card:hover{
  border-color: rgba(28,25,23,.13);
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}
.card.open{
  border-color: rgba(245,158,11,.5);
  box-shadow: 0 2px 6px rgba(28,25,23,.05), 0 20px 44px -22px rgba(120,70,10,.35);
  grid-column: 1 / -1;
  transform: none;
  /* 展开态会被锚点跳转 / 深链接测高，必须真实渲染，不能只按占位高度算 */
  content-visibility: visible;
}
.card.open::after{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #FBBF24, #F59E0B 45%, #EA580C);
}

.card-head{
  display: flex;
  gap: 9px;
  padding: 11px 13px 10px;
  cursor: pointer;
  align-items: flex-start;
}

.fav{
  width: 24px; height: 24px;
  border-radius: 7px;
  flex: none;
  margin-top: 1px;
  background: #F6F1E8;
  border: 1px solid rgba(28,25,23,.06);
  object-fit: contain;
  padding: 2px;
}
.fav-fallback{
  width: 24px; height: 24px;
  border-radius: 7px;
  flex: none;
  margin-top: 1px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  background: #F6F1E8;
  border: 1px solid rgba(28,25,23,.06);
}

.card-body{ min-width: 0; flex: 1 1 auto; }

.row1{
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.row1 h3{
  margin: 0;
  font-size: 14.3px;
  font-weight: 650;
  letter-spacing: -.006em;
  line-height: 1.4;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}
.row1 h3 .rtag{
  display: inline-block;
  margin-right: 5px;
  padding: 0 5px;
  border-radius: 5px;
  border: 1px solid #E7E5E1;
  background: #F4F4F0;
  color: #52525B;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  vertical-align: 1px;
  white-space: nowrap;
}
.value{
  flex: 0 0 auto;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #92400E;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: 999px;
  padding: 2px 8px;
  font-feature-settings: "tnum";
}
.value.gold{ color: #92400E; background: #FEF3C7; border-color: #F8DFA5; }

.row2{
  margin: 5px 0 0;
  font-size: 12.4px;
  line-height: 1.55;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row2 .tag{
  font-size: 9.8px;
  line-height: 1.5;
  padding: 1px 7px;
  border-radius: 999px;
  margin-right: 5px;
  border: 1px solid transparent;
  white-space: nowrap;
  vertical-align: 1px;
  font-weight: 600;
}
.tag.cost-free{ color: #047857; background: var(--mint-soft); border-color: var(--mint-line); }
.tag.cost-trial{ color: #1D4ED8; background: #DBEAFE; border-color: #BFDBFE; }
.tag.cost-deposit{ color: var(--amber-deep); background: var(--amber-soft); border-color: var(--amber-line); }
.tag.cost-volume{ color: #6D28D9; background: #F5F3FF; border-color: #E4DDFB; }
.tag.cost-invite{ color: #6B6560; background: #F7F4EE; border-color: rgba(28,25,23,.09); }

.row3{
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.3px;
  color: var(--ink-3);
  min-width: 0;
}
.row3 .region{
  max-width: 15em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row3 .sep{ opacity: .5; }
.deadline{ white-space: nowrap; }
.deadline.hot{ color: var(--amber-deep); font-weight: 600; }
.row3 .grow{ flex: 1 1 auto; min-width: 6px; }

.go{
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.3px;
  font-weight: 600;
  color: var(--terra);
  white-space: nowrap;
  padding: 2px 0;
  border-radius: 5px;
}
.go:hover{ color: #C2410C; text-decoration: underline; text-underline-offset: 3px; }
.go svg{ width: 10px; height: 10px; }
.go-short{ display: none; }

.toggle{
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: var(--ink-4);
  font-size: 11.3px;
  padding: 2px 3px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 5px;
}
.toggle:hover{ color: var(--ink-2); }
.toggle svg{
  width: 10px; height: 10px;
  transition: transform .22s ease;
}
.card.open .toggle svg{ transform: rotate(180deg); }

/* detail panel — 一条紧凑的「徽标条 + 双列字段」 */

.detail{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s cubic-bezier(.32,.72,.28,1);
}
.card.open .detail{ grid-template-rows: 1fr; }
.detail-in{ overflow: hidden; min-height: 0; padding: 0; }
.detail-body{
  border-top: 1px solid var(--line);
  padding: 10px 12px 11px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 7px 12px;
  background: var(--paper);
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-size: 11.8px;
  line-height: 1.45;
}

/* dt/dd 必须有 <dl> 父元素，而标签条 / 风险条 / 页脚不是描述项，不能放进 dl。
   所以 dl 只包字段，用 display:contents 把自身盒子去掉——字段仍是 .detail-body
   这个网格的直接项目，栅格与间距跟原来一模一样。 */
.detail-fields{
  display: contents;
  margin: 0;
}

/* 顶部徽标条：类别 / 实际价值 / 门槛 / 核验状态 挤成一行 */
.detail-tags{
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-bottom: 1px;
}
.detail-tags .dtag{
  font-size: 10px;
  line-height: 1.45;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  /* 窄屏兜底：类别标签宁可折一行，也不越过卡片右边界被裁掉 */
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.detail-tags .dtag.cat{ color: #52525B; background: #F4F4F0; border-color: #E7E5E1; }
/* 实际价值：多币种金额能在气泡内部换行，只在「/」「·」处折行，
   单个金额（AUD 10）不拆开；气泡本身不越过卡片边框。 */
.detail-tags .dval{
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1px 4px;
  max-width: 100%;
  min-width: 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.35;
  padding: 1px 7px;
  border-radius: 12px;
  color: #E65100;
  background: #FFF1E6;
  border: 1px solid #FFCBA8;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-feature-settings: "tnum";
}
.detail-tags .dval-k{
  font-family: var(--font);
  font-size: 9px;
  color: #C2410C;
  opacity: .9;
  white-space: nowrap;
}
.detail-tags .dval strong{
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 3px;
  min-width: 0;
  max-width: 100%;
  font-size: 10.5px;
  font-weight: 700;
  color: #E65100;
  overflow-wrap: anywhere;
}
/* 单个价值块：短块内部的空格是 nbsp（构建时焊死），所以默认不会从中间断开；
   只有当整块本身比气泡还宽（英文长句说明、无空格长串）时才在块内折行 */
.detail-tags .dval-t{ white-space: normal; overflow-wrap: anywhere; }
.detail-tags .dval-s{ opacity: .45; }
.detail-tags .dcheck{ margin-left: auto; font-size: 10px; font-weight: 600; white-space: nowrap; }
.detail-tags .dcheck.ok{ color: var(--mint); }
.detail-tags .dcheck.wait{ color: var(--ink-4); }

.field{ min-width: 0; }
.field.wide{ grid-column: 1 / -1; }
.field dt{
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 2px;
  font-family: var(--mono);
}
.field dd{
  margin: 0;
  font-size: 11.8px;
  line-height: 1.45;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.field dd strong{ color: var(--ink); font-weight: 650; }
.field ol{
  margin: 0;
  padding-left: 15px;
  font-size: 11.8px;
  line-height: 1.5;
  color: var(--ink-2);
}
.field ol li{ margin-bottom: 1px; }
.field ol li::marker{ color: var(--amber-deep); font-weight: 600; }

/* 官方链接：小一号、可任意断行，绝不撑破右边框 */
.url-link{
  display: block;
  font-size: 10.5px;
  line-height: 1.35;
  opacity: .85;
  overflow-wrap: anywhere;
  word-break: break-all;
  color: var(--terra);
}
.url-link:hover{ opacity: 1; text-decoration: underline; text-underline-offset: 2px; }

.risk{
  grid-column: 1 / -1;
  display: flex;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 10px;
  background: #FEF6F3;
  border: 1px solid #FADCD3;
  font-size: 11.2px;
  line-height: 1.45;
  color: #9A3412;
}
.risk svg{ width: 12px; height: 12px; flex: none; margin-top: 2px; opacity: .75; }

/* 展开面板底部不再放重复的直达按钮（卡片顶部已有「原文链接 / Source」） */
.detail-foot{
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 10px;
  padding-top: 6px;
  border-top: 1px dashed rgba(28,25,23,.1);
  font-size: 10.3px;
  line-height: 1.4;
  color: var(--ink-4);
}
.detail-foot .verified{ color: var(--mint); font-weight: 600; }

/* expired cards muted */
.card.is-expired{ opacity: .72; background: #FDFBF7; }
.card.is-expired:hover{ opacity: .95; }
.card.is-expired .row1 h3{ color: var(--ink-2); }
.card.is-expired .value{ color: var(--ink-3); background: #F5F1E9; border-color: rgba(28,25,23,.08); }

/* ------------------------------------------------------- jump cards (slim) */
/* 热榜板里只放精简跳转卡，点一下滚到分类区那张详情卡并展开，详情只存一份。
   标题独占第一行，价值徽标与地区/截止挪到第二行，标题可用整行宽度。 */

.jump{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-1);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.jump:hover{
  border-color: rgba(245,158,11,.45);
  box-shadow: 0 8px 20px -14px rgba(120,70,10,.45);
  transform: translateY(-1px);
}
.jump:focus-visible{ outline: 2px solid rgba(245,158,11,.6); outline-offset: 2px; }
.jump .fav{ width: 22px; height: 22px; border-radius: 6px; margin-top: 0; }
.jump .fav-fallback{ width: 22px; height: 22px; border-radius: 6px; margin-top: 0; font-size: 10px; }
.jump-rank{
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  color: #92400E;
  background: #FEF3C7;
  border: 1px solid #F8DFA5;
  border-radius: 6px;
  padding: 0 4px;
}
.jump-main{ display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.jump-title{
  font-size: 12.6px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jump-sub{
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 10.4px;
  line-height: 1.3;
  color: var(--ink-4);
}
.jump-sub .value{
  flex: 0 0 auto;
  min-width: max-content;
  max-width: none;
  font-family: var(--mono);
  font-size: 10.2px;
  font-weight: 600;
  line-height: 1.4;
  padding: 0 5px;
}
.jump-meta{
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-4);
}
.jump-meta .deadline.hot{ color: var(--amber-deep); font-weight: 600; }
.jump-arrow{ width: 10px; height: 10px; color: var(--ink-4); }
.jump:hover .jump-arrow{ color: var(--terra); }

/* 深链接首次展开不做 0.3s 动画，定位一次到位 */
.deep-link .detail{ transition: none; }

/* 从跳转卡落到详情卡时轻轻亮一下，确认位置 */
.card.flash{ animation: cardFlash 1.1s ease; }
@keyframes cardFlash{
  0%{ box-shadow: 0 0 0 3px rgba(245,158,11,.35); }
  100%{ box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}

/* ------------------------------------------------------- hot board（热榜板） */
/* 桌面：左「新收录 / 高价值榜」+ 右「即将截止 / 抽奖·高上限」，两块板等高锁死。
   手机：合成一块板，4 个 tab 一排，板内不再有固定高度和内滚，消除底部空白。 */

.hot-board{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 6px 0 4px;
}
.hot-panel{ min-width: 0; }
.hot-tabs-mobile{ display: none; }

.hot-tablist{
  display: flex;
  align-items: stretch;
  gap: 18px;
  border-bottom: 1px solid rgba(28,25,23,.08);
}
.hot-tab{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 0 9px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color .16s ease;
}
.hot-tab b{
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-4);
  padding: 0 5px;
  border-radius: 999px;
  background: #F1EFE8;
  line-height: 1.6;
}
.hot-tab:hover{ color: var(--ink-2); }
.hot-tab.on{ color: var(--ink); }
.hot-tab.on b{ color: #92400E; background: #FEF3C7; }
.hot-tab.on::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #FBBF24, #EA580C);
}

/* 「即将截止」tab 的动态小徽标 + ⓘ
   徽标（7天 / 30天）只说这批条目用到的窗口，是非交互内容，跟着 <a> 切 tab；
   ⓘ 是独立 <button>，点开口径吐司。<a> 里不嵌按钮，键盘与读屏不会把两者混成一样东西。 */
.hot-tab-unit{ display: inline-flex; align-items: stretch; gap: 4px; min-width: 0; }
.closing-badge{
  flex: none;
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  padding: 1px 5px 0;
  border: 1px solid rgba(245,158,11,.28);
  border-radius: 999px;
  background: linear-gradient(180deg, #FFFCF4 0%, #FDF1DC 100%);
  color: var(--amber-deep);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
}
.closing-info{
  position: relative;
  align-self: center;
  flex: none;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  padding: 0;
  border: 1px solid rgba(28,25,23,.14);
  border-radius: 50%;
  background: #FFFDF9;
  color: var(--ink-4);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.closing-info svg{ width: 11px; height: 11px; }
/* 视觉 15px，热区 25×33：手指点得到，又不至于盖住旁边的 tab */
.closing-info::before{ content: ""; position: absolute; inset: -9px -5px; }
.closing-info:hover{ color: var(--amber-deep); border-color: rgba(245,158,11,.45); background: #FFF8EC; }
.closing-info:focus-visible{ outline: 2px solid rgba(245,158,11,.55); outline-offset: 2px; }
.closing-info[aria-expanded="true"]{ color: #B45309; border-color: rgba(245,158,11,.55); background: #FEF3C7; }

/* 口径吐司：固定定位 + JS 量位置，不占文档流；3.5 秒自动消失，点空白 / 再点一次也关 */
.closing-toast{
  position: fixed;
  top: 0;
  left: 0;
  z-index: 65;
  width: max-content;
  max-width: min(300px, calc(100vw - 20px));
  padding: 8px 11px;
  border: 1px solid rgba(245,158,11,.32);
  border-radius: 12px;
  background: #FFFDF7;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.5;
  box-shadow: 0 18px 40px -24px rgba(60,40,10,.55), 0 2px 8px rgba(28,25,23,.08);
  animation: toastIn .16s ease-out;
}
.closing-toast[hidden]{ display: none; }
@keyframes toastIn{
  from{ opacity: 0; transform: translateY(-4px); }
  to{ opacity: 1; transform: none; }
}

/* 固定高度 + 板内滚动：切 tab 时整块板的高度不变 */
.hot-panel-body{
  height: 304px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(28,25,23,.18) transparent;
}
.hot-panel-body::-webkit-scrollbar{ width: 6px; }
.hot-panel-body::-webkit-scrollbar-thumb{ background: rgba(28,25,23,.16); border-radius: 3px; }
.hot-panel-body::-webkit-scrollbar-track{ background: transparent; }

/* 分区标题由 tab 承担，省掉重复的一行 */
.module.hot-strip .module-head{ display: none; }
/* 计数口径说明收进「即将截止」tab 的 ⓘ 吐司里（见 .closing-toast），
   四个聚合分区的头部高度因此完全一致，桌面右侧板 10 条也仍然整行塞满。 */
.module.hot-strip .module-empty{ margin-top: 8px; }
.module.hot-strip{ padding: 8px 0 4px; }
.module.hot-strip .more{ display: none; }
.module.hot-strip .track{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 769px){
  .hot-board{ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
}

/* ---------------------------------------------------------- rail (desktop + mobile) */

/* 滑轨 + 正上方的投稿按钮：整组一起固定居中。
   两者同宽（align-items: stretch，取滑轨的宽度），按钮不会把 44px 的手机滑轨撑宽。 */
.rail-dock{
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  pointer-events: none;   /* 只让按钮和滑轨本身接点击，两者之间的空隙不挡正文 */
}
.rail-dock > *{ pointer-events: auto; }

/* 投稿按钮：暖薄荷底 + 纸飞机，和页面同一套温度；宽度跟随滑轨 */
.rail-submit{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 6px 0 5px;
  border: 1px solid rgba(5,150,105,.28);
  border-radius: 16px;
  background: linear-gradient(180deg, #ECFBF4 0%, #D2F6E6 100%);
  color: #065F46;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 14px 30px -22px rgba(6,78,59,.6), 0 1px 2px rgba(28,25,23,.06);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.rail-submit svg{ width: 17px; height: 17px; display: block; }
.rail-submit:hover{
  background: linear-gradient(180deg, #F4FEF9 0%, #BBF7D0 100%);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px -22px rgba(6,78,59,.7), 0 1px 2px rgba(28,25,23,.06);
}
.rail-submit:active{ transform: translateY(0); }
.rail-submit:focus-visible{ outline: 2px solid rgba(5,150,105,.55); outline-offset: 2px; }

.rail{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 5px;
  border-radius: 20px;
  border: 1px solid rgba(28,25,23,.08);
  background: rgba(250,247,242,.88);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  box-shadow: 0 20px 44px -30px rgba(60,40,10,.55), 0 1px 2px rgba(28,25,23,.05);
}
.rail a{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 48px;
  height: 46px;
  border-radius: 14px;
  color: var(--ink-3);
}
.rail a svg{ width: 15px; height: 15px; display: block; }
.rail a span{
  font-size: 9.5px;
  letter-spacing: .02em;
  line-height: 1.1;
  white-space: nowrap;
}
.rail a:hover{ color: var(--ink); background: rgba(28,25,23,.045); }
.rail a.active{
  color: #065F46;
  background: var(--mint-soft);
  box-shadow: inset 0 0 0 1px var(--mint-line), 0 6px 16px -12px rgba(5,150,105,.65);
}
.rail a.active svg{ color: #B45309; }

.rail-sep{
  height: 1px;
  margin: 5px 6px 4px;
  background: linear-gradient(90deg, transparent, rgba(28,25,23,.14), transparent);
}
.rail a.rail-top{ color: var(--ink-3); }
.rail a.rail-top svg{ width: 17px; height: 17px; }
.rail a.rail-top:hover{ color: var(--terra); background: rgba(234,88,12,.08); }

/* ------------------------------------------------------------------ modal */

.modal{
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}
.modal.on{ display: block; }
.modal-bg{
  position: absolute;
  inset: 0;
  background: rgba(50,38,22,.34);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.sheet{
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(660px, calc(100vw - 18px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(28,25,23,.1);
  background: var(--paper);
  box-shadow: 0 40px 90px -40px rgba(60,40,10,.55), 0 2px 8px rgba(28,25,23,.06);
  padding: 14px 16px 13px;
}
.sheet-top{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.sheet-top h2{
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
}
.sheet-close{
  margin-left: auto;
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--ink-3);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 15px;
  line-height: 1;
}
.input-wrap{ position: relative; }
.input-wrap svg{
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  color: var(--ink-4);
  pointer-events: none;
}
#q{
  width: 100%;
  height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(28,25,23,.12);
  background: #FFFFFF;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  padding: 0 12px 0 34px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(28,25,23,.03);
}
#q:focus{ border-color: rgba(245,158,11,.65); box-shadow: 0 0 0 3px rgba(245,158,11,.14); }
#q::placeholder{ color: var(--ink-4); }

.filter-row{ margin-top: 12px; }
.filter-label{
  font-family: var(--mono);
  font-size: 9.6px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 6px;
}
.chips{ display: flex; flex-wrap: wrap; gap: 6px; }
.chip{
  border: 1px solid rgba(28,25,23,.1);
  background: #FFFFFF;
  color: var(--ink-2);
  font-size: 11.8px;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover{ background: var(--panel-2); border-color: rgba(28,25,23,.16); }
.chip.on{
  background: var(--amber-soft);
  border-color: var(--amber-line);
  color: #9A3412;
  font-weight: 600;
}

.sheet-foot{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(28,25,23,.08);
}
.result-count{ font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.result-count b{ color: var(--mint); font-weight: 600; }
.sheet-foot .grow{ flex: 1; }
.link-btn{
  border: 0; background: transparent; color: var(--ink-3);
  font-size: 11.8px; cursor: pointer; padding: 4px 2px;
}
.link-btn:hover{ color: var(--ink); }
.solid-btn{
  height: 33px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #D97706;
  background: linear-gradient(180deg, #F59E0B, #EA8C0B);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px -10px rgba(180,83,9,.9);
}
.solid-btn:hover{ filter: brightness(1.04); }

/* ------------------------------------------------------------------- ads */

.ad-slot{
  display: none;
  margin: 28px 0 4px;
  min-height: 90px;
  border-radius: var(--r-md);
  border: 1px dashed rgba(28,25,23,.14);
  background: rgba(255,255,255,.55);
}

/* ---------------------------------------------------------------- footer */

footer{
  position: relative;
  z-index: 1;
  margin-top: 16px;        /* 档案区到页脚只留一点呼吸感 */
  border-top: 1px solid rgba(28,25,23,.08);
  /* 压成 ~40px 的紧凑单行；语言胶囊在右侧留白里，不挡文字。
     iPhone 的 Home 指示条会盖住最底部，用 safe-area 补上（其他平台 env() = 0，不改变高度）。 */
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.55);
}
.foot-line{
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.6px;
  color: var(--ink-3);
  line-height: 1.4;
}
.foot-brand{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 650;
  font-size: 12.2px;
  white-space: nowrap;
}
.foot-brand .brand-mark{ width: 20px; height: 20px; border-radius: 7px; }
.foot-brand .brand-mark svg{ width: 16px; height: 16px; }
.foot-up{ white-space: nowrap; }
.foot-top{
  margin-left: auto;
  color: var(--ink-3);
  white-space: nowrap;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #FFFFFF;
}
.foot-top:hover{ color: var(--ink); border-color: rgba(28,25,23,.16); }

/* --------------------------------------------------------------- responsive */

@media (max-width: 1080px){
  .rail-dock{ right: 8px; }
}

/* content must not slide under the rail */
@media (min-width: 1081px){
  .shell{ padding-right: 84px; }
}
@media (max-width: 1080px) and (min-width: 769px){
  .shell{ padding-right: 76px; }
}

@media (max-width: 768px){
  :root{ --topbar: 54px; }
  /* 手机首屏（CLS）：构建期 /rank 与 /lottery 已带 hidden，只有 /closing 需要靠这里先隐住。
     app.js 的 applyBoard() 把板子切到终态后给 <html> 加 .board-ready，这条就不再生效。
     桌面端两块板本来就是 fresh + closing 并列，不需要这条规则。 */
  html:not(.board-ready) #closing{ display: none; }

  html{ scroll-padding-top: 66px; }
  /* 右侧竖版滑轨占 44px：正文右留白同步收紧，卡片不钻到导轨下面 */
  .shell{ padding: 0 50px 4px 14px; }

  /* ---- 顶栏：🥒 羊毛情报局 + 搜索图标 + 三枚统计胶囊，一行放下 ---- */
  .topbar-in{ height: var(--topbar); gap: 6px; }
  /* 站名不参与收缩：顶栏本来放得下，一收缩就会因 1px 取整出现省略号 */
  .brand{ gap: 6px; min-width: 0; flex: 0 0 auto; }
  .brand-mark{ width: 26px; height: 26px; border-radius: 9px; }
  .brand-mark svg{ width: 20px; height: 20px; }
  .brand-name{
    display: block;
    font-size: 14px;
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-sub{ display: none; }
  .search-btn{
    width: 30px; height: 30px;
    padding: 0;
    justify-content: center;
    flex: 0 0 30px;
    border-radius: 999px;
  }
  .search-btn kbd{ display: none; }
  .search-btn .sb-text{ display: none; }
  .search-btn .sb-q{ gap: 0; }
  .topbar-stats{ display: flex; gap: 3px; flex: 0 0 auto; }
  .topbar-stats .stats-pill{
    padding: 1px 5px;
    font-size: 9.5px;
    gap: 2px;
  }
  .topbar-stats .stats-pill b{ font-size: 10px; }

  /* ---- 首屏（h1 在基础样式里已 sr-only，这里只管标语与更新时间的手机排版） ---- */
  .hero{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0 2px;
    flex-wrap: nowrap;
  }
  .hero-tag{
    margin: 0;
    font-size: 11.8px;
    line-height: 1.35;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ink-2);
  }
  .hero-meta{ margin: 0; flex: 0 0 auto; font-size: 10px; gap: 4px; }
  .hero-meta .dot{ width: 5px; height: 5px; }
  .hm-long{ display: none; }
  .hm-short{ display: inline; }

  /* ---- 分区 ---- */
  .module{ padding: 12px 0 2px; }
  .module-head{ margin-bottom: 8px; gap: 8px; }
  .module-badge{ width: 22px; height: 22px; border-radius: 7px; }
  .module-badge svg{ width: 15px; height: 15px; }
  .module h2{ font-size: 16px; }
  .module h2 .count{ font-size: 10px; padding: 1px 6px; }
  .module-desc{ display: none; }

  /* ---- 分类内左右横滑翻页：手机单列一页 5 张 ---- */
  .track{
    -webkit-overflow-scrolling: touch;
  }
  html.js .page{
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  html.js .pager-bar{ display: flex; }
  .more{ display: none !important; }

  /* 手机端未展开卡片外高实测 81px（含上下各 1px 边框）→ 内容区 79px */
  .card{ contain-intrinsic-size: auto 79px; }
  .card-head{ padding: 9px 10px; gap: 8px; }
  .card-head .fav,
  .card-head .fav-fallback{ width: 22px; height: 22px; border-radius: 6px; margin-top: 0; }
  .row1{ align-items: center; gap: 6px; }
  /* 未展开：标题单行 + 右侧价值徽标；展开后恢复完整多行标题 */
  .row1 h3{
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card.open .row1 h3{ white-space: normal; }
  .value{ font-size: 10px; padding: 0 4px; margin-top: 0; max-width: 46%; }
  .row2{ font-size: 11.5px; line-height: 1.4; margin-top: 2px; }
  .row2 .tag{ font-size: 9px; padding: 0 4px; margin-right: 4px; }
  .row3{
    font-size: 10.4px;
    gap: 4px;
    flex-wrap: nowrap;
    margin-top: 5px;
  }
  /* 截止时间在前、地区在后，并一行；左侧长文本省略，右侧胶囊不被挤 */
  .row3 .region{
    flex: 0 1 auto;
    min-width: 0;
    max-width: none;
    font-size: 10.2px;
    color: var(--ink-4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .row3 .sep{ display: inline; }
  .deadline{ flex: none; }
  .row3 .grow{ flex: 1 1 auto; min-width: 2px; }

  /* 手机端：整卡点击展开；底部只留「直达 ↗」紧凑胶囊，不占整行 */
  .toggle{ display: none; }
  .go-full{ display: none; }
  .go-short{ display: inline; }
  .row3 .go{
    flex: 0 0 auto;
    justify-content: center;
    gap: 2px;
    height: auto;
    margin: 0;
    padding: 3px 8px;
    border: 1px solid var(--amber-line);
    background: #FFF7ED;
    border-radius: 999px;
    font-size: 10.5px;
    line-height: 1.15;
    color: #C2410C;
  }
  .row3 .go svg{ width: 8px; height: 8px; }
  .row3 .go:hover{ text-decoration: none; background: #FFF1E6; }

  /* 展开态：地区 / 时间并排，正文与步骤整行 */
  .detail-body{
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px 10px;
    padding: 9px 10px 10px;
    font-size: 11.5px;
    line-height: 1.42;
  }
  /* 手机端徽标条更紧凑：类别 / 实际价值 / 门槛 挤得进一行多一点，
     多币种价值在气泡内部换行，不越过卡片右边界 */
  .detail-tags{ gap: 3px 5px; }
  .detail-tags .dtag{ font-size: 9.5px; padding: 1px 6px; }
  .detail-tags .dval{ padding: 1px 6px; gap: 0 3px; }
  .detail-tags .dval strong{ gap: 0 2px; }
  .detail-tags .dval-k{ font-size: 8.5px; }
  .detail-tags .dval strong{ font-size: 10px; }
  .detail-tags .dcheck{ font-size: 9.5px; }
  .field dt{ font-size: 9px; margin-bottom: 1px; }
  .field dd, .field ol{ font-size: 11.5px; line-height: 1.42; }
  .field ol{ padding-left: 14px; }
  .risk{ font-size: 11px; line-height: 1.42; padding: 6px 8px; }
  .detail-foot{ font-size: 10px; gap: 2px 8px; }
  .card.open{ grid-column: auto; }

  /* ---- 热榜：单板 4 tab，板内不再固定高度 ---- */
  .hot-board{
    display: block;
    margin: 4px 0 8px;
    gap: 0;
  }
  .hot-tabs-mobile{
    display: flex;
    align-items: stretch;
    gap: 2px;
    border-bottom: 1px solid rgba(28,25,23,.08);
    margin-bottom: 8px;
  }
  .hot-tabs-mobile .hot-tab{
    flex: 1 1 0;
    justify-content: center;
    gap: 3px;
    padding: 6px 0 8px;
    font-size: 12.5px;
  }
  .hot-tabs-mobile .hot-tab b{ font-size: 9.5px; padding: 0 2px; }
  .hot-tabs-mobile .hot-tab-unit{ flex: 0 0 auto; gap: 2px; }
  .hot-tabs-mobile .hot-tab-unit > .hot-tab{ flex: 0 0 auto; }
  .hot-tabs-mobile .closing-badge{ margin-left: 2px; padding: 1px 3px 0; font-size: 8.5px; }
  .hot-tabs-mobile .closing-info{ width: 13px; height: 13px; }
  .hot-tabs-mobile .closing-info svg{ width: 9px; height: 9px; }
  .hot-tabs-mobile .hot-tab.on::after{
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 30px;
  }
  .hot-panel .hot-tablist{ display: none; }
  .hot-panel-body{
    height: auto;
    overflow: visible;
    padding-bottom: 0;
  }
  .hot-panel-body:empty{ display: none; }

  .module.hot-strip{ padding: 0; }
  .module.hot-strip .track{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    scroll-snap-type: none;
  }
  /* 榜单条只用名次徽标（抖音式），把宽度留给标题 */
  #rank .jump .fav,
  #rank .jump .fav-fallback{ display: none !important; }

  /* 单行缩略热点条：标题一行，价值/截止在第二行 */
  .module.hot-strip .jump{
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 38px;
    padding: 5px 7px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    box-shadow: none;
    overflow: hidden;
  }
  .module.hot-strip .jump:hover{
    border-color: rgba(245,158,11,.45);
    background: #FFFCF6;
    box-shadow: none;
    transform: none;
  }
  .module.hot-strip .jump:active{ background: #FFF7ED; }

  .module.hot-strip .jump .fav,
  .module.hot-strip .jump .fav-fallback{
    width: 13px;
    height: 13px;
    border-radius: 4px;
    flex: 0 0 13px;
    margin-top: 0;
  }
  .module.hot-strip .jump .fav{ padding: 1px; }
  .module.hot-strip .jump .fav-fallback{ font-size: 7.5px; line-height: 1; }

  .module.hot-strip .jump .jump-rank{
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1;
    color: #52525B;
    background: #F1F0EA;
  }
  .module.hot-strip .jump .jump-rank i{ display: none; font-style: normal; }
  .module.hot-strip .jump .jump-rank.r1{ color: #FFFFFF; background: linear-gradient(180deg, #F8C862, #EDA229); }
  .module.hot-strip .jump .jump-rank.r2{ color: #FFFFFF; background: linear-gradient(180deg, #CDD5DE, #A7B2BE); }
  .module.hot-strip .jump .jump-rank.r3{ color: #FFFFFF; background: linear-gradient(180deg, #E2B189, #C9884F); }

  .module.hot-strip .jump .jump-main{ flex: 1 1 auto; min-width: 0; gap: 0; }
  .module.hot-strip .jump .jump-title{
    font-size: 11px;
    line-height: 1.25;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    -webkit-line-clamp: unset;
  }
  .module.hot-strip .jump .jump-sub{
    gap: 4px;
    font-size: 9.5px;
    line-height: 1.2;
  }
  .module.hot-strip .jump .jump-sub .value{
    font-size: 9.5px;
    line-height: 1.2;
    font-weight: 600;
    padding: 0;
    border: 0;
    background: none;
    color: #EA580C;
    max-width: 100%;
  }
  .module.hot-strip .jump .jump-meta,
  .module.hot-strip .jump .jump-arrow{ display: none; }

  /* ---- 右侧竖版滑轨：图标 + 小标签 + 底部小火箭回顶，总宽 44px；
     投稿按钮同样贴 44px 宽，落在滑轨正上方 ---- */
  .rail-dock{
    right: 2px;
    gap: 6px;
  }
  .rail-submit{
    gap: 1px;
    padding: 4px 0 3px;
    border-radius: 12px;
    font-size: 8px;
    line-height: 1;
    letter-spacing: 0;
  }
  .rail-submit svg{ width: 15px; height: 15px; }
  .rail{
    gap: 0;
    padding: 5px 2px;
    border-radius: 13px;
    background: rgba(252,250,246,.92);
    box-shadow: 0 14px 30px -22px rgba(60,40,10,.5), 0 1px 2px rgba(28,25,23,.05);
  }
  .rail a{
    width: 38px;
    height: 32px;
    gap: 1px;
    border-radius: 9px;
  }
  .rail a svg{ width: 14px; height: 14px; }
  .rail a span{
    display: block;
    font-size: 8px;
    line-height: 1;
    letter-spacing: 0;
  }
  .rail a.active span{ font-weight: 600; }
  .rail a.rail-top{ height: 34px; }
  .rail a.rail-top svg{ width: 15px; height: 15px; }
  .rail-sep{ margin: 3px 5px; }

  .foot-line{ gap: 10px; font-size: 11px; }
  .foot-up{ display: none; }
  /* 手机端两个 .shell 各带 4px 底边距（共 8px），页脚再让 8px，档案区到页脚仍是 ~16px */
  footer{ margin-top: 8px; }

  /* 右下角语言徽标：再收小一圈，正好落在右侧 44px 滑轨与正文之间 */
  .lang-switch{
    right: 7px;
    bottom: 12px;
    width: 32px;
    height: 32px;
    font-size: 11.5px;
  }
}

/* 窄屏（iPhone SE / 360 级）：先舍「已归档」胶囊，保证 🥒 羊毛情报局 完整不截断 */
@media (max-width: 379px){
  .topbar-stats .stats-pill.stone{ display: none; }
  /* 「即将截止」多了小徽标 + ⓘ，窄屏上把 tab 字号收半号，四个 tab 一行不换不溢 */
  .hot-tabs-mobile .hot-tab{ font-size: 12px; gap: 2px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; animation: none !important; }
}

/* ------------------------------------------------- 投稿弹窗（原生 <dialog>）
   Gmail 写信式的极简结构：左上「返回」即关闭，右上「TG 交流群 + 纸飞机发送」，
   正文是横线分行的「左标签 / 右输入」，没有边框盒子，也没有任何第三方水印。
   暖米白卡片底，浅暖灰 1px 分割线，薄荷绿只留给发送按钮。 */

.submit-dialog{
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(440px, calc(100vw - 16px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid rgba(28,25,23,.1);
  border-radius: 22px;
  background: #FAF9F5;
  color: var(--ink);
  box-shadow: 0 40px 90px -40px rgba(60,40,10,.55), 0 2px 8px rgba(28,25,23,.06);
  overflow: auto;
  overscroll-behavior: contain;
}
.submit-dialog::backdrop{
  background: rgba(50,38,22,.32);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
/* 弹窗自己 tabindex="-1" 收焦点（见 app.js openDialog）：这圈焦点框不该画出来 */
.submit-dialog:focus{ outline: none; }
html.dialog-open{ overflow: hidden; }

/* 顶栏：← / 头像 / 标题 ………… TG 徽标 / 纸飞机 */
.sd-top{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 8px 6px;
  border-bottom: 1px solid #EFECE4;
}
.sd-back{
  flex: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.sd-back svg{
  width: 19px; height: 19px;
  fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.sd-back:hover{ background: #F1EEE6; color: var(--ink); }
.sd-back:focus-visible{ outline: 2px solid rgba(22,163,74,.5); outline-offset: 1px; }

.sd-avatar{ flex: none; width: 22px; height: 22px; margin-left: 1px; }
.sd-avatar svg{ width: 22px; height: 22px; display: block; }

.sd-top h2{
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
}

/* TG 交流群：紧凑蓝色胶囊，紧挨右上角，不占高度、不折行 */
.sd-tg{
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 9px 0 6px;
  border: 1px solid rgba(42,171,238,.26);
  border-radius: 999px;
  background: #EFF9FF;
  color: #0B79A8;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.sd-tg:hover{ background: #E1F4FF; border-color: rgba(42,171,238,.42); }
.sd-tg-i{ width: 14px; height: 14px; flex: none; color: #2AABEE; }
.sd-tg span{ display: block; }

/* 纸飞机发送：薄荷绿主色，唯一的高饱和色块 */
.sd-send{
  flex: none;
  width: 34px;
  height: 34px;
  margin-left: 20px;      /* 与「交流群」胶囊拉开距离，避免误触 */
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #22C55E 0%, #16A34A 100%);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 14px -9px rgba(22,163,74,.95), 0 1px 2px rgba(28,25,23,.06);
  transition: transform .15s ease, filter .15s ease;
}
.sd-send svg{ width: 17px; height: 17px; fill: currentColor; }
.sd-send:hover{ filter: brightness(1.05); transform: translateY(-1px); }
.sd-send:active{ transform: translateY(0); }
.sd-send:focus-visible{ outline: 2px solid rgba(22,163,74,.55); outline-offset: 2px; }
.sd-send[disabled]{ opacity: .6; cursor: default; transform: none; }

/* 表单区：横线分行，左标签右输入，没有任何输入框边框。
   注意这里是 <div> 不是 <form>（安卓 Chrome 见到 <form> 就会弹自动填充条），
display:block 会盖掉 hidden 属性，所以下面这条 [hidden] 必须留着。 */
.sd-form{ display: block; }
.sd-form[hidden]{ display: none; }   /* 成功态整块换掉表单，而不是在下面追加 */
/* 蜜罐：只给机器人看的字段。不用 display:none / visibility:hidden（部分脚本会跳过），
   而是移出屏幕且不占布局、读屏隐藏、Tab 也进不来；有值就说明是自动填充的机器人。 */
.sd-hp{
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  resize: none;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
  pointer-events: none;
}
.sd-row{
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid #F0EDE5;
  cursor: text;
}
.sd-label{
  flex: none;
  width: 44px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .01em;
}
.sd-label .req{ color: #DC2626; font-style: normal; margin-left: 2px; }
.sd-input{
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.sd-input::placeholder{ color: var(--ink-4); }
.sd-input:-webkit-autofill{ -webkit-box-shadow: 0 0 0 40px #FAF9F5 inset; }
/* 单行字段是 <textarea rows="1">（安卓 Chrome 只对 textarea 不弹键盘上方的填充辅助栏）。
   这里把它压成和原来的单行 <input> 一模一样的观感：46px 高、行高等于高度所以文字垂直居中、
   永不换行、无滚动条、不会自己撑高；拼贴进来的换行由 app.js 折成空格。 */
.sd-input.sd-field-single{
  display: block;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border: 0;
  line-height: 46px;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  overflow: hidden;
  resize: none;
  scrollbar-width: none;
}
.sd-input.sd-field-single::-webkit-scrollbar{ display: none; }

/* 正文区：无边框自适应多行，留白舒展 */
.sd-notes{ display: block; padding: 12px 14px 4px; cursor: text; }
.sd-textarea{
  display: block;
  width: 100%;
  min-height: 172px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
  resize: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.sd-textarea::placeholder{ color: var(--ink-4); }

/* 必填项为空：只在那一行加一层很淡的暖红，不动布局 */
.sd-row.bad{ background: #FDF4F2; }
.sd-row.bad .sd-label{ color: #B91C1C; }
.sd-err{
  margin: 0 14px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #B91C1C;
}

/* 提交成功：同一张卡片就地换成回执，高度与填写态一致（内容居中，不把弹窗拉长） */
.sd-done{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 336px;
  padding: 26px 22px 24px;
  text-align: center;
}
.sd-done[hidden]{ display: none; }
.sd-done-mark{ display: block; width: 44px; height: 44px; }
.sd-done-mark svg{ width: 44px; height: 44px; display: block; }
.sd-done-t{
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.45;
  color: var(--ink);
}

.sd-actions{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}
.sd-btn{
  min-width: 104px;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.8px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s ease, background .15s ease, border-color .15s ease;
}
.sd-btn-ghost{
  border: 1px solid rgba(28,25,23,.14);
  background: #FFFFFF;
  color: var(--ink-2);
}
.sd-btn-ghost:hover{ background: #F6F4EE; border-color: rgba(28,25,23,.22); color: var(--ink); }
.sd-btn-mint{
  border: 1px solid #16A34A;
  background: linear-gradient(180deg, #22C55E 0%, #16A34A 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 14px -10px rgba(22,163,74,.95);
}
.sd-btn-mint:hover{ filter: brightness(1.05); }
.sd-btn:focus-visible{ outline: 2px solid rgba(22,163,74,.5); outline-offset: 2px; }

/* 成功态下右上角的纸飞机隐藏：没有可提交的内容 */
.sd-send[hidden]{ display: none; }

/* 手机：平时和桌面端一样垂直居中；只有输入法弹起（JS 加 .kb-open）才贴到顶部，
   键盘收起或进入提交成功页就移除，平滑回正。 */
@media (max-width: 680px){
  /* iOS Safari 对 font-size < 16px 的输入框一聚焦就整页放大，关掉弹窗也不会缩回去。
     手机断点下把所有可聚焦的文字控件提到 16px；不用 maximum-scale=1（那禁掉用户缩放，反而有障碍）。 */
  #q,
  .sd-input,
  .sd-textarea{ font-size: 16px; }
  /* 手机端用 top + transform 做定位，两者都能过渡：
     平时 top:50% + translateY(-50%) 垂直居中，键盘弹起时 top:12px + 归零，
     居中 ↔ 贴顶之间平滑滑动（而不是 margin:auto 那种无法动画的硬跳）。 */
  .submit-dialog{
    inset: auto 0 auto 0;              /* 左右贴边，上下自动 */
    top: 50%;
    margin: 0 auto;
    transform: translateY(-50%);
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 24px);
    border-radius: 20px;
    overflow-y: auto;
    transition: top .26s cubic-bezier(.22, 1, .36, 1),
                transform .26s cubic-bezier(.22, 1, .36, 1);
  }
  .submit-dialog.kb-open{
    /* iOS 键盘弹起时布局视口并不缩小，Safari 会把可视区域往下平移（visualViewport.offsetTop > 0）。
       app.js 把这两个值写成 CSS 变量：top 跟着可视区域顶走，max-height 按可见高度收，
       弹窗永远不会被顶出屏幕，也一定落在键盘上方。 */
    top: calc(var(--vv-top, 0px) + 8px);
    transform: translateY(0);
    max-height: calc(var(--vv-max-h, 100dvh) - 16px);
  }
  .sd-row{ height: 46px; }
  .sd-textarea{ min-height: 68px; }
  .sd-notes{ padding: 10px 14px 6px; }
  .sd-top h2{ font-size: 13.5px; }
  .sd-done{ min-height: 268px; padding: 22px 18px 20px; }
}
