@charset "utf-8";
/* ==========================================================================
   星海漫音 - 前台统一主题样式
   唯一使用的图片资源：
     assets/img/bg.webp   背景图
     assets/img/tile.png  可平铺瓦片图
   ========================================================================== */

:root {
  --bg: #070b18;
  --bg-soft: #0d1428;
  --panel: rgba(15, 22, 43, .72);
  --panel-solid: #121a30;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .22);
  --text: #e8ecf8;
  --text-dim: #9aa6c4;
  --brand: #ff8fb1;
  --brand-2: #b28cff;
  --accent: #6fe6d0;
  --danger: #ff7a7a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 44px rgba(0, 0, 0, .5);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  background-color: var(--bg);
  /* 背景图 + 平铺瓦片图（半透明覆盖） */
  background-image:
    linear-gradient(180deg, rgba(5, 8, 20, .70) 0%, rgba(5, 8, 20, .88) 55%, rgba(4, 6, 16, .96) 100%),
    url(../assets/img/tile.png),
    url(../assets/img/bg.webp);
  background-repeat: no-repeat, repeat, no-repeat;
  background-position: center top, left top, center top;
  background-size: cover, 512px 512px, cover;
  background-attachment: fixed, fixed, fixed;
  background-blend-mode: normal, overlay, normal;
}

img { max-width: 100%; border: 0; }
a { color: inherit; text-decoration: none; transition: color .18s ease, opacity .18s ease; }
a:hover { color: var(--brand); }
h1, h2, h3, h4, h5 { margin: 0 0 .6em; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------------------------------------------------------------- 布局 */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.page { padding: 34px 0 64px; }
.page-narrow { max-width: 860px; }

/* ---------------------------------------------------------------- 顶栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #0a1020;
  background-image: linear-gradient(180deg, #0e1630 0%, #080d1c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .42);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; white-space: nowrap; min-width: 0; }
.brand-logo { width: auto; object-fit: contain; display: block; }
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #f1f4ff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  padding: 9px 10px;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .14); }
.nav-toggle span { display: block; height: 2px; background: #eef2ff; border-radius: 2px; }
.nav-toggle span + span { margin-top: 5px; }

.main-nav { margin-left: auto; min-width: 0; }
.nav-list { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.nav-list > li > a {
  display: block;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: #c2cbe6;
  white-space: nowrap;
}
.nav-list > li > a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.nav-list > li > a.is-active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(120deg, rgba(255, 143, 177, .34), rgba(178, 140, 255, .34));
  box-shadow: inset 0 0 0 1px rgba(255, 143, 177, .55);
}
.header-user { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.header-user .btn { padding: 8px 18px; font-size: 14px; }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: transform .16s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: var(--line-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #1a0f1c;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(178, 140, 255, .28);
}
.btn-primary:hover { color: #1a0f1c; filter: brightness(1.06); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 30px; font-size: 15px; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------------------------------------------------------------- 卡片/面板 */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../assets/img/tile.png);
  background-size: 512px 512px;
  opacity: .05;
  pointer-events: none;
}
.panel > * { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- 首页 Banner */
.hero {
  position: relative;
  margin: 26px auto 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 330px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(100deg, rgba(5, 8, 20, .88) 6%, rgba(5, 8, 20, .55) 52%, rgba(5, 8, 20, .15) 100%),
    url(../assets/img/bg.webp);
  background-size: cover, cover;
  background-position: center, center;
}
.hero-inner { padding: 52px 48px; max-width: 640px; position: relative; z-index: 2; }
.hero-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
  border: 1px solid rgba(111, 230, 208, .35);
  background: rgba(111, 230, 208, .08);
}
.hero h1 { font-size: 40px; margin-bottom: 12px; letter-spacing: 1px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { color: var(--text-dim); font-size: 15px; margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- 区块标题 */
.section { margin-top: 52px; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: 22px; margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head h2::before {
  content: "";
  width: 5px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.section-head .more { margin-left: auto; font-size: 13px; color: var(--text-dim); }
.section-head .more:hover { color: var(--brand); }

/* ---------------------------------------------------------------- 网格卡片 */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
}
.grid-4, .grid-5, .grid-3 { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }

.card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 22, 43, .6);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 143, 177, .45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .5);
}
.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-body { padding: 12px 14px 16px; }
.card-title {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-meta { margin: 6px 0 0; font-size: 12px; color: var(--text-dim); }

/* 音乐卡片：方形封面 */
.card--music .card-thumb { aspect-ratio: 1 / 1; }

/* 比赛/展览：纯标题列表 */
.title-list { display: flex; flex-direction: column; gap: 10px; }
.title-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(15, 22, 43, .6);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.title-item:hover {
  border-color: rgba(111, 230, 208, .45);
  background: rgba(20, 30, 56, .8);
  transform: translateX(4px);
}
.title-item .idx {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--accent);
  background: rgba(111, 230, 208, .1);
  border: 1px solid rgba(111, 230, 208, .25);
}
.title-item .txt { flex: 1 1 auto; min-width: 0; font-size: 15px; }
.title-item .go { flex: 0 0 auto; color: var(--text-dim); font-size: 13px; }

