/* search.lanhu199.top — 对齐 www.lanhu199.top 视觉风格 */
:root {
  --bg: #060a14;
  --bg-soft: #0a1020;
  --card: linear-gradient(180deg, rgba(16,24,46,.88), rgba(10,16,30,.94));
  --card-hi: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.08);
  --line-hi: rgba(110,168,255,.35);
  --tx: #e8eefc;
  --tx-dim: #8a9dc0;
  --tx-faint: #5c6f96;
  --accent: #6ea8ff;
  --accent-hi: #8fb8ff;
  --accent2: #8f6bff;
  --cyan: #4dffd8;
  --pink: #ff6eb4;
  --ok: #4dffd8;
  --warn: #ffb454;
  --danger: #ff6eb4;
  --grad: linear-gradient(135deg, #6ea8ff, #8f6bff);
  --glass: rgba(255,255,255,.04);
  --radius: 16px;
  --radius-sm: 12px;
  --header-h: 60px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---------- 动态背景（aurora 光斑 + 暗角） ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 600px at -6% -8%, rgba(110,168,255,.26), transparent 70%),
    radial-gradient(520px 520px at 104% 14%, rgba(143,107,255,.22), transparent 70%),
    radial-gradient(460px 460px at 38% 106%, rgba(77,255,216,.10), transparent 70%),
    radial-gradient(360px 360px at 68% 6%, rgba(255,110,180,.08), transparent 70%);
  animation: auroraDrift 26s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 40px 30px, -30px 44px, 24px -30px, -20px 16px; }
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, transparent 30%, rgba(4,6,12,.55) 100%);
}
#app { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(6,10,20,.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; white-space: nowrap; letter-spacing: .04em; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 800;
  box-shadow: 0 6px 18px rgba(110,168,255,.35);
}
.search-form { flex: 1; display: flex; max-width: 520px; margin: 0 auto; }
.search-form input {
  flex: 1; min-width: 0; height: 40px;
  padding: 0 16px; border: 1px solid var(--line); border-right: 0;
  border-radius: 13px 0 0 13px;
  background: rgba(255,255,255,.04); color: var(--tx); outline: none; font-size: 14px;
  transition: border-color .25s, box-shadow .25s;
}
.search-form input::placeholder { color: var(--tx-faint); }
.search-form input:focus { border-color: rgba(110,168,255,.5); box-shadow: 0 0 0 3px rgba(110,168,255,.08); }
.search-form button {
  height: 40px; padding: 0 20px; border: 0; cursor: pointer;
  border-radius: 0 13px 13px 0;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 14px;
  transition: filter .25s, box-shadow .25s;
}
.search-form button:hover { filter: brightness(1.12); box-shadow: 0 6px 22px rgba(110,168,255,.4); }
.nav-tabs { display: flex; gap: 4px; }
.nav-tabs a {
  padding: 7px 14px; border-radius: 10px; color: var(--tx-dim); font-size: 14px;
  letter-spacing: .05em; transition: color .25s, background .25s;
}
.nav-tabs a:hover { color: var(--tx); background: var(--glass); }
.nav-tabs a[aria-current="page"] {
  color: #fff; font-weight: 600;
  background: linear-gradient(135deg, rgba(110,168,255,.25), rgba(143,107,255,.25));
  border: 1px solid rgba(255,255,255,.10);
}
@media (max-width: 860px) { .nav-tabs { display: none; } }

/* ---------- 区块标题 ---------- */
section.block { margin: 30px 0; }
.block-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.block-head h2 {
  margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: .14em; color: #d8e4fa;
  display: flex; align-items: center; gap: 10px;
}
.block-head h2::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px;
  background: var(--grad); box-shadow: 0 0 12px rgba(110,168,255,.5);
}
.block-head .more { margin-left: auto; font-size: 13px; color: var(--tx-dim); transition: color .25s; }
.block-head .more:hover { color: var(--accent-hi); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.row-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: 132px;
  overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: 8px;
  scrollbar-width: thin; scroll-snap-type: inline proximity;
}
.grid.row-scroll > * { scroll-snap-align: start; }

