/* ============================================================
   听舟 · 应用渡口 —— 门户样式
   主题：夜泊渡口（墨蓝夜江 · 远山 · 孤舟灯影 · 水波）
   ============================================================ */
:root {
  --ink: #0a1622;          /* 夜空底 */
  --deep: #0d1e30;         /* 江面 */
  --sea: #0b1a29;
  --teal: #6fd6c8;         /* 水青 */
  --moon: #f1ede1;         /* 月白 */
  --gold: #e0b168;         /* 灯金 */
  --gold-soft: #f6d489;
  --text: #e7eff1;
  --muted: #94a9b3;
  --faint: #647c88;
  --card: rgba(15, 30, 46, .82);
  --card-line: rgba(143, 182, 201, .16);
  --card-line-hover: rgba(224, 177, 104, .55);
  --accent-blue: #6db3d9;
  --accent-green: #6ecf95;
  --accent-cyan: #6fd6c8;
  --accent-gold: #e0b168;
  --accent-purple: #b39ddb;
  --serif: "Noto Serif SC", "Source Han Serif SC", "STZhongsong", "SimSun", serif;
  --sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: linear-gradient(180deg, var(--ink) 0%, #0b1a2c 52%, var(--sea) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
code { font-family: Consolas, Menlo, monospace; font-size: .88em; color: var(--gold-soft); background: rgba(224,177,104,.1); padding: 1px 6px; border-radius: 4px; }

/* ============ 夜江全景 ============ */
.sea { position: relative; height: 46vh; min-height: 340px; pointer-events: none; user-select: none; }
.stars { position: absolute; inset: 0; }
.star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--moon); opacity: .7; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: .18; } 50% { opacity: .85; } }
.moon-glow {
  position: absolute; top: 6%; right: 16%; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(241,237,225,.14) 0%, rgba(241,237,225,.05) 42%, transparent 68%);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }
.moon {
  position: absolute; top: 11%; right: 19.5%; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fbf8ee, #e9e2cf 70%, #d8d0ba);
  box-shadow: 0 0 34px rgba(241,237,225,.35), 0 0 90px rgba(241,237,225,.14);
}
.hills { position: absolute; left: 0; width: 100%; }
.hills-3 { bottom: 20%; height: 200px; }
.hills-2 { bottom: 12%; height: 180px; }
.hills-1 { bottom: 6%; height: 140px; }

