/* ============================================================
   DILFONIYA MUSIC — 网站整体样式
   风格：现代简约 | 主配色：黑色 + 橘红色 | 文字：浅色，清晰可读
   ============================================================ */
:root {
  --bg: #0e0e10;
  --panel: #17171b;
  --panel-2: #1e1e23;
  --line: #2b2b31;
  --text: #f2f0ec;
  --muted: #a09b93;
  --accent: #ff5a1f;
  --accent-soft: rgba(255, 90, 31, 0.14);
  --accent-line: rgba(255, 90, 31, 0.45);
  --danger: #ff4d4d;
  --ok: #35c26e;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 90, 31, 0.10), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(255, 90, 31, 0.07), transparent 55%),
    var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 28px;
  background: rgba(14, 14, 16, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: 0.5px;
}
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #ff8a50);
  display: inline-flex; align-items: center; justify-content: center;
  color: #14100d; font-size: 15px; font-weight: 800;
}
.brand small { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 2px; }
.topbar .spacer { flex: 1; }
.topbar .back {
  color: var(--muted); font-size: 14px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  transition: all .18s;
}
.topbar .back:hover { color: var(--text); border-color: var(--accent-line); }

/* ---------- 用户区 ---------- */
.user-chip { position: relative; }
.user-chip .chip-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--text); border-radius: 999px; padding: 7px 14px; font-size: 14px;
  transition: border-color .18s;
}
.user-chip .chip-btn:hover { border-color: var(--accent-line); }
.user-chip .avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff8a50);
  color: #14100d; font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.user-chip .role-tag {
  font-size: 11px; color: var(--accent); border: 1px solid var(--accent-line);
  padding: 1px 7px; border-radius: 999px; background: var(--accent-soft);
}
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 150px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  padding: 6px; display: none;
}
.user-menu.open { display: block; }
.user-menu button {
  width: 100%; text-align: left; background: none; border: none;
  color: var(--text); padding: 9px 12px; border-radius: 8px; font-size: 14px;
}
.user-menu button:hover { background: var(--accent-soft); color: var(--accent); }
.user-menu .menu-note { padding: 6px 12px 4px; font-size: 12px; color: var(--muted); }

.btn-login {
  background: linear-gradient(135deg, var(--accent), #ff7a3c);
  color: #17110c; font-weight: 700; border: none;
  border-radius: 999px; padding: 9px 22px; font-size: 14px;
  transition: transform .15s, box-shadow .15s;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255, 90, 31, 0.35); }

/* ---------- 主页 ---------- */
.hero { max-width: 1060px; margin: 0 auto; padding: 90px 28px 40px; text-align: center; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--accent);
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  border-radius: 999px; padding: 5px 14px; margin-bottom: 22px;
}
/* ---------- 主页大标题：动态 2.5D 立体字 ---------- */
.hero-title-wrap {
  position: relative; isolation: isolate;
  display: flex; justify-content: center;
  perspective: 900px; perspective-origin: 50% 42%;
  padding: 8px 0 14px;
}

/* 立体块本身：随鼠标 / 自动呼吸摆动做 3D 旋转 */
.hero-title {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0 0.24em;
  font-size: 52px; line-height: 1.16; letter-spacing: 2px; font-weight: 800;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
  cursor: default;
  user-select: none;
}
.hero-title .word { display: inline-flex; transform-style: preserve-3d; }

/* 单个字母：中心略向前、两端略向后，形成弧面，旋转时更有体积感 */
.hero-title .ch {
  display: inline-block;
  transform: translateZ(var(--chz, 0px));
  transform-style: preserve-3d;
  backface-visibility: visible;
  /* 向下挤压出的立体厚度：橘 → 深棕 → 近黑 */
  text-shadow:
    0 1px 0 #c14a16, 0 2px 0 #b34212, 0 3px 0 #a53a0f,
    0 4px 0 #972f0c, 0 5px 0 #89280a, 0 6px 0 #7b2208,
    0 7px 0 #6d1c06, 0 8px 0 #5f1705, 0 9px 0 #511203,
    0 10px 0 #430e03, 0 11px 0 #360b02, 0 12px 0 #2a0801,
    0 15px 20px rgba(0, 0, 0, 0.62),
    0 26px 44px rgba(0, 0, 0, 0.42);
}
.hero-title .word.accent .ch { color: var(--accent); }
/* 橘红词每帧轻微呼吸发光（不影响立体阴影） */
.hero-title .word.accent .ch {
  animation: heroGlow 3.6s ease-in-out infinite alternate;
}
.hero-title .word.accent .ch:nth-child(2) { animation-delay: .18s; }
.hero-title .word.accent .ch:nth-child(3) { animation-delay: .36s; }
.hero-title .word.accent .ch:nth-child(4) { animation-delay: .54s; }
.hero-title .word.accent .ch:nth-child(5) { animation-delay: .72s; }
@keyframes heroGlow {
  0% { filter: brightness(1) drop-shadow(0 0 0 rgba(255, 90, 31, 0)); }
  100% { filter: brightness(1.22) drop-shadow(0 0 14px rgba(255, 90, 31, 0.55)); }
}