.mcard { display: flex; flex-direction: column; gap: 7px; }
.mcard .poster {
  position: relative; aspect-ratio: 2/3; border-radius: var(--radius-sm);
  background: #0c1428; overflow: hidden; border: 1px solid var(--line);
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.mcard:hover .poster {
  transform: translateY(-4px);
  border-color: var(--line-hi);
  box-shadow: 0 14px 38px rgba(0,0,0,.45), 0 0 0 1px rgba(110,168,255,.15);
}
.mcard .poster img { width: 100%; height: 100%; object-fit: cover; }
.mcard .badge {
  position: absolute; right: 6px; bottom: 6px; z-index: 2;
  padding: 2px 8px; border-radius: 7px; font-size: 11px; font-weight: 600;
  background: rgba(4,8,16,.75); color: #fff; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
}
.mcard .badge.score { color: var(--warn); }
.mcard h3 {
  margin: 0; font-size: 13px; font-weight: 500; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mcard .sub { font-size: 12px; color: var(--tx-faint); display: flex; gap: 6px; overflow: hidden; white-space: nowrap; }

/* 音乐/小说列表卡 */
.rowcard {
  display: flex; gap: 12px; padding: 12px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--line); align-items: center;
  cursor: pointer;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.rowcard:hover {
  transform: translateY(-3px);
  border-color: var(--line-hi);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.rowcard .cover {
  width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none;
  background: #0c1428; border: 1px solid var(--line);
}
.rowcard .cover.book { width: 42px; height: 58px; border-radius: 5px; }
.rowcard .info { flex: 1; min-width: 0; }
.rowcard .info h3 { margin: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowcard .info .meta { font-size: 12px; color: var(--tx-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowcard .desc { font-size: 12px; color: var(--tx-faint); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rowcard .act { flex: none; color: var(--accent-hi); font-size: 13px; }

/* ---------- 骨架屏 ---------- */
.skel { border-radius: var(--radius-sm); background: rgba(255,255,255,.04); position: relative; overflow: hidden; border: 1px solid var(--line); }
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.skel.poster { aspect-ratio: 2/3; }
.skel.line { height: 14px; margin-top: 8px; border-radius: 6px; }

/* ---------- 标签页 ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.chips button {
  padding: 7px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--glass); color: var(--tx-dim);
  transition: all .3s;
}
.chips button:hover { color: var(--tx); border-color: var(--line-hi); }
.chips button[aria-pressed="true"] {
  background: var(--grad); border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 6px 18px rgba(110,168,255,.3);
}

/* ---------- 详情页 ---------- */
.detail-hero {
  display: flex; gap: 24px; margin: 26px 0; padding: 26px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
  position: relative; overflow: hidden;
}
.detail-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(240px 240px at 18% 0%, rgba(110,168,255,.14), transparent 70%);
}
.detail-hero .poster {
  width: 180px; aspect-ratio: 2/3; border-radius: var(--radius-sm); overflow: hidden; flex: none;
  background: #0c1428; border: 1px solid var(--line);
  box-shadow: 0 10px 32px rgba(0,0,0,.4);
}
.detail-hero .poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero .meta { flex: 1; min-width: 0; position: relative; }
.detail-hero h1 { margin: 0 0 10px; font-size: 24px; line-height: 1.35; letter-spacing: .02em; }
.detail-hero .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tag {
  padding: 3px 11px; border-radius: 7px; font-size: 12px;
  background: rgba(110,168,255,.08); color: #a8c4ee; border: 1px solid rgba(110,168,255,.15);
}
.tag.hot { color: var(--warn); background: rgba(255,180,84,.08); border-color: rgba(255,180,84,.18); }
.detail-hero .facts { color: var(--tx-dim); font-size: 13px; margin-bottom: 12px; }
.detail-hero .facts b { color: var(--accent-hi); font-weight: 600; }
.detail-hero .desc { color: #b8c8e8; font-size: 13.5px; line-height: 2; display: -webkit-box; -webkit-line-clamp: var(--clamp, 4); -webkit-box-orient: vertical; overflow: hidden; }
.detail-hero .desc.open { --clamp: 999; }
@media (max-width: 640px) {
  .detail-hero { flex-direction: column; padding: 20px; }
  .detail-hero .poster { width: 132px; margin: 0 auto; }
}

.ep-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-grid button, .ep-grid a {
  min-width: 76px; padding: 8px 13px; text-align: center; cursor: pointer;
  border-radius: 10px; border: 1px solid var(--line); background: var(--glass);
  font-size: 13px; transition: all .25s;
}
.ep-grid button:hover, .ep-grid a:hover { border-color: var(--line-hi); background: rgba(110,168,255,.08); }
.ep-grid .cur {
  background: var(--grad); border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 6px 18px rgba(110,168,255,.3);
}
.ep-grid .cur.watching::after { content: "▶"; margin-left: 4px; font-size: 10px; }

/* ---------- 播放页 ---------- */
.player-box { margin: 20px 0; }
.player-box video {
  width: 100%; aspect-ratio: 16/9; background: #000;
  border-radius: var(--radius) var(--radius) 0 0; outline: none;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
}
.player-bar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius); font-size: 13px; color: var(--tx-dim);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.player-status {
  display: grid; place-items: center; aspect-ratio: 16/9; background: var(--card);
  border-radius: var(--radius); border: 1px solid var(--line); color: var(--tx-dim);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.btn {
  padding: 9px 18px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--glass); cursor: pointer; font-size: 13px; transition: all .3s;
}
.btn:hover { background: var(--card-hi); border-color: var(--line-hi); }
.btn.primary {
  background: var(--grad); border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 6px 20px rgba(110,168,255,.35);
}
.btn.primary:hover { filter: brightness(1.12); box-shadow: 0 8px 28px rgba(110,168,255,.45); }

/* ---------- 阅读器 ---------- */
.reader { max-width: 720px; margin: 18px auto; }
.reader .chapter-head { text-align: center; margin: 16px 0; }
.reader .chapter-head h2 { margin: 0; font-size: 18px; letter-spacing: .06em; }
.reader .chapter-head .vol { color: var(--tx-faint); font-size: 12px; letter-spacing: .1em; }
.novel-text {
  font-size: var(--reader-fs, 17px); line-height: 2; color: #cfdcf4;
  white-space: pre-wrap; word-break: break-all;
  padding: 22px 26px 40vh; margin: 14px 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.reader-nav {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; gap: 8px; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(6,10,20,.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.reader-nav .btn { flex: 1; text-align: center; }
.fs-ctl { display: flex; align-items: center; gap: 6px; }

/* 漫画页 */
.manga-page { display: flex; flex-direction: column; gap: 4px; }
.manga-page img { width: 100%; margin: 0 auto; display: block; background: #0c1428; min-height: 60vh; }
.manga-page .page-gap { height: 8px; }

/* ---------- 音乐播放条 ---------- */
.now-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8,13,26,.88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(0,0,0,.35);
}
.now-bar img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: #0c1428; }
.now-bar .np { flex: 1; min-width: 0; }
.now-bar .np h4 { margin: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-bar .np span { font-size: 12px; color: var(--tx-dim); }
.now-bar button { background: none; border: 0; cursor: pointer; font-size: 20px; padding: 6px; }
.progress { height: 3px; background: rgba(255,255,255,.08); position: absolute; top: 0; left: 0; right: 0; }
.progress i { display: block; height: 100%; background: var(--grad); width: 0; box-shadow: 0 0 10px rgba(110,168,255,.6); }

/* ---------- 章节列表 ---------- */
.chapter-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.chapter-list a {
  padding: 10px 13px; border-radius: 10px; background: var(--glass); border: 1px solid var(--line);
  font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: all .25s;
}
.chapter-list a:hover { background: rgba(110,168,255,.08); border-color: var(--line-hi); color: var(--tx); }
.chapter-list a.cur { border-color: rgba(110,168,255,.5); color: var(--accent-hi); background: rgba(110,168,255,.1); }

/* ---------- 空状态 / 错误 ---------- */
.empty { text-align: center; color: var(--tx-faint); padding: 56px 0; letter-spacing: .08em; }
.empty .big { font-size: 40px; margin-bottom: 10px; }

/* ---------- 提示条 ---------- */
.toast {
  position: fixed; bottom: 92px; left: 50%; transform: translateX(-50%);
  background: rgba(16,24,46,.95); color: var(--tx); border: 1px solid var(--line-hi);
  padding: 10px 22px; border-radius: 12px; z-index: 80; font-size: 13px;
  box-shadow: 0 12px 36px rgba(0,0,0,.5);
  backdrop-filter: blur(10px);
}

/* ---------- 页脚 ---------- */
footer.site-foot {
  margin: 56px 0 24px; padding: 18px 0 40px;
  color: var(--tx-faint); font-size: 12.5px; text-align: center; letter-spacing: .12em;
}
footer.site-foot a { color: var(--tx-dim); transition: color .2s; }
footer.site-foot a:hover { color: var(--accent-hi); }

details.plain {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--glass);
}
details.plain summary { padding: 13px 16px; cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; }
details.plain summary::marker { content: none; }
details.plain summary::before { content: "▸ "; color: var(--accent); }
details.plain[open] summary::before { content: "▾ "; }
details.plain .inner { padding: 0 16px 14px; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(110,168,255,.22); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(110,168,255,.35); }
::-webkit-scrollbar-track { background: transparent; }