.boat-wrap { position: absolute; right: 12%; bottom: 8%; }
.boat { animation: rock 6s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes rock {
  0%, 100% { transform: rotate(-1.6deg) translateY(0); }
  50% { transform: rotate(1.8deg) translateY(-5px); }
}
.lantern { animation: lantern-sway 3.4s ease-in-out infinite; transform-origin: 166px 34px; }
@keyframes lantern-sway { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
.boat .glow { animation: glow-pulse 3.4s ease-in-out infinite; }
@keyframes glow-pulse { 0%,100% { opacity: .16; } 50% { opacity: .34; } }

.waves { position: absolute; left: 0; width: 200%; }
.w1 { bottom: -2px; height: 90px; animation: drift 26s linear infinite; }
.w2 { bottom: -2px; height: 70px; animation: drift 18s linear infinite reverse; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mist {
  position: absolute; left: 0; right: 0; bottom: 12%; height: 120px;
  background: linear-gradient(90deg, transparent, rgba(143,182,201,.07) 30%, rgba(143,182,201,.11) 50%, rgba(143,182,201,.07) 70%, transparent);
  background-size: 220% 100%; animation: mist 22s ease-in-out infinite;
}
@keyframes mist { 0%,100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

/* ============ 顶部导航 ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 5vw;
  background: rgba(8, 17, 27, .78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(143,182,201,.12);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-seal {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 9px;
  background: linear-gradient(150deg, #a33b2e, #7e2a22);
  color: #f6efe2; font-family: var(--serif); font-size: 15px; font-weight: 700;
  line-height: 1.05; text-align: center; letter-spacing: 1px;
  box-shadow: inset 0 0 0 1.5px rgba(246,239,226,.5), 0 6px 18px rgba(163,59,46,.35);
  writing-mode: vertical-rl;
}
.brand-text { font-family: var(--serif); font-size: 17px; letter-spacing: 2px; color: var(--moon); display: flex; flex-direction: column; }
.brand-text em { font-style: normal; font-family: var(--sans); font-size: 9px; letter-spacing: 3px; color: var(--faint); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 13.5px; color: var(--muted); }
.nav-links a { position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--gold); transition: width .25s; }
.nav-links a:hover { color: var(--moon); }
.nav-links a:hover::after { width: 100%; }
.nav-admin { color: var(--gold-soft); border: 1px solid rgba(224,177,104,.4); padding: 7px 16px !important; border-radius: 999px; }
.nav-admin::after { display: none; }
.nav-admin:hover { background: rgba(224,177,104,.1); }

/* ============ 版面 ============ */
.page { position: relative; z-index: 2; margin-top: -13vh; }

/* 序 */
.hero { text-align: center; padding: 0 5vw 60px; }
.hero-kicker { font-size: 11px; letter-spacing: 6px; color: var(--teal); margin-bottom: 18px; }
.hero-title { font-family: var(--serif); font-size: clamp(34px, 6vw, 62px); font-weight: 700; letter-spacing: 6px; color: var(--moon); text-shadow: 0 10px 40px rgba(0,0,0,.5); }
.hero-title em { font-style: normal; color: var(--gold-soft); }
.hero-sub { max-width: 640px; margin: 18px auto 0; font-size: 14.5px; line-height: 2; color: var(--muted); }
.stat-strip {
  display: inline-flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: center;
  margin-top: 34px; padding: 18px 34px;
  background: rgba(10, 22, 34, .66); border: 1px solid var(--card-line); border-radius: 999px;
  backdrop-filter: blur(8px);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.stat b { font-family: var(--serif); font-size: 24px; color: var(--moon); }
.stat span { font-size: 11px; letter-spacing: 2px; color: var(--faint); }
.stat.live { flex-direction: row; align-items: center; gap: 8px; }
.sep { width: 1px; height: 26px; background: var(--card-line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #58c98a; box-shadow: 0 0 10px rgba(88,201,138,.8); animation: breathe 2.6s ease-in-out infinite; }
.dot.off { background: #d96a5b; box-shadow: 0 0 10px rgba(217,106,91,.8); }
#statusText { font-size: 12.5px; letter-spacing: 2px; color: var(--muted); }

/* 渡口 */
.harbor { padding: 40px 5vw 10px; }
.harbor-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.harbor-head h2, .dock-head h2 {
  font-family: var(--serif); font-size: 21px; letter-spacing: 4px; color: var(--moon);
  display: flex; align-items: center; gap: 12px; font-weight: 600;
}
.h2-seal {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px;
  background: rgba(163,59,46,.85); color: #f6efe2; font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(246,239,226,.4);
}
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter {
  cursor: pointer; border: 1px solid var(--card-line); background: rgba(12,25,39,.6);
  color: var(--muted); font-size: 12.5px; letter-spacing: 1px;
  padding: 7px 18px; border-radius: 999px; transition: all .2s;
}
.filter:hover { color: var(--moon); border-color: var(--card-line-hover); }
.filter.active { color: #16222b; background: linear-gradient(140deg, var(--gold-soft), var(--gold)); border-color: transparent; font-weight: 700; }

/* 渡牌（应用卡片） */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--card-line); border-radius: 16px;
  padding: 24px 24px 20px 28px;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--card-line-hover); box-shadow: 0 20px 44px rgba(0,0,0,.42), 0 0 0 1px rgba(224,177,104,.12); }
.card-line { position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; opacity: .85; }
.card-line.blue { background: var(--accent-blue); } .card-line.green { background: var(--accent-green); }
.card-line.cyan { background: var(--accent-cyan); } .card-line.gold { background: var(--accent-gold); }
.card-line.purple { background: var(--accent-purple); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font-size: 24px; background: radial-gradient(circle at 36% 30%, rgba(241,237,225,.1), rgba(143,182,201,.05));
  border: 1px solid var(--card-line);
}
.card-badge { font-size: 10px; letter-spacing: 2px; color: var(--gold-soft); border: 1px solid rgba(224,177,104,.35); padding: 4px 10px; border-radius: 999px; }
.card-badge.purple { color: #cbbdf1; border-color: rgba(179,157,219,.4); }
.card h3 { font-family: var(--serif); font-size: 19px; letter-spacing: 2px; color: var(--moon); margin-bottom: 8px; }
.card p { font-size: 13px; line-height: 1.85; color: var(--muted); min-height: 44px; }
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.card-tags span { font-size: 11px; color: var(--faint); background: rgba(143,182,201,.08); padding: 3px 10px; border-radius: 6px; }
.card-foot { margin-top: 16px; font-size: 13px; letter-spacing: 2px; color: var(--gold-soft); display: flex; align-items: center; gap: 8px; }
.card-foot span { transition: transform .25s; }
.card:hover .card-foot span { transform: translateX(5px); }
.card-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 1px; color: #7dd8a0; }
.card-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #58c98a; box-shadow: 0 0 8px rgba(88,201,138,.7); }
.card-live.off { color: #e09186; }
.card-live.off::before { background: #d96a5b; box-shadow: 0 0 8px rgba(217,106,91,.7); }
.card.hidden { display: none; }

/* 泊船指南 */
.dock { padding: 56px 5vw 30px; }
.dock-head { margin-bottom: 24px; }
.dock-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: rgba(11, 24, 38, .6); border: 1px solid var(--card-line); border-radius: 14px; padding: 22px; position: relative; }
.step b { font-family: var(--serif); font-size: 15px; color: var(--gold); letter-spacing: 2px; }
.step h3 { font-family: var(--serif); font-size: 16.5px; color: var(--moon); letter-spacing: 2px; margin: 10px 0 8px; }
.step p { font-size: 12.5px; line-height: 1.9; color: var(--muted); }

/* 页脚 */
.foot { text-align: center; padding: 60px 5vw 40px; }
.foot p:first-child { font-family: var(--serif); letter-spacing: 3px; font-size: 14.5px; color: var(--muted); }
.foot-sub { margin-top: 12px; font-size: 12px; color: var(--faint); }
.foot-sub a { color: var(--teal); margin: 0 4px; }
.foot-sub a:hover { color: var(--moon); }

/* ============ 响应式 ============ */
@media (max-width: 860px) {
  .nav { padding: 12px 4vw; }
  .nav-links { gap: 14px; font-size: 12.5px; }
  .brand-text em { display: none; }
  .boat-wrap { right: 6%; transform: scale(.72); transform-origin: bottom right; }
  .stat-strip { gap: 16px; padding: 14px 22px; border-radius: 22px; }
  .sep { display: none; }
  .dock-steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
}
/* 手机端：抬回上移量避免标题被固定导航遮挡，整体收紧 */
@media (max-width: 600px) {
  .nav { flex-wrap: wrap; row-gap: 6px; padding: 10px 4vw; }
  .nav-links { width: 100%; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .page { margin-top: 0; }
  .hero { padding: 26px 6vw 44px; }
  .hero-kicker { letter-spacing: 4px; margin-bottom: 12px; }
  .hero-title { font-size: clamp(26px, 8.4vw, 34px); letter-spacing: 3px; line-height: 1.35; }
  .hero-sub { font-size: 13.5px; line-height: 1.9; }
  .stat-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; padding: 16px 18px; border-radius: 16px; }
  .stat-strip .sep { display: none; }
  .card { padding: 16px; }
  .harbor, .dock { padding: 8px 6vw 40px; }
  .foot-sub { padding: 0 6vw 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .boat, .lantern, .waves, .mist, .moon-glow, .star, .dot, .boat .glow { animation: none !important; }
}
