/* ==========================================================
   泊屿 RESTING ISLE — 全局样式
   版式参照极简旅行志：白顶栏 / 全屏风景 Hero / 卡片栅格 / 双栏关于
   ========================================================== */

:root {
  --bg: #f7f6f2;            /* 宣纸白 */
  --panel: #ffffff;
  --ink: #23343a;           /* 墨色 */
  --ink-soft: #55666c;
  --muted: #8b969a;
  --line: #e7e5de;
  --teal: #2f5a63;          /* 远山青 */
  --teal-deep: #1b3a42;     /* 暮水深 */
  --dusk: #cf9a6d;          /* 暮光橘 */
  --shadow: 0 14px 34px rgba(27, 58, 66, .10);
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Jost", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(47, 90, 99, .85); color: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.nav.is-scrolled { box-shadow: 0 6px 24px rgba(27, 58, 66, .08); }

.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  height: 66px;
  display: flex; align-items: center; gap: 36px;
}

.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-cn { font-size: 21px; font-weight: 700; letter-spacing: .28em; color: var(--teal-deep); }
.brand-en { font-family: var(--sans); font-size: 10.5px; font-weight: 400; letter-spacing: .34em; color: var(--muted); }

.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  font-size: 14.5px; letter-spacing: .12em; color: var(--ink-soft);
  padding: 6px 2px; position: relative; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px;
  width: 0; height: 1.5px; background: var(--dusk);
  transition: width .28s, left .28s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal-deep); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; left: 0; }

.nav-search {
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 3px;
  background: #fbfaf8; padding: 4px 6px 4px 12px;
  transition: border-color .25s;
}
.nav-search:focus-within { border-color: var(--teal); }
.nav-search input { border: 0; outline: 0; background: transparent; width: 128px; font-size: 13px; font-family: var(--sans); letter-spacing: .04em; }
.nav-search button { border: 0; background: transparent; cursor: pointer; color: var(--muted); display: grid; place-items: center; padding: 2px; }
.nav-search button:hover { color: var(--teal-deep); }

.nav-toggle { display: none; background: 0; border: 0; cursor: pointer; margin-left: auto; padding: 6px; }
.nav-toggle span { display: block; width: 20px; height: 1.8px; background: var(--ink); margin: 4.5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; height: min(88vh, 860px); min-height: 560px; overflow: hidden; display: grid; place-items: center; }

.hero-art {
  position: absolute; inset: 0;
  background: url("../assets/hero.svg") center / cover no-repeat;
  transform: scale(1.03);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift { from { transform: scale(1.03) translateY(0); } to { transform: scale(1.08) translateY(-8px); } }

.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 36, 42, .30) 0%, rgba(18, 36, 42, .16) 45%, rgba(18, 36, 42, .46) 100%);
}

.hero-body { position: relative; text-align: center; color: #fff; padding: 0 24px; max-width: 820px; }
.hero-eyebrow {
  font-family: var(--sans); font-weight: 300;
  font-size: 13px; letter-spacing: .5em; text-indent: .5em;
  opacity: .85; margin-bottom: 22px;
}
.hero-body h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 600; letter-spacing: .18em; text-indent: .18em;
  text-shadow: 0 2px 26px rgba(10, 25, 30, .35);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(14px, 1.6vw, 16.5px); font-weight: 400;
  letter-spacing: .14em; line-height: 2.1; opacity: .92;
  text-shadow: 0 1px 14px rgba(10, 25, 30, .4);
}

.hero-search {
  margin: 40px auto 0; display: flex; width: min(430px, 100%);
  box-shadow: 0 10px 30px rgba(10, 25, 30, .25);
}
.hero-search input {
  flex: 1; border: 0; outline: 0; padding: 13px 18px;
  font-size: 13.5px; letter-spacing: .1em; font-family: var(--serif);
  background: rgba(255, 255, 255, .94); color: var(--ink);
}
.hero-search input::placeholder { color: #9aa5a6; }
.hero-search button {
  border: 0; cursor: pointer; padding: 0 26px; white-space: nowrap;
  background: var(--teal-deep); color: #f4efe6;
  font-size: 14px; letter-spacing: .3em; text-indent: .3em;
  transition: background .25s;
}
.hero-search button:hover { background: var(--teal); }

.hero-more {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  color: rgba(255, 255, 255, .8); animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- 区块通用 ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 92px 28px; }
.section-alt { max-width: none; background: #efeeea; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-alt { padding-left: 0; padding-right: 0; }
.section-alt > .section-head, .section-alt > .post-grid { padding: 0 28px; }
.section-alt > .section-head { margin-bottom: 0; }
.section-alt > .post-grid { margin-top: 56px; }

.section-head { text-align: center; margin-bottom: 56px; }
.eyebrow {
  font-family: var(--sans); font-weight: 300;
  font-size: 11.5px; letter-spacing: .46em; text-indent: .46em;
  color: var(--dusk); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(24px, 3vw, 32px); font-weight: 600;
  letter-spacing: .3em; text-indent: .3em; color: var(--teal-deep);
}
.section-sub { margin-top: 14px; font-size: 14px; color: var(--muted); letter-spacing: .1em; }

/* ---------- 五座泊所 ---------- */
.harbor-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(5, 1fr);
}
.harbor-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 34px 22px 26px; text-align: center; position: relative;
  transition: transform .35s, box-shadow .35s, border-color .35s;
  display: flex; flex-direction: column; align-items: center;
}
.harbor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(47, 90, 99, .4); }
.harbor-icon { width: 46px; height: 46px; color: var(--teal); margin-bottom: 18px; transition: color .3s, transform .3s; }
.harbor-card:hover .harbor-icon { color: var(--dusk); transform: translateY(-3px); }
.harbor-card h3 { font-size: 20px; font-weight: 600; letter-spacing: .3em; text-indent: .3em; color: var(--ink); }
.harbor-en {
  font-family: var(--sans); font-weight: 300; font-size: 10px;
  letter-spacing: .18em; color: var(--muted); margin: 8px 0 14px;
}
.harbor-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.9; flex: 1; }
.harbor-go {
  margin-top: 18px; font-size: 12px; letter-spacing: .2em;
  color: var(--teal); opacity: 0; transform: translateY(4px);
  transition: opacity .3s, transform .3s;
}
.harbor-card:hover .harbor-go { opacity: 1; transform: none; }

/* ---------- 最近靠岸 · 文章卡片 ---------- */
.post-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
.post-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s, box-shadow .35s;
  position: relative;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-thumb { display: block; aspect-ratio: 4 / 2.7; overflow: hidden; position: relative; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-card:hover .post-thumb img { transform: scale(1.05); }

.post-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .2em;
  color: #fff; background: rgba(27, 58, 66, .78);
  padding: 4px 10px; border-radius: 2px; backdrop-filter: blur(3px);
}
.post-raw {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  font-family: var(--sans); font-size: 10px; letter-spacing: .14em;
  color: #f4efe6; background: rgba(27, 58, 66, .82);
  padding: 4px 10px; border-radius: 2px; cursor: pointer;
  transition: background .25s;
}
.post-raw:hover { background: var(--dusk); }
.post-recipe {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  font-family: var(--sans); font-size: 10px; letter-spacing: .14em;
  color: #f4efe6; background: rgba(207, 154, 109, .88);
  padding: 4px 10px; border-radius: 2px; backdrop-filter: blur(3px);
}

