/* ===== LURE CODEX · 路亚百科 — 黑白灰高级主题 ===== */

:root {
  --bg:     #0a0a0b;
  --bg-1:  #101012;   /* 面板 */
  --bg-2:  #16161a;   /* 抬升 */
  --bg-3:  #1d1d22;   /* 输入/悬停 */
  --line:  rgba(255,255,255,0.09);
  --line-2:rgba(255,255,255,0.05);
  --text:   #ededee;
  --text-2: #a0a0a6;
  --text-3: #6a6a70;
  --inv:    #f4f4f5;   /* 反相亮色（按钮/强调） */
  --inv-ink:#0a0a0b;
  --r:    14px;
  --r-sm: 9px;
  --topnav-h: 62px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Times New Roman", Georgia, "Songti SC", "Noto Serif SC", serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}
button, input, select { font-family: inherit; color: inherit; }
a { color: var(--text); text-decoration: none; }
::selection { background: var(--inv); color: var(--inv-ink); }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: #2a2a30 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #2a2a30; border-radius: 8px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ===== Layout ===== */
.app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }

/* ===== Top nav ===== */
.topnav {
  height: var(--topnav-h); flex-shrink: 0;
  display: flex; align-items: center; gap: 20px;
  padding: 0 22px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 1500;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { font-size: 20px; color: var(--text); opacity: 0.85; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 13px; font-weight: 700; letter-spacing: 0.22em; }
.brand-sub { font-size: 11px; color: var(--text-3); letter-spacing: 0.12em; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav-link {
  font-size: 13.5px; color: var(--text-3); padding: 8px 13px; border-radius: 7px;
  cursor: pointer; font-weight: 500; transition: color .15s, background .15s;
  position: relative;
}
.nav-link:hover { color: var(--text); background: var(--bg-2); }
.nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 1px; background: var(--inv);
}
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.loc-pill {
  font-size: 11.5px; color: var(--text-3); font-family: ui-monospace, monospace;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 20px;
}

/* ===== View stage ===== */
.view-stage { flex: 1; position: relative; overflow: hidden; }
.view { position: absolute; inset: 0; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity .25s; }
.view.active { opacity: 1; pointer-events: auto; }

/* ===== Buttons ===== */
.btn {
  appearance: none; border: 1px solid var(--line); background: var(--bg-2); color: var(--text);
  padding: 9px 15px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: transform .08s, background .15s, border-color .15s, opacity .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-3); border-color: rgba(255,255,255,0.2); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.solid { background: var(--inv); color: var(--inv-ink); border-color: transparent; }
.btn.solid:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--text-2); }
.btn.block { width: 100%; }
.btn.tiny { padding: 5px 10px; font-size: 12px; }
.btn.icon-only { padding: 9px 11px; }

/* ===== HOME ===== */
.view-home { padding: 0; }

/* 视频背景：钉在首屏，随内容滚走；底部渐隐融入页面底色 */
.home-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.home-bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.04) brightness(.9);
}
.home-bg-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,10,11,.32) 0%, rgba(10,10,11,.12) 34%,
    rgba(10,10,11,.48) 70%, #0a0a0b 100%);
}
@media (prefers-reduced-motion: reduce) { .home-bg-video { display: none; } }

.hero {
  padding: 72px 48px 56px; max-width: 1100px;
  border-bottom: 1px solid var(--line-2);
  position: relative; z-index: 1;
}
.hero-eyebrow { font-size: 11px; letter-spacing: 0.34em; color: var(--text-3); margin-bottom: 22px; }
.hero-title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(72px, 13vw, 168px);
  line-height: 0.92; letter-spacing: -0.03em; margin: 0 0 26px;
}
.hero-desc { font-size: 15.5px; color: var(--text-2); max-width: 540px; line-height: 1.7; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.home-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px;
  background: var(--line-2); border-top: 1px solid var(--line-2);
  position: relative; z-index: 1;
}
.home-card {
  background: var(--bg); padding: 30px 26px; cursor: pointer; min-height: 180px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  transition: background .18s; position: relative;
}
.home-card:hover { background: var(--bg-2); }
.home-card .hc-num { font-size: 11px; letter-spacing: 0.2em; color: var(--text-3); }
.home-card .hc-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.home-card .hc-desc { font-size: 13px; color: var(--text-3); line-height: 1.6; }
.home-card .hc-arrow { font-size: 18px; color: var(--text-2); transition: transform .18s; }
.home-card:hover .hc-arrow { transform: translateX(4px); color: var(--text); }

/* ===== SPOTS view ===== */
.view-spots { overflow: hidden; padding: 0; }
.view-spots.active { display: grid; grid-template-columns: 380px 1fr; }
.view-spots { display: grid; grid-template-columns: 380px 1fr; }
.sidebar {
  background: var(--bg-1); border-right: 1px solid var(--line);
  overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.panel {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r); padding: 15px;
}
.panel-title { font-size: 11px; margin: 0 0 11px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; }
.hint { font-size: 12.5px; color: var(--text-3); margin: 0 0 11px; line-height: 1.55; }
.coord-display { font-size: 12px; color: var(--text-3); margin: 11px 0 0; }
.coord-display span { color: var(--text); font-family: ui-monospace, monospace; }

