/* 迷失宝藏 · jikejiao.com/baozang/ —— 深色航海图 + 金色 */
:root {
  --bg: #07090f;
  --bg2: #0d111b;
  --panel: #111725;
  --line: #222b3d;
  --ink: #e9e3d3;
  --muted: #9aa3b5;
  --dim: #6b7486;
  --gold: #f5b53f;
  --gold2: #ffd27a;
  --cyan: #53d9ff;
  --red: #ff6b5a;
  --green: #5fd49a;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.75 var(--sans);
  background-image: radial-gradient(ellipse at 50% -10%, rgba(245, 181, 63, .10), transparent 55%),
    linear-gradient(rgba(83, 217, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(83, 217, 255, .025) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  overflow-x: hidden;
}
a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* 顶栏 */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(7, 9, 15, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { color: var(--ink); font: 700 18px/1 var(--serif); letter-spacing: .08em; display: flex; align-items: baseline; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand .mark { color: var(--gold); }
.brand small { font: 400 12px var(--sans); color: var(--dim); letter-spacing: 0; }
.bar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.bar nav a { color: var(--muted); font-size: 14px; padding: 6px 10px; border-radius: 6px; }
.bar nav a:hover { color: var(--gold2); background: rgba(245, 181, 63, .08); text-decoration: none; }

/* 首屏 */
.hero { padding: 64px 0 28px; }
.kicker { color: var(--cyan); font-size: 13px; letter-spacing: .3em; margin: 0 0 10px; }
.hero h1 { font: 900 clamp(48px, 9vw, 104px)/1 var(--serif); margin: 0; letter-spacing: .06em;
  background: linear-gradient(180deg, #ffe7b0 0%, var(--gold) 55%, #b9761c 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(245, 181, 63, .15); }
.lede { max-width: 760px; color: var(--ink); font-size: clamp(16px, 2.1vw, 19px); margin: 22px 0 30px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; max-width: 760px; }
.stats div { background: var(--bg2); padding: 14px 16px; }
.stats b { display: block; font: 700 30px/1.1 var(--serif); color: var(--gold); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 13px; }

/* 精选 */
.featured { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.feat { position: relative; display: block; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); color: var(--ink); }
.feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) brightness(.7); transition: transform .5s, filter .3s; }
.feat:hover { text-decoration: none; }
.feat:hover img { transform: scale(1.05); filter: saturate(1) brightness(.8); }
.feat span { position: absolute; inset: auto 0 0 0; padding: 40px 10px 10px; background: linear-gradient(transparent, rgba(7, 9, 15, .95)); }
.feat b { display: block; font: 700 16px/1.3 var(--serif); color: var(--gold2); }
.feat em { display: block; font-style: normal; font-size: 12px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 区块 */
.block { padding: 44px 16px 8px; }
.sec-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 18px; }
.sec-h h2, .about h2 { font: 700 26px/1.3 var(--serif); margin: 0; color: var(--ink); }
.sec-h p { margin: 0; color: var(--muted); font-size: 14px; }
.lg { display: inline-flex; gap: 4px 10px; align-items: center; flex-wrap: wrap; margin-left: 8px; }
.lg i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 3px; }

/* 地图 */
.mapbox { position: relative; background: radial-gradient(ellipse at center, #0f1626, #090c14); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.world { display: block; width: 100%; height: auto; }
.world .land { fill: #1a2335; stroke: #2a3550; stroke-width: .6; }
.world .grat line { stroke: rgba(83, 217, 255, .07); stroke-width: .6; }
.pin circle { stroke: rgba(7, 9, 15, .9); stroke-width: 1.2; transition: r .15s; cursor: pointer; }
.f-lost, .pin.f-lost circle { fill: var(--gold); background: var(--gold); }
.f-partly, .pin.f-partly circle { fill: #ff9a3c; background: #ff9a3c; }
.f-found, .pin.f-found circle { fill: var(--cyan); background: var(--cyan); }
.f-destroyed, .pin.f-destroyed circle { fill: #7d8597; background: #7d8597; }
.pin:hover circle, .pin.hl circle { r: 7; }
.pin.f-lost circle { filter: drop-shadow(0 0 4px rgba(245, 181, 63, .8)); }
.pin.cur circle { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { stroke-width: 7; stroke: rgba(245, 181, 63, .25); } }
.pin.dim { opacity: .12; }
.tip { position: absolute; pointer-events: none; z-index: 3; background: rgba(13, 17, 27, .96); border: 1px solid var(--gold); border-radius: 8px; padding: 8px 10px; max-width: 260px; font-size: 13px; line-height: 1.5; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.tip b { color: var(--gold2); font-family: var(--serif); font-size: 15px; display: block; }
.tip small { color: var(--muted); }

/* 筛选 */
.filters { display: grid; gap: 10px; margin-bottom: 14px; }
#q { width: 100%; max-width: 420px; background: var(--bg2); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 10px 12px; font: inherit; }
#q:focus { outline: none; border-color: var(--gold); }
.fg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fg > span { color: var(--dim); font-size: 13px; width: 3em; flex: none; }
.fg button { background: var(--bg2); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 4px 12px; font: 13px var(--sans); cursor: pointer; }
.fg button i { font-style: normal; color: var(--dim); margin-left: 5px; font-size: 12px; }
.fg button:hover { border-color: var(--gold); color: var(--ink); }
.fg button.on { background: var(--gold); border-color: var(--gold); color: #1b1305; }
.fg button.on i { color: #5a3f0c; }
.count { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.count b { color: var(--gold); }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* 卡片 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink); transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { text-decoration: none; transform: translateY(-3px); border-color: rgba(245, 181, 63, .6); box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 0 1px rgba(245, 181, 63, .15); }
.card[hidden] { display: none; }
.thumb { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #141c2c, #0b0f18); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.85); }
.noimg { position: absolute; inset: 0; display: grid; place-items: center; font: 900 64px var(--serif); color: rgba(245, 181, 63, .18); }
.era { position: absolute; left: 8px; bottom: 8px; background: rgba(7, 9, 15, .82); color: var(--gold2); font-size: 12px; padding: 2px 8px; border-radius: 4px; border: 1px solid rgba(245, 181, 63, .3); }
.cbody { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.cbody h3 { font: 700 19px/1.35 var(--serif); margin: 0; color: var(--ink); }
.cbody .en { color: var(--dim); font-size: 12px; margin: 2px 0 8px; }
.cbody .tag { font-size: 14px; line-height: 1.6; color: #cfc8b8; margin: 0 0 10px; flex: 1; }
.cbody .where { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font-size: 11.5px; line-height: 1; padding: 4px 7px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.fd-lost { color: var(--gold); border-color: rgba(245, 181, 63, .45); }
.chip.fd-partly { color: #ff9a3c; border-color: rgba(255, 154, 60, .45); }
.chip.fd-found { color: var(--cyan); border-color: rgba(83, 217, 255, .45); }
.chip.fd-destroyed { color: #9aa1b0; }
.chip.st-legend { color: #c9a3ff; border-color: rgba(201, 163, 255, .35); }
.chip.st-confirmed { color: var(--green); border-color: rgba(95, 212, 154, .35); }

/* 关于 */
.about { max-width: 820px; padding-bottom: 40px; }
.about h2 { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.about p { color: #d6cfbf; }

/* 详情页 */
.art { padding-top: 26px; padding-bottom: 30px; }
.crumb { font-size: 13px; color: var(--dim); }
.art-h { padding: 18px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.art-h h1 { font: 900 clamp(32px, 6vw, 56px)/1.15 var(--serif); margin: 0; color: var(--gold2); letter-spacing: .02em; }
.art-h .en { color: var(--muted); margin: 6px 0 10px; font-size: 15px; }
.art-h .tagline { font: 400 clamp(17px, 2.2vw, 20px)/1.6 var(--serif); color: var(--ink); margin: 0 0 14px; max-width: 820px; }
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.art-main { min-width: 0; max-width: 760px; }
.lead-img { margin: 0 0 22px; }
.lead-img img { display: block; width: 100%; max-height: 520px; object-fit: contain; background: #0b0d12; border-radius: 10px; border: 1px solid var(--line); }
.lead-img figcaption { font-size: 12px; color: var(--dim); margin-top: 6px; overflow-wrap: anywhere; }
.lead-img figcaption a { color: var(--muted); }
.lead-img figcaption .cap { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 2px; }
.summary { font: 400 18px/1.85 var(--serif); color: var(--ink); border-left: 3px solid var(--gold); padding: 4px 0 4px 16px; margin: 0 0 26px; }
.prose { font-size: 17px; line-height: 1.9; color: #ddd6c6; overflow-wrap: break-word; }
.tl, .oq, .facts dd, .art-h { overflow-wrap: break-word; }
.prose h2, .tl h2, .oq h2, .src h2, .rel h2 { font: 700 23px/1.4 var(--serif); color: var(--ink); margin: 38px 0 12px; scroll-margin-top: 72px; }
.prose h2::before, .tl h2::before, .oq h2::before { content: "◈ "; color: var(--gold); font-size: .8em; }
.prose h3 { font: 700 19px/1.5 var(--serif); color: var(--gold2); margin: 26px 0 8px; }
.prose p { margin: 0 0 1.05em; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 3px solid var(--cyan); background: rgba(83, 217, 255, .05); color: var(--muted); }
.prose ul, .prose ol, .oq ul { padding-left: 1.3em; }
.prose li, .oq li { margin: .35em 0; }
.tl ol { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.tl li { position: relative; padding: 0 0 14px 14px; }
.tl li::before { content: ""; position: absolute; left: -25px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--bg); }
.tl b { display: block; color: var(--gold2); font-weight: 600; font-size: 14px; }
.tl span { color: #d6cfbf; font-size: 15px; }
.oq ul { background: var(--panel); border: 1px dashed rgba(245, 181, 63, .4); border-radius: 10px; padding: 14px 18px 14px 36px; }
.oq li { color: var(--ink); }
.src { margin-top: 30px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.src h2 { font-size: 17px; margin-top: 18px; }
.src li { overflow-wrap: anywhere; }
.art-side { position: sticky; top: 72px; display: grid; gap: 14px; }
.facts { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px; }
.facts div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 12px; color: var(--dim); }
.facts dd { margin: 2px 0 0; font-size: 14.5px; color: var(--ink); line-height: 1.55; }
.mini { background: radial-gradient(ellipse at center, #0f1626, #090c14); border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.toc { display: grid; gap: 2px; font-size: 14px; }
.toc p { margin: 0 0 4px; color: var(--dim); font-size: 12px; letter-spacing: .2em; }
.toc a { color: var(--muted); padding: 3px 0 3px 10px; border-left: 2px solid var(--line); }
.toc a:hover, .toc a.on { color: var(--gold2); border-left-color: var(--gold); text-decoration: none; }
.rel > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.rel a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.rel a:hover { border-color: var(--gold); text-decoration: none; }
.rel b { display: block; font: 700 16px var(--serif); color: var(--ink); }
.rel span { font-size: 12.5px; color: var(--muted); }
.pn { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.pn a { display: block; max-width: 48%; font: 700 16px/1.4 var(--serif); }
.pn a small { display: block; font: 12px var(--sans); color: var(--dim); }
.pn .next { text-align: right; margin-left: auto; }

.foot { margin-top: 40px; border-top: 1px solid var(--line); padding: 22px 0 30px; color: var(--dim); font-size: 13px; }
.foot a { color: var(--muted); }

@media (max-width: 960px) {
  .featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .art-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .art-side { position: static; order: -1; margin-bottom: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .art-side .toc { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar nav a { padding: 4px 6px; font-size: 13px; }
  .art-side { grid-template-columns: minmax(0, 1fr); }
  .art-side .mini { display: none; }
  .prose { font-size: 16.5px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .fg > span { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