/* ---------------------------------------------------------------- 空状态 */
.empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--text-dim);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(15, 22, 43, .4);
}

/* ---------------------------------------------------------------- 面包屑 */
.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-dim); margin-bottom: 18px; }
.crumb a:hover { color: var(--brand); }
.crumb span { opacity: .55; }

/* ---------------------------------------------------------------- 页头 */
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: 26px; margin-bottom: 6px; }
.page-head .desc { color: var(--text-dim); font-size: 14px; margin: 0; }

/* ---------------------------------------------------------------- 漫画详情 */
.reader-title { font-size: 24px; margin-bottom: 4px; }
.reader-sub { color: var(--text-dim); font-size: 13px; margin-bottom: 20px; }
.reader-pages { display: flex; flex-direction: column; align-items: center; }
.reader-pages img {
  display: block;
  width: 100%;
  max-width: 780px;
  height: auto;
  background: transparent;
}
.chapter-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 30px 0 0; }
.chapter-nav a, .chapter-nav span {
  min-width: 74px;
  padding: 8px 14px;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .05);
  font-size: 14px;
}
.chapter-nav a:hover { border-color: var(--brand); background: rgba(255, 143, 177, .16); }
.chapter-nav .is-current { border-color: var(--brand); background: linear-gradient(120deg, rgba(255, 143, 177, .3), rgba(178, 140, 255, .3)); color: #fff; }
.chapter-nav .is-locked { color: #ffd9a1; border-color: rgba(255, 200, 120, .4); }

/* 下一章 / 打赏 */
.reader-foot { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.next-chapter { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.reward-box { width: 100%; max-width: 620px; text-align: center; }
.reward-box h3 { font-size: 16px; margin-bottom: 6px; }
.reward-box .tip { color: var(--text-dim); font-size: 13px; margin-bottom: 14px; }
.reward-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.reward-btn { min-width: 104px; }

/* ---------------------------------------------------------------- 音乐详情 */
.music-detail { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 30px; }
.music-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
}
.music-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.music-info h1 { font-size: 26px; margin-bottom: 8px; }
.music-info .singer { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; }
.player {
  width: 100%;
  margin: 0 0 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .06);
}
.download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  margin-bottom: 8px;
}
.download-row .note { font-size: 13px; color: var(--text-dim); }
.lyric {
  margin-top: 34px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 22, 43, .58);
  max-height: 460px;
  overflow: auto;
  text-align: center;
  line-height: 2.1;
  color: #cfd7ee;
  font-size: 14px;
}
.lyric p { margin: 0 0 4px; }
.lyric-title { text-align: center; font-size: 16px; margin: 30px 0 0; color: var(--text); }