.tabs { display: flex; gap: 3px; background: var(--bg); padding: 4px; border-radius: 9px; margin-bottom: 13px; }
.tab { flex: 1; border: none; background: transparent; color: var(--text-3); padding: 8px; border-radius: 6px;
  font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--bg-3); color: var(--text); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
label.full, .field-row label { display: flex; flex-direction: column; gap: 5px;
  font-size: 11px; color: var(--text-3); margin-bottom: 9px; letter-spacing: 0.04em; }
input[type="number"], input[type="text"], input[type="search"], select {
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  padding: 9px 11px; border-radius: var(--r-sm); font-size: 13px; outline: none;
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
input:focus, select:focus { border-color: rgba(255,255,255,0.35); box-shadow: 0 0 0 3px rgba(255,255,255,0.06); }

.city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.city-btn { border: 1px solid var(--line); background: var(--bg); color: var(--text-2);
  padding: 10px 4px; border-radius: var(--r-sm); font-size: 12.5px; cursor: pointer; transition: all .15s; }
.city-btn:hover { border-color: rgba(255,255,255,0.3); color: var(--text); background: var(--bg-3); }

.radius-row { margin-top: 15px; }
.radius-head { display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.radius-val b { color: var(--text); font-size: 16px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 3px;
  background: #2c2c33; border-radius: 3px; outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px;
  border-radius: 50%; background: var(--inv); cursor: pointer; border: 3px solid var(--bg); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--bg); background: var(--inv); cursor: pointer; }
.radius-ticks { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-3); margin-top: 5px; }

.mode-row { display: flex; align-items: center; gap: 8px; margin-top: 15px; }
.mode-toggle { display: flex; align-items: center; gap: 7px; flex: 1;
  font-size: 13px; color: var(--text); cursor: pointer; font-weight: 600; }
.mode-toggle input { accent-color: var(--inv); width: 15px; height: 15px; }
#grid-size { width: auto; padding: 7px 8px; font-size: 12px; }
.mode-hint { font-size: 11.5px; color: var(--text-3); margin: 9px 0 0; line-height: 1.55; }

.stats { display: flex; gap: 8px; padding: 13px; }
.stat { flex: 1; text-align: center; background: var(--bg); border-radius: var(--r-sm); padding: 11px 4px;
  border: 1px solid var(--line-2); }
.stat .num { display: block; font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.1; }
.stat .lbl { display: block; font-size: 10px; color: var(--text-3); margin-top: 4px; letter-spacing: 0.08em; }

