/* ================================================================
   派尔飞行 PAIRFLY —— 三页式官网样式
   (品牌首页 / 数字孪生 / 团队成员)
   ================================================================ */
:root {
  --bg: #0d1420;
  --bg2: #111b2c;
  --panel: #16233a;
  --panel2: #1b2b46;
  --border: rgba(120, 160, 220, 0.18);
  --text: #dce7f5;
  --muted: #7d93b5;
  --accent: #4da3ff;
  --accent2: #9b6bff;
  --ok: #2ecc8f;
  --warn: #ffb02e;
  --err: #ff5d6c;
  --c-wing: #4da3ff;
  --c-pitch: #ffb02e;
  --c-roll: #2ecc8f;
  --c-speed: #b07aff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(1200px 600px at 70% -10%, #16294a 0%, var(--bg) 55%);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* ================= 导航栏 ================= */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 20, 32, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 62px; gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-mark { font-size: 28px; filter: drop-shadow(0 0 8px rgba(77,163,255,.6)); }
.nav-logo-text {
  font-size: 20px; font-weight: 700; letter-spacing: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: flex; flex-direction: column; line-height: 1;
}
.nav-logo-text small {
  font-size: 10px; letter-spacing: 4px; color: var(--muted);
  -webkit-text-fill-color: var(--muted); font-weight: 400; margin-top: 3px;
}
.nav-links { display: flex; gap: 6px; }
.nav-link {
  padding: 8px 18px; border-radius: 8px; font-size: 15px; color: var(--muted);
  transition: all .2s;
}
.nav-link:hover { color: var(--text); background: rgba(77,163,255,.08); }
.nav-link.active {
  color: #fff; background: linear-gradient(135deg, rgba(77,163,255,.22), rgba(155,107,255,.18));
  box-shadow: inset 0 0 0 1px rgba(77,163,255,.35);
}
.nav-cta {
  font-size: 13px; color: var(--accent); border: 1px solid rgba(77,163,255,.4);
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  transition: all .2s;
}
.nav-cta:hover { background: rgba(77,163,255,.14); }
.nav-status { display: flex; gap: 8px; }
@media (max-width: 860px) {
  .nav-cta, .nav-status .status-pill:first-child { display: none; }
}

/* 状态胶囊(孪生页) */
.status-pill {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border);
  font-size: 12px; color: var(--muted); white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #55677f; flex: none; }
.dot-ok  { background: var(--ok);  box-shadow: 0 0 8px var(--ok);  animation: pulse 1.6s infinite; }
.dot-err { background: var(--err); box-shadow: 0 0 8px var(--err); }
.dot-warn{ background: var(--warn);box-shadow: 0 0 8px var(--warn); }
@keyframes pulse { 50% { opacity: .45; } }
.status-pill.online { color: var(--ok); }
.status-pill.offline { color: var(--err); }

/* ================= Hero(首页) ================= */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-3d { position: absolute; inset: 0; z-index: 0; }
.hero-3d canvas { width: 100% !important; height: 100% !important; display: block; }
.hero-content {
  position: relative; z-index: 1; text-align: center; padding: 40px 20px 60px;
}
.hero-eyebrow {
  font-size: 14px; color: var(--accent); letter-spacing: 2px; margin-bottom: 22px;
  text-shadow: 0 0 20px rgba(77,163,255,.5);
}
.hero-wordmark {
  font-size: clamp(64px, 11vw, 130px); font-weight: 900; line-height: 1.05;
  letter-spacing: 6px; user-select: none;
  filter: drop-shadow(0 8px 40px rgba(77,163,255,.35));
}
.hero-wordmark .wm-pair {
  background: linear-gradient(120deg, #6db6ff 0%, var(--accent) 45%, #2f7fe0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-wordmark .wm-fly {
  background: linear-gradient(120deg, #b98bff 0%, var(--accent2) 50%, #7a4fd6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-wordmark .wm-en {
  display: block;
  font-size: clamp(16px, 2.4vw, 26px); font-weight: 300; letter-spacing: 18px;
  color: var(--muted); margin-top: 14px; text-indent: 18px;
  -webkit-text-fill-color: var(--muted);
}
.hero-tagline {
  font-size: clamp(15px, 2vw, 19px); color: var(--text); margin-top: 26px;
  letter-spacing: 3px;
}
.hero-actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 10px;
  font-size: 15px; cursor: pointer; border: none;
  transition: all .2s; font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 600;
  box-shadow: 0 6px 24px rgba(77,163,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(77,163,255,.45); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 7px 14px; font-size: 13px; border-radius: 8px;
  background: var(--panel2); color: var(--text); border: 1px solid var(--border); }
.btn-small:hover { border-color: var(--accent); color: var(--accent); }
.btn-small.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; font-weight: 600; }
.hero-scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(220,231,245,.35);
  border-radius: 14px; z-index: 1;
}
.hero-scroll-hint span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px;
  margin-left: -2px; border-radius: 2px; background: var(--accent);
  animation: scrolldot 1.6s infinite;
}
@keyframes scrolldot { 0% { top: 8px; opacity: 1; } 70% { top: 22px; opacity: 0; } 100% { opacity: 0; } }

