/* =========================================================
   legal.css —— 站点信息页（关于我们 / 隐私说明 / 使用条款）
   只给这几个静态页用，配色和首页保持一致
   ========================================================= */

:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --ink: #191521;
  --ink-2: #443c55;
  --muted: #6f6883;
  --line: rgba(25, 21, 33, 0.09);
  --c1: #ff7a59;
  --c2: #ff4d8d;
  --c3: #7c5cff;
  --grad: linear-gradient(115deg, var(--c1), var(--c2) 48%, var(--c3));
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --font-display: "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 80px;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(255, 122, 89, 0.1), transparent 60%),
    radial-gradient(800px 500px at 92% 4%, rgba(124, 92, 255, 0.09), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  /* 与首页一致：文字不可选中 */
  -webkit-user-select: none;
  user-select: none;
}

.wrap { max-width: 760px; margin: 0 auto; }

/* ---------- 顶部 ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.back {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}
.back:hover { color: var(--c2); }

/* ---------- 正文卡片 ---------- */
.doc {
  margin-top: 30px;
  padding: clamp(26px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 60px -40px rgba(25, 21, 33, 0.35);
}
.doc h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 36px);
  line-height: 1.3;
  margin: 0;
  letter-spacing: 0.02em;
}
.doc .meta {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.doc .lead {
  margin-top: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
}
.doc h2 {
  position: relative;
  margin: 34px 0 10px;
  padding-left: 14px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.02em;
}
.doc h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c2);
  box-shadow: 0 0 0 3px rgba(255, 77, 141, 0.14);
}
.doc p { margin: 0 0 10px; color: var(--ink-2); }
.doc ul { margin: 6px 0 12px; padding-left: 20px; color: var(--ink-2); }
.doc li { margin-bottom: 6px; }
.doc b { color: var(--ink); }
.doc code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(124, 92, 255, 0.08);
  font-size: 13px;
}
.doc .note {
  margin-top: 26px;
  padding: 14px 18px;
  border-left: 3px solid var(--c1);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 122, 89, 0.07);
  font-size: 14px;
}

/* ---------- 底部 ---------- */
.pfoot {
  margin-top: 26px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
.pfoot a { color: var(--ink-2); text-decoration: none; margin: 0 8px; }
.pfoot a:hover { color: var(--c2); }

/* ---------- 左下角音乐播放器（和首页同一套） ---------- */
.music {
  position: fixed;
  left: 22px; bottom: 22px;
  z-index: 85;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 16px 9px 9px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -12px rgba(25, 21, 33, 0.18);
}
.music__disc {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  position: relative;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px -8px rgba(255, 77, 141, 0.9);
  border: none;
  cursor: pointer;
}
.music__vinyl {
  width: 30px; height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 18%, transparent 19%),
    repeating-radial-gradient(circle at center, rgba(255,255,255,0.28) 0 1px, transparent 1px 4px);
  border: 1px solid rgba(255,255,255,0.5);
}
.music__disc.is-playing .music__vinyl { animation: mspin 4s linear infinite; }
@keyframes mspin { to { transform: rotate(360deg); } }
.music__disc::before {
  content: "▶";
  position: absolute;
  font-size: 13px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s;
}
.music:not(.is-playing) .music__disc::before { opacity: 1; }
.music__info { display: flex; flex-direction: column; gap: 3px; max-width: 170px; }
.music__title {
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music__ctrls { display: flex; gap: 4px; }
.music__ctrls button {
  width: 26px; height: 22px;
  display: grid; place-items: center;
  border: none;
  background: none;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
}
.music__ctrls button:hover { color: var(--c2); background: var(--line); }
.music__ctrls svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
@media (max-width: 720px) {
  .music { left: 12px; bottom: 12px; }
}