.filter-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 10px; }
.fav-toggle { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.fav-toggle input { accent-color: var(--inv); width: 15px; height: 15px; }

.list-section { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.list-count { font-size: 11px; color: var(--text); background: var(--bg); padding: 2px 9px; border-radius: 20px; border: 1px solid var(--line); }
.results { display: flex; flex-direction: column; gap: 7px; overflow-y: auto; min-height: 0; }
.empty { color: var(--text-3); font-size: 12.5px; text-align: center; padding: 26px 12px; line-height: 1.7; }
.card { display: flex; gap: 11px; padding: 10px; border-radius: var(--r-sm); background: var(--bg);
  border: 1px solid transparent; cursor: pointer; transition: border-color .15s, background .15s; }
.card:hover { border-color: var(--line); background: var(--bg-2); }
.card.active { border-color: rgba(255,255,255,0.4); background: var(--bg-2); }
.card-thumb { width: 56px; height: 56px; border-radius: 7px; object-fit: cover; flex-shrink: 0;
  background: var(--bg-3); }
.card-thumb.placeholder { display: flex; align-items: center; justify-content: center; font-size: 22px; opacity: 0.5; }
.card-info { flex: 1; min-width: 0; }
.card-name { font-size: 13.5px; font-weight: 600; margin: 0 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-addr { font-size: 11px; color: var(--text-3); margin: 0 0 6px; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; }
.card-dist { font-size: 11px; font-weight: 700; color: var(--text); font-family: ui-monospace, monospace; }
.card-fav { font-size: 14px; cursor: pointer; background: none; border: none; padding: 2px; color: var(--text-3); }
.card-fav.on { color: var(--inv); }

/* ===== MAP ===== */
.map-wrap { position: relative; overflow: hidden; background: var(--bg); }
#map { width: 100%; height: 100%; background: #0c0c0e; }
.leaflet-container { background: #0c0c0e; }
.status { position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  background: var(--bg-1); border: 1px solid var(--line); color: var(--text);
  padding: 8px 16px; border-radius: 20px; font-size: 12.5px; z-index: 999;
  display: flex; align-items: center; gap: 8px; }
.status.error { border-color: rgba(255,255,255,0.4); }
.status .spin { width: 13px; height: 13px; border: 2px solid var(--bg-3);
  border-top-color: var(--inv); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.layer-switcher { position: absolute; bottom: 24px; right: 12px; z-index: 999; display: flex;
  flex-direction: column; gap: 5px; background: var(--bg-1); border: 1px solid var(--line);
  padding: 5px; border-radius: 11px; }
.ls-btn { width: 38px; height: 38px; border: 1px solid transparent; background: var(--bg);
  border-radius: 7px; cursor: pointer; font-size: 17px; transition: all .15s; }
.ls-btn:hover { background: var(--bg-3); }
.ls-btn.active { border-color: rgba(255,255,255,0.4); }

/* Leaflet chrome (monochrome) */
.leaflet-popup-content-wrapper { background: var(--bg-1); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; }
.leaflet-popup-tip { background: var(--bg-1); border: 1px solid var(--line); }
.leaflet-popup-content { margin: 11px 13px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-3); }
.popup-img { width: 180px; height: 118px; object-fit: cover; border-radius: 7px; margin-bottom: 7px;
  background: var(--bg-3); }
.popup-name { font-weight: 700; font-size: 14px; margin: 0 0 2px; }
.popup-addr { font-size: 11px; color: var(--text-3); margin: 0 0 4px; }
.popup-dist { font-size: 12px; color: var(--text); font-weight: 700; font-family: ui-monospace, monospace; }
/* 地图点击换检索中心的确认弹窗 */
.recenter-title { font-weight: 700; font-size: 13px; }
.recenter-coord { font-size: 11px; color: var(--text-3); font-family: ui-monospace, monospace; margin: 3px 0 9px; }
.recenter-actions { display: flex; gap: 6px; }
.recenter-actions .btn { flex: 1; }
.leaflet-bar a { background: var(--bg-1); color: var(--text); border-color: var(--line); }
.leaflet-bar a:hover { background: var(--bg-3); }
.leaflet-control-attribution { background: rgba(10,10,11,0.7) !important; color: var(--text-3) !important; }
.leaflet-control-attribution a { color: var(--text-3) !important; }

/* Markers (monochrome) */
.fish-marker { background: none; border: none; }
.fish-pin { width: 24px; height: 24px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center; position: relative;
  border: 2px solid rgba(255,255,255,0.9); box-shadow: 0 3px 8px rgba(0,0,0,0.55); }
.fish-pin span { transform: rotate(45deg); font-size: 11px; }
.user-marker { background: none; border: none; }
.user-pin { width: 16px; height: 16px; border-radius: 50%; background: var(--inv);
  border: 3px solid var(--bg); box-shadow: 0 0 0 6px rgba(244,244,245,0.18), 0 2px 6px rgba(0,0,0,0.5); }

/* ===== ENCYCLOPEDIA (species / baits) ===== */
.view-encyclo { padding: 40px 48px 80px; }
.enc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.enc-title { font-family: var(--serif); font-size: clamp(40px, 6vw, 64px); font-weight: 700;
  letter-spacing: -0.02em; margin: 0; line-height: 1; }
.enc-sub { font-size: 14px; color: var(--text-3); margin: 10px 0 0; }
.enc-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.ef-chip { font-size: 12px; padding: 6px 13px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text-3); cursor: pointer; transition: all .15s; }
.ef-chip:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.ef-chip.active { background: var(--inv); color: var(--inv-ink); border-color: transparent; }
.enc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px;
  background: var(--line-2); border: 1px solid var(--line-2); }
.enc-card { background: var(--bg); padding: 26px 24px; display: flex; flex-direction: column; gap: 16px; transition: background .18s; }
.enc-card:hover { background: var(--bg-1); }
.ec-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ec-name { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.ec-name .en { font-size: 12px; color: var(--text-3); font-weight: 500; margin-left: 8px; letter-spacing: 0.06em; }
.ec-rarity { font-size: 10px; padding: 4px 9px; border-radius: 20px; border: 1px solid var(--line);
  color: var(--text-2); letter-spacing: 0.12em; white-space: nowrap; }
.ec-rows { display: flex; flex-direction: column; gap: 9px; }
.ec-row { display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.ec-row .lab { color: var(--text-3); width: 64px; flex-shrink: 0; letter-spacing: 0.04em; }
.ec-row .val { color: var(--text); }
.bar { flex: 1; height: 4px; background: var(--bg-3); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--inv); }
.ec-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.ec-tag { font-size: 11px; padding: 4px 10px; border-radius: 20px; background: var(--bg-2);
  border: 1px solid var(--line); color: var(--text-2); cursor: pointer; transition: all .15s; }
.ec-tag:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.ec-tag.linked { background: var(--inv); color: var(--inv-ink); border-color: transparent; }

/* ===== KNOTS (线结 · 前导) ===== */
.knot-intro { margin-bottom: 22px; padding: 20px 22px; border-left: 2px solid var(--inv);
  background: var(--bg-1); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.knot-intro .enc-title { font-size: clamp(34px, 5vw, 52px); margin: 0 0 4px; }
.knot-bullets { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.knot-bullets li { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.knot-bullets b { color: var(--text); font-weight: 700; }
.knot-source { font-size: 11px; color: var(--text-3); margin: 22px 0 0; line-height: 1.6; }

.knot-card { background: var(--bg); padding: 0; display: flex; flex-direction: column; }
.knot-figure { margin: 0; background: var(--bg-3); line-height: 0; }
.knot-figure img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.knot-head { padding: 16px 20px 10px; display: flex; flex-direction: column; gap: 8px; }
.knot-name { font-size: 19px; font-weight: 700; margin: 0; }
.knot-name .en { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em;
  color: var(--text-3); margin-top: 3px; text-transform: uppercase; }
.knot-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.kp { font-size: 11px; padding: 3px 9px; border-radius: 20px; background: var(--bg-2);
  border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.kp.ghost { color: var(--text-3); }
.knot-use { font-size: 12.5px; color: var(--text-2); line-height: 1.6; margin: 0; padding: 0 20px 12px; }
.knot-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 12px; }
.knot-steps { list-style: none; counter-reset: step; margin: 0; padding: 0 20px 14px;
  display: grid; gap: 8px; }
.knot-steps li { counter-increment: step; position: relative; padding-left: 28px;
  font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.knot-steps li::before { content: counter(step); position: absolute; left: 0; top: 1px;
  width: 19px; height: 19px; border: 1px solid var(--line); border-radius: 50%;
  color: var(--text); font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.knot-video { align-self: flex-start; margin: 0 20px 18px; font-size: 12.5px; color: var(--inv);
  background: var(--bg-2); border: 1px solid var(--line); padding: 6px 12px; border-radius: 20px;
  text-decoration: none; transition: border-color .15s; }
.knot-video:hover { border-color: var(--inv); }

@media (max-width: 720px) {
  .knot-figure img { aspect-ratio: 4 / 3; }
  .knot-intro { padding: 16px; }
}
@media (max-width: 380px) {
  .knot-figure img { aspect-ratio: 1 / 1; }
}

/* ===== Modal ===== */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.78); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 16px; animation: fade .2s ease; }
.modal { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r);
  width: min(440px, 100%); max-height: 90vh; overflow: hidden; position: relative;
  display: flex; flex-direction: column; animation: pop .22s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 32px; height: 32px;
  border-radius: 50%; border: none; background: rgba(0,0,0,0.55); color: #fff; cursor: pointer; font-size: 15px; }
.modal-close:hover { background: rgba(0,0,0,0.8); }
.modal-cover { width: 100%; height: 196px; background: var(--bg-3); flex-shrink: 0; }
.modal-cover img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-body h3 { margin: 0 0 6px; font-size: 18px; }
.modal-addr { font-size: 13px; color: var(--text-2); margin: 0 0 13px; line-height: 1.55; }
.modal-meta { display: flex; gap: 8px; margin-bottom: 13px; flex-wrap: wrap; }
.pill { font-size: 11.5px; padding: 4px 11px; border-radius: 20px; background: var(--bg);
  color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.pill.ghost { color: var(--text-3); }
.modal-coords { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 8px 10px; margin-bottom: 14px; }
.modal-coords code { font-size: 12px; color: var(--text-2); flex: 1; word-break: break-all; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modal-actions .btn { font-size: 12.5px; }

/* Toast */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bg-1); border: 1px solid rgba(255,255,255,0.3); color: var(--text);
  padding: 11px 20px; border-radius: 22px; font-size: 13px; z-index: 3000;
  opacity: 0; pointer-events: none; transition: all .25s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.hidden { display: none !important; }
#btn-sidebar { display: none; }

/* ===== Mobile bottom tab bar (hidden on desktop) ===== */
.tabbar { display: none; }
.tabbar-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: none; border: 0; color: var(--text-3); cursor: pointer;
  padding: 7px 0 2px; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  position: relative; transition: color .15s; -webkit-tap-highlight-color: transparent;
}
.tabbar-btn svg { width: 21px; height: 21px; }
.tabbar-btn.active { color: var(--inv); }
.tabbar-btn.active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 22px; height: 2px; background: var(--inv);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero { padding: 48px 24px 40px; }
  .view-encyclo { padding: 28px 20px 60px; }
  .view-spots, .view-spots.active { grid-template-columns: 320px 1fr; }
}
@media (max-width: 720px) {
  .brand-text { display: none; }
  .nav { display: none; }                    /* 顶栏链接收起，改由底部标签栏导航 */
  .loc-pill { display: none; }
  /* ☰ 仅在钓点视图显示（由 body.view-spots 控制） */
  #btn-sidebar { display: none; }
  body[data-view="spots"] #btn-sidebar { display: inline-flex; }

  /* 底部标签栏 */
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
    height: calc(56px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--bg-1); border-top: 1px solid var(--line);
  }
  .topnav { padding-top: env(safe-area-inset-top); }
  /* 视图内容底部留白，避免被标签栏遮挡 */
  .view { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }

  .view-spots, .view-spots.active { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: calc(var(--topnav-h) + env(safe-area-inset-top)); bottom: 0; left: 0; width: min(86vw, 360px);
    z-index: 1600; transform: translateX(-105%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .scrim { position: fixed; inset: calc(var(--topnav-h) + env(safe-area-inset-top)) 0 0 0; background: rgba(0,0,0,0.5); z-index: 1500;
    opacity: 0; pointer-events: none; transition: opacity .25s; }
  .scrim.show { opacity: 1; pointer-events: auto; }

  .hero { padding: 40px 22px 36px; }
  .hero-title { font-size: clamp(52px, 15vw, 96px); margin-bottom: 20px; }
  .hero-cta .btn { flex: 1; }
  .view-encyclo { padding: 26px 16px calc(70px + env(safe-area-inset-bottom)); }
  .home-card { padding: 24px 20px; }
  .enc-card { padding: 20px 18px; }
  .ls-btn { width: 44px; height: 44px; font-size: 18px; }
  .layer-switcher { bottom: calc(68px + env(safe-area-inset-bottom)); }
  /* Toast 上移避开标签栏 */
  .toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .hero-title { font-size: clamp(44px, 14vw, 64px); }
  .tabbar-btn { font-size: 10px; }
  .tabbar-btn svg { width: 19px; height: 19px; }
  .nav-actions .btn { padding: 8px 10px; }
}

/* ===== v2 追加：导航分组 ===== */
.nav-group { display: flex; align-items: center; gap: 2px; }
.nav-group-label { font-size: 11px; color: var(--text-3); letter-spacing: 0.08em; padding-right: 6px; }
.nav-group-links { display: flex; gap: 2px; }
.hc-extra { font-size: 12px; color: var(--text-2); font-family: ui-monospace, monospace; margin-top: 8px; }

/* ===== v2 追加：通用卡片补充（步骤/贴士） ===== */
.card-steps { list-style: none; counter-reset: step; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.card-steps li { counter-increment: step; position: relative; padding-left: 24px;
  font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.card-steps li::before { content: counter(step); position: absolute; left: 0; top: 1px;
  width: 17px; height: 17px; border: 1px solid var(--line); border-radius: 50%;
  color: var(--text); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.card-tip { font-size: 12px; color: var(--text-2); border-left: 2px solid var(--inv);
  padding: 7px 11px; background: var(--bg-1); border-radius: 0 7px 7px 0;
  line-height: 1.6; margin: 10px 0 0; }

/* ===== v2 追加：学习路径 ===== */
.view-pathway { padding: 40px 48px 80px; }
.path-total { font-size: 13px; color: var(--text-2); font-family: ui-monospace, monospace; }
.path-total b { color: var(--text); font-size: 16px; }
.pathway-stages { display: grid; gap: 18px; }
.path-stage { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); padding: 18px; }
.path-stage.complete { border-color: rgba(255,255,255,0.28); }
.path-stage-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.path-stage-head h3 { margin: 0; font-size: 17px; }
.path-goal { font-size: 12px; color: var(--text-3); flex: 1; min-width: 200px; }
.path-count { font-size: 12px; color: var(--text); font-family: ui-monospace, monospace; }
.path-prog { height: 4px; flex-basis: 100%; background: var(--bg-3); border-radius: 4px; overflow: hidden; }
.path-prog i { display: block; height: 100%; background: var(--inv); transition: width .25s; }
.path-tasks { display: grid; gap: 8px; }
.path-task { display: flex; gap: 12px; padding: 11px; border: 1px solid var(--line-2);
  border-radius: 9px; background: var(--bg); align-items: flex-start; }
.path-task.done { opacity: 0.6; }
.path-task.done .path-title { text-decoration: line-through; text-decoration-color: var(--text-3); }
.path-check input { display: none; }
.path-box { width: 22px; height: 22px; border: 1.5px solid var(--text-3); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  color: transparent; cursor: pointer; transition: all .15s; margin-top: 1px; }
.path-box:hover { border-color: var(--text); }
.path-check input:checked + .path-box { background: var(--inv); border-color: var(--inv); color: var(--inv-ink); }
.path-title { font-size: 14px; font-weight: 600; }
.path-desc { font-size: 12.5px; color: var(--text-3); line-height: 1.6; margin: 3px 0 6px; }
.path-links { display: flex; flex-wrap: wrap; gap: 6px; }

/* ===== v2 追加：移动端导航（百科横向滚动条 + 学习路径） ===== */
@media (max-width: 720px) {
  .nav { display: flex; margin-left: 0; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav > .nav-link { display: none; }              /* 概览/钓点走底部 tabbar */
  .nav > .nav-link.nav-cta { display: inline-flex; } /* 学习路径常驻顶栏 */
  .nav-group { display: flex; }
  .nav-group-label { display: none; }
  .nav-group-links { display: flex; gap: 2px; }
  .nav-link { white-space: nowrap; font-size: 12.5px; padding: 8px 10px; }
  .view-pathway { padding: 26px 16px calc(70px + env(safe-area-inset-bottom)); }
}

/* ===== 鱼情指数面板 ===== */
.condition .cond-main { display: flex; align-items: center; gap: 12px; }
.cond-score { font-size: 34px; font-weight: 800; line-height: 1; font-family: ui-monospace, monospace; min-width: 58px; }
.cond-meta { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.cond-level { font-size: 13px; font-weight: 700; }
.cond-updated { font-size: 11px; color: var(--text-3); font-family: ui-monospace, monospace; }
.cond-warn { margin-top: 10px; padding: 7px 10px; border-radius: 7px; font-size: 12.5px; font-weight: 600;
  background: rgba(232, 89, 12, 0.15); border: 1px solid rgba(232, 89, 12, 0.5); color: #ff922b; }
.cond-factors { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.cond-factors li { display: flex; align-items: center; gap: 9px; }
.cond-factors label { font-size: 11px; color: var(--text-3); width: 38px; flex-shrink: 0; letter-spacing: 0.04em; }
.cond-factors .weak { font-style: normal; font-size: 9px; color: var(--text-3); opacity: 0.7; }
.cond-bar { flex: 1; height: 4px; background: var(--bg-3); border-radius: 4px; overflow: hidden; }
.cond-bar i { display: block; height: 100%; border-radius: 4px; }
.cond-species { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.cond-species-label { font-size: 11px; color: var(--text-3); letter-spacing: 0.04em; }
.cond-species-tags { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* ===== 鱼情指数独立页(v1.1) ===== */
.view-condition { padding: 40px 48px 80px; overflow-y: auto; }
.cond-page { max-width: 720px; margin: 0 auto; }
.cond-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cond-page-head .enc-sub { margin-top: 8px; }
.cond-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.cond-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0 18px;
  border-bottom: 1px solid var(--line-2); }
.cond-hero-score { font-size: 84px; font-weight: 800; line-height: 1; font-family: ui-monospace, monospace;
  letter-spacing: -0.02em; animation: cond-pop .5s cubic-bezier(.2,.9,.3,1.2); }
@keyframes cond-pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
.stars { position: relative; font-size: 30px; line-height: 1; letter-spacing: 6px; }
.stars-bg { color: var(--bg-3); }
.stars-fill { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; width: 0%;
  transition: width 1.1s cubic-bezier(.25,.8,.3,1); text-shadow: 0 0 14px currentColor; }
.cond-hero-level { font-size: 15px; font-weight: 700; animation: fade .5s .3s ease backwards; }
.cond-reasons { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.cond-reason { display: flex; align-items: baseline; gap: 9px; font-size: 13.5px; color: var(--text-2);
  padding: 9px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line-2);
  animation: cond-slide .45s ease backwards; }
.cond-reason.good { border-left: 2px solid #2f9e44; }
.cond-reason.bad { border-left: 2px solid #f59f00; }
@keyframes cond-slide { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.cond-pf label { font-size: 12px; color: var(--text-3); width: 44px; flex-shrink: 0; }
.cond-pf .cond-pf-detail { font-size: 11px; color: var(--text-3); width: 130px; text-align: right; flex-shrink: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cond-page-factors { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.cond-pf { display: flex; align-items: center; gap: 10px; opacity: 0; animation: fade .4s ease forwards; animation-delay: var(--delay, 0s); }
.cond-pf .cond-bar { flex: 1; height: 5px; }
.cond-pf .cond-bar i { width: 0; transition: width .9s cubic-bezier(.25,.8,.3,1); transition-delay: var(--delay, 0s); border-radius: 4px; }
.cond-page-species { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.cond-updated-line { font-size: 11.5px; color: var(--text-3); margin: 14px 0 0; }
.cond-tip { font-size: 11px; color: var(--text-3); opacity: 0.75; margin: 6px 0 0; line-height: 1.6; }
.cond-detail-link { margin-top: 12px; }

@media (max-width: 720px) {
  .view-condition { padding: 26px 16px calc(70px + env(safe-area-inset-bottom)); }
  .cond-card { padding: 20px 16px; }
  .cond-hero-score { font-size: 64px; }
  .stars { font-size: 24px; letter-spacing: 4px; }
  .cond-pf .cond-pf-detail { display: none; }
}

/* ===== 算法说明 + 缓存降级横幅 ===== */
.cond-algo { margin-top: 14px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg); }
.cond-algo summary { cursor: pointer; font-size: 12px; color: var(--text-3); padding: 9px 12px; letter-spacing: 0.05em; user-select: none; }
.cond-algo summary:hover { color: var(--text); }
.cond-algo-body { padding: 2px 12px 12px; }
.algo-formula { font-family: ui-monospace, monospace; font-size: 12px; color: var(--text); background: var(--bg-2);
  padding: 8px 10px; border-radius: 7px; overflow-x: auto; white-space: nowrap; margin: 0 0 10px; }
.algo-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.algo-table th { text-align: left; color: var(--text-3); font-weight: 600; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.algo-table td { padding: 4px 6px; color: var(--text-2); font-family: ui-monospace, monospace; border-bottom: 1px solid var(--line-2); }
.algo-table tfoot td { color: var(--text); font-weight: 700; border-bottom: none; }
.algo-note { font-size: 11px; color: var(--text-3); line-height: 1.65; margin: 9px 0 0; }
.cache-note { font-size: 11.5px; color: #f59f00; background: rgba(245, 159, 0, 0.08); border: 1px solid rgba(245, 159, 0, 0.35);
  border-radius: 7px; padding: 7px 10px; margin-bottom: 8px; line-height: 1.5; }

/* ===== 装备 3D 拆解页 ===== */
.view-rod3d { padding: 40px 48px 80px; display: flex; flex-direction: column; }
.rod3d-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rod3d-tabs { display: flex; gap: 6px; }
.tab-r3d { border: 1px solid var(--line); background: var(--bg); color: var(--text-2);
  padding: 10px 18px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
.tab-r3d:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.tab-r3d.active { background: var(--inv); color: var(--inv-ink); border-color: transparent; }
.rod3d-layout { display: grid; grid-template-columns: 1fr 320px; gap: 18px; flex: 1; min-height: 0; }
.rod3d-stage { display: flex; flex-direction: column; min-height: 0; }
.rod3d-canvas { flex: 1; min-height: 480px; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: #0f1013; position: relative; }
.rod3d-canvas canvas { display: block; width: 100%; height: 100%; }
.rod3d-controls { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.rod3d-controls label { font-size: 12px; color: var(--text-3); letter-spacing: 0.05em; }
.rod3d-controls input[type="range"] { flex: 1; }
.rod3d-side { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.rod3d-info { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); padding: 16px; min-height: 150px; }
.rod3d-info h3 { margin: 0 0 8px; font-size: 16px; }
.rod3d-info p { margin: 0 0 10px; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.rod3d-empty { color: var(--text-3); font-size: 12.5px; text-align: center; padding: 26px 8px; line-height: 1.9; }
.rod3d-parts { display: flex; flex-wrap: wrap; gap: 6px; overflow-y: auto; }
.r3d-chip { font-size: 12px; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text-3); cursor: pointer; transition: all .15s; }
.r3d-chip:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.r3d-chip.active { background: var(--inv); color: var(--inv-ink); border-color: transparent; }

@media (max-width: 900px) {
  .rod3d-layout { grid-template-columns: 1fr; }
  .rod3d-canvas { min-height: 340px; }
}
@media (max-width: 720px) {
  .view-rod3d { padding: 26px 16px calc(70px + env(safe-area-inset-bottom)); }
  .rod3d-canvas { min-height: 300px; }
}

/* ===== 装备仓库 gearbox ===== */
.gb-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); }
.gb-filters input[type="search"] { max-width: 420px; }
.gb-filters select { max-width: 240px; }
.gb-chip-rows { display: flex; flex-direction: column; gap: 8px; }
.gb-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.gb-row::before { content: attr(data-label); font-size: 11px; color: var(--text-3); letter-spacing: 0.06em; }
.gb-section { font-size: 13px; color: var(--text-2); letter-spacing: 0.1em; margin: 26px 0 12px;
  padding-left: 10px; border-left: 2px solid var(--inv); text-transform: uppercase; }
.brand-card { cursor: default; }
.brand-card .brand-blurb { font-size: 12.5px; color: var(--text-2); line-height: 1.7; margin: 0; flex: 1; }
.brand-card .ec-top { margin-bottom: 8px; }
.gb-tier { font-size: 10px; padding: 4px 9px; border-radius: 20px; border: 1px solid; letter-spacing: 0.12em; white-space: nowrap; font-weight: 700; }
.gb-price { color: #fab005 !important; font-family: ui-monospace, monospace; font-weight: 700; }
.gb-soon { opacity: 0.55; cursor: default; }

/* ===== 品牌/logo ===== */
.brand-logo { width: 132px; height: 40px; border-radius: 8px; display: block; margin-bottom: 12px;
  transition: transform .18s; }
.brand-card:hover .brand-logo { transform: scale(1.03); }
.ec-name .brand-mini { width: auto; height: 20px; border-radius: 4px; vertical-align: -4px; margin-right: 7px; }

/* ===== 路亚盒悬浮筛选器 + 随机抽取 ===== */
.gb-layout { display: grid; grid-template-columns: 1fr 264px; gap: 20px; align-items: start; }
.gb-main { min-width: 0; }
.gb-main .gb-section:first-child { margin-top: 0; }

.gb-box {
  position: sticky; top: calc(var(--topnav-h) + 12px);
  background: linear-gradient(175deg, #1b1e24 0%, #101216 70%);
  border: 1px solid #2e323a; border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}
.gb-box-lid {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 11px 12px; background: linear-gradient(180deg, #23262d, #1a1d22);
  border-bottom: 1px solid #2e323a;
}
.gb-box-lid::before, .gb-box-lid::after {   /* 盒扣 */
  content: ''; position: absolute; bottom: -6px; width: 14px; height: 10px;
  background: #343943; border: 1px solid #454b56; border-radius: 2px;
}
.gb-box-lid::before { left: 26px; }
.gb-box-lid::after { right: 26px; }
.gb-box-handle {   /* 提手 */
  position: absolute; left: 50%; top: -9px; transform: translateX(-50%);
  width: 64px; height: 14px; border: 2px solid #454b56; border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.gb-box-title { font-size: 11px; font-weight: 800; letter-spacing: 0.22em; color: var(--text-2); flex: 1; padding-left: 22px; }
.gb-box-close { border: none; background: transparent; color: var(--text-3); cursor: pointer; font-size: 13px; display: none; }
.gb-box-body { padding: 13px 12px; display: flex; flex-direction: column; gap: 12px; max-height: min(58vh, 560px); overflow-y: auto; }
.gb-box-body input[type="search"] { width: 100%; font-size: 12.5px; padding: 8px 10px; }
.gb-compartment {
  padding: 10px 10px 11px; border: 1px dashed #333944; border-radius: 10px;
  background: rgba(255,255,255,0.015);
}
.gb-compartment label { display: block; font-size: 10px; color: var(--text-3); letter-spacing: 0.18em; margin-bottom: 7px; }
.gb-compartment .gb-row { gap: 5px; }
.gb-compartment .ef-chip { font-size: 11px; padding: 5px 10px; }
.gb-brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.gb-brand-cell {
  border: 1px solid #2e323a; border-radius: 7px; background: #14161a; cursor: pointer;
  padding: 0; overflow: hidden; transition: border-color .15s, transform .12s; line-height: 0;
}
.gb-brand-cell:hover { border-color: #566073; transform: translateY(-1px); }
.gb-brand-cell.active { border-color: var(--inv); box-shadow: 0 0 0 1px var(--inv); }
.gb-brand-cell img { width: 100%; height: 38px; object-fit: cover; object-position: left center; }
.gb-brand-cell .gbc-all { display: flex; align-items: center; justify-content: center; height: 38px;
  font-size: 12px; color: var(--text-2); font-weight: 700; letter-spacing: 0.1em; }

.gb-random-btn {
  display: block; width: 100%; border: none; cursor: pointer;
  padding: 13px; font-size: 14px; font-weight: 800; letter-spacing: 0.08em;
  color: #0e1116; background: linear-gradient(135deg, #ffd43b, #ff922b);
  transition: transform .12s, filter .15s;
}
.gb-random-btn:hover { filter: brightness(1.08); }
.gb-random-btn:active { transform: scale(0.97); }

/* 抽奖揭晓层 */
.gb-draw { position: fixed; inset: 0; z-index: 2600; background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 18px; }
.gb-draw-card {
  width: min(360px, 100%); background: var(--bg-1); border: 1px solid #3a4050;
  border-radius: 16px; padding: 22px;
  animation: draw-pop .38s cubic-bezier(.2,.9,.3,1.25);
  perspective: 800px;
}
@keyframes draw-pop { from { opacity: 0; transform: scale(.7) rotateY(35deg); } to { opacity: 1; transform: none; } }
.gb-draw-card.landed { animation: draw-flip .5s cubic-bezier(.25,.8,.3,1.05); }
@keyframes draw-flip { from { transform: rotateY(90deg) scale(.92); opacity: .4; } to { transform: none; opacity: 1; } }
.draw-title { text-align: center; font-size: 15px; font-weight: 700; color: var(--text-2); margin-bottom: 14px; }
.draw-rolling { min-height: 92px; display: flex; align-items: center; justify-content: center; text-align: center; }
.draw-name { font-size: 22px; font-weight: 800; font-style: italic; animation: fade .12s ease; }
.draw-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  border: 1px solid; border-radius: 20px; padding: 5px 12px; margin-bottom: 12px; }
.draw-logo { width: 128px; height: 38px; border-radius: 8px; display: block; margin: 0 0 10px; }
.gb-draw-card h3 { margin: 0 0 10px; font-size: 19px; }
.gb-draw-card h3 .en { font-size: 12px; color: var(--text-3); font-weight: 500; margin-left: 8px; }
.gb-draw-card .card-tip { margin: 10px 0 0; }
.draw-actions { display: flex; gap: 7px; margin-top: 14px; }
.draw-actions .btn { flex: 1; }

/* 移动端:FAB + 抽屉 */
.gb-box-fab { display: none; position: fixed; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 1700;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid #3a4050; cursor: pointer;
  background: linear-gradient(135deg, #ffd43b, #ff922b); font-size: 22px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5); }
.gb-scrim { position: fixed; inset: 0; z-index: 2300; background: rgba(0,0,0,0.5); }
@media (max-width: 1100px) {
  .gb-layout { grid-template-columns: 1fr; }
  .gb-box { display: none; position: fixed; top: 0; right: 0; bottom: 0; z-index: 2400;
    width: min(86vw, 320px); border-radius: 16px 0 0 16px; animation: gb-slide .25s ease; }
  .gb-box.open { display: flex; flex-direction: column; }
  .gb-box-body { max-height: none; flex: 1; }
  .gb-box-close { display: block; }
  .gb-box-fab { display: block; }
}
@keyframes gb-slide { from { transform: translateX(100%); } to { transform: none; } }

/* ---------- 饵料点赞 + 热榜 ---------- */
.ec-like {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px;
  font-family: ui-monospace, monospace; font-size: 11.5px; color: var(--text-3);
  cursor: pointer; user-select: none; transition: all .15s; margin-top: auto;
}
.ec-like:hover { border-color: var(--inv); color: var(--text); }
.ec-like.on { background: var(--inv); border-color: var(--inv); color: var(--inv-ink); }
.ec-like svg { display: block; }
.ec-like.on svg { fill: currentColor; }

.rank-strip {
  display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: baseline;
  padding: 14px 2px 22px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px;
}
.rank-item { display: flex; align-items: baseline; gap: 8px; cursor: pointer; }
.rank-item:hover .rk-name { color: var(--text); }
.rk-num {
  font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1;
  color: var(--text); font-style: italic;
}
.rank-item:not(:first-child) .rk-num { color: var(--text-3); }
.rk-name { font-size: 13px; color: var(--text-2, var(--text)); transition: color .15s; }
.rk-count { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--text-3); }