/* ================= 通用 Section ================= */
.section { padding: 72px 24px; scroll-margin-top: 72px; }
.section-alt { background: rgba(17, 27, 44, .6); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-title { font-size: 30px; font-weight: 700; letter-spacing: 2px; margin-bottom: 34px; }
.section-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { color: var(--muted); font-size: 14px; margin: -26px 0 30px; letter-spacing: 1px; }

/* ---- 首页: 样机与硬件图库 ---- */
.gallery-grid {
  display: grid; grid-template-columns: 7fr 5fr; gap: 22px; align-items: stretch;
}
@media (max-width: 860px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-side { display: flex; flex-direction: column; gap: 22px; }
.g-card { display: flex; flex-direction: column; }
.gallery-side .g-card { flex: 1; }
.g-frame {
  position: relative; width: 100%; height: 100%; min-height: 200px;
  border-radius: 14px; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(30,44,70,.55), rgba(14,22,38,.75));
  display: flex; align-items: center; justify-content: center;
}
.g-main .g-frame { min-height: 420px; }
.g-card.has-img .g-frame { background: #000; }
.g-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
.g-card.has-img .g-frame:hover .g-img { transform: scale(1.045); }
.g-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; width: 100%; height: 100%; min-height: inherit;
  border: 2px dashed rgba(120, 160, 220, .28); border-radius: 12px; margin: 8px;
  color: var(--muted); font-size: 14px; letter-spacing: 1px;
}
.g-empty i { font-style: normal; font-size: 44px; opacity: .55; }
.g-upload {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  padding: 7px 14px; border-radius: 20px; border: 1px solid rgba(140,180,255,.5);
  background: rgba(10, 18, 32, .78); color: #cfe0ff; font-size: 13px;
  cursor: pointer; backdrop-filter: blur(4px);
  transition: background .2s, transform .2s;
}
.g-upload:hover { background: rgba(40, 70, 120, .85); transform: translateY(-1px); }
.g-upload:disabled { opacity: .6; cursor: wait; }
.g-card figcaption { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.g-card figcaption b { font-size: 16px; letter-spacing: 1px; }
.g-card figcaption span { color: var(--muted); font-size: 13px; }
.gallery-hint { color: var(--muted); font-size: 13px; margin-top: 20px; }

/* ---- 图片放大 lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 999; display: none;
  align-items: center; justify-content: center;
  background: rgba(4, 8, 16, .88); backdrop-filter: blur(6px); cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 90vh; border-radius: 10px;
  box-shadow: 0 20px 80px rgba(0,0,0,.6);
}
.lb-close {
  position: absolute; top: 22px; right: 30px; color: #fff;
  font-size: 30px; cursor: pointer; opacity: .75;
}
.lb-close:hover { opacity: 1; }

/* ---- 首页: 简介 ---- */
.intro-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } }
.intro-text p {
  font-size: 15.5px; line-height: 2; color: #b9c9e2; margin-bottom: 18px;
  text-align: justify;
}
.intro-text b { color: var(--accent); font-weight: 600; }
.intro-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat {
  background: linear-gradient(160deg, var(--panel2) 0%, var(--panel) 100%);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 18px; text-align: center;
  transition: all .25s;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(77,163,255,.5); }
.stat b {
  font-size: 30px; font-weight: 800; display: block;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat b .unit { font-size: 16px; }
.stat span { font-size: 12px; color: var(--muted); display: block; margin-top: 8px; line-height: 1.7; }

/* ---- 首页: 架构图 ---- */
.arch-flow { display: flex; align-items: stretch; justify-content: center; gap: 10px; flex-wrap: wrap; }
.arch-node {
  flex: 1 1 180px; max-width: 230px;
  background: linear-gradient(160deg, var(--panel2), var(--panel));
  border: 1px solid var(--border); border-radius: 14px;
  padding: 24px 16px; text-align: center; transition: all .25s;
}
.arch-node:hover { transform: translateY(-4px); border-color: rgba(77,163,255,.5); }
.arch-icon { font-size: 34px; margin-bottom: 12px; }
.arch-node b { font-size: 15px; display: block; margin-bottom: 10px; color: #fff; }
.arch-node span { font-size: 12px; color: var(--muted); line-height: 1.8; display: block; }
.arch-arrow {
  align-self: center; font-size: 12px; color: var(--accent);
  border: 1px solid rgba(77,163,255,.35); border-radius: 999px;
  padding: 5px 12px; white-space: nowrap;
  background: rgba(77,163,255,.08);
}

/* ---- 首页: 任务卡 ---- */
.task-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.task-card {
  position: relative; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 26px 20px 22px; transition: all .25s; overflow: hidden;
}
.task-card:hover { transform: translateY(-4px); border-color: rgba(155,107,255,.45); }
.task-no {
  position: absolute; top: 10px; right: 16px; font-size: 44px; font-weight: 900;
  color: rgba(120,160,220,.10); line-height: 1;
}
.task-card b { font-size: 16px; display: block; margin-bottom: 12px; color: #fff; }
.task-card p { font-size: 13px; color: var(--muted); line-height: 1.9; margin-bottom: 16px; }
.task-status { display: inline-block; font-size: 12px; padding: 4px 12px; border-radius: 999px; }
.task-status.done { color: var(--ok); background: rgba(46,204,143,.12); border: 1px solid rgba(46,204,143,.35); }
.task-status.doing { color: var(--warn); background: rgba(255,176,46,.10); border: 1px solid rgba(255,176,46,.3); }
.task-status.todo { color: var(--muted); background: rgba(125,147,181,.10); border: 1px solid var(--border); }

/* ================= 孪生页布局 ================= */
.layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(360px, 1fr);
  gap: 16px; padding: 16px 24px;
  max-width: 1280px; margin: 0 auto;
}
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } }

.panel {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg2) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.panel-header {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.panel-header h2 { font-size: 15px; font-weight: 600; }
.panel-header h2 small { color: var(--muted); font-weight: 400; font-size: 12px; }

.scene-panel { min-height: 480px; }
#scene3d { flex: 1; position: relative; min-height: 400px; }
.scene-legend { font-size: 12px; color: var(--muted); display: flex; gap: 12px; }
.scene-legend b { color: var(--accent); font-weight: 600; }
.scene-footer {
  display: flex; justify-content: space-between;
  padding: 8px 16px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}

.dashboard { display: flex; flex-direction: column; gap: 16px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card {
  background: linear-gradient(160deg, var(--panel2) 0%, var(--panel) 100%);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); opacity: .8;
}
.card:nth-child(2)::before { background: var(--c-pitch); }
.card:nth-child(3)::before { background: var(--c-roll); }
.card:nth-child(4)::before { background: var(--c-speed); }
.card-title { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.card-value { font-size: 30px; font-weight: 700; font-family: "Consolas", monospace; }
.card-value small { font-size: 13px; color: var(--muted); margin-left: 4px; font-weight: 400; }
.card-sub { font-size: 11px; color: var(--muted); margin-top: 4px; opacity: .8; }
.card.flash { animation: cardflash .35s ease; }
@keyframes cardflash { 0% { background: rgba(77,163,255,.16); } 100% {} }

.chart-panel { flex: 1; }
#chartCanvas { width: 100%; height: 250px; display: block; }
.chart-legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.lg::before { content: "●"; margin-right: 4px; }
.lg-wing  { color: var(--c-wing); }
.lg-pitch { color: var(--c-pitch); }
.lg-roll  { color: var(--c-roll); }
.lg-speed { color: var(--c-speed); }

/* ================= 数据存档区 ================= */
.archive-panel { max-width: 1280px; margin: 16px auto; width: calc(100% - 48px); }
.archive-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.archive-meta { padding: 10px 16px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--border); }
.archive-table-wrap { max-height: 340px; overflow: auto; }
.archive-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.archive-table th {
  position: sticky; top: 0; background: var(--panel2); color: var(--muted);
  font-weight: 600; text-align: left; padding: 10px 16px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
  font-family: "Consolas", monospace;
}
.archive-table td {
  padding: 8px 16px; border-bottom: 1px solid rgba(120,160,220,.08);
  font-family: "Consolas", monospace; color: #b9c9e2; white-space: nowrap;
}
.archive-table tbody tr:hover { background: rgba(77,163,255,.06); }
.archive-table .empty-row td {
  text-align: center; padding: 40px; color: var(--muted); font-family: inherit;
}

/* ================= 三者对照 ================= */
.compare-panel { max-width: 1280px; margin: 0 auto 16px; width: calc(100% - 48px); }
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 14px 16px; }
@media (max-width: 980px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg2); }
.compare-img-wrap {
  height: 200px; display: flex; align-items: center; justify-content: center;
  background: #0a101b; position: relative;
}
.compare-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: none; }
.compare-img-wrap:not(.img-missing) img { display: block; }
.compare-img-wrap:not(.img-missing) .img-placeholder { display: none; }
.img-placeholder { text-align: center; color: var(--muted); font-size: 13px; line-height: 1.7; }
.img-placeholder span { font-size: 34px; display: block; margin-bottom: 8px; }
.img-placeholder code {
  background: #1a2740; padding: 2px 6px; border-radius: 4px; font-size: 11px; color: var(--accent);
}
.compare-live { background: #0a101b; }
.compare-live canvas { width: 100% !important; height: 100% !important; display: block; }
figcaption { padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--border); }
figcaption b { font-size: 13px; }
figcaption span { font-size: 11px; color: var(--muted); }