/* ---------------------------------------------------------------- 展览详情 */
.info-list { display: grid; gap: 12px; margin-bottom: 26px; }
.info-row {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(15, 22, 43, .58);
}
.info-row .k { flex: 0 0 88px; color: var(--text-dim); font-size: 14px; }
.info-row .v { flex: 1 1 auto; min-width: 0; }
.article-body { line-height: 1.9; color: #dbe2f5; word-break: break-word; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 10px 0; display: block; }
.article-body p { margin: 0 0 1em; }
.article-body a { color: var(--accent); text-decoration: underline; }
.prev-next { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.prev-next .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- 文章/协议页 */
.doc { font-size: 15px; line-height: 2; color: #d8dff2; word-break: break-word; text-align: justify; }
.doc p { margin: 0 0 .9em; }
.doc h3 { margin: 1.4em 0 .6em; font-size: 17px; color: #fff; }
.doc strong { color: #fff; }
.doc br { line-height: 1; }
.doc img { max-width: 100%; height: auto; }
/* 协议正文里历史遗留的行内黑字/白底，统一改为浅色以适配深色主题 */
.doc [style*="color:#000"], .doc [style*="color: #000"],
.doc [style*="color:#333"], .doc [style*="color: #333"],
.doc [style*="color:#666"], .doc [style*="color: #666"],
.doc [style*="color:black"], .doc [style*="color: black"],
.doc [style*="color:rgb(0"], .doc [style*="color: rgb(0"] { color: inherit !important; }
.doc [style*="background: rgb(255, 255, 255)"], .doc [style*="background:rgb(255,255,255)"] { background: transparent !important; }

/* ---------------------------------------------------------------- 表单 */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; margin-bottom: 7px; font-size: 13px; color: var(--text-dim); }
.input, input[type="text"], input[type="password"], input[type="email"], input[type="number"], select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, background .18s ease;
}
.input:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  background: rgba(255, 255, 255, .08);
}
input::placeholder, textarea::placeholder { color: rgba(154, 166, 196, .7); }
select option { background: var(--panel-solid); color: var(--text); }
textarea { min-height: 170px; resize: vertical; }
.form-tip { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text-dim); margin-bottom: 18px; }
.checkbox input { width: auto; margin-top: 4px; }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row .input { flex: 1 1 auto; }
.captcha-row img { height: 46px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line-strong); }
.auth-card { max-width: 460px; margin: 0 auto; }
.auth-foot { margin-top: 16px; font-size: 13px; color: var(--text-dim); text-align: center; }
.auth-foot a { color: var(--brand); }