/* ---------- 烟渚 · 美食小卡 ---------- */
.foodcard-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(8, 18, 23, .82); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 24px;
}
.foodcard-overlay[hidden] { display: none; }
.foodcard {
  width: min(460px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5); position: relative;
}
.foodcard::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #cf9a6d, #e8b477 40%, #cf9a6d);
  opacity: .9; border-radius: 10px 10px 0 0; z-index: 1;
}
.foodcard .sc-close { color: rgba(35, 52, 58, .5); z-index: 2; }
.foodcard .sc-close:hover { color: var(--teal-deep); }
.fc-media { position: relative; }
.fc-media img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block;
  border-radius: 10px 10px 0 0;
}
.fc-body { padding: 18px 26px 24px; }
.fc-tags {
  font-family: var(--sans); font-weight: 300; font-size: 11px;
  letter-spacing: .18em; color: var(--dusk); display: block; margin-bottom: 6px;
}
.fc-body h3 { font-size: 19px; font-weight: 600; letter-spacing: .04em; color: var(--teal-deep); }
.fc-intro { margin-top: 12px; }
.fc-intro p { font-size: 13.5px; line-height: 2.05; color: var(--ink-soft); margin: 0 0 8px; }
.fc-intro .fc-none-text { color: var(--muted); }
.fc-actions {
  display: flex; align-items: center; gap: 16px; margin-top: 16px;
  flex-wrap: wrap;
}
.fc-recipe {
  font-family: var(--sans); font-size: 12px; letter-spacing: .16em;
  color: var(--teal-deep); border: 1px solid rgba(47, 90, 99, .5);
  padding: 8px 18px; border-radius: 999px; transition: background .25s, color .25s, border-color .25s;
}
.fc-recipe:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #f4efe6; }
.fc-recipe.fc-none {
  color: var(--muted); border: 1px dashed var(--line); cursor: default;
}
.fc-recipe.fc-none:hover { background: none; border-color: var(--line); color: var(--muted); }
.fc-full {
  font-family: var(--sans); font-size: 12px; letter-spacing: .16em;
  color: var(--dusk); transition: color .25s;
}
.fc-full:hover { color: var(--teal-deep); }

/* ---------- 枕屿 · 在线播放 ---------- */
.crate-cover-wrap { position: relative; width: 64px; height: 64px; }
.crate-cover-wrap .crate-cover { width: 64px; height: 64px; }
.cover-play {
  position: absolute; inset: 0; border: 0; border-radius: 4px; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: rgba(14, 30, 36, .38);
  opacity: 0; transition: opacity .25s, background .25s;
}
.crate-cover-wrap:hover .cover-play, .cover-play.playing { opacity: 1; }
.cover-play:hover { background: rgba(14, 30, 36, .55); }
.cover-play svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 4px rgba(0,0,0,.4)); }

.player-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 28px; background: rgba(27, 58, 66, .97); color: #f4efe6;
  box-shadow: 0 -12px 34px rgba(14, 30, 36, .32);
  transform: translateY(110%); transition: transform .35s ease;
}
.player-bar.show { transform: none; }
.player-cover { width: 46px; height: 46px; border-radius: 4px; object-fit: cover; flex: none; }
.player-meta { flex: 1; display: flex; align-items: center; gap: 18px; min-width: 0; }
.player-title {
  font-size: 13px; letter-spacing: .06em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 300px;
}
.player-seek { flex: 1; accent-color: var(--dusk); height: 4px; cursor: pointer; min-width: 60px; }
.player-time {
  font-family: var(--sans); font-weight: 300; font-size: 11px;
  letter-spacing: .08em; opacity: .85; white-space: nowrap;
}
.player-btn {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 1px solid rgba(244, 239, 230, .4); background: transparent;
  color: #f4efe6; display: grid; place-items: center; cursor: pointer;
  transition: background .25s;
}
.player-btn:hover { background: rgba(244, 239, 230, .15); }
.player-btn svg { width: 16px; height: 16px; }

