/* ===== 戏曲声腔数字化实训质控平台 · 设计系统 ===== */
:root {
  --navy-900: #0c2244;
  --navy-800: #10305a;
  --navy-700: #16406e;
  --gold: #e6c27c;
  --gold-light: #f3ddb0;
  --teal: #12939b;
  --teal-dark: #0b7e86;
  --blue: #2660f0;
  --blue-dark: #1d4fd0;
  --bg: #eef1f6;
  --card: #ffffff;
  --line: #e4e9f2;
  --line-strong: #d5dce8;
  --text: #22314d;
  --sub: #6b7a93;
  --faint: #93a1b8;
  --red: #e05656;
  --orange: #e8933a;
  --green: #27a06e;
  --purple: #7c5cd6;
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 7px;
  --shadow: 0 2px 10px rgba(31, 51, 88, 0.05);
  --f-serif: "Songti SC", "STSong", "Source Han Serif SC", serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  font-size: 13.5px;
  background:
    radial-gradient(1200px 500px at 8% 12%, rgba(178, 200, 224, 0.28), transparent 60%),
    radial-gradient(1100px 520px at 94% 30%, rgba(196, 214, 208, 0.30), transparent 62%),
    radial-gradient(900px 480px at 50% 95%, rgba(205, 214, 231, 0.35), transparent 65%),
    linear-gradient(180deg, #edf1f7 0%, #eaeef4 55%, #e7ecf1 100%);
  min-height: 100vh;
}
.page { min-width: 1380px; max-width: 1700px; margin: 0 auto; padding: 16px 22px 46px; }

/* ===== 顶部 ===== */
.site-head {
  position: relative;
  background: linear-gradient(100deg, #0a1e3e 0%, #0e2c55 55%, #0d3055 100%);
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(10, 30, 62, 0.35);
}
.head-art { position: absolute; top: 0; right: 0; height: 100%; pointer-events: none; }
.head-art img {
  height: 100%; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18%);
}
.head-deco {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background:
    radial-gradient(240px 90px at 12% 118%, rgba(230, 194, 124, 0.10), transparent 70%),
    radial-gradient(300px 110px at 42% -30%, rgba(120, 160, 210, 0.12), transparent 70%);
}
.head-top { position: relative; padding: 20px 30px 14px; }
.brand {
  font-family: var(--f-serif);
  font-size: 27px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--gold);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.brand small { font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.main-nav { position: relative; display: flex; gap: 4px; padding: 0 16px; }
.main-nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 26px 15px;
  color: #c6d4e6; text-decoration: none; font-size: 15px;
  position: relative; border-radius: 8px 8px 0 0;
  transition: color 0.15s, background 0.15s;
}
.main-nav a svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.main-nav a.active { color: #fff; font-weight: 600; background: linear-gradient(180deg, rgba(35, 150, 160, 0.22), rgba(35, 150, 160, 0.05)); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #2ec3cd, #58d6de);
  box-shadow: 0 0 8px rgba(46, 195, 205, 0.8);
}
.nav-sep { width: 1px; background: rgba(255, 255, 255, 0.12); margin: 12px 6px; }

/* ===== 卡片 ===== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 8px; padding: 16px 18px 12px; }
.card-title { font-size: 15.5px; font-weight: 700; color: #1d2b47; display: flex; align-items: center; gap: 8px; }
.card-title .t-ic { width: 19px; height: 19px; color: var(--teal); }
.card-title .t-ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-sub { font-size: 12.5px; color: var(--sub); font-weight: 400; }
.card-b { padding: 4px 18px 18px; }
.spacer { flex: 1; }
.help-q {
  width: 16px; height: 16px; border-radius: 50%; border: 1.4px solid #b7c2d4;
  color: #93a1b8; font-size: 10.5px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
}
.link { color: var(--blue); text-decoration: none; font-size: 13px; cursor: pointer; }
.link:hover { text-decoration: underline; }

/* ===== 表单 ===== */
.field-label { font-size: 13px; color: #46536b; margin-bottom: 7px; font-weight: 600; }
.field, select.field, input.field {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: #fff; color: var(--text); font-size: 13.5px; outline: none;
  font-family: inherit;
  appearance: none; -webkit-appearance: none;
}
select.field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%238593a9' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 30px; cursor: pointer;
}
.field:focus { border-color: #7ea2f0; box-shadow: 0 0 0 3px rgba(46, 100, 235, 0.10); }
.search-wrap { position: relative; }
.search-wrap .field { padding-left: 34px; }
.search-wrap svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: #93a1b8; fill: none; stroke-width: 1.8; stroke-linecap: round; }
textarea.field { height: auto; padding: 10px 12px; resize: none; line-height: 1.6; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 18px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 500; cursor: pointer; border: 1px solid transparent;
  transition: filter 0.12s, background 0.12s, transform 0.05s;
  text-decoration: none; font-family: inherit; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 3px 8px rgba(38, 96, 240, 0.28); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: #fff; border-color: #c9d6f2; color: var(--blue); }
.btn-outline:hover { background: #f4f7ff; }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: #46536b; }
.btn-ghost:hover { background: #f6f8fb; }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 3px 8px rgba(18, 147, 155, 0.28); }
.btn-teal:hover { background: var(--teal-dark); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 6px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-lg { height: 42px; padding: 0 24px; font-size: 14.5px; }
.btn-block { width: 100%; }

/* ===== 标签 ===== */
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 5px; font-size: 12px; font-weight: 500; }
.tag-blue { background: #e8effe; color: #2660f0; }
.tag-teal { background: #e2f4f5; color: #0e838b; }
.tag-gold { background: #faf1de; color: #b07f28; }
.tag-red { background: #fdeaea; color: #d24747; }
.tag-orange { background: #fdf1e3; color: #d07a1e; }
.tag-green { background: #e4f5ec; color: #1e8a5c; }
.tag-grey { background: #eef1f6; color: #6b7a93; }
.tag-purple { background: #efeafb; color: #6c48cc; }
.tag-outline-blue { background: #fff; border: 1px solid #b9cdf7; color: #2660f0; }

/* ===== 头像 ===== */
.avatar { border-radius: 50%; object-fit: cover; border: 1.5px solid #dfe6f0; background: #f0f3f8; display: block; }
.avatar.a24 { width: 24px; height: 24px; }
.avatar.a32 { width: 32px; height: 32px; }
.avatar.a40 { width: 40px; height: 40px; }
.avatar.a56 { width: 56px; height: 56px; border-width: 2px; }

/* ===== 统计卡 ===== */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 16px 0; }
.stat-card { display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.stat-ic { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.stat-ic svg { width: 24px; height: 24px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.si-blue { background: #e8effe; } .si-blue svg { stroke: #2660f0; }
.si-teal { background: #e2f4f5; } .si-teal svg { stroke: #12939b; }
.si-orange { background: #fdf1e3; } .si-orange svg { stroke: #e8933a; }
.si-purple { background: #efeafb; } .si-purple svg { stroke: #7c5cd6; }
.si-green { background: #e4f5ec; } .si-green svg { stroke: #27a06e; }
.si-red { background: #fdeaea; } .si-red svg { stroke: #e05656; }
.stat-label { font-size: 13.5px; color: var(--sub); margin-bottom: 5px; }
.stat-num { font-size: 27px; font-weight: 700; color: #1d2b47; line-height: 1.1; letter-spacing: 0.3px; }
.stat-num small { font-size: 13px; color: var(--sub); font-weight: 400; margin-left: 5px; }
.stat-foot { font-size: 12px; color: var(--faint); margin-top: 5px; }
.up { color: var(--green); font-weight: 600; }
.down { color: var(--green); font-weight: 600; }
.worse { color: var(--red); font-weight: 600; }

/* ===== 表格 ===== */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead th {
  text-align: left; padding: 10px 12px; font-weight: 600; color: #5a6a85;
  background: #f5f7fb; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl thead th:first-child { border-radius: 8px 0 0 8px; border-left: 1px solid var(--line); }
.tbl thead th:last-child { border-radius: 0 8px 8px 0; border-right: 1px solid var(--line); }
.tbl tbody td { padding: 10px 12px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
.tbl tbody tr { cursor: pointer; transition: background 0.1s; }
.tbl tbody tr:hover { background: #f7f9fd; }
.tbl tbody tr.sel { background: #eef3fe; box-shadow: inset 3px 0 0 var(--blue); }
.stu-cell { display: flex; align-items: center; gap: 9px; }
.stu-cell b { font-weight: 600; color: #22314d; display: block; font-size: 13px; }
.stu-cell span { font-size: 11.5px; color: var(--faint); }
.score-num { font-size: 16px; font-weight: 700; }
.sc-good { color: #2660f0; } .sc-mid { color: #e8933a; } .sc-bad { color: #e05656; }
.tbl-foot { display: flex; align-items: center; padding: 14px 4px 0; color: var(--sub); font-size: 12.5px; }

/* ===== 分页 ===== */
.pager { display: flex; align-items: center; gap: 6px; }
.pg {
  min-width: 28px; height: 28px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: #fff; color: #55647e; font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.pg:hover { border-color: #9db4e8; color: var(--blue); }
.pg.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.pg.dis { opacity: 0.45; cursor: default; }

/* ===== 波形 ===== */
.wave { display: flex; align-items: center; gap: 2px; height: 100%; width: 100%; overflow: hidden; position: relative; }
.wave i { flex: 1; border-radius: 2px; min-width: 2px; }

/* ===== 评分环 ===== */
.ring-wrap { display: flex; flex-direction: column; align-items: center; }
.ring-box { position: relative; }
.ring-val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-val b { font-size: 25px; font-weight: 700; line-height: 1.05; }
.ring-val span { font-size: 12px; margin-top: 2px; }

/* ===== 横向评分条 ===== */
.hbar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.hbar-row:last-child { margin-bottom: 0; }
.hbar-label { width: 44px; font-size: 13px; color: #46536b; flex: none; }
.hbar-track { flex: 1; height: 8px; border-radius: 5px; background: #edf0f5; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #4a7cf5, #2660f0); }
.hbar-num { width: 52px; text-align: right; font-size: 12.5px; color: var(--sub); flex: none; }
.hbar-num b { font-size: 14px; color: #2660f0; }

/* ===== 播放按钮 ===== */
.play-btn {
  border: none; border-radius: 50%; cursor: pointer; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: #fff; transition: filter 0.12s;
}
.play-btn:hover { filter: brightness(1.08); }
.play-btn.pb-blue { background: var(--blue); }
.play-btn.pb-line { background: #fff; border: 1.5px solid #cfd9ea; color: #55647e; }
.play-btn svg { fill: currentColor; stroke: none; }
.pb28 { width: 28px; height: 28px; } .pb28 svg { width: 11px; height: 11px; }
.pb36 { width: 36px; height: 36px; } .pb36 svg { width: 13px; height: 13px; }
.pb48 { width: 48px; height: 48px; box-shadow: 0 4px 10px rgba(18, 147, 155, 0.35); } .pb48 svg { width: 17px; height: 17px; }

/* ===== 图表 ===== */
.chart-svg text { font-family: "PingFang SC", sans-serif; }
.legend { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--sub); }
.legend i { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.legend i.dashline { height: 0; border-top: 2px dashed #b0bccd; background: none; }

/* ===== 筛选行 ===== */
.filter-row { display: flex; align-items: center; gap: 12px; }
.filter-item { display: flex; align-items: center; gap: 8px; }
.filter-item .fl { font-size: 13px; color: #46536b; white-space: nowrap; }

/* ===== 通用工具 ===== */
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.flex { display: flex; align-items: center; } .gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.muted { color: var(--sub); } .faint { color: var(--faint); font-size: 12px; }
.divider { height: 1px; background: #eef1f6; margin: 14px 0; }
.star { color: #e8a33a; font-size: 13px; letter-spacing: 1px; }
.star .off { color: #dce1ea; }

/* ===== Toast ===== */
.toast-wrap { position: fixed; right: 22px; bottom: 26px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #17233b; color: #fff; font-size: 13px; padding: 11px 16px; border-radius: 9px;
  box-shadow: 0 6px 20px rgba(10, 25, 55, 0.35); display: flex; align-items: center; gap: 8px;
  animation: toast-in 0.22s ease; max-width: 340px; line-height: 1.5;
}
.toast.ok::before { content: "✓"; color: #4cd6a0; font-weight: 700; }
.toast.warn::before { content: "!"; color: #f2c14e; font-weight: 700; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===== 录音态 ===== */
.rec-on { background: #e05656 !important; color: #fff !important; border-color: #e05656 !important; }
.rec-on .rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: rec-blink 1s infinite; }
@keyframes rec-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ===== 真实波形画布 ===== */
.canvas-wave { position: relative; cursor: pointer; }
.canvas-wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ===== 可交互提示 ===== */
.clickable { cursor: pointer; }
.th-sort { cursor: pointer; user-select: none; }
.th-sort:hover { color: var(--blue); }
.busy { opacity: 0.55; pointer-events: none; }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c9d2e0; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