/* ================= 成员页 ================= */
.team-hero { text-align: center; padding-top: 56px; padding-bottom: 10px; }
.team-hero .section-title { margin-bottom: 8px; }
.team-hero .section-sub { margin-top: 8px; margin-bottom: 0; }
.group-title { font-size: 20px; font-weight: 700; letter-spacing: 1px; margin-bottom: 24px; color: #fff; }
.group-title::before { content: "◈ "; color: var(--accent); }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.member-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 20px; text-align: center; transition: all .25s;
}
.member-card:hover { transform: translateY(-4px); border-color: rgba(77,163,255,.5); }
.member-card.teacher { border-color: rgba(255,176,46,.35); }
.member-card.teacher:hover { border-color: rgba(255,176,46,.7); }
.member-avatar {
  width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  background: linear-gradient(160deg, var(--panel2), var(--panel));
  border: 1px solid var(--border);
  box-shadow: 0 0 0 4px rgba(77,163,255,.06);
}
.member-name { display: block; font-size: 17px; color: #fff; margin-bottom: 6px; }
.member-role {
  display: inline-block; font-size: 12px; color: var(--accent);
  background: rgba(77,163,255,.10); border: 1px solid rgba(77,163,255,.25);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}
.member-card.teacher .member-role {
  color: var(--warn); background: rgba(255,176,46,.10); border-color: rgba(255,176,46,.3);
}
.member-desc { font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.team-note { margin-top: 28px; font-size: 13px; color: var(--muted); text-align: center; }

/* ================= 登录页 & 认证 ================= */
.auth-chip {
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; white-space: nowrap; transition: all .2s;
}
.auth-chip:hover { color: var(--accent); border-color: var(--accent); }
.auth-chip.ok { color: var(--ok); border-color: rgba(46,204,143,.4); }

.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 400px;
  background: linear-gradient(160deg, var(--panel2), var(--panel));
  border: 1px solid var(--border); border-radius: 18px;
  padding: 44px 36px 32px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.login-logo { font-size: 44px; margin-bottom: 10px;
  filter: drop-shadow(0 0 14px rgba(77,163,255,.6)); }
.login-title { font-size: 24px; font-weight: 800; letter-spacing: 2px; }
.login-title small { font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 4px; }
.login-sub { font-size: 13px; color: var(--muted); margin: 12px 0 26px; line-height: 1.7; }
.login-input {
  width: 100%; padding: 12px 16px; margin-bottom: 14px;
  background: rgba(10, 16, 27, .7); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 15px;
  outline: none; font-family: inherit;
}
.login-input:focus { border-color: var(--accent); }
.btn-block { width: 100%; }
.login-msg { font-size: 13px; color: var(--warn); min-height: 20px; margin-top: 14px; }
.login-links { display: flex; justify-content: space-between; margin-top: 18px;
  font-size: 13px; color: var(--muted); }
.login-links a:hover { color: var(--accent); }

/* ================= 模型方案切换 ================= */
.model-switch {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  background: rgba(17, 27, 44, .5);
}
.model-btn {
  padding: 7px 16px; font-size: 13px; border-radius: 999px;
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; transition: all .2s; font-family: inherit;
}
.model-btn:hover { color: var(--text); border-color: var(--accent); }
.model-btn.active {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.model-tip { font-size: 12px; color: var(--muted); margin-left: auto; }

.model-dialog {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(5, 10, 18, .75);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.model-dialog-card {
  max-width: 460px; width: 92%;
  background: linear-gradient(160deg, var(--panel2), var(--panel));
  border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 26px;
}
.model-dialog-card h3 { font-size: 18px; margin-bottom: 14px; }
.model-dialog-text { font-size: 13.5px; color: #b9c9e2; line-height: 1.9; margin-bottom: 12px; }
.model-dialog-text.small { font-size: 12px; color: var(--muted); }
.model-dialog-text code {
  background: #1a2740; padding: 1px 6px; border-radius: 4px;
  color: var(--accent); font-size: 12px;
}
.model-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* ================= 页脚 ================= */
.footer { border-top: 1px solid var(--border); margin-top: 40px; background: rgba(13,20,32,.7); }
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 36px 24px 30px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.footer-brand { font-size: 18px; font-weight: 700; letter-spacing: 2px; }
.footer-links { display: flex; gap: 22px; font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-note { font-size: 12px; color: var(--muted); }
.footer-icp { font-size: 12px; color: #55677f; }
/* 备案号链接(工信部要求可点) */
.footer-icp a { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(125,147,181,.45); }
.footer-icp a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ================= 登录/注册选项卡 ================= */
.login-tabs {
  display: flex; gap: 0; margin-bottom: 22px;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.login-tab {
  flex: 1; padding: 11px 0; font-size: 14px; font-family: inherit;
  background: transparent; border: none; color: var(--muted); cursor: pointer;
  transition: all .2s;
}
.login-tab.active {
  color: #fff; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

/* ================= 导航徽章角标 ================= */
.auth-badge {
  font-style: normal; font-size: 11px; font-weight: 700;
  background: #ff7d2e; color: #fff; border-radius: 999px;
  padding: 1px 7px; margin-left: 6px; vertical-align: 2px;
}

/* ================= 注册审核管理页 ================= */
.admin-stats { display: flex; gap: 16px; margin: 22px 0 26px; flex-wrap: wrap; }
.stat-card {
  min-width: 140px; padding: 18px 26px; text-align: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
}
.stat-card b { display: block; font-size: 30px; color: var(--text); }
.stat-card span { font-size: 12.5px; color: var(--muted); }
.stat-card.warn b { color: var(--warn); }
.stat-card.ok b { color: var(--ok); }

.admin-table-wrap {
  overflow-x: auto; border: 1px solid var(--border); border-radius: 14px;
  background: var(--panel);
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 860px; }
.admin-table th, .admin-table td {
  padding: 12px 14px; text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.admin-table th { color: var(--muted); font-weight: 600; font-size: 12.5px; background: rgba(17,27,44,.6); }
.admin-table tbody tr:hover { background: rgba(30,45,74,.35); }
.admin-loading { text-align: center; color: var(--muted); padding: 26px 0 !important; }

.tag { padding: 2px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.tag-pending { background: rgba(255,159,28,.15); color: var(--warn); }
.tag-ok { background: rgba(46,204,143,.15); color: var(--ok); }
.tag-reject { background: rgba(255,93,93,.15); color: var(--err); }

.ops { display: flex; gap: 6px; }
.mini-btn {
  padding: 5px 12px; font-size: 12px; font-family: inherit;
  border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); cursor: pointer; transition: all .2s;
  white-space: nowrap;
}
.mini-btn:hover { color: var(--text); border-color: var(--accent); }
.mini-btn.ok { color: var(--ok); border-color: rgba(46,204,143,.4); }
.mini-btn.warn { color: var(--warn); border-color: rgba(255,159,28,.4); }
.mini-btn.danger { color: var(--err); border-color: rgba(255,93,93,.4); }
.mini-btn.accent { color: var(--accent); border-color: rgba(90,160,255,.4); }

/* ================= 个人中心 ================= */
.profile-grid {
  display: grid; grid-template-columns: 340px 1fr; gap: 24px;
  margin-top: 26px;
}
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
}
.profile-head { font-size: 17px; margin-bottom: 20px; }
.profile-avatar-big {
  width: 84px; height: 84px; margin: 4px auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; border-radius: 50%;
  background: linear-gradient(145deg, rgba(90,160,255,.18), rgba(46,204,143,.14));
  border: 1px solid var(--border);
}
.profile-name { display: block; text-align: center; font-size: 20px; margin-bottom: 8px; }
.profile-card .tag { display: block; width: max-content; margin: 0 auto 18px; }
.profile-list { list-style: none; padding: 0; margin: 0; }
.profile-list li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 11px 4px; border-bottom: 1px dashed var(--border); font-size: 13.5px;
}
.profile-list li:last-child { border-bottom: none; }
.profile-list li span { color: var(--muted); }
.profile-label {
  display: block; font-size: 12.5px; color: var(--muted); margin: 10px 0 6px;
}

/* ================= 游客分栏 ================= */
.guest-count { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.guest-empty { color: var(--muted); font-size: 14px; padding: 18px 0; }
.guest-empty a { color: var(--accent); }
.member-card.guest { text-align: center; }
.member-card.guest .member-desc {
  font-size: 12px; color: var(--muted);
  display: block; margin-top: 6px;
}
.member-card.guest .tag { margin-top: 8px; display: inline-block; }
.member-card.guest.is-pending { opacity: .55; }

/* ================= 任务进度页 ================= */
.page-progress .progress-hero { text-align: center; padding-top: 56px; padding-bottom: 6px; }
.page-progress .progress-hero .section-title { margin-bottom: 8px; }
.page-progress .progress-hero .section-sub { margin: 8px 0 0; }

/* ---- 赛道切换 ---- */
.track-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 34px; }
@media (max-width: 860px) { .track-tabs { grid-template-columns: 1fr; } }
.track-tab {
  text-align: left; cursor: pointer; font-family: inherit; color: inherit;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 22px; transition: all .25s; position: relative; overflow: hidden;
}
.track-tab:hover { transform: translateY(-3px); border-color: rgba(77,163,255,.45); }
.track-tab.active {
  border-color: rgba(155,107,255,.65);
  background: linear-gradient(160deg, rgba(155,107,255,.14), rgba(77,163,255,.06));
  box-shadow: 0 8px 30px rgba(90,120,220,.16);
}
.track-tab .track-ico { font-size: 26px; display: block; margin-bottom: 10px; }
.track-tab b { display: block; font-size: 16px; color: #fff; margin-bottom: 6px; }
.track-tab small { color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* ---- 赛道面板 ---- */
.track-panel { display: none; }
.track-panel.active { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- 赛道信息卡 ---- */
.track-intro {
  display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center;
  background: linear-gradient(150deg, rgba(30,44,70,.6), rgba(14,22,38,.7));
  border: 1px solid var(--border); border-radius: 18px;
  padding: 26px 28px; margin-bottom: 34px;
}
.track-intro h3 { font-size: 18px; color: #fff; margin-bottom: 12px; line-height: 1.6; }
.track-intro p { font-size: 13.5px; color: #b9c9e2; line-height: 1.95; }
.ti-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ti-tags span {
  font-size: 12px; color: var(--accent);
  background: rgba(77,163,255,.10); border: 1px solid rgba(77,163,255,.25);
  padding: 4px 12px; border-radius: 999px;
}
.ti-stats { display: flex; gap: 22px; }
.ti-stat { text-align: center; }
.ti-stat b { display: block; font-size: 30px; font-weight: 900; color: #fff; line-height: 1.1; }
.ti-stat span { font-size: 12px; color: var(--muted); }

/* ---- 阶段标签 / 备注 ---- */
.phase-tag {
  font-size: 12px; font-weight: 400; color: var(--muted);
  background: rgba(125,147,181,.10); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 999px; margin-left: 10px; vertical-align: middle;
}
.phase-note { font-size: 13px; color: var(--muted); margin: -16px 0 22px; line-height: 1.8; }
.track-foot { font-size: 12.5px; color: var(--muted); margin-top: 26px; line-height: 1.9; }

/* ---- 时间轴 ---- */
.timeline { display: flex; flex-direction: column; gap: 12px; margin-bottom: 42px; }
.tl-item {
  display: grid; grid-template-columns: 132px 1fr auto; gap: 18px; align-items: center;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 20px; transition: all .25s;
}
.tl-item:hover { border-color: rgba(77,163,255,.4); transform: translateX(3px); }
.tl-item.urgent { border-color: rgba(255,176,46,.42); background: rgba(255,176,46,.045); }
.tl-date { font-size: 13.5px; color: var(--accent); font-weight: 700; letter-spacing: .5px; }
.tl-item.urgent .tl-date { color: var(--warn); }
.tl-body b { display: block; font-size: 15px; color: #fff; margin-bottom: 5px; }
.tl-body p { font-size: 12.5px; color: var(--muted); line-height: 1.8; }
@media (max-width: 860px) {
  .track-intro { grid-template-columns: 1fr; }
  .ti-stats { justify-content: flex-start; }
}
@media (max-width: 700px) { .tl-item { grid-template-columns: 1fr; gap: 8px; } }

/* ================= 赛道人员分栏 (V9) ================= */
.track-groups { display: grid; gap: 20px; }
.track-group {
  background: var(--bg2); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 16px; padding: 20px 22px;
}
.track-group.tg-media { border-left-color: var(--accent2); }
.track-group.tg-srt { border-left-color: var(--ok); }

.tg-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.tg-head b { font-size: 16.5px; color: #fff; letter-spacing: .5px; }
.tg-count { margin-left: auto; font-size: 13px; color: var(--muted); }
.tg-badge {
  font-size: 11.5px; font-weight: 700; letter-spacing: .5px;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  background: rgba(77,163,255,.14); color: var(--accent); border: 1px solid rgba(77,163,255,.35);
}
.tg-media .tg-badge { background: rgba(155,107,255,.14); color: #c3a6ff; border-color: rgba(155,107,255,.38); }
.tg-srt .tg-badge { background: rgba(46,204,143,.14); color: var(--ok); border-color: rgba(46,204,143,.35); }
.tg-desc { font-size: 12.5px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }

/* ---- 人员空槽 / 占位 ---- */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.member-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 54px; padding: 8px 6px;
  border: 1px dashed rgba(120,160,220,.30); border-radius: 12px;
  background: rgba(120,160,220,.035);
  color: var(--muted); font-size: 13px; text-align: center;
}
.member-slot small { font-size: 11px; color: var(--muted); opacity: .8; }
.member-slot.filled {
  border-style: solid; border-color: rgba(77,163,255,.45);
  background: var(--panel); color: #fff; font-size: 14.5px; font-weight: 600;
}
.tg-umic .member-slot.filled { border-color: rgba(77,163,255,.5); }
.tg-media .member-slot.filled { border-color: rgba(155,107,255,.5); }
.tg-srt .member-slot.filled { border-color: rgba(46,204,143,.5); }

/* ---- 任务进度页内的人员栏 ---- */
.roster {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px; margin-bottom: 30px;
}
.roster-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.roster-head b { font-size: 15px; color: #fff; }
.roster-count { margin-left: auto; font-size: 13px; color: var(--muted); }
.roster-note { font-size: 12.5px; color: var(--muted); line-height: 1.8; margin-bottom: 14px; }
@media (max-width: 700px) { .slot-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); } }

/* ---- 指导教师栏 (V10) ---- */
.teacher-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 264px)); justify-content: start; }
@media (max-width: 700px) { .teacher-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.empty-slot {
  border: 1px dashed rgba(120,160,220,.30); border-radius: 12px;
  background: rgba(120,160,220,.035); color: var(--muted);
  font-size: 13px; text-align: center; padding: 20px 16px; line-height: 1.9;
}

/* ---- 参赛学生占位卡 (V11: 头像与指导教师完全同尺寸, 共用 .member-avatar) ---- */
.track-group .slot-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.member-card.placeholder {
  padding: 22px 12px;
  border-style: dashed; border-color: rgba(120,160,220,.30);
  background: rgba(120,160,220,.035);
}
.member-card.placeholder:hover { transform: none; border-color: rgba(120,160,220,.45); }
.member-card.placeholder .member-name { font-size: 14px; margin-bottom: 8px; }
.member-card.placeholder .member-role {
  font-size: 11.5px; padding: 2px 9px; margin-bottom: 0;
  color: var(--muted); background: rgba(125,147,181,.10); border-color: var(--border);
}

/* 团队成员页: 面板内的人员/教师栏上下的间距 */
#teamPanels .track-group { margin-top: 0; }

/* ---- V12: 指导教师「小而淡」 / 参赛学生「大而亮」 (两者层级互换) ---- */
/* 参赛学生: 保持 .member-avatar 基准样式 —— 74px 圆形 + 蓝色光晕, 视觉主角 */

/* 指导教师: 缩到 46px + 低饱和淡底 + 去光晕, 层级退到次要 */
.member-card.teacher .member-avatar {
  width: 46px; height: 46px;
  font-size: 21px;
  margin-bottom: 10px;
  background: rgba(125,147,181,.10);
  border: 1px solid var(--border);
  box-shadow: none;
  opacity: .85;
  filter: grayscale(.45);
}
/* 教师卡同步收窄 + 边框减弱, 与「小而淡」一致 */
.member-card.teacher {
  padding: 22px 18px;
  border-color: rgba(255,176,46,.22);
}
.member-card.teacher:hover { border-color: rgba(255,176,46,.5); }
.member-card.teacher .member-name { font-size: 15.5px; }
.member-card.teacher .member-role { font-size: 11.5px; padding: 2px 9px; }
.member-card.teacher .member-desc { font-size: 12px; opacity: .85; }

/* ---- V13: 任务看板(点击任务卡 → 项目进度 + 评价 · 讨论) ---- */
.board-tip {
  font-size: 13px; color: var(--muted); line-height: 1.9;
  background: rgba(77,163,255,.06); border: 1px solid rgba(77,163,255,.18);
  border-left: 3px solid var(--accent); border-radius: 12px;
  padding: 12px 16px; margin: 18px 0 26px;
}
.board-tip b { color: var(--accent); }

.task-card { position: relative; }
.task-card.clickable { cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s; }
.task-card.clickable:hover {
  transform: translateY(-3px); border-color: rgba(77,163,255,.5);
  box-shadow: 0 10px 24px rgba(0,0,0,.30);
}
.task-card.clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.task-comments-badge {
  position: absolute; top: 10px; right: 12px;
  font-size: 11.5px; color: var(--accent);
  background: rgba(77,163,255,.12); border: 1px solid rgba(77,163,255,.3);
  border-radius: 999px; padding: 2px 8px;
}

/* ---- 任务详情弹窗 ---- */
.task-modal { position: fixed; inset: 0; z-index: 300; display: none; }
.task-modal.open { display: block; }
.tm-mask { position: absolute; inset: 0; background: rgba(3,7,14,.74); }
.tm-box {
  position: relative; z-index: 1;
  width: min(94vw, 720px); max-height: 86vh; overflow-y: auto;
  margin: 6vh auto; padding: 26px 28px 30px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  animation: tmIn .22s ease-out;
}
@keyframes tmIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tm-close {
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  font-size: 15px; cursor: pointer; transition: all .2s;
}
.tm-close:hover { color: #fff; border-color: var(--accent); }
.tm-head { display: flex; gap: 14px; align-items: flex-start; padding-right: 40px; }
.tm-head-text { min-width: 0; }
.tm-no {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--accent);
  background: rgba(77,163,255,.12); border: 1px solid rgba(77,163,255,.3);
}
.tm-title { font-size: 19px; color: #fff; margin: 2px 0 4px; line-height: 1.4; }
.tm-phase { font-size: 12.5px; color: var(--muted); margin: 0; }
.tm-desc {
  font-size: 13.5px; color: var(--muted); line-height: 1.95;
  margin: 16px 0 22px; padding-bottom: 18px; border-bottom: 1px dashed var(--border);
}
.tm-sec { margin-bottom: 24px; }
.tm-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tm-sec-head b { font-size: 15px; color: #fff; }
.tm-who { margin-left: auto; font-size: 12px; color: var(--muted); }
.tm-states { display: flex; gap: 10px; flex-wrap: wrap; }
.tm-states button {
  padding: 8px 20px; border-radius: 999px; cursor: pointer; font-size: 13px;
  background: var(--panel); border: 1px solid var(--border); color: var(--muted);
  transition: all .2s;
}
.tm-states button:hover:not(:disabled) { color: #fff; border-color: var(--accent); }
.tm-states button.on {
  background: rgba(77,163,255,.14); border-color: var(--accent);
  color: var(--accent); font-weight: 600;
}
.tm-states button.on[data-st="doing"] {
  background: rgba(255,176,46,.14); border-color: rgba(255,176,46,.6); color: var(--warn);
}
.tm-states button.on[data-st="done"] {
  background: rgba(46,204,143,.14); border-color: rgba(46,204,143,.6); color: var(--ok);
}
.tm-states button:disabled { cursor: default; opacity: .55; }
.tm-hint { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.7; }
.tm-hint.ok { color: var(--ok); }
.tm-hint a { color: var(--accent); }

.tm-comments { max-height: 30vh; overflow-y: auto; display: grid; gap: 10px; }
.tm-empty { font-size: 13px; color: var(--muted); margin: 0; padding: 14px 0; }
.tm-comment {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px;
}
.tm-c-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12.5px; }
.tm-c-head b { color: #fff; font-size: 13px; }
.tm-role {
  font-size: 11px; color: var(--accent);
  background: rgba(77,163,255,.12); border: 1px solid rgba(77,163,255,.28);
  border-radius: 999px; padding: 1px 7px;
}
.tm-c-head time { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.tm-comment p {
  margin: 0; font-size: 13px; color: var(--muted);
  line-height: 1.85; word-break: break-word;
}

.tm-form { display: flex; gap: 10px; margin-top: 14px; align-items: flex-end; }
.tm-form textarea {
  flex: 1; min-height: 64px; resize: vertical;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  color: #e8eef7; font-size: 13px; padding: 11px 13px; font-family: inherit; line-height: 1.7;
}
.tm-form textarea:focus { outline: none; border-color: var(--accent); }
.tm-send {
  padding: 11px 22px; border-radius: 12px; cursor: pointer;
  background: var(--accent); border: 1px solid var(--accent); color: #04101f;
  font-size: 13.5px; font-weight: 700; white-space: nowrap; transition: filter .2s;
}
.tm-send:hover { filter: brightness(1.08); }
.tm-send:disabled { opacity: .6; cursor: default; }
@media (max-width: 700px) {
  .tm-box { margin: 3vh auto; padding: 22px 18px 24px; }
  .tm-form { flex-direction: column; align-items: stretch; }
}

/* ---- V14: 赛道分配成员(团队页 · 负责人/管理员) ---- */
.assign-btn {
  margin-left: 10px; padding: 5px 14px; border-radius: 999px; cursor: pointer;
  font-size: 12.5px; font-weight: 600;
  background: rgba(77,163,255,.14); color: var(--accent);
  border: 1px solid rgba(77,163,255,.4); transition: all .2s;
}
.assign-btn:hover { background: rgba(77,163,255,.24); color: #fff; }

.roster-card { padding: 20px 12px; }
.roster-card .member-name { font-size: 15px; }
.roster-card .member-role { font-size: 11.5px; padding: 2px 9px; margin-bottom: 8px; }
.roster-card .member-desc { font-size: 11.5px; }
/* 多赛道: 成员卡上标注「另属」的其它赛道 */
.roster-more { font-size: 11px; color: var(--muted); margin: 6px 2px 0; line-height: 1.6; }

.track-chip {
  display: inline-block; font-size: 11px; border-radius: 999px;
  padding: 2px 9px; margin-top: 6px; border: 1px solid transparent;
}
.chip-umic { color: #8fc4ff; background: rgba(77,163,255,.12); border-color: rgba(77,163,255,.3); }
.chip-media { color: #c3a6ff; background: rgba(155,107,255,.12); border-color: rgba(155,107,255,.3); }
.chip-srt { color: #74e0b4; background: rgba(46,204,143,.12); border-color: rgba(46,204,143,.3); }
.chip-none { color: var(--muted); background: rgba(125,147,181,.10); border-color: var(--border); }
.member-card.guest.is-assigned { opacity: .72; }

.am-list { display: grid; gap: 8px; max-height: 52vh; overflow-y: auto; }
.am-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 14px;
}
.am-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.am-who b { color: #fff; font-size: 14px; }
.am-who span { font-size: 11.5px; color: var(--muted); }
.am-row .track-chip { margin-top: 0; white-space: nowrap; }
.am-act {
  margin-left: auto; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  font-size: 12.5px; white-space: nowrap; transition: all .2s;
  background: var(--panel2); border: 1px solid var(--border); color: var(--muted);
}
.am-act.am-in {
  background: rgba(77,163,255,.14); border-color: rgba(77,163,255,.4);
  color: var(--accent); font-weight: 600;
}
.am-act.am-in:hover { background: rgba(77,163,255,.26); color: #fff; }
.am-act.am-out {
  background: rgba(255,90,90,.12); border-color: rgba(255,90,90,.38); color: #ff8f8f;
}
.am-act.am-out:hover { background: rgba(255,90,90,.22); color: #fff; }
.am-act:disabled { opacity: .5; cursor: default; }

.pf-toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 12px);
  z-index: 400; padding: 11px 22px; border-radius: 999px;
  background: rgba(20,32,52,.96); border: 1px solid rgba(77,163,255,.4);
  color: #dfe9f6; font-size: 13.5px; opacity: 0; transition: all .28s;
  box-shadow: 0 10px 30px rgba(0,0,0,.45); pointer-events: none;
}
.pf-toast.show { opacity: 1; transform: translate(-50%, 0); }
.pf-toast.bad { border-color: rgba(255,90,90,.5); color: #ffd0d0; }

/* ================================================================
   V17: 完成度轴线图 + 图文进展评价
   ================================================================ */

/* ---- 顶部「完成度轴线图」总览 ---- */
.axis-board {
  background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--border); border-radius: 18px;
  padding: 20px 22px 14px; margin-bottom: 26px;
}
.axis-board-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.axis-board-head b { font-size: 16px; color: #fff; letter-spacing: .5px; }
.axis-board-head > span { font-size: 12px; color: var(--muted); }
.axis-board-head .axis-overall {
  margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 600;
  color: var(--accent); background: rgba(77,163,255,.12);
  border: 1px solid rgba(77,163,255,.34); border-radius: 999px; padding: 4px 14px;
}
.axis-loading { font-size: 13px; color: var(--muted); padding: 6px 0; }

.axis-row {
  display: grid; grid-template-columns: 215px 1fr 132px;
  align-items: center; gap: 18px; padding: 12px; border-radius: 12px;
  cursor: pointer; transition: background .2s; outline: none;
}
.axis-row:hover, .axis-row:focus-visible { background: rgba(77,163,255,.07); }
.axis-row + .axis-row { border-top: 1px dashed rgba(120,160,220,.14); }
.axis-row-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.axis-ico { font-size: 16px; }
.axis-name { font-size: 13.5px; color: #dfe9f6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.axis-wrap { position: relative; padding-top: 4px; }
.axis-line { position: relative; height: 10px; border-radius: 999px; background: rgba(125,147,181,.18); }
.axis-line::before {
  content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 16px;
  border-radius: 999px; pointer-events: none;
  background: repeating-linear-gradient(90deg,
    transparent 0, transparent calc(25% - 1px),
    rgba(220,231,245,.28) calc(25% - 1px), rgba(220,231,245,.28) 25%);
}
.axis-fill {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 12px rgba(77,163,255,.4);
  transition: width .55s cubic-bezier(.22,.7,.3,1);
}
.axis-knob {
  position: absolute; top: 50%; width: 15px; height: 15px; margin-left: -7.5px;
  border-radius: 50%; background: #fff; transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(77,163,255,.35), 0 2px 6px rgba(0,0,0,.5);
  transition: left .55s cubic-bezier(.22,.7,.3,1);
}
.axis-ticks { display: flex; justify-content: space-between; padding: 0 8px; margin-top: 6px; }
.axis-ticks span { font-size: 10.5px; color: var(--muted); }
.axis-row-meta { text-align: right; }
.axis-row-meta b { display: block; font-size: 17px; color: #fff; line-height: 1.25; }
.axis-row-meta span { font-size: 11px; color: var(--muted); }

/* ---- 任务卡上 mini 完成度轴线 ---- */
.task-meter { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.tm-meter-line { flex: 1; height: 6px; border-radius: 999px; overflow: hidden; background: rgba(125,147,181,.18); }
.tm-meter-line i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width .5s;
}
.tm-meter-num { font-size: 11.5px; color: var(--muted); min-width: 36px; text-align: right; }
.tm-meter-num.part { color: var(--warn); }
.tm-meter-num.full { color: var(--ok); }

/* ---- 弹窗内 完成度轴线(可拖动) ---- */
.tm-axis {
  background: rgba(125,147,181,.06); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px 12px; margin-bottom: 16px;
}
.tm-axis-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.tm-axis-label { font-size: 12.5px; color: var(--muted); }
.tm-axis-pct { font-size: 22px; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.tm-axis-pct.zero { color: var(--muted); }
.tm-axis-pct.part { color: var(--accent); }
.tm-axis-pct.full { color: var(--ok); }

.tm-range {
  -webkit-appearance: none; appearance: none; display: block;
  width: 100%; height: 12px; margin: 0; border-radius: 999px; outline: none;
  background: linear-gradient(90deg, var(--accent) 0 var(--p, 0%), rgba(125,147,181,.22) var(--p, 0%) 100%);
}
.tm-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent); cursor: grab;
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.tm-range::-webkit-slider-thumb:active { cursor: grabbing; }
.tm-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  border: 3px solid var(--accent); cursor: grab;
}
.tm-range:disabled { cursor: default; }
.tm-range:disabled::-webkit-slider-thumb { border-color: #7d93b5; background: #c8d5e6; cursor: default; }
.tm-range:disabled::-moz-range-thumb { border-color: #7d93b5; background: #c8d5e6; }
.tm-axis-ticks { display: flex; justify-content: space-between; padding: 0 11px; margin-top: 7px; }
.tm-axis-ticks span { font-size: 10.5px; color: var(--muted); }
.tm-axis-quick { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tm-axis-quick button {
  flex: 1; min-width: 50px; padding: 6px 0; border-radius: 9px; cursor: pointer;
  font-size: 12px; font-family: inherit;
  background: var(--panel2); border: 1px solid var(--border); color: var(--muted);
  transition: all .18s;
}
.tm-axis-quick button:hover { color: #fff; border-color: var(--accent); background: rgba(77,163,255,.16); }

/* ---- 评价区: 图文提交 ---- */
.tm-req {
  font-size: 12.5px; color: var(--muted); margin: 0 0 12px; line-height: 1.7;
  background: rgba(77,163,255,.07); border-left: 3px solid rgba(77,163,255,.4);
  padding: 8px 12px; border-radius: 0 8px 8px 0;
}
.tm-req b { color: var(--accent); }
.tm-c-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tm-c-img {
  padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: none; cursor: zoom-in; line-height: 0;
  transition: border-color .2s, transform .2s;
}
.tm-c-img:hover { border-color: var(--accent); transform: translateY(-2px); }
.tm-c-img img { width: 116px; height: 78px; object-fit: cover; display: block; }

.tm-form { flex-direction: column; align-items: stretch; gap: 0; }
.tm-form textarea { width: 100%; }
.tm-form-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.tm-file {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 9px 15px; border-radius: 10px; font-size: 12.5px; color: var(--muted);
  background: var(--panel2); border: 1px dashed var(--border); transition: all .2s;
}
.tm-file:hover { color: #fff; border-color: var(--accent); background: rgba(77,163,255,.12); }
.tm-file small { font-size: 10.5px; opacity: .78; }
.tm-form-bar .tm-send { margin-left: auto; }

.tm-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; width: 100%; }
/* [hidden] 属性在 display:flex 元素上会被覆盖, 这里显式补回(否则未登录也能看到输入框) */
.tm-form[hidden], .tm-axis-quick[hidden], .tm-thumbs[hidden] { display: none; }
.tm-thumb { position: relative; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; line-height: 0; }
.tm-thumb img { width: 88px; height: 62px; object-fit: cover; display: block; }
.tm-thumb em {
  position: absolute; left: 0; right: 0; bottom: 0; font-style: normal;
  font-size: 10px; text-align: center; padding: 2px 0; line-height: 1.5;
  background: rgba(3,7,14,.78);
}
.tm-thumb em.ok { color: var(--ok); }
.tm-thumb em.ing { color: var(--warn); }
.tm-thumb em.bad { color: var(--err); }
.tm-thumb-x {
  position: absolute; top: 3px; right: 3px; width: 18px; height: 18px;
  border-radius: 50%; border: none; cursor: pointer; line-height: 1;
  background: rgba(3,7,14,.8); color: #fff; font-size: 11px;
}
.tm-thumb-x:hover { background: var(--err); }

/* ---- 进展图片放大 ---- */
.img-lightbox {
  position: fixed; inset: 0; z-index: 500; display: none;
  align-items: center; justify-content: center;
  background: rgba(3,7,14,.9); padding: 4vh 4vw; cursor: zoom-out;
}
.img-lightbox.open { display: flex; }
.img-lightbox img {
  max-width: 100%; max-height: 92vh; border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0,0,0,.7); cursor: default;
}
.lb-close {
  position: absolute; top: 18px; right: 22px; width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer; font-size: 16px;
  background: rgba(20,32,52,.9); border: 1px solid var(--border); color: var(--muted);
}
.lb-close:hover { color: #fff; border-color: var(--accent); }

@media (max-width: 760px) {
  .axis-row { grid-template-columns: 1fr; gap: 8px; }
  .axis-row-meta { display: flex; gap: 10px; align-items: baseline; text-align: left; }
  .axis-row-meta b { display: inline; font-size: 14px; }
  .tm-c-img img { width: 92px; height: 66px; }
}

/* ================= 轮腿机器人 远程遥控面板 ================= */
.rc-panel { margin-top: 22px; }
.rc-status { display: flex; gap: 10px; }
.rc-hint {
  color: var(--muted); font-size: 13px; line-height: 1.7;
  margin: 4px 0 16px;
}
.rc-hint code {
  background: var(--panel2); padding: 1px 6px; border-radius: 5px;
  color: var(--accent); font-size: 12px;
}
.rc-body {
  display: grid; grid-template-columns: 260px 1fr; gap: 24px;
  align-items: start;
}
.rc-joystick { text-align: center; }
#rcJoyDiv {
  width: 240px; height: 240px; margin: 0 auto;
  touch-action: none; user-select: none;
}
.rc-joy-readout {
  margin-top: 10px; font-size: 13px; color: var(--muted);
}
.rc-joy-readout b { color: var(--accent); font-size: 15px; }

.rc-controls { display: flex; flex-direction: column; gap: 14px; }
.rc-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rc-dirs { gap: 8px; }
.rc-btn {
  min-width: 92px; padding: 11px 16px; font-size: 14px;
  background: var(--panel2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: all .15s;
}
.rc-btn:hover { border-color: var(--accent); color: var(--accent); }
.rc-btn:active, .rc-btn.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.rc-enable.on { background: var(--ok); border-color: var(--ok); color: #06231a; }
.rc-estop { border-color: var(--err); color: var(--err); }
.rc-estop:hover { background: var(--err); color: #fff; border-color: var(--err); }

.rc-slider-row { gap: 14px; }
.rc-label { font-size: 14px; color: var(--muted); min-width: 72px; }
.rc-slider-row input[type=range] { flex: 1; min-width: 140px; accent-color: var(--accent); }
.rc-val { font-size: 13px; color: var(--muted); min-width: 62px; }
.rc-val b { color: var(--accent); font-size: 15px; }

.rc-toggle-row label.rc-switch {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); cursor: pointer;
}
.rc-switch input { accent-color: var(--accent); width: 16px; height: 16px; }

.rc-log {
  margin-top: 16px; padding: 10px 14px; min-height: 44px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; font-size: 12px; color: var(--muted);
  font-family: var(--mono, monospace); line-height: 1.9;
  max-height: 130px; overflow-y: auto;
}
.rc-log .rc-log-t { color: var(--muted); margin-right: 8px; }
.rc-log .rc-log-ok { color: var(--ok); }
.rc-log .rc-log-err { color: var(--err); }

@media (max-width: 760px) {
  .rc-body { grid-template-columns: 1fr; }
  #rcJoyDiv { width: 200px; height: 200px; }
  .rc-btn { min-width: 76px; padding: 10px 12px; }
}



/* ================================================================
 * 训练遥控器（虚拟蝴蝶 · 模拟机）
 * ================================================================ */
#flightJoy {
  width: 220px; height: 220px; margin: 0 auto;
  touch-action: none; user-select: none;
}
.flight-body {
  display: grid; grid-template-columns: 240px 1fr auto; gap: 28px; align-items: center;
}
.flight-mid { display: flex; flex-direction: column; gap: 18px; }
.flight-throttle { display: flex; align-items: center; gap: 14px; }
.flight-throttle input[type=range] { flex: 1; min-width: 180px; accent-color: var(--accent); }
.flight-readouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.flight-readouts .stat-card { min-width: 0; padding: 14px 10px; }
.flight-readouts .stat-card b { font-size: 22px; }
.rc-hint.small { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
  .flight-body { grid-template-columns: 1fr; }
  #flightJoy { width: 200px; height: 200px; }
}