/* ---------------------------------------------------------------- 个人中心 */
.user-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 24px; align-items: start; }
.user-side { position: sticky; top: 88px; padding: 14px; }
.user-side .who { padding: 10px 12px 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.user-side .who .name { font-size: 14px; word-break: break-all; }
.user-side .who .lv { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.user-side nav a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.user-side nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.user-side nav a.is-active {
  color: #fff;
  background: linear-gradient(120deg, rgba(255, 143, 177, .26), rgba(178, 140, 255, .26));
  box-shadow: inset 0 0 0 1px rgba(255, 143, 177, .3);
}
.user-main { min-width: 0; }
.user-main h1 { font-size: 22px; margin-bottom: 18px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 22, 43, .6);
}
.stat .k { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.stat .v { font-size: 24px; font-weight: 700; }
.stat .v.pink { color: var(--brand); }
.stat .v.mint { color: var(--accent); }
.stat .u { font-size: 12px; color: var(--text-dim); margin-left: 4px; font-weight: 400; }

.block-title { font-size: 16px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.block-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.block-title .more { margin-left: auto; font-size: 13px; color: var(--text-dim); font-weight: 400; }

/* ---------------------------------------------------------------- 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { font-weight: 500; font-size: 13px; color: var(--text-dim); background: rgba(255, 255, 255, .04); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: rgba(255, 255, 255, .03); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; line-height: 1.7; }
.tag-wait { color: #ffd9a1; background: rgba(255, 200, 120, .14); border: 1px solid rgba(255, 200, 120, .3); }
.tag-done { color: var(--accent); background: rgba(111, 230, 208, .12); border: 1px solid rgba(111, 230, 208, .3); }

/* ---------------------------------------------------------------- 弹层 */
.mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 5, 12, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
}
.mask.is-open { display: block; }
.modal {
  position: fixed;
  z-index: 91;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 40px));
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(18, 26, 48, .97);
  box-shadow: var(--shadow);
  text-align: center;
  display: none;
}
.modal.is-open { display: block; }
.modal h3 { font-size: 17px; margin-bottom: 4px; }
.modal .sub { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; }
.modal .qr {
  width: 216px;
  height: 216px;
  max-width: 100%;
  margin: 0 auto 16px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: #fff;
}
.modal .qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.modal .amount { font-size: 15px; margin-bottom: 6px; }
.modal .amount b { color: var(--brand); font-size: 22px; }
.modal .close-x {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.modal .close-x:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* 通用消息提示 */
.toast {
  position: fixed;
  left: 50%;
  top: 84px;
  transform: translateX(-50%) translateY(-12px);
  z-index: 120;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(18, 26, 48, .97);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------------------------------------------------------- 页脚 */
.site-footer {
  margin-top: 60px;
  padding: 40px 0 26px;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 18, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.footer-cols h4 { font-size: 15px; margin-bottom: 14px; }
.footer-cols p { color: var(--text-dim); font-size: 13px; margin: 0 0 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--text-dim); font-size: 13px; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--text-dim);
  font-size: 12.5px;
}
.footer-bottom .logo { height: 26px; width: auto; margin-bottom: 10px; opacity: .85; }
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--brand); }

/* ---------------------------------------------------------------- 分页 */
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 30px; }
.pager a, .pager span {
  min-width: 38px;
  padding: 7px 12px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .05);
  font-size: 13px;
}
.pager .is-current { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #1a0f1c; border-color: transparent; font-weight: 600; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
  .grid, .grid-4, .grid-5, .grid-3 { grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); }
}
@media (max-width: 900px) {
  .music-detail { grid-template-columns: 1fr; }
  .music-cover { max-width: 300px; }
  .cover { max-width: 320px; }
  .user-layout { grid-template-columns: 1fr; }
  .user-side { position: static; }
  .user-side nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .user-side nav a { margin-bottom: 0; }
  .user-side .who { border-bottom: 0; padding-bottom: 8px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; margin-left: 0; }
  .header-inner { flex-wrap: wrap; padding: 10px 0; row-gap: 10px; }
  .main-nav {
    order: 3;
    flex: 1 1 100%;
    margin-left: 0;
    display: none;
    min-width: 0;
  }
  .main-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list > li > a { border-radius: var(--radius-sm); padding: 11px 14px; }
  .header-user { margin-left: auto; }
  .header-user .btn { padding: 8px 14px; font-size: 13px; }
  .brand { flex: 1 1 auto; overflow: hidden; }
}
@media (max-width: 700px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 14px; }
  .hero { min-height: 250px; border-radius: 16px; }
  .hero-inner { padding: 30px 20px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 14px; }
  .hero-actions .btn { padding: 9px 16px; font-size: 13.5px; }
  .section-head h2 { font-size: 19px; }
  .grid, .grid-4, .grid-5, .grid-3 { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 13px; }
  .section { margin-top: 36px; }
  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
  .stat-grid { grid-template-columns: 1fr; gap: 12px; }
  .panel { padding: 18px 16px; }
  .reader-pages img { border-radius: 0; }
  .chapter-nav a, .chapter-nav span { min-width: 60px; padding: 7px 10px; font-size: 13px; }
  .user-main h1 { font-size: 19px; }
  .article-body, .doc { font-size: 14.5px; }
  .page { padding: 22px 0 48px; }
  .reader-title { font-size: 20px; }
  .music-cover { max-width: 240px; }
}
@media (max-width: 400px) {
  .grid, .grid-4, .grid-5, .grid-3 { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
}