/* 背后橘红光晕，随呼吸变化 */
.hero-aura {
  position: absolute; z-index: -1;
  left: 12%; right: 12%; top: -14%; bottom: 2%;
  background: radial-gradient(52% 62% at 50% 52%, rgba(255, 90, 31, 0.30), rgba(255, 90, 31, 0) 72%);
  filter: blur(26px);
  animation: heroAura 7s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroAura {
  0% { opacity: 0.55; transform: scale(0.94); }
  100% { opacity: 0.95; transform: scale(1.06); }
}

/* 地面投影，增强“立起来”的观感 */
.hero-ground {
  position: absolute; z-index: 1;
  left: 50%; bottom: -4px; width: 58%; height: 18px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0) 72%);
  filter: blur(7px);
  pointer-events: none;
  transition: width .3s ease, opacity .3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .hero-title { transform: none; }
  .hero-title .word.accent .ch { animation: none; }
  .hero-aura { animation: none; }
}
.hero p.sub { color: var(--muted); margin-top: 18px; font-size: 16px; }

.entry-grid {
  max-width: 1060px; margin: 46px auto 0; padding: 0 28px 90px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.entry-card {
  text-align: left; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; position: relative; overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  display: block;
}
.entry-card:hover {
  transform: translateY(-4px); border-color: var(--accent-line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.entry-card::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.22), transparent 70%);
}
.entry-card .num { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 2px; }
.entry-card h2 { font-size: 24px; margin: 10px 0 8px; }
.entry-card p { color: var(--muted); font-size: 14px; max-width: 40ch; }
.entry-card .go {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-size: 14px; font-weight: 600;
}
/* 开发中/禁用态卡片：降低对比、去掉悬停动效与光晕 */
.entry-card.disabled { cursor: default; opacity: .55; filter: grayscale(.4); }
.entry-card.disabled::after { display: none; }
.entry-card.disabled:hover {
  transform: none; border-color: var(--line); box-shadow: none;
}
.entry-card.disabled .go { color: var(--muted); }
footer.site-foot {
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px; text-align: center;
  padding: 26px 20px 34px;
}
/* 备案号：主页底部中央，链接工信部 / 公安备案查询系统 */
footer.site-foot .foot-org { font-size: 12.5px; margin-bottom: 6px; opacity: .9; }
footer.site-foot .filing {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px; margin-top: 10px; font-size: 12.5px;
}
footer.site-foot .filing[hidden] { display: none; }
footer.site-foot .filing a {
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
footer.site-foot .filing a:hover { color: var(--accent); border-bottom-color: var(--accent); }
footer.site-foot .filing .sep { color: var(--line); }
/* 公安备案：官方给的是「图标 + 文字」的一整段 HTML，这里做统一排版 */
footer.site-foot .filing .police { display: inline-flex; align-items: center; }
footer.site-foot .filing .police img { display: block; height: 20px; width: auto; }
footer.site-foot .filing .police p { margin: 0 0 0 5px; color: var(--muted); font-size: 12.5px; line-height: 20px; }

/* ---------- 通用面板 / 表单 ---------- */
.wrap { max-width: 1060px; margin: 0 auto; padding: 34px 28px 80px; }
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.panel + .panel { margin-top: 18px; }
.panel h3 { font-size: 18px; margin-bottom: 6px; }
.panel .desc { color: var(--muted); font-size: 13px; margin-bottom: 16px; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 11px 13px; font-size: 14px;
  outline: none; transition: border-color .15s;
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.field input::placeholder { color: #6d6963; }

/* 管理员修改密码表单（后台账号安全） */
.pw-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  max-width: 980px;
  margin-top: 6px;
}
.pw-form .field { margin-bottom: 0; }
@media (max-width: 900px) {
  .pw-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pw-form { grid-template-columns: 1fr; }
}

.btn {
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  border-radius: 10px; padding: 10px 18px; font-size: 14px;
  transition: all .15s; display: inline-flex; align-items: center; gap: 7px;
}
.btn:hover { border-color: var(--accent-line); color: var(--accent); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #ff7a3c);
  border: none; color: #17110c; font-weight: 700;
}
.btn.primary:hover { color: #17110c; box-shadow: 0 8px 20px rgba(255, 90, 31, 0.3); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); }
.btn.small { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; }

.panel code {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 7px; color: var(--accent); font-size: 12.5px;
}

.form-error {
  display: none; background: rgba(255, 77, 77, 0.10);
  border: 1px solid rgba(255, 77, 77, 0.4); color: #ff8a8a;
  border-radius: 10px; padding: 10px 13px; font-size: 13.5px; margin-bottom: 14px;
}
.form-error.show { display: block; }
.form-ok {
  display: none; background: rgba(53, 194, 110, 0.10);
  border: 1px solid rgba(53, 194, 110, 0.4); color: #7fe0a8;
  border-radius: 10px; padding: 10px 13px; font-size: 13.5px; margin-bottom: 14px;
}
.form-ok.show { display: block; }

/* ---------- 登录页 ---------- */
.login-stage { min-height: calc(100dvh - 60px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.login-card { width: 100%; max-width: 420px; }
.tabs { display: flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.tabs button {
  flex: 1; background: none; border: none; color: var(--muted);
  padding: 10px 0; border-radius: 9px; font-size: 14px; font-weight: 600;
  transition: all .15s;
}
.tabs button.active { background: var(--accent); color: #17110c; }
.demo-hint {
  margin-top: 18px; font-size: 12.5px; color: var(--muted);
  border-top: 1px dashed var(--line); padding-top: 14px; line-height: 1.9;
}
.demo-hint code {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 7px; color: var(--accent); font-size: 12px;
}

/* ---------- 系统页布局（陪练系统 / 后台） ---------- */
.layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.side { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.side h4 { font-size: 13px; color: var(--muted); font-weight: 600; margin: 4px 4px 10px; letter-spacing: 1px; }

.tree { list-style: none; }
.tree ul { list-style: none; padding-left: 16px; border-left: 1px solid var(--line); margin-left: 8px; }
.tree .node {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 9px; border-radius: 8px; font-size: 14px;
  cursor: pointer; color: var(--text); transition: background .12s;
}
.tree .node:hover { background: var(--panel-2); }
.tree .node.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tree .node .cnt { margin-left: auto; font-size: 12px; color: var(--muted); }
.tree .node .ico { color: var(--accent); font-size: 13px; width: 16px; text-align: center; }
/* 拖拽乐谱到文件夹：放置目标高亮 + 拖动中的卡片半透明 */
.tree .node.drop-target { background: var(--accent-soft); outline: 1.5px dashed var(--accent); outline-offset: -2px; color: var(--accent); }
.score-item.dragging { opacity: .45; cursor: grabbing; }
/* 拖拽文件夹排序：前后插入提示线 + 拖动中的节点半透明 */
.tree .node.dragging-node { opacity: .45; }
.tree .node.drop-before { box-shadow: inset 0 2px 0 0 var(--accent); }
.tree .node.drop-after { box-shadow: inset 0 -2px 0 0 var(--accent); }

.side .side-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.side .side-actions .btn { justify-content: center; }

.mainbar { min-width: 0; }
.list-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.list-head h3 { font-size: 17px; }
.list-head .crumb { color: var(--muted); font-size: 13px; }
.list-head .spacer { flex: 1; }
.search-box {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 8px 15px; font-size: 13.5px; outline: none; width: 220px;
}
.search-box:focus { border-color: var(--accent); }

.score-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.score-item {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; transition: border-color .15s;
}
.score-item:hover { border-color: var(--accent-line); }
.score-item .name { font-weight: 600; font-size: 15px; word-break: break-all; }
.score-item .meta { color: var(--muted); font-size: 12.5px; margin: 6px 0 12px; }
.score-item .ops { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  font-size: 11px; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--accent-line); color: var(--accent); background: var(--accent-soft);
}
.badge.gray { border-color: var(--line); color: var(--muted); background: none; }
.badge.red { border-color: rgba(255,77,77,.45); color: var(--danger); background: rgba(255,77,77,.08); }

.empty {
  border: 1px dashed var(--line); border-radius: 12px;
  color: var(--muted); text-align: center; padding: 44px 16px; font-size: 14px;
}

/* ---------- 后台 tabs ---------- */
.admin-tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tabs button {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 10px 22px; font-size: 14px; font-weight: 600;
  transition: all .15s;
}
.admin-tabs button.active { background: var(--accent); border-color: var(--accent); color: #17110c; }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px;
  border-bottom: 1px solid var(--line); padding: 10px 12px; letter-spacing: .5px;
}
table.data td { border-bottom: 1px solid var(--line); padding: 11px 12px; vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data td .mono { font-family: "SF Mono", Menlo, monospace; letter-spacing: 1.5px; color: var(--accent); }

.city-group > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
  padding: 10px 4px; font-weight: 700; font-size: 15px;
}
.city-group > summary::-webkit-details-marker { display: none; }
.city-group > summary .arrow { color: var(--accent); transition: transform .15s; display: inline-block; }
.city-group[open] > summary .arrow { transform: rotate(90deg); }
.city-group { border-bottom: 1px solid var(--line); }
.city-group:last-child { border-bottom: none; }

/* ---------- 模态框 / 弹层 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-mask.open { display: flex; }
.modal {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  width: 100%; max-width: 560px; max-height: 82dvh; display: flex; flex-direction: column;
}
.modal.wide { max-width: 720px; }
.modal .modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line); font-weight: 700;
}
.modal .modal-head .x { background: none; border: none; color: var(--muted); font-size: 20px; }
.modal .modal-head .x:hover { color: var(--text); }
.modal .modal-body { padding: 20px 22px; overflow: auto; }
.modal pre.xml {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; font-size: 12px; color: #d8d4cd; overflow: auto; max-height: 46dvh;
  font-family: "SF Mono", Menlo, monospace; line-height: 1.6; white-space: pre-wrap; word-break: break-all;
}

/* 导入结果报告 */
.report { margin-top: 14px; display: none; }
.report.show { display: block; }
.report .rep-line { font-size: 13.5px; margin-bottom: 8px; }
.report .rep-ok { color: var(--ok); }
.report .rep-bad { color: var(--danger); }
.report ul { list-style: none; max-height: 200px; overflow: auto; }
.report li {
  font-size: 13px; color: #ff9c9c; padding: 5px 10px;
  background: rgba(255, 77, 77, 0.07); border-radius: 7px; margin-bottom: 5px;
}

/* ---------- Toast ---------- */
#toast-box { position: fixed; top: 70px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--panel-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  color: var(--text); border-radius: 10px; padding: 11px 16px;
  font-size: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  animation: slide-in .22s ease; max-width: 340px;
}
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--danger); }
@keyframes slide-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ---------- FingerQuest 占位页 ---------- */
.fq-stage { max-width: 900px; margin: 0 auto; padding: 80px 28px 100px; text-align: center; }
.fq-stage .big-mark {
  width: 88px; height: 88px; border-radius: 24px; margin: 0 auto 26px;
  background: linear-gradient(135deg, var(--accent), #ff8a50);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: #14100d; font-weight: 800;
}
.fq-stage h1 { font-size: 38px; margin-bottom: 14px; }
.fq-stage h1 .accent { color: var(--accent); }
.fq-stage p { color: var(--muted); max-width: 56ch; margin: 0 auto; }
.fq-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.fq-features .f {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: left;
}
.fq-features .f b { display: block; margin-bottom: 6px; }
.fq-features .f span { color: var(--muted); font-size: 13.5px; }

/* 管理后台专属卡片（仅管理员登录可见） */
.entry-card.admin-card {
  grid-column: 1 / -1;
  border-color: var(--accent-line);
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.12), var(--panel) 55%);
}
.entry-card.admin-card:hover { border-color: var(--accent); }

/* 练习面板（AI COACH） */
.practice-timer {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 34px; font-weight: 800; color: var(--accent); letter-spacing: 2px;
}
.practice-bar { display: flex; align-items: center; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.practice-bar .ptime { color: var(--muted); font-size: 13px; }

/* Unity WebGL 游戏容器 */
.game-frame {
  width: 100%; height: 74dvh; border: 1px solid var(--line);
  border-radius: var(--radius); background: #000; display: block;
}
.game-frame.fullscreen-on { height: 100dvh; border-radius: 0; border: none; }
.setup-guide { max-width: 640px; margin: 0 auto; }

/* ---------- AI COACH 练习页 ---------- */
.coach-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.coach-controls .group { display: flex; align-items: center; gap: 8px; }
.coach-controls .glabel { font-size: 12.5px; color: var(--muted); }
.seg { display: flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { background: none; border: none; color: var(--muted); padding: 7px 14px; border-radius: 8px; font-size: 13.5px; transition: all .15s; }
.seg button.active { background: var(--accent); color: #17110c; font-weight: 700; }
.bpm-val {
  width: 62px; text-align: center; background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text); border-radius: 8px; padding: 7px 4px; font-weight: 700; outline: none;
}
.bpm-val:focus { border-color: var(--accent); }
input[type="range"].bpm { accent-color: var(--accent); width: 150px; }
.num-in {
  width: 66px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 7px 8px; text-align: center; outline: none;
}
.num-in:focus { border-color: var(--accent); }
.status-line { margin-top: 14px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-line b { color: var(--text); }
.status-line .range-tag { color: var(--accent); font-weight: 600; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-left: auto; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend .lg-ok { background: rgba(53, 194, 110, 0.7); }
.legend .lg-bad { background: rgba(255, 77, 77, 0.7); }
.legend .lg-rbad { background: #ff9d3c; }
.legend .lg-cur { background: var(--accent); }

.sheet-panel { background: #ffffff; border-radius: var(--radius); padding: 20px 24px; margin-top: 14px; min-height: 200px; overflow: auto; }
.sheet-panel .xml-fallback {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; font-size: 12px; color: #d8d4cd; overflow: auto; max-height: 50dvh;
  font-family: "SF Mono", Menlo, monospace; line-height: 1.6; white-space: pre-wrap; word-break: break-all;
}
.sheet-panel svg { max-width: 100%; height: auto; }

.note-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.note-box {
  min-width: 46px; text-align: center; padding: 6px 6px 5px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel-2); font-size: 12.5px; font-weight: 600;
  transition: all .1s;
}
.note-box small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; }
.note-box.cur { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); transform: translateY(-2px); }
.note-box.ok { background: rgba(53, 194, 110, 0.16); border-color: rgba(53, 194, 110, 0.5); color: #7fe0a8; }
.note-box.ok small { color: rgba(127, 224, 168, 0.75); }
.note-box.bad { background: rgba(255, 77, 77, 0.14); border-color: rgba(255, 77, 77, 0.5); color: #ff9c9c; }
.note-box.bad small { color: rgba(255, 156, 156, 0.75); }
.note-box.rbad { border-color: #ff9d3c; box-shadow: 0 0 0 1px rgba(255, 157, 60, 0.55); }
.note-box.rest { opacity: 0.4; }

.coach-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; margin-top: 16px; }
.coach-grid .panel { padding: 18px 20px; }
.coach-grid h4 { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 1px; margin-bottom: 10px; }
.big-val { font-family: "SF Mono", Menlo, monospace; font-size: 26px; font-weight: 800; color: var(--accent); letter-spacing: 1px; }
.meter { height: 8px; background: var(--panel-2); border-radius: 99px; overflow: hidden; margin: 12px 0 10px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ff8a50); width: 0%; transition: width .08s; }
.score-line { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.score-line b { color: var(--text); }

.score-pick-list { display: grid; gap: 8px; max-height: 46dvh; overflow: auto; }
.score-pick-item {
  display: flex; align-items: center; gap: 10px; text-align: left; width: 100%;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 11px 14px; font-size: 14px; transition: border-color .15s;
}
.score-pick-item:hover { border-color: var(--accent-line); color: var(--accent); }
.score-pick-item small { color: var(--muted); margin-left: auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .entry-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 34px; letter-spacing: 1px; }
  .hero-aura { filter: blur(18px); }
  .fq-features { grid-template-columns: 1fr; }
}