/* ---------- 枕屿 · 搜索导航与播放控制 ---------- */
.music-toolbar {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin: 34px 0 4px; flex-wrap: wrap;
}
.music-search {
  display: flex; align-items: center; width: min(560px, 100%);
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 4px 5px 4px 18px;
  transition: border-color .25s, box-shadow .25s;
}
.music-search:focus-within { border-color: var(--teal); box-shadow: 0 8px 22px rgba(27, 58, 66, .1); }
.music-search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.music-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  padding: 8px 12px; font-size: 13.5px; letter-spacing: .04em;
  font-family: var(--serif); color: var(--ink);
}
.music-search input::placeholder { color: #a8b2b5; }
.music-search button {
  border: 0; cursor: pointer; background: var(--teal-deep); color: #f4efe6;
  padding: 8px 24px; border-radius: 999px; font-size: 13px;
  letter-spacing: .2em; text-indent: .1em; font-family: var(--serif);
  transition: background .25s;
}
.music-search button:hover { background: var(--teal); }
.music-count {
  font-family: var(--sans); font-weight: 300; font-size: 11px;
  letter-spacing: .14em; color: var(--muted); white-space: nowrap;
}
.track-btn {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border: 1px solid rgba(47, 90, 99, .4); background: #fff; color: var(--teal);
  border-radius: 999px; padding: 6px 16px; cursor: pointer;
  font-family: var(--serif); font-size: 12.5px; letter-spacing: .1em;
  transition: background .25s, color .25s, border-color .25s;
}
.track-btn svg { width: 11px; height: 11px; }
.track-btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.track-btn.playing { background: var(--teal-deep); border-color: var(--teal-deep); color: #f4efe6; }
.trk-artist { color: var(--teal); }
.trk-orig {
  display: inline-block; margin-left: 10px; padding: 1px 9px;
  font-family: var(--sans); font-size: 9.5px; letter-spacing: .16em;
  color: var(--dusk); border: 1px solid rgba(207, 154, 109, .55);
  border-radius: 999px; vertical-align: 2px;
}
.crate-empty {
  background: #fff; border: 1px dashed var(--line); border-radius: 4px;
  padding: 40px 20px; text-align: center; color: var(--muted);
  font-size: 13.5px; letter-spacing: .1em;
}
.crate-type-wrap {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center; justify-content: flex-end;
}
.crate-type-btn {
  background: #fff; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.crate-type-btn:hover, .crate-type-btn.active {
  background: var(--teal); border-color: var(--teal); color: #fff;
}
.crate-empty { text-align: center; }

/* ---------- 枕屿 · 标签筛选栏 ---------- */
.tag-filter {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin: 0 0 6px; padding: 10px 20px;
  background: rgba(47, 90, 99, .08); border: 1px solid rgba(47, 90, 99, .18);
  border-radius: 999px; font-size: 13px; color: var(--ink-soft);
  flex-wrap: wrap;
}
.tag-filter[hidden] { display: none; }
.tag-filter span { letter-spacing: .08em; }
.tag-filter b { color: var(--teal-deep); letter-spacing: .06em; }
.tag-filter #tagFilterCount {
  font-family: var(--sans); font-weight: 300; font-size: 11px; color: var(--muted);
}
.tag-filter button {
  border: 0; background: var(--teal-deep); color: #f4efe6;
  border-radius: 999px; padding: 5px 14px; cursor: pointer;
  font-size: 12px; letter-spacing: .06em; font-family: var(--serif);
  transition: background .25s;
}
.tag-filter button:hover { background: var(--teal); }
.player-mode { color: var(--dusk); }
.player-mode:hover { background: rgba(207, 154, 109, .18); }
.player-mode svg { width: 17px; height: 17px; }
.player-mode-name {
  font-family: var(--sans); font-weight: 300; font-size: 10.5px;
  letter-spacing: .1em; opacity: .75; white-space: nowrap;
}

/* ---------- 枕屿 · 复古唱片机（站点色系） ---------- */
.turntable { margin: 44px auto 8px; max-width: 860px; }
.tt-deck {
  display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: center;
  background:
    linear-gradient(160deg, #1c4150 0%, #122c36 58%, #0d1f26 100%);
  border: 1px solid rgba(159, 216, 207, .2); border-radius: 10px;
  padding: 30px 38px;
  box-shadow: inset 0 1px 0 rgba(159, 216, 207, .14), 0 26px 60px rgba(16, 36, 42, .38);
  position: relative; overflow: hidden;
}
.tt-deck::before {  /* 木纹饰条 */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, #cf9a6d, #e8b477 40%, #cf9a6d);
  opacity: .85;
}
.tt-deck::after {  /* 底部木纹饰条 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, #cf9a6d, #e8b477 40%, #cf9a6d);
  opacity: .85;
}
.tt-disc-wrap { position: relative; width: 260px; height: 260px; justify-self: center; }
.tt-disc {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      #f2ede2 0 5px,
      transparent 5px),
    repeating-radial-gradient(circle at 50% 50%,
      #12242c 0 3px, #0c1a21 3px 6px);
  box-shadow:
    0 0 0 1px rgba(159, 216, 207, .25),
    inset 0 0 34px rgba(0, 0, 0, .55),
    0 18px 40px rgba(0, 0, 0, .4);
  display: grid; place-items: center;
  animation: ttSpin 3.2s linear infinite;
  animation-play-state: paused;
}
.tt-disc.spinning { animation-play-state: running; }
@keyframes ttSpin { to { transform: rotate(360deg); } }
.tt-cover {
  width: 104px; height: 104px; border-radius: 50%;
  object-fit: cover; display: block;
  box-shadow: 0 0 0 4px rgba(242, 237, 226, .92), 0 0 0 5px rgba(0, 0, 0, .35);
  user-select: none; -webkit-user-drag: none;
}
.tt-spindle {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: #0c1a21; box-shadow: 0 0 0 2px #f2ede2;
}
.tt-tonearm {
  position: absolute; right: 14px; top: 10px;
  width: 7px; height: 118px; border-radius: 4px;
  background: linear-gradient(#d9d2c2, #b8ac93);
  transform-origin: 50% 12px;
  transform: rotate(-30deg);
  transition: transform .6s cubic-bezier(.34, 1.3, .5, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}
.tt-tonearm::before {  /* 唱臂底座 */
  content: ""; position: absolute; top: -9px; left: 50%;
  width: 22px; height: 22px; border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 40% 35%, #e8e2d2, #9c9078);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.tt-arm-head {  /* 唱头 */
  position: absolute; bottom: -8px; left: 50%;
  width: 20px; height: 14px; border-radius: 3px;
  transform: translateX(-50%);
  background: #cf9a6d; box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.tt-tonearm.on-disc { transform: rotate(6deg); }
.tt-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tt-brand {
  font-family: var(--sans); font-weight: 300; font-size: 10px;
  letter-spacing: .4em; color: rgba(159, 216, 207, .65); margin: 0;
}
.tt-track { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tt-track b {
  font-size: 19px; letter-spacing: .04em; color: #f2ede2; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tt-track small {
  font-family: var(--sans); font-weight: 300; font-size: 12px;
  letter-spacing: .12em; color: rgba(159, 216, 207, .8);
}
.tt-seek-row { display: flex; align-items: center; gap: 12px; }
.tt-time {
  font-family: var(--sans); font-weight: 300; font-size: 11px;
  color: rgba(210, 230, 224, .8); letter-spacing: .06em; flex: none;
  min-width: 34px;
}
.tt-seek { flex: 1; accent-color: #cf9a6d; height: 4px; cursor: pointer; }
.tt-controls { display: flex; align-items: center; gap: 14px; }
.tt-mode, .tt-queue { color: #9fd8cb; }
.tt-mode:hover, .tt-queue:hover { background: rgba(159, 216, 207, .14); border-color: rgba(159, 216, 207, .7); }
.tt-mode-line {
  margin: 0; display: flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 300; font-size: 10.5px;
  letter-spacing: .18em; color: rgba(159, 216, 207, .65);
}
.tt-mode-line b { color: #f2ede2; font-weight: 500; letter-spacing: .12em; }
.tt-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(159, 216, 207, .4); background: transparent;
  color: #eef4f1; cursor: pointer; display: grid; place-items: center;
  transition: background .25s, border-color .25s;
}
.tt-btn svg { width: 16px; height: 16px; }
.tt-btn:hover { background: rgba(159, 216, 207, .14); border-color: rgba(159, 216, 207, .7); }
.tt-main {
  width: 56px; height: 56px;
  background: linear-gradient(150deg, #cf9a6d, #b9835a);
  border-color: rgba(232, 180, 119, .7);
  box-shadow: 0 10px 24px rgba(207, 154, 109, .35);
}
.tt-main:hover { background: linear-gradient(150deg, #dda97e, #c68e62); }
.tt-main svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .tt-deck { grid-template-columns: 1fr; gap: 22px; padding: 26px 24px; justify-items: center; }
  .tt-disc-wrap { width: 210px; height: 210px; }
  .tt-disc-wrap .tt-cover { width: 84px; height: 84px; }
  .tt-panel { width: 100%; }
}

/* ---------- 枕屿 · 上/下一首、音量、播放队列 ---------- */
.player-vol { display: flex; align-items: center; gap: 8px; width: 92px; flex: none; }
.player-vol-btn svg { width: 16px; height: 16px; }
.player-vol-range { flex: 1; accent-color: var(--dusk); height: 3px; cursor: pointer; min-width: 40px; }
#btnPrev, #btnNext { font-size: 0; }
.queue-panel {
  position: fixed; right: 18px; bottom: 84px; z-index: 85;
  width: 340px; max-width: calc(100vw - 32px);
  max-height: min(58vh, 470px); display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .98); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 24px 60px rgba(14, 30, 36, .28);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .28s, transform .28s, visibility .28s;
  overflow: hidden;
}
.queue-panel.open { opacity: 1; visibility: visible; transform: none; }
.queue-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.queue-title { font-size: 14px; font-weight: 600; letter-spacing: .2em; color: var(--teal-deep); margin: 0; }
.queue-count {
  flex: 1; font-family: var(--sans); font-weight: 300; font-size: 10.5px;
  color: var(--muted); letter-spacing: .1em;
}
.queue-close {
  border: 0; background: none; cursor: pointer; color: var(--muted);
  padding: 4px; display: grid; place-items: center; transition: color .2s;
}
.queue-close:hover { color: var(--teal-deep); }
.queue-close svg { width: 14px; height: 14px; }
.queue-list { overflow-y: auto; padding: 8px; }
.queue-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 4px; cursor: pointer;
  transition: background .2s;
}
.queue-item:hover { background: #f4f2ec; }
.queue-item.current { background: #eef3f1; }
.q-idx {
  width: 22px; height: 22px; flex: none; display: grid; place-items: center;
  font-family: var(--sans); font-size: 10.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 50%;
}
.queue-item.current .q-idx { border-color: var(--teal); color: var(--teal); }
.q-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.q-main b {
  font-size: 13px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.q-main small {
  font-family: var(--sans); font-weight: 300; font-size: 10.5px;
  color: var(--muted); letter-spacing: .06em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.q-state { color: var(--teal); flex: none; display: grid; place-items: center; }
.q-state svg { width: 13px; height: 13px; }
.queue-empty {
  text-align: center; color: var(--muted); font-size: 12.5px;
  padding: 24px 0; letter-spacing: .1em; margin: 0;
}
.eq { display: inline-flex; gap: 2.5px; align-items: flex-end; height: 12px; }
.eq i { width: 2.5px; background: var(--teal); animation: eqB 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .18s; }
.eq i:nth-child(3) { animation-delay: .36s; }
@keyframes eqB { 0%, 100% { height: 4px; } 50% { height: 12px; } }

/* ---------- 枕屿 · 歌曲卡片（隐藏：点击曲目弹出） ---------- */
.trk-info { cursor: pointer; min-width: 0; }
.trk-info:hover h3 { color: var(--teal); }
.trk-info h3 { transition: color .25s; }
.songcard-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(8, 18, 23, .82); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 24px;
}
.songcard-overlay[hidden] { display: none; }
.songcard {
  width: min(460px, 100%); max-height: 84vh; overflow-y: auto;
  min-width: 340px; min-height: 220px;
  background: linear-gradient(165deg, #143039 0%, #0d1f26 100%);
  border: 1px solid rgba(159, 216, 207, .25); border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  padding: 26px 28px 24px; position: relative;
}
.songcard .rz-grip::before {
  border-color: rgba(159, 216, 207, .55);
}
.songcard .rz-grip:hover::before { border-color: #e8b477; }
.songcard::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #cf9a6d, #e8b477 40%, #cf9a6d);
  opacity: .85; border-radius: 10px 10px 0 0;
}
.sc-close {
  position: absolute; top: 10px; right: 14px;
  border: 0; background: none; cursor: pointer;
  font-size: 20px; line-height: 1; color: rgba(190, 225, 215, .6);
  padding: 2px 6px; transition: color .2s;
}
.sc-close:hover { color: #fff; }
.sc-head { display: flex; gap: 16px; align-items: center; }
.sc-cover {
  width: 88px; height: 88px; border-radius: 6px; object-fit: cover; flex: none;
  box-shadow: 0 0 0 1px rgba(159, 216, 207, .3), 0 10px 26px rgba(0, 0, 0, .4);
}
.sc-title { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sc-title b { font-size: 16.5px; color: #f2ede2; line-height: 1.5; }
.sc-title small {
  font-family: var(--sans); font-weight: 300; font-size: 11.5px;
  letter-spacing: .1em; color: #9fd8cb;
}
.sc-title time {
  font-family: var(--sans); font-weight: 300; font-size: 10.5px;
  letter-spacing: .1em; color: rgba(170, 215, 205, .65);
}
.sc-mood {
  display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0;
  align-self: flex-start;
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .12em;
  color: #e8b477; border: 1px solid rgba(232, 180, 119, .5);
  border-radius: 999px; padding: 4px 14px;
}
.sc-mood span { color: rgba(159, 216, 207, .75); letter-spacing: .2em; }
.sc-body { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.sc-sec span {
  display: block; font-family: var(--sans); font-weight: 300; font-size: 10px;
  letter-spacing: .32em; color: #9fd8cb; margin-bottom: 6px;
}
.sc-sec p { font-size: 13.5px; line-height: 2; color: rgba(238, 244, 241, .92); margin: 0; }

/* ---------- 泛舟 · 视频视图 ---------- */
.video-view { margin-top: 40px; }
.video-count {
  font-family: var(--sans); font-weight: 300; font-size: 11px;
  letter-spacing: .14em; color: var(--muted); margin: 0 0 18px;
}
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.video-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 4px; overflow: hidden;
  transition: transform .35s, box-shadow .35s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.video-card video {
  width: 100%; aspect-ratio: 16 / 9; display: block;
  background: #0b1a22; outline: none;
}
.video-cap { padding: 16px 18px 18px; }
.video-cat {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .14em;
  color: var(--teal); border: 1px solid rgba(47, 90, 99, .35);
  border-radius: 999px; padding: 2px 10px;
}
.video-cap h3 {
  font-size: 15px; font-weight: 600; letter-spacing: .04em;
  color: var(--ink); margin: 12px 0 4px;
}
.video-cap time {
  font-family: var(--sans); font-weight: 300; font-size: 11px;
  color: var(--muted); letter-spacing: .12em;
}
.video-empty {
  grid-column: 1 / -1;
  background: #fff; border: 1px dashed var(--line); border-radius: 4px;
  padding: 46px 20px; text-align: center; color: var(--muted);
  font-size: 13.5px; letter-spacing: .1em; margin: 0;
}
@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr; } }
.h2-btns { display: inline-flex; gap: 10px; }

/* 后台面板内分区头（视频管理 / 原创管理等） */
.mgmt-head, .video-mgmt-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 20px 12px;
}
.mgmt-head h3, .video-mgmt-head h3 {
  border-bottom: 0; background: none; padding: 0;
  display: flex; align-items: baseline; gap: 10px;
}
.mgmt-sub {
  font-family: var(--sans); font-weight: 300; font-size: 10px;
  letter-spacing: .3em; color: var(--muted);
}
@media (max-width: 900px) {
  .player-vol { display: none; }
  .player-mode-name { display: none; }
}
@media (max-width: 620px) {
  .queue-panel { right: 12px; left: 12px; width: auto; }
}
.post-card h3 {
  font-size: 15px; font-weight: 600; line-height: 1.7; letter-spacing: .04em;
  padding: 18px 20px 6px; color: var(--ink);
}
.post-card time {
  padding: 0 20px 20px; margin-top: auto;
  font-family: var(--sans); font-weight: 300;
  font-size: 11px; letter-spacing: .12em; color: var(--muted);
}

/* ---------- 岛主 / 同舟之约 ---------- */
.about { padding-top: 100px; padding-bottom: 100px; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 72px; align-items: center;
}
.about-person, .about-join { text-align: center; }
.about-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 22px; border: 3px solid #fff;
  box-shadow: 0 8px 24px rgba(27, 58, 66, .18);
}
.about-person h3, .about-join h3 {
  font-size: 22px; font-weight: 600; letter-spacing: .3em; text-indent: .3em; color: var(--teal-deep);
}
.about-en {
  font-family: var(--sans); font-weight: 300; font-size: 10.5px;
  letter-spacing: .3em; text-indent: .3em; color: var(--muted); margin: 10px 0 16px;
}
.about-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 2.05; max-width: 360px; margin: 0 auto; }
.about-join { border-left: 1px solid var(--line); padding-left: 72px; }
.about-join .about-desc { max-width: 380px; }

.join-form {
  margin-top: 28px; display: flex; justify-content: center;
  width: min(400px, 100%); margin-left: auto; margin-right: auto;
  box-shadow: 0 8px 24px rgba(27, 58, 66, .08);
}
.join-form input {
  flex: 1; border: 1px solid var(--line); border-right: 0; outline: 0;
  padding: 12px 16px; font-size: 13px; background: #fff; letter-spacing: .06em;
}
.join-form input:focus { border-color: var(--teal); }
.join-form button {
  border: 0; cursor: pointer; padding: 0 26px; white-space: nowrap;
  background: var(--teal-deep); color: #f4efe6;
  font-size: 14px; letter-spacing: .3em; text-indent: .3em;
  transition: background .25s;
}
.join-form button:hover { background: var(--teal); }

/* ---------- 页脚 ---------- */
.footer { background: #eceae5; border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 52px 28px 30px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: start; gap: 32px;
}
.footer-brand .brand-cn { font-size: 19px; }
.footer-brand .brand-en { display: block; margin-top: 4px; }
.footer-slogan { font-size: 12px; color: var(--muted); letter-spacing: .18em; margin-top: 12px; }
.footer-links { display: flex; gap: 26px; padding-top: 8px; }
.footer-links a { font-size: 13.5px; letter-spacing: .12em; color: var(--ink-soft); transition: color .25s; }
.footer-links a:hover { color: var(--teal-deep); }
.footer-social { display: flex; gap: 16px; justify-content: flex-end; padding-top: 4px; }
.footer-social a {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: #fff;
  color: var(--ink-soft); transition: color .25s, border-color .25s, transform .25s;
}
.footer-social a:hover { color: var(--teal-deep); border-color: var(--teal); transform: translateY(-3px); }
.footer-social svg { width: 16px; height: 16px; }
.footer-copy {
  text-align: center; padding: 18px; border-top: 1px solid var(--line);
  font-family: var(--sans); font-weight: 300; font-size: 11px; letter-spacing: .14em; color: var(--muted);
}

/* ==========================================================
   模块内页
   ========================================================== */
.page-hero {
  position: relative; height: 56vh; min-height: 420px;
  display: grid; place-items: center; overflow: hidden; text-align: center;
}
.page-hero .hero-art { animation: none; transform: none; filter: saturate(.92); }
.page-hero .hero-veil { background: linear-gradient(180deg, rgba(18, 36, 42, .38), rgba(18, 36, 42, .5)); }
.page-hero .hero-body { max-width: 760px; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 50px); }
.page-hero .hero-sub { margin-top: 4px; }

/* 每页一处色相偏移，同源不同景 */
.ph-fanzhou .hero-art { filter: hue-rotate(14deg) saturate(.95); }
.ph-zhenyu  .hero-art { filter: hue-rotate(-38deg) saturate(.72) brightness(.9); }
.ph-yanzhu  .hero-art { filter: sepia(.22) saturate(1.08); }
.ph-bocang  .hero-art { filter: hue-rotate(-14deg) saturate(.85) brightness(.94); }
.ph-guichuan .hero-art { filter: hue-rotate(34deg) saturate(.9); }

.page-intro {
  max-width: 640px; margin: 0 auto;
  text-align: center; font-size: 14px; color: var(--ink-soft);
  letter-spacing: .08em; line-height: 2.1;
}

/* 泛舟 · 文章列表 */
.pager { display: flex; justify-content: center; gap: 14px; margin-top: 54px; }
.pager a {
  font-family: var(--sans); font-size: 12px; letter-spacing: .2em;
  color: var(--ink-soft); border: 1px solid var(--line); background: #fff;
  padding: 9px 20px; border-radius: 2px; transition: .25s;
}
.pager a:hover { border-color: var(--teal); color: var(--teal-deep); }
.pager .current { background: var(--teal-deep); border-color: var(--teal-deep); color: #f4efe6; }

/* 枕屿 · 影像墙 */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.photo-card {
  position: relative; overflow: hidden; border-radius: 4px;
  aspect-ratio: 1 / 1.06; background: var(--teal-deep); border: 1px solid var(--line);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, opacity .4s; }
.photo-card:hover img { transform: scale(1.06); opacity: .88; }
.photo-card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(14, 30, 36, .78));
  color: #f3efe6; font-size: 12.5px; letter-spacing: .12em;
  display: flex; justify-content: space-between; align-items: baseline;
}
.photo-card figcaption i { font-family: var(--sans); font-style: normal; font-weight: 300; font-size: 10.5px; opacity: .75; letter-spacing: .1em; }

/* 烟渚 · 碎片集 */
.fragment-wrap { columns: 2; column-gap: 22px; }
.fragment {
  break-inside: avoid; background: var(--panel); border: 1px solid var(--line);
  border-radius: 4px; padding: 26px 28px 22px; margin-bottom: 22px;
  transition: box-shadow .3s, transform .3s;
}
.fragment:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.fragment p { font-size: 14.5px; line-height: 2.05; color: var(--ink); }
.fragment footer {
  margin-top: 14px; font-family: var(--sans); font-weight: 300;
  font-size: 11px; letter-spacing: .14em; color: var(--muted);
  display: flex; justify-content: space-between;
}

/* 泊仓 · 资源列表 */
.crate-list { display: flex; flex-direction: column; gap: 14px; }.crate {
  display: grid; grid-template-columns: 44px 1fr auto auto;
  align-items: center; gap: 22px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 18px 24px; transition: box-shadow .3s, border-color .3s;
}
.crate:hover { box-shadow: var(--shadow); border-color: rgba(47, 90, 99, .35); }
.crate-icon { width: 44px; height: 44px; border-radius: 3px; background: #eef1ef; color: var(--teal); display: grid; place-items: center; }
.crate-icon svg { width: 22px; height: 22px; }
.crate h3 { font-size: 15px; font-weight: 600; letter-spacing: .05em; }
.crate .crate-note { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.crate-type {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .16em;
  color: var(--teal); border: 1px solid rgba(47, 90, 99, .35);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.crate-get { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; color: var(--ink-soft); white-space: nowrap; transition: color .25s; }
.crate-get:hover { color: var(--dusk); }

/* 枕屿 · 唱片架 */
.crate.music { grid-template-columns: 64px 1fr auto auto; }
.crate-cover {
  width: 64px; height: 64px; border-radius: 4px; object-fit: cover;
  border: 1px solid var(--line); background: var(--teal-deep);
}

/* 归川 · 感悟列表 */
.essay-list { max-width: 780px; margin: 56px auto 0; }
.essay-list .fragment { padding: 30px 34px 22px; }
.essay-list .fragment h3 {
  font-size: 17px; font-weight: 600; letter-spacing: .14em;
  color: var(--teal-deep); margin-bottom: 10px;
}
.essay-list .fragment p { font-size: 14px; }

/* 归川 · 关于页 */
.bio {
  display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start;
}
.bio-side { text-align: center; }
.bio-side .about-avatar { width: 128px; height: 128px; }
.bio-side h3 { font-size: 20px; letter-spacing: .26em; text-indent: .26em; color: var(--teal-deep); font-weight: 600; margin-top: 6px; }
.bio-side .about-en { margin-bottom: 4px; }
.bio-contact { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.bio-contact a {
  font-family: var(--sans); font-weight: 300; font-size: 12.5px; letter-spacing: .1em;
  color: var(--ink-soft); border: 1px solid var(--line); background: #fff;
  border-radius: 2px; padding: 10px 14px; transition: .25s;
  display: flex; justify-content: space-between; align-items: center;
}
.bio-contact a:hover { border-color: var(--teal); color: var(--teal-deep); }
.bio-body h4 {
  font-size: 16px; letter-spacing: .22em; color: var(--teal-deep);
  font-weight: 600; margin: 34px 0 14px;
}
.bio-body h4:first-child { margin-top: 0; }
.bio-body p { font-size: 14px; color: var(--ink-soft); line-height: 2.15; }
.timeline { list-style: none; margin-top: 6px; border-left: 1px solid var(--line); padding-left: 26px; }
.timeline li { position: relative; padding-bottom: 20px; }
.timeline li::before {
  content: ""; position: absolute; left: -30.5px; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bg); border: 1.6px solid var(--dusk);
}
.timeline b { font-size: 13px; color: var(--teal-deep); letter-spacing: .08em; font-family: var(--sans); font-weight: 500; }
.timeline p { font-size: 13.5px; margin-top: 2px; }

/* ---------- 通用动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translate(-50%, 16px);
  background: var(--teal-deep); color: #f4efe6;
  font-size: 13px; letter-spacing: .12em; padding: 12px 26px; border-radius: 3px;
  box-shadow: 0 14px 34px rgba(27, 58, 66, .3);
  opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s; z-index: 99;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .harbor-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav-links, .nav-search { display: none; }
  .nav-toggle { display: block; }  body.nav-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 28px 18px; box-shadow: 0 18px 30px rgba(27, 58, 66, .1);
  }
  body.nav-open .nav-links a { padding: 12px 0; border-bottom: 1px dashed var(--line); }
  body.nav-open .nav-links a::after { display: none; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.3px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.3px) rotate(-45deg); }

  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 54px; }
  .about-join { border-left: 0; padding-left: 0; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .fragment-wrap { columns: 1; }
  .bio { grid-template-columns: 1fr; gap: 40px; }
  .crate { grid-template-columns: 44px 1fr; row-gap: 8px; }
  .crate-type-wrap { grid-column: 1 / -1; justify-content: flex-start; }
  .crate-get { display: none; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 26px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 18px; }
  .footer-social { justify-content: center; }
}
@media (max-width: 620px) {
  .section { padding: 64px 20px; }
  .harbor-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .hero-body h1 { letter-spacing: .1em; }
  .hero-sub br { display: none; }
  .nav-inner { padding: 0 18px; gap: 16px; }
  .brand-en { display: none; }
}

/* ---------- 岛主隐藏登录入口 ---------- */
.keeper-gate {
  display: block; background: none; border: 0; padding: 0; margin: 0 auto;
  cursor: default; color: inherit; font: inherit; text-align: center;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.keeper-gate:focus-visible { outline: 2px dashed var(--dusk); outline-offset: 8px; border-radius: 8px; }

/* ---------- 岛主登录弹窗 ---------- */
.auth-overlay {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 24px;
  background: rgba(14, 30, 36, .55); backdrop-filter: blur(5px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.auth-overlay.open { opacity: 1; visibility: visible; }
.auth-card {
  width: min(370px, 100%); background: #fff; border-radius: 6px;
  padding: 42px 38px 34px; position: relative; text-align: center;
  box-shadow: 0 30px 70px rgba(14, 30, 36, .35);
  transform: translateY(16px); transition: transform .3s;
}
.auth-overlay.open .auth-card { transform: none; }
.auth-card.shake { animation: authShake .45s ease; }
@keyframes authShake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(9px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
.auth-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: 0; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--muted); padding: 4px 8px;
  transition: color .25s;
}
.auth-close:hover { color: var(--teal-deep); }
.auth-eyebrow {
  font-family: var(--sans); font-weight: 300; font-size: 10px;
  letter-spacing: .4em; text-indent: .4em; color: var(--dusk); margin-bottom: 12px;
}
.auth-card h3 {
  font-size: 22px; font-weight: 600; letter-spacing: .3em; text-indent: .3em;
  color: var(--teal-deep);
}
.auth-sub { margin-top: 8px; font-size: 12px; color: var(--muted); letter-spacing: .14em; }
.auth-field { display: block; margin-top: 18px; text-align: left; }
.auth-field[hidden] { display: none; }
.auth-field span {
  display: block; font-family: var(--sans); font-weight: 300;
  font-size: 10.5px; letter-spacing: .26em; color: var(--muted); margin-bottom: 6px;
}
.auth-field input {
  width: 100%; border: 1px solid var(--line); border-radius: 3px;
  padding: 11px 14px; font-size: 14px; letter-spacing: .08em;
  font-family: var(--serif); background: #fbfaf8; outline: none;
  transition: border-color .25s;
}
.auth-field input:focus { border-color: var(--teal); }
.auth-error {
  display: none; margin-top: 14px; font-size: 12px; letter-spacing: .08em;
  color: #b5563a; text-align: center;
}
.auth-error.show { display: block; }
.auth-submit {
  width: 100%; margin-top: 22px; border: 0; cursor: pointer;
  background: var(--teal-deep); color: #f4efe6; padding: 13px 0;
  font-size: 14px; letter-spacing: .3em; text-indent: .3em;
  font-family: var(--serif); border-radius: 3px;
  transition: background .25s;
}
.auth-submit:hover { background: var(--teal); }

/* ---------- 移动端播放条 ---------- */
@media (max-width: 620px) {
  .player-bar { gap: 12px; padding: 9px 16px; }
  .player-time { display: none; }
  .player-title { max-width: 150px; }
}

/* ==========================================================
   泛舟 · 展示方式切换（卡片 / 瀑布流 / 3D 环绕）与旅行轨迹
   ========================================================== */
.view-switch { display: flex; justify-content: center; gap: 8px; margin: 36px 0 4px; flex-wrap: wrap; }
.view-switch button {
  font-family: var(--sans); font-size: 13px; letter-spacing: .16em;
  padding: 9px 24px; border: 1px solid var(--line); background: #fff;
  color: var(--ink-soft); border-radius: 999px; cursor: pointer;
  transition: color .25s, border-color .25s, background .25s;
}
.view-switch button:hover { border-color: var(--teal); color: var(--teal-deep); }
.view-switch button.active { background: var(--teal-deep); border-color: var(--teal-deep); color: #f4efe6; }

/* ---------- 瀑布流 ---------- */
.masonry { columns: 3; column-gap: 22px; margin-top: 40px; }
.masonry-item {
  break-inside: avoid; margin-bottom: 22px; display: block;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; position: relative;
  transition: transform .35s, box-shadow .35s;
}
.masonry-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.masonry-item .m-thumb { display: block; overflow: hidden; }
.masonry-item .m-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.masonry-item:hover .m-thumb img { transform: scale(1.05); }
.masonry-item h3 {
  font-size: 15px; font-weight: 600; line-height: 1.7; letter-spacing: .04em;
  padding: 16px 18px 4px; color: var(--ink);
}
.masonry-item time {
  display: block; padding: 0 18px 18px; margin-top: 2px;
  font-family: var(--sans); font-weight: 300; font-size: 11px;
  letter-spacing: .12em; color: var(--muted);
}

/* ---------- 3D 环绕 ---------- */
.globe-stage[hidden] { display: none; }
.globe-stage {
  position: relative; height: 620px; margin-top: 40px;
  display: grid; place-items: center; overflow: hidden;
  perspective: 1500px; cursor: grab;
  border: 1px solid var(--line); border-radius: 5px;
  background: linear-gradient(180deg, #f2f1ec, #e3e9e4);
  touch-action: pan-y;
}
.globe-stage.dragging { cursor: grabbing; }
.globe-sphere {
  position: absolute; width: 330px; height: 330px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #567f85, #1b3a42 72%);
  box-shadow: inset -34px -44px 90px rgba(6, 23, 29, .5), 0 26px 60px rgba(14, 30, 36, .28);
}
.globe-lines { position: absolute; width: 330px; height: 330px; }
.globe-tilt { transform-style: preserve-3d; transform: rotateX(-8deg); }
.globe-ring { transform-style: preserve-3d; }
.globe-item {
  position: absolute; width: 200px; height: 140px;
  left: -100px; top: -70px; transform-style: preserve-3d;
}
.gi-face, .gi-back {
  position: absolute; inset: 0; border-radius: 5px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 3px solid #fff; box-shadow: 0 18px 40px rgba(14, 30, 36, .35);
}
.gi-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gi-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #2f5a63, #132c35);
  color: #f4efe6; display: flex; flex-direction: column;
  justify-content: center; gap: 7px; padding: 16px 18px;
}
.gi-back .gi-cat { font-family: var(--sans); font-size: 10px; letter-spacing: .24em; color: var(--dusk); }
.gi-back p {
  font-size: 13px; line-height: 1.65; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gi-back time { font-family: var(--sans); font-weight: 300; font-size: 10px; letter-spacing: .14em; opacity: .7; }
.globe-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-family: var(--sans); font-weight: 300; font-size: 11px;
  letter-spacing: .18em; color: var(--muted); margin: 0; white-space: nowrap;
}

/* ---------- 旅行轨迹 ---------- */
.route-card {
  position: relative;
  background: linear-gradient(165deg, #143039 0%, #0d1f26 100%);
  border: 1px solid rgba(159, 216, 207, .18);
  border-radius: 5px; padding: 16px 16px 8px;
  box-shadow: 0 26px 60px rgba(16, 36, 42, .45);
}
.route-svg { width: 100%; height: auto; display: block; }
.route-line { animation: routeMarch 1.1s linear infinite; }
@keyframes routeMarch { to { stroke-dashoffset: -24; } }
.wp-name { font-family: var(--serif); font-size: 15px; fill: var(--ink); text-anchor: middle; letter-spacing: .06em; }
.wp-date { font-family: var(--sans); font-weight: 300; font-size: 11px; fill: var(--muted); text-anchor: middle; letter-spacing: .12em; }
.wp-pulse {
  transform-box: fill-box; transform-origin: center;
  animation: wpPulse 2.2s ease-out infinite;
}
@keyframes wpPulse {
  0% { transform: scale(.6); opacity: .9; }
  100% { transform: scale(2.6); opacity: 0; }
}
.route-note {
  padding: 10px 8px 6px; margin: 0; text-align: center;
  font-family: var(--sans); font-weight: 300; font-size: 11px;
  letter-spacing: .14em; color: rgba(160, 212, 202, .55);
}

/* ---------- 轨迹图 · 中国版图 ---------- */
.cn-outline { fill: #f1f5f2; stroke: #7fa0a0; stroke-width: 1.8; stroke-linejoin: round; }
.cn-island { fill: #f1f5f2; stroke: #7fa0a0; stroke-width: 1.5; }
.cn-river { fill: none; stroke: #a9c6c0; stroke-width: 2.2; opacity: .8; stroke-linecap: round; }
.cn-inset-box { fill: rgba(240, 244, 241, .7); stroke: #8b969a; stroke-width: 1; stroke-dasharray: 4 4; }
.cn-inset-label { font-family: var(--serif); font-size: 12px; fill: var(--ink-soft); letter-spacing: .3em; }
.cn-dot { fill: #7fa0a0; }
.map-title { font-family: var(--serif); font-size: 21px; fill: var(--ink); letter-spacing: .28em; opacity: .9; }
.map-sub { font-family: var(--sans); font-weight: 300; font-size: 11px; fill: var(--muted); letter-spacing: .22em; }

/* ---------- 轨迹图 · 泊点弹出卡（暗青 · 站点色系） ---------- */
.trk-mark { cursor: pointer; }
.map-pop {
  position: absolute; z-index: 30; width: 300px;
  background: #143039; border: 1px solid rgba(159, 216, 207, .3); border-radius: 6px;
  box-shadow: 0 18px 44px rgba(10, 26, 30, .5); padding: 8px;
}
.map-pop[hidden] { display: none; }
.map-pop::before {
  content: ""; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px;
  background: #143039; border-left: 1px solid rgba(159, 216, 207, .3); border-top: 1px solid rgba(159, 216, 207, .3);
  transform: translateX(-50%) rotate(45deg);
}
.map-pop.below::before { top: auto; bottom: -6px; transform: translateX(-50%) rotate(225deg); }
.map-pop-close {
  position: absolute; top: 4px; right: 8px; border: 0; background: none;
  cursor: pointer; font-size: 18px; line-height: 1;
  color: rgba(190, 225, 215, .6); padding: 2px 6px;
  transition: color .2s;
}
.map-pop-close:hover { color: #fff; }
.map-pop-place {
  margin: 4px 8px 6px; font-size: 12px; letter-spacing: .16em;
  color: #9fd8cb; font-family: var(--sans); font-weight: 400;
}
.pop-item {
  display: flex; gap: 12px; align-items: center;
  padding: 9px 10px; border-radius: 4px; transition: background .2s;
}
.pop-item:hover { background: rgba(159, 216, 207, .08); }
.pop-thumb { width: 76px; height: 56px; border-radius: 3px; overflow: hidden; flex: none; }
.pop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pop-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pop-info b { font-size: 13.5px; color: #f2f6f3; line-height: 1.55; }
.pop-info small {
  font-family: var(--sans); font-weight: 300; font-size: 10.5px;
  color: rgba(170, 215, 205, .7); letter-spacing: .08em;
}
.post-card.flash {
  outline: 2px solid var(--dusk); outline-offset: 3px;
  animation: cardFlash 1.8s ease;
}
@keyframes cardFlash {
  0% { box-shadow: 0 0 0 8px rgba(207, 154, 109, .38); }
  100% { box-shadow: 0 0 0 0 rgba(207, 154, 109, 0); }
}

/* ---------- 地点筛选集合 ---------- */
.place-filter {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 0 0 6px; padding: 10px 20px;
  background: rgba(47, 90, 99, .08); border: 1px solid rgba(47, 90, 99, .18);
  border-radius: 999px; font-size: 13px; color: var(--ink-soft);
  flex-wrap: wrap;
}
.place-filter[hidden] { display: none; }
.place-filter span { letter-spacing: .08em; }
.place-filter b { color: var(--teal-deep); letter-spacing: .06em; }
.place-filter #placeFilterCount {
  font-family: var(--sans); font-weight: 300; font-size: 11px; color: var(--muted);
}
.place-filter button {
  border: 0; background: var(--teal-deep); color: #f4efe6;
  border-radius: 999px; padding: 5px 14px; cursor: pointer;
  font-size: 12px; letter-spacing: .06em; font-family: var(--serif);
  transition: background .25s;
}
.place-filter button:hover { background: var(--teal); }
.pop-all {
  display: block; margin: 6px 8px 4px; padding: 8px 10px 2px;
  border-top: 1px dashed rgba(159, 216, 207, .25);
  font-family: var(--sans); font-size: 11px; letter-spacing: .12em;
  color: #9fd8cb; text-align: right;
}
.pop-all:hover { color: #fff; }

/* ---------- 泛舟 · 灯箱（单张原始查看，仅浏览） ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(8, 18, 23, .94);
  display: grid; place-items: center;
}
.lightbox[hidden] { display: none; }
.lb-stage img {
  max-width: 88vw; max-height: 82vh;
  border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  user-select: none; -webkit-user-drag: none;
}
.lb-stage video {
  max-width: 88vw; max-height: 82vh;
  border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  background: #000; outline: none;
}
.lb-caption {
  position: absolute; left: 34px; bottom: 24px;
  display: flex; flex-direction: column; gap: 5px;
  pointer-events: none;
}
.lb-caption b { font-size: 15px; letter-spacing: .04em; color: #eef4f1; font-weight: 600; }
.lb-caption span {
  font-family: var(--sans); font-weight: 300; font-size: 11px;
  letter-spacing: .12em; color: rgba(159, 216, 207, .8);
}
.lb-watermark {
  position: absolute; right: 30px; bottom: 22px;
  font-family: var(--serif); font-size: 16px; letter-spacing: .3em;
  color: rgba(244, 239, 230, .55); pointer-events: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}
.lb-close {
  position: absolute; top: 20px; right: 26px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(244, 239, 230, .35); background: transparent;
  color: #f4efe6; font-size: 20px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .25s;
}
.lb-close:hover { background: rgba(244, 239, 230, .14); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(244, 239, 230, .35); background: rgba(10, 26, 30, .5);
  color: #f4efe6; cursor: pointer; display: grid; place-items: center;
  transition: background .25s;
}
.lb-nav:hover { background: rgba(207, 154, 109, .75); }
.lb-nav svg { width: 20px; height: 20px; }
.lb-prev { left: 26px; }
.lb-next { right: 26px; }

/* ---------- 泛舟 · 视频卡大屏查看按钮 ---------- */
.video-card { position: relative; }
.video-expand {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5); background: rgba(10, 26, 30, .55);
  color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background .25s;
}
.video-expand:hover { background: rgba(10, 26, 30, .8); }
.video-expand svg { width: 15px; height: 15px; }

/* ---------- 轨迹图 · 中国版图（夜航暗色风 · 站点色系） ---------- */
.cn-prov path {
  fill: #20454f; stroke: rgba(159, 216, 207, .32); stroke-width: 1;
  stroke-linejoin: round;
}
.cn-prov path:hover { fill: #28545f; }
.continent path, .continent ellipse {
  fill: #1c3440; stroke: rgba(111, 216, 232, .22); stroke-width: 1.2;
  stroke-linejoin: round;
}
.ocean-label text, .ocean-label {
  font-size: 11px; font-weight: 300; letter-spacing: .5em;
  fill: rgba(120, 205, 220, .26);
}
.trk-mark { cursor: pointer; }
.trk-mark:hover circle { opacity: 1; }
.trk-name {
  font-family: var(--serif); font-size: 12.5px;
  fill: #edf5f1; letter-spacing: .08em;
}
.trk-date {
  font-family: var(--sans); font-weight: 300; font-size: 9.5px;
  fill: rgba(159, 216, 207, .75); letter-spacing: .1em;
}
.trk-pulse {
  transform-box: fill-box; transform-origin: center;
  animation: wpPulse 2.2s ease-out infinite;
}
.route-legend {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  padding: 14px 10px 10px; border-top: 1px dashed var(--line); margin-top: 4px;
}
.route-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fbfaf8; border-radius: 999px;
  padding: 5px 14px 5px 6px; font-size: 12.5px; color: var(--ink-soft);
}
.route-chip i {
  font-style: normal; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal); color: #f4efe6; display: grid; place-items: center;
  font-family: var(--sans); font-size: 10px;
}
.route-chip em {
  font-style: normal; font-family: var(--sans); font-weight: 300;
  font-size: 10.5px; color: var(--muted); letter-spacing: .08em;
}
.route-chip.latest { border-color: rgba(207, 154, 109, .65); background: #fdf8f2; }
.route-chip.latest i { background: var(--dusk); }
.route-chip.empty { border: 0; background: none; color: var(--muted); padding: 5px 0; }

/* ---------- 展示切换响应式 ---------- */
@media (max-width: 900px) {
  .masonry { columns: 2; }
  .globe-stage { height: 520px; }
  .globe-item { width: 170px; height: 120px; left: -85px; top: -60px; }
}
@media (max-width: 620px) {
  .masonry { columns: 1; }
  .globe-stage { height: 430px; }
  .globe-sphere, .globe-lines { width: 240px; height: 240px; }
  .globe-item { width: 150px; height: 105px; left: -75px; top: -52px; }
}

/* ==========================================================
   详情页 post.html
   ========================================================== */
.detail-hero { height: 48vh; min-height: 380px; }
.detail-hero h1 {
  font-size: clamp(24px, 3.6vw, 40px);
  letter-spacing: .1em; text-indent: .1em; line-height: 1.5;
  max-width: 900px; margin: 0 auto;
}
.detail-hero .hero-sub { letter-spacing: .12em; }

.detail-section { max-width: 900px; }
.detail-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 44px 48px; box-shadow: 0 10px 30px rgba(27, 58, 66, .06);
}
.detail-media { position: relative; margin: 0; }
.detail-media img, .detail-media video {
  width: 100%; border-radius: 3px; border: 1px solid var(--line);
  background: #0e1e24;
}
.detail-media .post-raw { pointer-events: auto; }
.detail-prose { margin-top: 26px; font-size: 15px; line-height: 2.15; color: var(--ink); }
.detail-lead { font-size: 15.5px; }
.detail-actions { margin-top: 30px; display: flex; gap: 16px; align-items: center; }
.pager-btn {
  font-family: var(--sans); font-size: 12px; letter-spacing: .2em;
  color: var(--teal-deep); border: 1px solid rgba(47, 90, 99, .5); background: #fff;
  padding: 10px 24px; border-radius: 999px; transition: .25s;
}
.pager-btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #f4efe6; }
.detail-none { font-size: 13px; color: var(--muted); letter-spacing: .08em; }
.detail-empty {
  text-align: center; color: var(--muted); font-size: 14px;
  letter-spacing: .1em; line-height: 2.4; padding: 26px 0;
}
.detail-empty a { color: var(--teal); border-bottom: 1px solid rgba(47, 90, 99, .35); }
.detail-empty code {
  font-family: var(--sans); font-size: 12.5px; color: var(--teal-deep);
  background: #eef1ef; padding: 2px 8px; border-radius: 3px;
}

/* 枕屿 · 详情页唱片 */
.zp { display: grid; grid-template-columns: 240px 1fr; gap: 38px; align-items: start; }
.zp-cover {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 3px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.zp-info audio { width: 100%; margin: 4px 0 18px; }
.zp-artist { font-size: 14px; letter-spacing: .2em; color: var(--dusk); margin-bottom: 14px; }
.zp-note { font-size: 14.5px; line-height: 2.1; color: var(--ink-soft); margin-bottom: 18px; }
.zp-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; }
.zp-tag {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .16em;
  color: var(--teal); border: 1px solid rgba(47, 90, 99, .35);
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}
.zp-block { border-top: 1px dashed var(--line); padding-top: 16px; margin-top: 16px; }
.zp-block b {
  display: block; font-family: var(--sans); font-weight: 400; font-size: 11px;
  letter-spacing: .3em; color: var(--muted); margin-bottom: 8px;
}
.zp-block p { font-size: 14px; line-height: 2; color: var(--ink); }

/* 上下篇导航 */
.detail-pager {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px;
  margin-top: 34px; align-items: stretch;
}
.pager-nav {
  display: flex; flex-direction: column; gap: 5px; justify-content: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 16px 22px; transition: border-color .25s, box-shadow .25s;
  min-width: 0;
}
.pager-nav:hover { border-color: rgba(47, 90, 99, .4); box-shadow: var(--shadow); }
.pager-nav.is-next { text-align: right; }
.pager-nav[hidden] { visibility: hidden; }
.pager-dir {
  font-family: var(--sans); font-weight: 300; font-size: 11px;
  letter-spacing: .2em; color: var(--dusk);
}
.pager-title {
  font-size: 14px; color: var(--ink-soft); letter-spacing: .04em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pager-back {
  align-self: center; font-family: var(--sans); font-size: 12px;
  letter-spacing: .24em; color: var(--muted); padding: 10px 16px;
  border-radius: 999px; transition: color .25s;
}
.pager-back:hover { color: var(--teal-deep); }

/* 泊仓标题链接 */
.crate-title { transition: color .25s; }
.crate-title:hover { color: var(--dusk); }

/* ==========================================================
   搜索页 search.html
   ========================================================== */
.ph-search .hero-art { filter: hue-rotate(-8deg) saturate(.8) brightness(.9); }
.search-hero-form {
  margin: 34px auto 0; display: flex; width: min(520px, 100%);
  background: rgba(255, 255, 255, .96); border-radius: 3px;
  box-shadow: 0 12px 34px rgba(10, 25, 30, .3);
  padding: 6px 8px 6px 18px; align-items: center; gap: 10px;
}
.search-hero-form input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: var(--serif); font-size: 15px; letter-spacing: .06em; color: var(--ink);
}
.search-hero-form button {
  border: 0; background: var(--teal-deep); color: #f4efe6; cursor: pointer;
  border-radius: 3px; padding: 10px 14px; display: grid; place-items: center;
  transition: background .25s;
}
.search-hero-form button:hover { background: var(--dusk); }

.search-section { max-width: 860px; padding-top: 64px; padding-bottom: 80px; }
.search-summary {
  text-align: center; font-size: 14px; color: var(--ink-soft);
  letter-spacing: .1em; margin-bottom: 34px;
}
.search-summary b { color: var(--dusk); font-weight: 600; }

.search-state { text-align: center; padding: 40px 0 20px; }
.search-hint { color: var(--muted); font-size: 14px; letter-spacing: .1em; line-height: 2.4; }
.search-hint a { color: var(--teal); border-bottom: 1px solid rgba(47, 90, 99, .35); }
.search-hint code {
  font-family: var(--sans); font-size: 12.5px; color: var(--teal-deep);
  background: #eef1ef; padding: 2px 8px; border-radius: 3px;
}

.search-group { margin-bottom: 44px; }
.search-group-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 16px;
}
.search-group-head h2 { font-size: 18px; letter-spacing: .3em; color: var(--teal-deep); }
.search-group-head h2 small {
  font-family: var(--sans); font-weight: 300; font-size: 10.5px;
  letter-spacing: .16em; color: var(--muted); margin-left: 12px;
}
.search-group-count {
  font-family: var(--sans); font-weight: 300; font-size: 11px;
  letter-spacing: .16em; color: var(--muted);
}
.search-group-list { display: flex; flex-direction: column; gap: 12px; }

.search-item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 18px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 14px 20px; transition: box-shadow .25s, border-color .25s, transform .25s;
}
.search-item:hover { box-shadow: var(--shadow); border-color: rgba(47, 90, 99, .35); transform: translateY(-2px); }
.search-thumb {
  width: 72px; height: 72px; border-radius: 3px; overflow: hidden;
  background: #eef1ef; border: 1px solid var(--line);
}
.search-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-thumb-fallback {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(135deg, #2f5a63 0%, #1b3a42 100%);
}
.search-item-main { min-width: 0; }
.search-item-tags {
  font-family: var(--sans); font-weight: 300; font-size: 10.5px;
  letter-spacing: .18em; color: var(--dusk); display: block; margin-bottom: 3px;
}
.search-item h3 { font-size: 15.5px; font-weight: 600; letter-spacing: .04em; }
.search-item h3 mark, .search-snippet mark {
  background: rgba(207, 154, 109, .28); color: inherit; padding: 0 2px; border-radius: 2px;
}
.search-snippet {
  font-size: 13px; color: var(--muted); line-height: 1.9;
  margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-item-meta {
  font-family: var(--sans); font-weight: 300; font-size: 11px;
  letter-spacing: .12em; color: var(--muted); display: block; margin-top: 5px;
}
.search-go {
  font-family: var(--sans); font-size: 16px; color: var(--line);
  transition: color .25s, transform .25s;
}
.search-item:hover .search-go { color: var(--dusk); transform: translateX(3px); }

/* ---------- 详情页 / 搜索页响应式 ---------- */
@media (max-width: 900px) {
  .detail-card { padding: 30px 26px; }
  .zp { grid-template-columns: 180px 1fr; gap: 24px; }
  .search-item { grid-template-columns: 56px 1fr auto; gap: 14px; }
  .search-thumb { width: 56px; height: 56px; }
}
@media (max-width: 620px) {
  .detail-pager { grid-template-columns: 1fr; }
  .pager-nav.is-next { text-align: left; }
  .pager-back { order: 3; justify-self: center; }
  .zp { grid-template-columns: 1fr; }
  .zp-cover { max-width: 240px; }
  .search-item { grid-template-columns: 1fr; }
  .search-thumb { width: 100%; height: 150px; }
  .search-go { display: none; }
  .search-snippet { white-space: normal; }
}
