
    :root {
      color-scheme: dark;
      --bg: #0e0e10;
      --bg-deep: #08080a;
      --surface: rgba(21, 21, 24, 0.84);
      --surface-solid: #151518;
      --surface-raised: rgba(28, 28, 32, 0.92);
      --line: rgba(212, 196, 168, 0.16);
      --line-strong: rgba(212, 196, 168, 0.34);
      --gold: #d4c4a8;
      --gold-bright: #ebe0cc;
      --ice: #8db8c6;
      --mint: #86b5a0;
      --danger: #ff8b8b;
      --warning: #d5b474;
      --text: #f2f5f8;
      --muted: #92a0af;
      --faint: #5e6b79;
      --radius: 14px;
      --shadow: 0 18px 56px rgba(0, 0, 0, 0.36);
      --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
    }

    * {
      box-sizing: border-box;
    }

    html,
    body {
      min-height: 100%;
      margin: 0;
    }

    body {
      overflow-x: hidden;
      background:
        linear-gradient(rgba(212, 196, 168, 0.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 196, 168, 0.016) 1px, transparent 1px),
        radial-gradient(circle at 50% -12%, rgba(212, 196, 168, 0.055), transparent 34%),
        var(--bg);
      background-size: 56px 56px, 56px 56px, auto, auto;
      color: var(--text);
      font-family: var(--font);
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    button,
    input {
      font: inherit;
    }

    button {
      -webkit-tap-highlight-color: transparent;
    }

    button:focus-visible,
    input:focus-visible {
      outline: 2px solid rgba(212, 196, 168, 0.68);
      outline-offset: 2px;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 40;
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 68px;
      padding: 0 34px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      background: rgba(14, 14, 16, 0.82);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 13px;
      min-width: 0;
    }

    .brand-mark {
      position: relative;
      width: 28px;
      height: 28px;
      flex: 0 0 28px;
      border: 1px solid rgba(212, 196, 168, 0.62);
      border-radius: 50%;
      box-shadow: inset 0 0 0 5px rgba(212, 196, 168, 0.04);
    }

    .brand-mark::before {
      content: "";
      position: absolute;
      top: 50%;
      left: -5px;
      right: -5px;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--gold), transparent);
      transform: rotate(-18deg);
    }

    .brand-mark::after {
      content: "";
      position: absolute;
      inset: 50% auto auto 50%;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--gold-bright);
      box-shadow: 0 0 12px rgba(212, 196, 168, 0.68);
      transform: translate(-50%, -50%);
    }

    .brand-copy {
      display: grid;
      gap: 2px;
      min-width: 0;
    }

    .brand-title {
      overflow: hidden;
      font-size: 15px;
      font-weight: 650;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .brand-subtitle {
      color: var(--faint);
      font-size: 10px;
      text-transform: uppercase;
    }

    .top-actions,
    .session-actions,
    .chart-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }


    .org-switch {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px;
      border: 1px solid rgba(255, 255, 255, 0.055);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.018);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    .org-switch-tab {
      position: relative;
      min-height: 30px;
      padding: 0 12px 3px;
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: var(--faint);
      cursor: pointer;
      font-size: 10px;
      transition: color 180ms ease, background-color 180ms ease;
    }

    .org-switch-tab:hover,
    .org-switch-tab.active {
      color: var(--gold-bright);
      background: rgba(212, 196, 168, 0.055);
    }

    .org-switch-tab::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: 3px;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: transparent;
      transform: translateX(-50%);
    }

    .org-switch-tab.active::after {
      background: var(--gold);
      box-shadow: 0 0 9px rgba(212, 196, 168, 0.85);
      animation: orgDotBreathe 2.6s ease-in-out infinite;
    }

    .org-switch-tab[data-org="nankai_astro"]:hover,
    .org-switch-tab[data-org="nankai_astro"].active {
      color: #e2b9e8;
      background: rgba(140, 71, 153, 0.16);
    }

    .org-switch-tab[data-org="nankai_astro"].active::after {
      background: #8C4799;
      box-shadow: 0 0 10px rgba(140, 71, 153, 0.9);
    }

    .status-chip,
    .role-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 32px;
      padding: 0 12px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.025);
      color: var(--muted);
      font-size: 11px;
      white-space: nowrap;
    }

    .status-dot {
      width: 6px;
      height: 6px;
      flex: 0 0 6px;
      border-radius: 50%;
      background: var(--warning);
      box-shadow: 0 0 0 4px rgba(213, 180, 116, 0.08);
    }

    .status-dot.online {
      background: var(--mint);
      box-shadow: 0 0 0 4px rgba(134, 181, 160, 0.08), 0 0 12px rgba(134, 181, 160, 0.35);
    }

    .status-dot.error {
      background: var(--danger);
      box-shadow: 0 0 0 4px rgba(255, 139, 139, 0.08);
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 36px;
      padding: 0 15px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.035);
      color: var(--text);
      cursor: pointer;
      transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
      white-space: nowrap;
    }

    .btn:hover {
      border-color: rgba(255, 255, 255, 0.2);
      background: rgba(255, 255, 255, 0.065);
    }

    .btn:active {
      transform: translateY(1px);
    }

    .btn:disabled {
      cursor: not-allowed;
      opacity: 0.44;
    }

    .btn-gold {
      border-color: rgba(212, 196, 168, 0.46);
      background: rgba(212, 196, 168, 0.09);
      color: var(--gold-bright);
    }

    .btn-gold:hover {
      border-color: rgba(212, 196, 168, 0.7);
      background: rgba(212, 196, 168, 0.14);
    }

    .btn-quiet {
      border-color: transparent;
      background: transparent;
      color: var(--muted);
    }

    .btn-quiet:hover {
      border-color: rgba(255, 255, 255, 0.08);
      background: rgba(255, 255, 255, 0.035);
    }

    .dashboard {
      width: min(1540px, calc(100% - 52px));
      margin: 0 auto;
      padding: 28px 0 40px;
    }

    .page-heading {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 22px;
    }

    .eyebrow {
      margin: 0 0 7px;
      color: var(--gold);
      font-size: 10px;
      font-weight: 650;
      text-transform: uppercase;
    }

    h1 {
      margin: 0;
      font-size: clamp(28px, 3vw, 42px);
      font-weight: 620;
      line-height: 1.12;
    }

    .heading-note {
      max-width: 520px;
      margin: 9px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.7;
    }

    .clock {
      display: grid;
      justify-items: end;
      gap: 3px;
      color: var(--muted);
      font-size: 11px;
      white-space: nowrap;
    }

    .clock strong {
      color: var(--text);
      font-size: 20px;
      font-weight: 520;
      font-variant-numeric: tabular-nums;
    }

    .identity-strip {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 16px;
      padding: 16px 18px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: linear-gradient(110deg, rgba(212, 196, 168, 0.075), rgba(13, 20, 30, 0.82) 46%);
      box-shadow: var(--shadow);
    }

    .identity-main {
      display: flex;
      align-items: center;
      gap: 13px;
      min-width: 0;
    }

    .identity-badge {
      display: grid;
      place-items: center;
      width: 38px;
      height: 38px;
      flex: 0 0 38px;
      border: 1px solid rgba(212, 196, 168, 0.24);
      border-radius: 50%;
      background: rgba(212, 196, 168, 0.07);
      color: var(--gold-bright);
      font-size: 14px;
      font-weight: 650;
    }

    .identity-copy {
      min-width: 0;
    }

    .identity-title {
      overflow: hidden;
      margin: 0;
      color: var(--text);
      font-size: 14px;
      font-weight: 620;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .identity-subtitle {
      overflow: hidden;
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 11px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 16px;
    }

    .stat-card {
      min-width: 0;
      padding: 16px 17px;
      border: 1px solid rgba(255, 255, 255, 0.075);
      border-radius: 12px;
      background: rgba(13, 20, 30, 0.6);
    }

    .stat-label {
      margin: 0 0 10px;
      color: var(--faint);
      font-size: 10px;
      text-transform: uppercase;
    }

    .stat-value {
      margin: 0;
      overflow: hidden;
      color: var(--text);
      font-size: 24px;
      font-weight: 560;
      font-variant-numeric: tabular-nums;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .stat-value small {
      margin-left: 4px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 400;
    }

    .workspace-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.72fr);
      gap: 16px;
    }

    .panel {
      min-width: 0;
      border: 1px solid rgba(255, 255, 255, 0.085);
      border-radius: var(--radius);
      background: var(--surface);
      box-shadow: var(--shadow);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
    }

    .chart-panel {
      min-height: 570px;
      overflow: hidden;
    }

    .panel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      min-height: 64px;
      padding: 0 18px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    }

    .panel-title-wrap {
      min-width: 0;
    }

    .panel-title {
      margin: 0;
      color: var(--text);
      font-size: 14px;
      font-weight: 620;
    }

    .panel-subtitle {
      margin: 4px 0 0;
      color: var(--faint);
      font-size: 10px;
    }

    .chart-shell {
      position: relative;
      height: 505px;
      min-height: 370px;
    }

    #experimentChart {
      width: 100%;
      height: 100%;
    }

    .chart-loading {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      background: rgba(7, 11, 18, 0.76);
      color: var(--muted);
      font-size: 12px;
      transition: opacity 220ms ease, visibility 220ms ease;
    }

    .chart-loading.hidden {
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
    }

    .activity-panel {
      display: flex;
      min-height: 570px;
      flex-direction: column;
      overflow: hidden;
    }

    .record-list {
      display: grid;
      gap: 10px;
      max-height: 506px;
      margin: 0;
      padding: 14px;
      overflow-y: auto;
      list-style: none;
      scrollbar-width: thin;
      scrollbar-color: rgba(212, 196, 168, 0.24) transparent;
    }

    .record-list::-webkit-scrollbar {
      width: 5px;
    }

    .record-list::-webkit-scrollbar-thumb {
      border-radius: 99px;
      background: rgba(212, 196, 168, 0.24);
    }

    .record-item {
      display: grid;
      grid-template-columns: 36px minmax(0, 1fr) auto;
      align-items: center;
      gap: 11px;
      padding: 12px;
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.022);
    }

    .record-index {
      display: grid;
      place-items: center;
      width: 36px;
      height: 36px;
      border: 1px solid rgba(141, 184, 198, 0.18);
      border-radius: 9px;
      color: var(--ice);
      font-size: 10px;
      font-variant-numeric: tabular-nums;
    }

    .record-copy {
      min-width: 0;
    }

    .record-name {
      overflow: hidden;
      margin: 0;
      color: var(--text);
      font-size: 12px;
      font-weight: 560;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .record-meta {
      overflow: hidden;
      margin: 4px 0 0;
      color: var(--faint);
      font-size: 10px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .record-value {
      color: var(--gold-bright);
      font-size: 16px;
      font-variant-numeric: tabular-nums;
    }

    .empty-state {
      display: grid;
      place-items: center;
      min-height: 230px;
      padding: 24px;
      color: var(--muted);
      text-align: center;
    }

    .empty-state-mark {
      width: 44px;
      height: 44px;
      margin: 0 auto 12px;
      border: 1px solid rgba(212, 196, 168, 0.2);
      border-radius: 50%;
      box-shadow: inset 0 0 0 9px rgba(212, 196, 168, 0.025);
    }

    .empty-state p {
      margin: 0;
      font-size: 12px;
      line-height: 1.7;
    }

    .console-strip {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-top: 16px;
      padding: 11px 14px;
      border: 1px solid rgba(255, 255, 255, 0.055);
      border-radius: 10px;
      background: rgba(5, 8, 13, 0.62);
      color: var(--faint);
      font-size: 10px;
    }

    .console-message {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .console-code {
      color: var(--gold);
      white-space: nowrap;
    }

    .modal {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: grid;
      place-items: center;
      padding: 24px;
      visibility: hidden;
      opacity: 0;
      background: rgba(2, 5, 9, 0.76);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      transition: opacity 180ms ease, visibility 180ms ease;
    }

    .modal.open {
      visibility: visible;
      opacity: 1;
    }

    .login-modal {
      padding: 0;
      place-items: stretch;
      background: #0e0e10;
      backdrop-filter: blur(22px);
      -webkit-backdrop-filter: blur(22px);
    }

    .login-modal::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 50% 30%, rgba(212, 196, 168, 0.065), transparent 28%),
        linear-gradient(rgba(212, 196, 168, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 196, 168, 0.012) 1px, transparent 1px);
      background-size: auto, 64px 64px, 64px 64px;
      pointer-events: none;
    }

    .login-stage {
      position: relative;
      z-index: 1;
      display: flex;
      width: 100%;
      min-height: 100vh;
      min-height: 100dvh;
      padding: clamp(52px, 9vh, 112px) 24px 58px;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      opacity: 0;
      transform: translateY(16px) scale(0.985);
      transition: opacity 320ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .modal.open .login-stage {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    .login-close {
      position: fixed;
      top: max(24px, env(safe-area-inset-top));
      right: max(24px, env(safe-area-inset-right));
      z-index: 2;
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.025);
      color: var(--muted);
      cursor: pointer;
      font-size: 24px;
      line-height: 1;
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
    }

    .login-close:hover {
      border-color: rgba(212, 196, 168, 0.32);
      background: rgba(212, 196, 168, 0.06);
      color: var(--gold-bright);
    }

    .login-orbit-mark {
      position: relative;
      display: block;
      width: 48px;
      height: 48px;
      margin-bottom: 22px;
      border: 1px solid rgba(212, 196, 168, 0.55);
      border-radius: 50%;
      box-shadow: inset 0 0 0 9px rgba(212, 196, 168, 0.025), 0 0 34px rgba(212, 196, 168, 0.1);
    }

    .login-orbit-mark::before,
    .login-orbit-mark::after {
      content: "";
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
    }

    .login-orbit-mark::before {
      inset: 50% -8px auto 50%;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(212, 196, 168, 0.9), transparent);
      transform: translate(-50%, -50%) rotate(-19deg);
      transform-origin: center;
    }

    .login-orbit-mark::after {
      top: 50%;
      left: 50%;
      width: 6px;
      height: 6px;
      background: var(--gold-bright);
      box-shadow: 0 0 16px rgba(212, 196, 168, 0.82);
      transform: translate(-50%, -50%);
    }

    .login-orbit-mark i {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 68px;
      height: 22px;
      border: 1px solid rgba(162, 181, 196, 0.18);
      border-radius: 50%;
      transform: translate(-50%, -50%) rotate(24deg);
    }

    .login-kicker {
      margin: 0 0 14px;
      color: rgba(212, 196, 168, 0.76);
      font-size: 9px;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
    }

    .login-hero-title {
      max-width: 920px;
      margin: 0;
      color: #f7f8fa;
      font-size: clamp(38px, 5.7vw, 72px);
      font-weight: 550;
      letter-spacing: 0;
      line-height: 1.08;
      text-wrap: balance;
    }

    .login-hero-copy {
      max-width: 560px;
      margin: 18px 0 0;
      color: rgba(215, 222, 230, 0.56);
      font-size: 12px;
      line-height: 1.9;
    }

    .login-form.login-capsule {
      width: min(700px, 100%);
      margin-top: clamp(30px, 5vh, 52px);
      padding: 11px;
      border: 1px solid rgba(255, 255, 255, 0.11);
      border-radius: 28px;
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(17, 18, 21, 0.72);
      box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
      backdrop-filter: blur(24px) saturate(1.18);
      -webkit-backdrop-filter: blur(24px) saturate(1.18);
      display: grid;
      gap: 0;
      text-align: left;
      transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
    }

    .login-form.login-capsule:focus-within {
      border-color: rgba(212, 196, 168, 0.28);
      box-shadow:
        0 32px 100px rgba(0, 0, 0, 0.52),
        0 0 42px rgba(212, 196, 168, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
      transform: translateY(-1px);
    }

    .login-capsule-line {
      display: flex;
      min-width: 0;
      align-items: stretch;
      gap: 10px;
    }

    .login-fields {
      display: grid;
      min-width: 0;
      flex: 1;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-field {
      display: grid;
      min-width: 0;
      align-content: center;
      gap: 3px;
      min-height: 66px;
      padding: 7px 20px;
      border-radius: 18px;
    }

    .login-field + .login-field {
      border-left: 1px solid rgba(255, 255, 255, 0.07);
    }

    .login-field > span {
      color: rgba(199, 208, 217, 0.54);
      font-size: 9px;
      font-weight: 550;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .login-field input {
      width: 100%;
      height: 28px;
      padding: 0;
      border: 0;
      border-radius: 0;
      outline: 0;
      background: transparent;
      box-shadow: none;
      color: #f7f8fa;
      font-size: 13px;
      caret-color: var(--gold);
    }

    .login-field input:hover,
    .login-field input:focus {
      border: 0;
      background: transparent;
      box-shadow: none;
    }

    .login-field input::placeholder {
      color: rgba(153, 164, 176, 0.38);
    }

    .login-submit {
      width: 128px;
      min-width: 128px;
      min-height: 66px;
      align-self: stretch;
      border: 1px solid rgba(212, 196, 168, 0.34);
      border-radius: 20px;
      background:
        linear-gradient(135deg, rgba(212, 196, 168, 0.17), rgba(212, 196, 168, 0.07)),
        rgba(212, 196, 168, 0.035);
      color: var(--gold-bright);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
      font-size: 12px;
      font-weight: 600;
    }

    .login-submit:hover {
      border-color: rgba(212, 196, 168, 0.5);
      background:
        linear-gradient(135deg, rgba(212, 196, 168, 0.23), rgba(212, 196, 168, 0.09)),
        rgba(212, 196, 168, 0.045);
    }

    .login-error {
      display: none;
      min-height: 0;
      margin: 8px 6px 0;
      padding: 9px 11px;
      border: 1px solid rgba(255, 139, 139, 0.18);
      border-radius: 12px;
      background: rgba(255, 139, 139, 0.055);
      color: #efb0b0;
      font-size: 10px;
      line-height: 1.55;
    }

    .login-error.show {
      display: block;
    }

    .login-footnote {
      max-width: 520px;
      margin: 18px auto 0;
      color: rgba(138, 149, 161, 0.52);
      font-size: 9px;
      line-height: 1.75;
      text-align: center;
    }

    .login-actions {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-top: 2px;
      padding-top: 0;
    }

    .login-actions .btn {
      min-width: 112px;
      height: 38px;
      border-radius: 999px;
      font-size: 10px;
    }

    .login-back {
      color: rgba(196, 205, 214, 0.58);
    }

    .toast {
      position: fixed;
      left: 50%;
      bottom: 28px;
      z-index: 120;
      max-width: min(460px, calc(100% - 40px));
      padding: 11px 15px;
      border: 1px solid rgba(212, 196, 168, 0.24);
      border-radius: 9px;
      background: rgba(13, 20, 30, 0.96);
      color: var(--text);
      font-size: 11px;
      line-height: 1.55;
      box-shadow: 0 14px 46px rgba(0, 0, 0, 0.48);
      opacity: 0;
      pointer-events: none;
      transform: translate(-50%, 12px);
      transition: opacity 180ms ease, transform 180ms ease;
    }

    .toast.show {
      opacity: 1;
      transform: translate(-50%, 0);
    }

    .toast.error {
      border-color: rgba(255, 139, 139, 0.25);
      color: #f2bcbc;
    }


    .classroom-board {
      margin-top: 16px;
      overflow: hidden;
    }

    .classroom-board .panel-head {
      flex-wrap: wrap;
      padding-top: 12px;
      padding-bottom: 12px;
    }

    .classroom-controls {
      display: flex;
      align-items: center;
      gap: 9px;
      flex-wrap: wrap;
    }

    .classroom-select {
      min-width: 260px;
      height: 38px;
      padding: 0 34px 0 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      outline: none;
      background: var(--surface-solid);
      color: var(--text);
      font: inherit;
      font-size: 11px;
    }

    .classroom-select:focus {
      border-color: var(--line-strong);
      box-shadow: 0 0 0 3px rgba(212, 196, 168, 0.055);
    }

    .classroom-select:disabled {
      color: var(--faint);
      opacity: 0.7;
    }

    .classroom-stat-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 1px;
      border-top: 1px solid rgba(255, 255, 255, 0.055);
      border-bottom: 1px solid rgba(255, 255, 255, 0.055);
      background: rgba(255, 255, 255, 0.055);
    }

    .classroom-stat {
      padding: 15px 17px;
      background: rgba(8, 13, 20, 0.92);
    }

    .classroom-stat-label {
      margin: 0;
      color: var(--faint);
      font-size: 10px;
    }

    .classroom-stat-value {
      margin: 7px 0 0;
      color: var(--text);
      font-size: 22px;
      font-weight: 560;
      font-variant-numeric: tabular-nums;
    }

    .classroom-stat-value small {
      margin-left: 3px;
      color: var(--muted);
      font-size: 10px;
      font-weight: 400;
    }

    .classroom-workspace {
      display: grid;
      grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.8fr);
      gap: 14px;
      padding: 14px;
    }

    .classroom-side {
      display: grid;
      align-content: start;
      gap: 14px;
      min-width: 0;
    }

    .classroom-block {
      min-width: 0;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.07);
      border-radius: 11px;
      background: rgba(255, 255, 255, 0.018);
    }

    .classroom-block-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-height: 48px;
      padding: 0 14px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .classroom-block-title {
      margin: 0;
      color: var(--text);
      font-size: 12px;
      font-weight: 620;
    }

    .classroom-block-meta {
      color: var(--faint);
      font-size: 9px;
      white-space: nowrap;
    }

    .answer-table-wrap {
      max-height: 340px;
      overflow: auto;
      scrollbar-width: thin;
      scrollbar-color: rgba(212, 196, 168, 0.22) transparent;
    }

    .answer-table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
      font-size: 10px;
    }

    .answer-table th {
      position: sticky;
      top: 0;
      z-index: 2;
      padding: 10px 12px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.065);
      background: #0b121b;
      color: var(--faint);
      font-weight: 500;
      text-align: left;
    }

    .answer-table td {
      padding: 11px 12px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.045);
      color: var(--muted);
      vertical-align: middle;
      word-break: break-word;
    }

    .answer-table tr:last-child td {
      border-bottom: 0;
    }

    .answer-table td:first-child {
      color: var(--text);
      font-weight: 570;
    }

    .answer-result {
      display: inline-flex;
      align-items: center;
      min-height: 22px;
      padding: 0 8px;
      border: 1px solid rgba(134, 181, 160, 0.2);
      border-radius: 999px;
      color: var(--mint);
      font-size: 9px;
      white-space: nowrap;
    }

    .answer-result.wrong {
      border-color: rgba(255, 139, 139, 0.2);
      color: var(--danger);
    }

    .classroom-empty {
      display: grid;
      place-items: center;
      min-height: 170px;
      padding: 24px;
      color: var(--faint);
      font-size: 11px;
      line-height: 1.7;
      text-align: center;
    }

    .wrong-option-list {
      display: grid;
      gap: 8px;
      max-height: 172px;
      padding: 11px;
      overflow-y: auto;
    }

    .wrong-option-item {
      padding: 10px 11px;
      border: 1px solid rgba(255, 255, 255, 0.055);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.018);
    }

    .wrong-option-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .wrong-option-key {
      color: var(--warning);
      font-size: 11px;
      font-weight: 650;
    }

    .wrong-option-count {
      color: var(--faint);
      font-size: 9px;
    }

    .wrong-option-names {
      margin: 6px 0 0;
      color: var(--muted);
      font-size: 9px;
      line-height: 1.55;
      word-break: break-word;
    }

    .question-feed {
      display: flex;
      max-height: 235px;
      min-height: 235px;
      flex-direction: column;
      gap: 8px;
      padding: 11px;
      overflow-y: auto;
      scroll-behavior: smooth;
      scrollbar-width: thin;
      scrollbar-color: rgba(212, 196, 168, 0.22) transparent;
    }

    .class-question {
      display: grid;
      grid-template-columns: 29px minmax(0, 1fr);
      gap: 9px;
      padding: 10px;
      border: 1px solid rgba(255, 255, 255, 0.055);
      border-radius: 9px;
      background: rgba(255, 255, 255, 0.017);
    }

    .class-question.anonymous {
      border-color: rgba(212, 196, 168, 0.11);
      background: linear-gradient(90deg, rgba(212, 196, 168, 0.04), rgba(255, 255, 255, 0.012));
    }

    .class-question-avatar {
      display: grid;
      place-items: center;
      width: 29px;
      height: 29px;
      border: 1px solid rgba(212, 196, 168, 0.18);
      border-radius: 50%;
      color: var(--gold);
      font-size: 10px;
    }

    .class-question-meta {
      display: flex;
      align-items: center;
      gap: 7px;
      flex-wrap: wrap;
    }

    .class-question-author {
      color: var(--text);
      font-size: 10px;
      font-weight: 570;
    }

    .class-question-time {
      color: var(--faint);
      font-size: 8px;
    }

    .class-question-anon {
      padding: 1px 6px;
      border: 1px solid rgba(212, 196, 168, 0.16);
      border-radius: 999px;
      color: var(--gold);
      font-size: 8px;
    }

    .class-question-content {
      margin: 5px 0 0;
      color: var(--muted);
      font-size: 10px;
      line-height: 1.55;
      word-break: break-word;
    }

    .classroom-board-note {
      margin: 0;
      padding: 0 14px 14px;
      color: var(--faint);
      font-size: 9px;
      line-height: 1.6;
    }


    .console-denied[hidden],
.console-slot[hidden],
.tab-classroom[hidden],
.resources-page[hidden],
.console-page[hidden],
.teacher-control-bar[hidden],
    .ai-diagnosis-card[hidden],
    .diagnosis-button[hidden] {
      display: none !important;
    }

    .teacher-control-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 14px 16px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      background:
        linear-gradient(90deg, rgba(212, 196, 168, 0.06), transparent 44%),
        rgba(7, 12, 18, 0.76);
    }

    .teacher-control-copy {
      display: grid;
      gap: 4px;
      min-width: 150px;
    }

    .teacher-control-kicker {
      color: var(--faint);
      font-size: 9px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .teacher-control-copy strong {
      color: var(--gold-bright);
      font-size: 13px;
      font-weight: 600;
    }

    .teacher-control-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
    }

    .control-btn {
      min-height: 38px;
      border-radius: 999px;
      font-size: 11px;
    }

    .control-pause {
      border-color: rgba(224, 105, 105, 0.34);
      background: rgba(157, 49, 49, 0.09);
      color: #efb1b1;
    }

    .control-pause:hover {
      border-color: rgba(224, 105, 105, 0.58);
      background: rgba(157, 49, 49, 0.15);
    }

    .control-resume {
      border-color: rgba(134, 181, 160, 0.32);
      background: rgba(64, 123, 101, 0.08);
      color: #b6ddca;
    }

    .control-reset {
      color: var(--muted);
    }

    .teacher-control-bar.is-paused {
      background:
        linear-gradient(90deg, rgba(183, 55, 55, 0.17), transparent 52%),
        rgba(15, 10, 13, 0.9);
    }

    .teacher-control-bar.is-paused .teacher-control-copy strong {
      color: #f0b0b0;
    }

    body.classroom-paused::after {
      content: "";
      position: fixed;
      inset: 0;
      z-index: 9998;
      border: 3px solid rgba(222, 69, 69, 0.74);
      box-shadow:
        inset 0 0 28px rgba(211, 54, 54, 0.28),
        inset 0 0 80px rgba(129, 26, 26, 0.12);
      pointer-events: none;
      animation: pauseEdgeBreathe 2.1s ease-in-out infinite;
    }

    .answer-option-list {
      display: grid;
      gap: 9px;
      padding: 11px;
    }

    .answer-option-item {
      display: grid;
      gap: 7px;
      padding: 10px 11px;
      border: 1px solid rgba(255, 255, 255, 0.055);
      border-radius: 9px;
      background: rgba(255, 255, 255, 0.018);
    }

    .answer-option-top,
    .answer-option-foot,
    .poll-option-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .answer-option-key {
      display: inline-grid;
      place-items: center;
      width: 23px;
      height: 23px;
      flex: 0 0 23px;
      border: 1px solid rgba(212, 196, 168, 0.22);
      border-radius: 50%;
      color: var(--gold-bright);
      font-size: 10px;
      font-weight: 650;
    }

    .answer-option-name {
      flex: 1;
      color: var(--muted);
      font-size: 10px;
      line-height: 1.45;
    }

    .answer-option-count,
    .poll-option-count {
      color: var(--gold-bright);
      font-size: 15px;
      font-variant-numeric: tabular-nums;
    }

    .answer-option-foot {
      justify-content: flex-start;
      color: var(--faint);
      font-size: 9px;
      line-height: 1.5;
    }

    .answer-option-bar,
    .poll-option-bar {
      position: relative;
      height: 3px;
      overflow: hidden;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.05);
    }

    .answer-option-bar > i,
    .poll-option-bar > i {
      display: block;
      width: var(--bar-width, 0%);
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, rgba(162, 181, 196, 0.42), var(--gold));
      transition: width 520ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .answer-option-item.is-correct {
      border-color: rgba(134, 181, 160, 0.2);
      background: rgba(80, 132, 112, 0.035);
    }

    .count-flash {
      animation: countFlash 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .classroom-empty.compact {
      min-height: 92px;
      padding: 18px;
    }

    .poll-distribution {
      display: grid;
      gap: 10px;
      padding: 11px;
    }

    .poll-card {
      display: grid;
      gap: 10px;
      padding: 12px;
      border: 1px solid rgba(162, 181, 196, 0.13);
      border-radius: 10px;
      background: linear-gradient(145deg, rgba(162, 181, 196, 0.045), rgba(255, 255, 255, 0.012));
    }

    .poll-title {
      margin: 0;
      color: var(--text);
      font-size: 11px;
      line-height: 1.55;
    }

    .poll-option {
      display: grid;
      gap: 6px;
    }

    .poll-option-top span:first-child {
      color: var(--muted);
      font-size: 9px;
      line-height: 1.5;
    }

    .poll-option-count {
      font-size: 11px;
    }

    .group-submission-block {
      margin: 0 14px 14px;
    }

    .group-submission-wall {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
      gap: 10px;
      padding: 12px;
    }

    .group-submit-card {
      position: relative;
      min-height: 112px;
      padding: 13px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.07);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.016);
      transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
    }

    .group-submit-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 18% 0%, rgba(212, 196, 168, 0.11), transparent 52%);
      opacity: 0;
      transition: opacity 220ms ease;
    }

    .group-submit-card.submitted {
      border-color: rgba(212, 196, 168, 0.34);
      background: rgba(212, 196, 168, 0.045);
      box-shadow: 0 0 28px rgba(212, 196, 168, 0.055);
    }

    .group-submit-card.submitted::before {
      opacity: 1;
    }

    .group-submit-top {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .group-submit-name {
      color: var(--text);
      font-size: 12px;
      font-weight: 620;
    }

    .group-submit-state {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--faint);
      font-size: 8px;
    }

    .group-submit-card.submitted .group-submit-state {
      color: var(--gold-bright);
    }

    .group-submit-state::before {
      content: "";
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: currentColor;
      box-shadow: 0 0 8px currentColor;
    }

    .group-submit-content {
      position: relative;
      margin: 12px 0 0;
      color: var(--muted);
      font-size: 9px;
      line-height: 1.6;
      display: -webkit-box;
      overflow: hidden;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
    }

    .diagnosis-action-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      margin: 0 14px 14px;
      padding: 13px 15px;
      border: 1px solid rgba(212, 196, 168, 0.12);
      border-radius: 11px;
      background: linear-gradient(90deg, rgba(212, 196, 168, 0.045), rgba(255, 255, 255, 0.012));
    }

    .diagnosis-action-row > div {
      display: grid;
      gap: 4px;
    }

    .diagnosis-action-row strong {
      color: var(--text);
      font-size: 11px;
    }

    .diagnosis-action-row span {
      color: var(--faint);
      font-size: 9px;
      line-height: 1.55;
    }

    .diagnosis-button {
      min-height: 38px;
      border-radius: 999px;
    }

    .ai-diagnosis-card {
      border-color: rgba(212, 196, 168, 0.18);
      background:
        radial-gradient(circle at 15% 0%, rgba(212, 196, 168, 0.07), transparent 45%),
        rgba(255, 255, 255, 0.016);
    }

    .ai-diagnosis-content {
      max-height: 290px;
      padding: 13px 14px 15px;
      overflow-y: auto;
      color: var(--muted);
      font-size: 10px;
      line-height: 1.82;
      scrollbar-width: thin;
      scrollbar-color: rgba(212, 196, 168, 0.22) transparent;
    }

    .ai-diagnosis-content p {
      margin: 0 0 10px;
    }

    .ai-diagnosis-content p:last-child {
      margin-bottom: 0;
    }

    .ai-diagnosis-content strong {
      color: var(--gold-bright);
      font-weight: 600;
    }

    .class-question.just-arrived {
      animation: questionSlideIn 440ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .panel,
    .stat-card {
      position: relative;
    }
    /* v2.12.1 性能修复：呼吸发光改为 ::after 透明度动画（视觉一致，box-shadow 不再每帧重绘） */
    .panel::after,
    .stat-card::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      box-shadow: 0 0 34px rgba(212, 196, 168, 0.06);
      opacity: 0;
      pointer-events: none;
      animation: ambientGlow 3.8s ease-in-out infinite;
    }
    @keyframes ambientGlow {
      0%, 100% { opacity: 0; }
      50% { opacity: 1; }
    }

    @keyframes orgDotBreathe {
      0%, 100% { opacity: 0.42; transform: translateX(-50%) scale(0.85); }
      50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
    }

    @keyframes pauseEdgeBreathe {
      0%, 100% {
        opacity: 0.42;
        box-shadow:
          inset 0 0 20px rgba(211, 54, 54, 0.2),
          inset 0 0 54px rgba(129, 26, 26, 0.08);
      }
      50% {
        opacity: 1;
        box-shadow:
          inset 0 0 38px rgba(222, 69, 69, 0.38),
          inset 0 0 110px rgba(129, 26, 26, 0.18);
      }
    }

    @keyframes countFlash {
      0% { color: var(--text); transform: translateY(0); }
      35% { color: #fff8eb; text-shadow: 0 0 14px rgba(212, 196, 168, 0.8); transform: translateY(-2px); }
      100% { color: inherit; transform: translateY(0); }
    }

    @keyframes questionSlideIn {
      from { opacity: 0; transform: translateY(-14px) scale(0.985); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    @keyframes ambientBreathe {
      0%, 100% { box-shadow: var(--shadow), 0 0 0 rgba(212, 196, 168, 0); }
      50% { box-shadow: var(--shadow), 0 0 34px rgba(212, 196, 168, 0.06); }
    }

    @media (max-width: 1040px) {
      .teacher-control-bar,
      .diagnosis-action-row {
        align-items: flex-start;
        flex-direction: column;
      }

      .teacher-control-actions {
        width: 100%;
        justify-content: flex-start;
      }

      .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .workspace-grid,
      .classroom-workspace {
        grid-template-columns: 1fr;
      }

      .classroom-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .activity-panel {
        min-height: auto;
      }

      .record-list {
        max-height: 360px;
      }
    }

    @media (max-width: 720px) {
      .topbar {
        align-items: center;
        flex-wrap: wrap;
        gap: 10px 12px;
        min-height: 62px;
        padding: 12px 18px;
      }

      .brand-subtitle,
      .top-actions .status-chip {
        display: none;
      }

      .org-switch {
        order: 3;
        width: 100%;
        justify-content: center;
      }

      .org-switch-tab {
        flex: 1;
        padding-right: 8px;
        padding-left: 8px;
        text-align: center;
      }

      .login-stage {
        justify-content: flex-start;
        min-height: 100dvh;
        padding: 78px 20px 42px;
        overflow-y: auto;
      }

      .login-orbit-mark {
        width: 42px;
        height: 42px;
        margin-bottom: 18px;
      }

      .login-kicker {
        margin-bottom: 10px;
        font-size: 8px;
      }

      .login-hero-title {
        max-width: 12ch;
        font-size: clamp(34px, 12vw, 52px);
        line-height: 1.06;
      }

      .login-hero-copy {
        max-width: 34ch;
        margin-top: 14px;
        font-size: 11px;
        line-height: 1.75;
      }

      .login-form.login-capsule {
        width: min(520px, 100%);
        margin-top: 28px;
        padding: 10px;
        border-radius: 22px;
      }

      .login-capsule-line {
        flex-direction: column;
        gap: 8px;
      }

      .login-fields {
        grid-template-columns: 1fr;
      }

      .login-field {
        min-height: 58px;
        padding: 8px 16px;
        border-radius: 16px;
      }

      .login-field + .login-field {
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        border-left: 0;
      }

      .login-submit {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        border-radius: 16px;
      }

      .login-footnote {
        max-width: 38ch;
        margin-top: 14px;
      }

      .dashboard {
        width: min(100% - 28px, 1540px);
        padding-top: 21px;
      }

      .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
      }

      .clock {
        justify-items: start;
      }

      .identity-strip {
        align-items: flex-start;
        flex-direction: column;
      }

      .session-actions {
        width: 100%;
      }

      .session-actions .btn {
        flex: 1;
      }

      .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .stat-card {
        padding: 14px;
      }

      .stat-value {
        font-size: 20px;
      }

      .panel-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px;
      }

      .chart-actions {
        width: 100%;
      }

      .chart-actions .btn {
        flex: 1;
      }

      .chart-shell {
        height: 410px;
      }

      .classroom-controls {
        width: 100%;
      }

      .classroom-select {
        min-width: 0;
        flex: 1;
      }

      .classroom-side {
        grid-template-columns: 1fr;
      }

      .chart-panel {
        min-height: 500px;
      }

      .console-strip {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
      }

      .console-message {
        white-space: normal;
      }
    }

    @media (max-width: 440px) {
      .brand-title {
        font-size: 13px;
      }

      .topbar {
        gap: 8px;
        padding-right: 14px;
        padding-left: 14px;
      }

      .brand {
        gap: 9px;
      }

      .brand-mark {
        width: 28px;
        height: 28px;
      }

      .top-actions .btn {
        min-height: 34px;
        padding: 0 12px;
        font-size: 12px;
      }

      .login-stage {
        padding: 68px 14px 34px;
      }

      .login-hero-title {
        font-size: clamp(31px, 11.5vw, 43px);
      }

      .login-hero-copy {
        font-size: 10px;
      }

      .login-form.login-capsule {
        margin-top: 24px;
      }

      .login-close {
        top: max(16px, env(safe-area-inset-top));
        right: max(16px, env(safe-area-inset-right));
        width: 38px;
        height: 38px;
      }

      .stats-grid,
      .classroom-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .answer-table th:nth-child(5),
      .answer-table td:nth-child(5) {
        display: none;
      }

      .login-actions {
        flex-direction: column-reverse;
      }

      .login-actions .btn {
        width: 100%;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
      }
    }
  
/* v1.3 待作答名单 */
.pending-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; max-height: 170px; overflow-y: auto; }
.pending-chip {
  padding: 6px 14px;
  border: 1rpx solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(213, 180, 116, 0.07);
  color: #d5b474;
  font-size: 11px;
  white-space: nowrap;
}

/* v1.5 登录门禁：未登录状态下整个看板不可见，只显示登录页 */
body.auth-locked .dashboard,
body.auth-locked .topbar { display: none; }

/* v1.6 课堂警报 */
.cheat-block { border-color: rgba(255, 139, 139, 0.28); }
.cheat-block.has-alert {
  border-color: rgba(222, 69, 69, 0.72);
  background: linear-gradient(145deg, rgba(183, 55, 55, 0.14), rgba(255, 255, 255, 0.012));
  animation: cheatAlertPulse 1.6s ease-in-out infinite;
}
@keyframes cheatAlertPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(222, 69, 69, 0); }
  50% { box-shadow: 0 0 17px rgba(222, 69, 69, 0.34); }
}
.cheat-list { display: grid; gap: 8px; padding: 11px; max-height: 190px; overflow-y: auto; }
.cheat-item {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(222, 69, 69, 0.3);
  border-radius: 9px;
  background: rgba(183, 55, 55, 0.08);
}
.cheat-avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(222, 69, 69, 0.5);
  border-radius: 50%;
  color: #ef9a9a;
  font-size: 10px;
}
.cheat-name { color: var(--text); font-size: 11px; font-weight: 570; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cheat-sub { color: var(--faint); font-size: 8px; margin-top: 3px; }
.cheat-count { color: #f0b0b0; font-size: 13px; font-weight: 620; white-space: nowrap; }
.cheat-banner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 14px 14px;
  padding: 10px;
  border: 1px solid rgba(222, 69, 69, 0.55);
  border-radius: 5px;
  background: rgba(183, 55, 55, 0.16);
  color: #f2bcbc;
  font-size: 12px;
  letter-spacing: 2px;
  animation: cheatAlertPulse 1.2s ease-in-out infinite;
}
.cheat-banner.show { display: flex; }

/* v1.8 MOSS 科幻全息警报 */
.moss-alert {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(0deg, rgba(255, 82, 82, 0.028) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 82, 82, 0.02) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(255, 82, 82, 0.02) 0 1px, transparent 1px 56px),
    radial-gradient(circle at 50% 42%, rgba(255, 60, 60, 0.14), transparent 46%),
    rgba(6, 2, 2, 0.97);
  animation: mossScan 6s linear infinite;
}
.moss-alert.show { display: flex; }
@keyframes mossScan {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 56px 0, 0 56px, 0 0, 0 0; }
}
.moss-alert-box {
  position: relative;
  text-align: center;
  max-width: 82vw;
  padding: 56px 72px;
  border: 1px solid rgba(255, 82, 82, 0.4);
  background: rgba(20, 4, 4, 0.55);
  box-shadow: 0 0 60px rgba(255, 60, 60, 0.18), inset 0 0 40px rgba(255, 60, 60, 0.05);
}
.moss-alert-box::before, .moss-alert-box::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid #ff5252;
}
.moss-alert-box::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.moss-alert-box::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.moss-triangle {
  position: relative;
  width: 132px; height: 116px;
  margin: 0 auto 24px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, rgba(255, 90, 90, 0.95), rgba(160, 20, 20, 0.95));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  display: flex; align-items: flex-end; justify-content: center;
  filter: drop-shadow(0 0 26px rgba(255, 82, 82, 0.8));
  animation: mossHolo 1.6s steps(2) infinite;
}
.moss-triangle span {
  color: #fff; font-size: 66px; font-weight: 800; line-height: 1;
  padding-bottom: 6px;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.9);
}
@keyframes mossHolo {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.86; }
}
.moss-title {
  color: #ff8a80;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 40px; font-weight: 800; letter-spacing: 30px; margin-bottom: 6px; padding-left: 30px;
  text-shadow: 0 0 24px rgba(255, 82, 82, 0.75);
}
.moss-subtitle {
  color: rgba(255, 205, 210, 0.8);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 14px; letter-spacing: 8px; margin-bottom: 28px;
}
.moss-names { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.moss-name {
  padding: 8px 20px;
  border: 1px solid rgba(255, 82, 82, 0.6);
  background: rgba(255, 60, 60, 0.1);
  color: #ffebee;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 15px;
  letter-spacing: 2px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  animation: mossChipIn 300ms ease both;
}
@keyframes mossChipIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.moss-close {
  padding: 11px 40px;
  border: 1px solid rgba(255, 82, 82, 0.55);
  background: transparent;
  color: #ffcdd2;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 13px; letter-spacing: 4px;
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.moss-close:hover { background: rgba(255, 82, 82, 0.16); }

/* v1.9 实时发言 + 声纹名单 */
.voice-feed { display: flex; flex-direction: column; gap: 8px; padding: 11px; max-height: 260px; overflow-y: auto; }
.voice-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}
.voice-item.latest { border-color: rgba(212, 196, 168, 0.4); background: rgba(212, 196, 168, 0.06); }
.voice-text { color: #d8dee6; font-size: 11px; line-height: 1.55; word-break: break-word; }
.voice-text b { color: #ebe0cc; font-weight: 620; }
.voice-time { color: #5e6b79; font-size: 9px; white-space: nowrap; }
.voice-roster { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; max-height: 170px; overflow-y: auto; }
.vr-chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}
.vr-on { border: 1px solid rgba(134, 181, 160, 0.45); background: rgba(80, 132, 112, 0.1); color: #b6ddca; }
.vr-off { border: 1px solid rgba(255, 255, 255, 0.09); background: rgba(255, 255, 255, 0.02); color: #7c8896; }

/* v2.0 教师收音 + 声纹注册 */
#micToggle.recording { border-color: rgba(222, 69, 69, 0.6); background: rgba(183, 55, 55, 0.2); color: #f0b0b0; }
.voice-enroll-card {
  width: min(560px, 92vw);
  padding: 34px;
  border: 1px solid rgba(212, 196, 168, 0.25);
  border-radius: 16px;
  background: rgba(14, 14, 16, 0.98);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}
.ve-title { margin: 0 0 12px; color: #ebe0cc; font-size: 20px; }
.ve-desc { margin: 0 0 16px; color: #92a0af; font-size: 12px; line-height: 1.7; }
.ve-passage {
  padding: 18px;
  border: 1px dashed rgba(212, 196, 168, 0.35);
  border-radius: 10px;
  color: #d8dee6;
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 14px;
}
.ve-consent { display: flex; align-items: center; gap: 8px; color: #92a0af; font-size: 12px; margin-bottom: 18px; }
.ve-btns { display: flex; gap: 12px; }
.ve-status { margin-top: 14px; color: #86b5a0; font-size: 12px; min-height: 18px; }

/* v2.1 PPT 演示面板 */
.ppt-panel { margin-bottom: 16px; }
.ppt-actions { display: flex; gap: 10px; }
.ppt-stage-wrap { position: relative; padding: 14px; overflow: auto; }
.ppt-stage {
  position: relative;
  width: 720px;
  max-width: 100%;
  min-height: 240px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: #0a0a0c;
  overflow: hidden;
}
.ppt-stage .slide-page { display: none; }
.ppt-stage .slide-page.active { display: block; }
.ppt-stage img.slide-img { display: block; width: 100%; height: auto; }
.ppt-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 12px; }
.ppt-nav-btn { padding: 8px 22px; border: 1px solid rgba(212, 196, 168, 0.4); border-radius: 8px; background: transparent; color: #d4c4a8; font-size: 13px; cursor: pointer; }
.ppt-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.ppt-page { color: #92a0af; font-size: 13px; font-variant-numeric: tabular-nums; }
.ppt-resize {
  position: absolute; right: 6px; bottom: 6px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(212, 196, 168, 0.55);
  cursor: nwse-resize; user-select: none;
  font-size: 13px;
}
/* v2.1 面板收起：只影响本面板，不影响 PPT */
.collapse-btn {
  margin-left: 10px;
  padding: 2px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: transparent;
  color: #92a0af;
  font-size: 11px;
  cursor: pointer;
}
.collapse-btn:hover { color: #ebe0cc; border-color: rgba(212, 196, 168, 0.4); }
.panel.collapsed .panel-head ~ *, .classroom-block.collapsed .classroom-block-head ~ * { display: none !important; }

/* v2.6 MOSS 助教面板 */
.moss-feed { display: flex; flex-direction: column; gap: 8px; padding: 11px; max-height: 280px; overflow-y: auto; }
.moss-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 10px; border: 1px solid rgba(212, 196, 168, 0.14); border-radius: 9px; background: rgba(212, 196, 168, 0.035); }
.moss-tag { display: inline-flex; align-items: center; justify-content: center; height: 22px; border-radius: 6px; font-size: 10px; font-weight: 620; }
.moss-tag.correct { background: rgba(222, 69, 69, 0.16); color: #f0a8a8; border: 1px solid rgba(222, 69, 69, 0.4); }
.moss-tag.supplement { background: rgba(141, 184, 198, 0.12); color: #a9ccdb; border: 1px solid rgba(141, 184, 198, 0.35); }
.moss-tag.question { background: rgba(212, 196, 168, 0.14); color: #e6d8b8; border: 1px solid rgba(212, 196, 168, 0.4); }
.moss-text { color: #d8dee6; font-size: 11px; line-height: 1.6; word-break: break-word; }
.moss-reason { color: #5e6b79; font-size: 9px; margin-top: 4px; }

/* v2.5 MOSS 对话 */
.moss-chat-row { display: flex; gap: 8px; padding: 10px 11px 0; }
.moss-input {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid rgba(212, 196, 168, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #d8dee6;
  font-size: 12px;
  outline: none;
}
.moss-input:focus { border-color: rgba(212, 196, 168, 0.55); }
.moss-send {
  padding: 9px 20px;
  border: 1px solid rgba(212, 196, 168, 0.5);
  border-radius: 8px;
  background: rgba(212, 196, 168, 0.1);
  color: #ebe0cc;
  font-size: 12px;
  cursor: pointer;
}
.moss-send:disabled { opacity: 0.4; }
.moss-q { color: #8db8c6; font-size: 10px; margin-bottom: 4px; word-break: break-word; }

/* v2.6 学生声音 */
.sv-tabs { display: flex; gap: 8px; padding: 10px 11px 0; }
.sv-tab { padding: 7px 20px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: #92a0af; font-size: 11px; cursor: pointer; }
.sv-tab.sv-active { border-color: rgba(212, 196, 168, 0.5); background: rgba(212, 196, 168, 0.08); color: #ebe0cc; }
.sv-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 11px 0; }
.sv-cat { padding: 4px 12px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 999px; color: #7c8896; font-size: 10px; cursor: pointer; }
.sv-cat.active { border-color: rgba(141, 184, 198, 0.5); color: #a9ccdb; background: rgba(141, 184, 198, 0.08); }
.sv-list { display: flex; flex-direction: column; gap: 8px; padding: 11px; max-height: 300px; overflow-y: auto; }
.sv-item { padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 9px; background: rgba(255, 255, 255, 0.018); }
.sv-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sv-name { color: #ebe0cc; font-size: 11px; font-weight: 620; }
.sv-cat-tag { padding: 1px 8px; border: 1px solid rgba(141, 184, 198, 0.4); border-radius: 999px; color: #a9ccdb; font-size: 9px; }
.sv-time { margin-left: auto; color: #5e6b79; font-size: 9px; }
.sv-text { color: #d8dee6; font-size: 11px; line-height: 1.6; word-break: break-word; }

/* v2.7 UEG 联合政府警告窗 */
.ueg-modal {
  position: fixed; inset: 0; z-index: 9990;
  display: none; align-items: center; justify-content: center;
  background: rgba(2, 6, 14, 0.92);
  backdrop-filter: blur(10px);
}
.ueg-modal.show { display: flex; }
.ueg-card {
  width: min(680px, 90vw);
  padding: 46px 40px;
  border: 1px solid rgba(141, 184, 198, 0.4);
  background: linear-gradient(160deg, rgba(10, 18, 30, 0.97), rgba(6, 10, 18, 0.97));
  box-shadow: 0 0 70px rgba(141, 184, 198, 0.16);
  text-align: center;
  animation: uegIn 260ms ease both;
}
@keyframes uegIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.ueg-flags { display: flex; justify-content: center; gap: 14px; margin-bottom: 30px; }
.flag { width: 64px; height: 42px; position: relative; box-shadow: 0 4px 14px rgba(0,0,0,0.5); }
.flag-cn { background: #de2910; }
.flag-cn i { position: absolute; top: 7px; left: 8px; width: 16px; height: 16px; background: #ffde00; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.flag-us { background: repeating-linear-gradient(180deg, #b22234 0 4px, #fff 4px 8px); }
.flag-us i { position: absolute; top: 0; left: 0; width: 26px; height: 22px; background: #3c3b6e; }
.flag-ru { background: linear-gradient(180deg, #fff 0 33%, #0039a6 33% 66%, #d52b1e 66%); }
.flag-uk { background: #012169; }
.flag-uk i { position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent 44%, #fff 44% 56%, transparent 56%),
  linear-gradient(0deg, transparent 40%, #fff 40% 60%, transparent 60%),
  linear-gradient(90deg, transparent 46%, #c8102e 46% 54%, transparent 54%),
  linear-gradient(0deg, transparent 42%, #c8102e 42% 58%, transparent 58%); }
.flag-fr { background: linear-gradient(90deg, #002395 0 33%, #fff 33% 66%, #ed2939 66%); }
.ueg-en { color: #8db8c6; font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 14px; letter-spacing: 3px; line-height: 1.8; margin-bottom: 14px; }
.ueg-zh { color: #d8dee6; font-size: 20px; letter-spacing: 6px; margin-bottom: 22px; }
.ueg-line { height: 1px; background: linear-gradient(90deg, transparent, rgba(141,184,198,0.5), transparent); margin-bottom: 14px; }
.ueg-small { color: #5e6b79; font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: 4px; }

/* v2.11 学生操作台 */
.student-console { margin: 0 14px 14px; padding: 14px; border: 1px solid rgba(212,196,168,.18); border-radius: 11px; background: linear-gradient(145deg, rgba(212,196,168,.045), rgba(255,255,255,.012)); }
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sc-title { margin: 0; color: #ebe0cc; font-size: 13px; font-weight: 620; }
.sc-meta { color: #5e6b79; font-size: 9px; white-space: nowrap; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.sc-card { padding: 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; background: rgba(255,255,255,.018); }
.sc-kicker { margin: 0 0 10px; color: #8db8c6; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.sc-question { margin: 0 0 10px; color: #d8dee6; font-size: 12px; line-height: 1.6; word-break: break-word; }
.sc-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sc-opt { padding: 7px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #92a0af; font-size: 11px; cursor: pointer; user-select: none; transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease; }
.sc-opt:hover { border-color: rgba(212,196,168,.4); }
.sc-opt.sel { border-color: rgba(212,196,168,.6); background: rgba(212,196,168,.1); color: #ebe0cc; }
.sc-row { display: flex; gap: 8px; }
.sc-input { flex: 1; min-width: 0; padding: 9px 14px; border: 1px solid rgba(212,196,168,.25); border-radius: 8px; background: rgba(255,255,255,.03); color: #d8dee6; font-size: 12px; outline: none; font: inherit; }
.sc-input:focus { border-color: rgba(212,196,168,.55); }
.sc-textarea { width: 100%; min-height: 90px; margin-bottom: 10px; padding: 9px 14px; border: 1px solid rgba(212,196,168,.25); border-radius: 8px; background: rgba(255,255,255,.03); color: #d8dee6; font-size: 12px; outline: none; resize: vertical; font: inherit; }
.sc-textarea:focus { border-color: rgba(212,196,168,.55); }
.sc-anon { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: #92a0af; font-size: 11px; cursor: pointer; }
.sc-state { margin: 8px 0 0; color: #86b5a0; font-size: 10px; min-height: 14px; }
.sc-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.sc-card .btn { min-height: 34px; }

/* v2.12 页面标签 */
.page-tabs { display: flex; gap: 8px; margin: -6px 0 16px; }
.page-tab {
  min-height: 34px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.page-tab:hover { border-color: rgba(212, 196, 168, 0.4); color: var(--gold-bright); }
.page-tab.active {
  border-color: rgba(212, 196, 168, 0.55);
  background: rgba(212, 196, 168, 0.09);
  color: var(--gold-bright);
}

/* v2.12 学习资源卡片 */
.resources-page { margin-top: 0; }
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  padding: 16px;
}
.res-card {
  display: flex;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  flex-direction: column;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.res-card:hover { border-color: rgba(212, 196, 168, 0.32); background: rgba(212, 196, 168, 0.035); }
.res-tag-row { display: flex; gap: 6px; margin-bottom: 10px; }
.res-tag {
  padding: 3px 10px;
  border: 1px solid rgba(141, 184, 198, 0.35);
  border-radius: 999px;
  color: #a9ccdb;
  font-size: 9px;
}
.res-tag.tag-baidu { border-color: rgba(212, 196, 168, 0.4); color: #e6d8b8; }
.res-tag.tag-quark { border-color: rgba(134, 181, 160, 0.4); color: #b6ddca; }
.res-title { margin: 0 0 8px; color: var(--text); font-size: 14px; font-weight: 620; line-height: 1.5; }
.res-desc { flex: 1; margin: 0 0 14px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.res-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.res-actions .btn { min-height: 32px; font-size: 11px; }
.res-code { color: var(--gold-bright); }

/* v2.12 控制台权限页 */
.console-page { margin-top: 0; }
.console-slot { padding: 14px; }
.console-slot .teacher-control-bar { border: 0; border-radius: 10px; background: linear-gradient(90deg, rgba(212, 196, 168, 0.06), rgba(7, 12, 18, 0.76)); }
.console-denied {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 260px;
  padding: 40px 20px;
  text-align: center;
}
.denied-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(213, 180, 116, 0.5);
  border-radius: 50%;
  color: var(--warning);
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 0 22px rgba(213, 180, 116, 0.12);
}
.denied-title { margin: 6px 0 0; color: var(--text); font-size: 16px; font-weight: 620; }
.denied-sub { margin: 0; color: var(--faint); font-size: 11px; }

/* ============================================================
   v3.0 深空界面重构 —— 星环终端 · 智能中枢
   在原有功能样式之上叠加的视觉层
   ============================================================ */

/* ---------- 0. 设计令牌 ---------- */
:root {
  color-scheme: dark;
  --void: #0a0a0c;
  --void-deep: #060608;
  --bg: #0a0a0c;
  --bg-deep: #060608;
  --surface: rgba(14, 14, 18, 0.58);
  --surface-solid: #111115;
  --surface-raised: rgba(24, 24, 30, 0.92);
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(232, 201, 142, 0.32);
  --gold: #e5c68d;
  --gold-bright: #f8ebce;
  --gold-deep: #b98a49;
  --ice: #a8c7d6;
  --mint: #8ec9ae;
  --danger: #ff9a9a;
  --warning: #e0bd7d;
  --text: #f4f2ec;
  --muted: #9a9ca6;
  --faint: #65676f;
  --radius: 20px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 1. 全局 ---------- */
html {
  background: var(--void);
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: auto;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

* {
  scrollbar-width: none;
}

body {
  overflow-x: hidden;
  background: var(--void);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(229, 198, 141, 0.26);
  color: #fff8e8;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 1px solid rgba(229, 198, 141, 0.72);
  outline-offset: 3px;
}

/* 旧版登录门禁：重构后首屏与监控中枢同页，不隐藏主内容 */
body.auth-locked .dashboard,
body.auth-locked .topbar {
  display: block;
}

body.auth-locked .topbar {
  display: flex;
}

/* ---------- 2. 深空背景 ---------- */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% 44%, rgba(116, 86, 48, 0.16), transparent 62%),
    radial-gradient(ellipse 60% 45% at 78% 8%, rgba(68, 84, 112, 0.08), transparent 60%),
    radial-gradient(ellipse 55% 45% at 12% 82%, rgba(72, 52, 36, 0.09), transparent 65%),
    #0a0a0c;
  pointer-events: none;
}

.starfield {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.cosmos-glow {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 120vmin;
  height: 90vmin;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 209, 140, 0.11) 0%,
    rgba(221, 155, 79, 0.055) 32%,
    rgba(120, 90, 54, 0.02) 58%,
    transparent 74%
  );
  filter: blur(16px);
  animation: cosmosBreathe 11s ease-in-out infinite;
}

.cosmos-grain {
  position: absolute;
  inset: -20%;
  opacity: 0.032;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cosmos-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 78% 68% at 50% 46%, transparent 42%, rgba(4, 4, 6, 0.5) 100%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.42) 0%, transparent 18%, transparent 74%, rgba(10, 10, 12, 0.72) 100%);
  pointer-events: none;
}

/* ---------- 3. 星环舞台 ---------- */
.ring-stage {
  position: absolute;
  left: 50%;
  top: 55%;
  width: min(1280px, 132vmin);
  height: min(1280px, 132vmin);
  transform: translate3d(-50%, -50%, 0);
  transform-origin: center;
  will-change: transform, opacity;
  pointer-events: none;
  z-index: 1;
}

.ring-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.ring-orbits {
  position: absolute;
  inset: 3.5%;
  z-index: 2;
  border-radius: 50%;
  perspective: 1100px;
  transform-style: preserve-3d;
  mix-blend-mode: screen;
  pointer-events: none;
}

.orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform-style: preserve-3d;
  opacity: 0.5;
}

.orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: 1px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 48deg,
    rgba(255, 240, 205, 0.55) 66deg,
    rgba(255, 203, 128, 0.15) 92deg,
    transparent 132deg 216deg,
    rgba(255, 220, 165, 0.34) 246deg,
    rgba(255, 232, 190, 0.08) 276deg,
    transparent 310deg 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  filter: drop-shadow(0 0 12px rgba(255, 202, 130, 0.35));
  animation: orbitSpin 34s linear infinite;
  will-change: transform;
}

.orbit-a {
  transform: rotate3d(1, 0.2, 0, 71deg);
}

.orbit-b {
  inset: 12%;
  transform: rotate3d(1, -0.32, 0.12, 67deg);
  opacity: 0.3;
}

.orbit-b::before {
  animation-duration: 47s;
  animation-direction: reverse;
  filter: drop-shadow(0 0 9px rgba(200, 220, 255, 0.25));
}

.orbit-c {
  inset: 26%;
  transform: rotate3d(1, 0.38, -0.2, 64deg);
  opacity: 0.2;
}

.orbit-c::before {
  animation-duration: 28s;
}

@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .ring-orbits {
    display: none;
  }
}

/* ---------- 4. 指针辉光 & 滚动进度 ---------- */
.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 216, 154, 0.075) 0%, rgba(255, 190, 110, 0.03) 36%, transparent 66%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
  will-change: transform;
}

.cursor-glow.is-visible {
  opacity: 1;
}

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  z-index: 80;
  height: 2px;
  background: rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.scroll-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(229, 198, 141, 0.1), rgba(248, 235, 206, 0.9) 55%, rgba(229, 198, 141, 0.35));
  box-shadow: 0 0 18px rgba(229, 198, 141, 0.5);
}

/* ---------- 5. 顶栏 ---------- */
.topbar {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 0 clamp(20px, 4vw, 58px);
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background-color 500ms ease, border-color 500ms ease, backdrop-filter 500ms ease;
}

.topbar.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  background: rgba(8, 8, 10, 0.62);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
}

.brand {
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid rgba(232, 201, 142, 0.58);
  border-radius: 50%;
  box-shadow:
    0 0 22px rgba(232, 201, 142, 0.16),
    inset 0 0 0 5px rgba(232, 201, 142, 0.035);
}

.brand-mark::before {
  left: -5px;
  right: -5px;
  background: linear-gradient(90deg, transparent, rgba(248, 235, 206, 0.95), transparent);
  transform: rotate(-20deg);
}

.brand-mark::after {
  width: 5px;
  height: 5px;
  background: #fff7e4;
  box-shadow: 0 0 14px rgba(255, 232, 186, 0.95);
}

.brand-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-subtitle {
  color: rgba(229, 198, 141, 0.48);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.top-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.018);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.top-nav-link {
  position: relative;
  min-height: 32px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 240ms ease, background-color 240ms ease;
}

.top-nav-link:hover {
  color: var(--gold-bright);
  background: rgba(255, 255, 255, 0.045);
}

.top-nav-link.active {
  color: var(--gold-bright);
  background: rgba(229, 198, 141, 0.09);
  box-shadow: inset 0 0 0 1px rgba(229, 198, 141, 0.14);
}

.top-actions {
  gap: 10px;
  min-width: 0;
}

#headerLoginButton {
  max-width: 34vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-chip,
.role-chip {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(210, 212, 218, 0.72);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.status-chip {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------- 6. 通用按钮 ---------- */
.btn {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(244, 242, 236, 0.9);
  font-size: 12px;
  letter-spacing: 0.02em;
  transition:
    border-color 240ms var(--ease-out),
    background-color 240ms var(--ease-out),
    color 240ms var(--ease-out),
    transform 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out);
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.065);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn-gold {
  border-color: rgba(229, 198, 141, 0.34);
  background:
    linear-gradient(135deg, rgba(229, 198, 141, 0.17), rgba(229, 198, 141, 0.055));
  color: var(--gold-bright);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 26px rgba(229, 198, 141, 0.05);
}

.btn-gold:hover {
  border-color: rgba(248, 235, 206, 0.56);
  background: linear-gradient(135deg, rgba(229, 198, 141, 0.26), rgba(229, 198, 141, 0.09));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 34px rgba(229, 198, 141, 0.16);
}

.btn-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

/* ---------- 7. 主容器与首屏 ---------- */
.app-main {
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(124px, 17vh, 188px) clamp(20px, 5vw, 48px) clamp(96px, 12vh, 140px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 32vh;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 12, 0.34) 58%, rgba(10, 10, 12, 0.08) 100%);
  pointer-events: none;
}

.hero-aurora {
  position: absolute;
  left: 50%;
  top: 56%;
  width: min(1100px, 120vw);
  height: min(620px, 70vh);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 199, 120, 0.06), transparent 64%);
  filter: blur(28px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1000px, 100%);
  will-change: transform, opacity;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: -10% -8%;
  z-index: -1;
  background: radial-gradient(
    ellipse 56% 58% at 50% 38%,
    rgba(7, 7, 9, 0.5) 0%,
    rgba(7, 7, 9, 0.26) 44%,
    transparent 72%
  );
  filter: blur(10px);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 17px;
  border: 1px solid rgba(229, 198, 141, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.018);
  color: rgba(229, 198, 141, 0.62);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(229, 198, 141, 0.9);
  animation: dotBreathe 3.2s ease-in-out infinite;
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.16em;
  flex-wrap: wrap;
  margin: 30px 0 0;
  font-size: clamp(46px, 7.8vw, 108px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.02;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  text-wrap: balance;
}

.title-line {
  color: #f7f4ec;
}

.title-sep {
  width: 7px;
  height: 7px;
  align-self: center;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(229, 198, 141, 0.9);
  opacity: 0.8;
}

.title-accent {
  background: linear-gradient(180deg, #fff8e9 6%, #f3dcb0 44%, #d2a965 74%, #b4823f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(229, 198, 141, 0.16));
}

.hero-subtitle {
  max-width: 34em;
  margin: 26px auto 0;
  color: rgba(214, 216, 222, 0.58);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.95;
}

/* ---------- 8. 登录胶囊 ---------- */
.hero-login {
  width: min(760px, 100%);
  margin: clamp(32px, 5vh, 56px) auto 0;
}

.login-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: rgba(229, 198, 141, 0.5);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.login-label span {
  padding: 4px 8px;
  border: 1px solid rgba(229, 198, 141, 0.14);
  border-radius: 4px;
  color: rgba(248, 235, 206, 0.7);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.login-capsule {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.068), rgba(255, 255, 255, 0.014) 42%, rgba(255, 255, 255, 0.038)),
    rgba(13, 13, 18, 0.58);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(229, 198, 141, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(26px) saturate(1.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  transition:
    border-color 420ms var(--ease-out),
    box-shadow 420ms var(--ease-out),
    transform 420ms var(--ease-out);
  will-change: transform;
}

.login-capsule::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(248, 235, 206, 0.46), transparent);
  opacity: 0.4;
  transition: opacity 420ms ease;
  pointer-events: none;
}

.login-capsule:hover {
  border-color: rgba(255, 255, 255, 0.17);
  box-shadow:
    0 38px 110px rgba(0, 0, 0, 0.56),
    0 0 42px rgba(229, 198, 141, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.login-capsule:focus-within {
  border-color: rgba(229, 198, 141, 0.36);
  box-shadow:
    0 42px 120px rgba(0, 0, 0, 0.58),
    0 0 64px rgba(229, 198, 141, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.login-capsule:focus-within::after {
  opacity: 1;
}

.login-capsule.is-pulse {
  animation: capsulePulse 1.5s var(--ease-out);
}

.capsule-field {
  position: relative;
  display: grid;
  flex: 1;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 11px 27px;
  border-radius: 999px;
  cursor: text;
  text-align: left;
}

.capsule-label {
  color: rgba(229, 198, 141, 0.44);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

.capsule-field input {
  width: 100%;
  height: 26px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #fbf8f1;
  font-size: 14px;
  letter-spacing: 0.03em;
  caret-color: var(--gold);
}

.capsule-field input:hover,
.capsule-field input:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.capsule-field input::placeholder {
  color: rgba(198, 202, 212, 0.3);
}

/* 浏览器自动填充时保持深空底色 */
.capsule-field input:-webkit-autofill,
.capsule-field input:-webkit-autofill:hover,
.capsule-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fbf8f1;
  -webkit-box-shadow: 0 0 0 1000px #0a0a0c inset;
  box-shadow: 0 0 0 1000px #0a0a0c inset;
  caret-color: var(--gold);
  transition: background-color 9999s ease-out 0s;
}

.capsule-line {
  width: 1px;
  margin: 9px 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.13), transparent);
}

.capsule-submit {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 166px;
  padding: 0 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 238, 205, 0.62);
  border-radius: 999px;
  background: linear-gradient(135deg, #fbf0d6 0%, #e9cf98 40%, #cfa363 74%, #bb8a48 100%);
  color: #1a1206;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow:
    0 12px 40px rgba(201, 157, 85, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    transform 380ms var(--ease-out),
    box-shadow 380ms var(--ease-out),
    filter 380ms var(--ease-out);
  will-change: transform;
}

.capsule-submit::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  transition: left 700ms var(--ease-out);
  pointer-events: none;
}

.capsule-submit:hover {
  transform: translateY(-1px) scale(1.012);
  filter: brightness(1.04);
  box-shadow:
    0 16px 52px rgba(201, 157, 85, 0.44),
    0 0 34px rgba(255, 222, 160, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.capsule-submit:hover::before {
  left: 115%;
}

.capsule-submit:active {
  transform: translateY(0) scale(0.995);
}

.capsule-submit:disabled {
  cursor: wait;
  filter: saturate(0.7) brightness(0.9);
  opacity: 0.78;
}

.capsule-arrow {
  transition: transform 380ms var(--ease-out);
}

.capsule-submit:hover .capsule-arrow {
  transform: translateX(3px);
}

.login-error {
  display: none;
  margin: 12px 8px 0;
  padding: 10px 16px;
  border: 1px solid rgba(255, 154, 154, 0.2);
  border-radius: 12px;
  background: rgba(255, 120, 120, 0.055);
  color: #f0b9b9;
  font-size: 11px;
  line-height: 1.6;
  text-align: left;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.login-error.show {
  display: block;
  animation: fadeSlideIn 300ms var(--ease-out);
}

.login-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 17px 0 0;
  color: rgba(160, 163, 173, 0.55);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1.8;
  text-align: center;
}

.footnote-dot {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border-radius: 50%;
  background: rgba(229, 198, 141, 0.55);
  box-shadow: 0 0 8px rgba(229, 198, 141, 0.5);
}

/* ---------- 9. 登录成功态 ---------- */
.hero-access {
  display: none;
  width: min(760px, 100%);
  margin: clamp(34px, 5vh, 58px) auto 0;
  flex-direction: column;
  align-items: center;
}

body.is-authed .hero-login {
  display: none;
}

body.is-authed .hero-access {
  display: flex;
  animation: accessIn 900ms var(--ease-out) both;
}

.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid rgba(142, 201, 174, 0.24);
  border-radius: 999px;
  background: rgba(80, 160, 126, 0.055);
  color: #a9dcc4;
  font-size: 8px;
  letter-spacing: 0.24em;
}

.access-ring {
  position: relative;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(142, 201, 174, 0.7);
  border-radius: 50%;
}

.access-ring::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #a9dcc4;
  box-shadow: 0 0 10px rgba(142, 201, 174, 0.9);
}

.access-title {
  margin: 20px 0 0;
  color: #f7f4ec;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.access-title span {
  color: var(--gold-bright);
}

.access-sub {
  margin: 12px 0 0;
  color: rgba(190, 194, 204, 0.55);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.access-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn-hero-gold,
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    transform 380ms var(--ease-out),
    box-shadow 380ms var(--ease-out),
    border-color 380ms var(--ease-out),
    background-color 380ms var(--ease-out);
}

.btn-hero-gold {
  border: 1px solid rgba(255, 238, 205, 0.6);
  background: linear-gradient(135deg, #fbf0d6, #e9cf98 40%, #cfa363 74%, #bb8a48);
  color: #1a1206;
  box-shadow: 0 14px 42px rgba(201, 157, 85, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn-hero-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 56px rgba(201, 157, 85, 0.42), 0 0 30px rgba(255, 222, 160, 0.24);
}

.btn-hero-ghost {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(235, 233, 227, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn-hero-ghost:hover {
  border-color: rgba(229, 198, 141, 0.32);
  background: rgba(229, 198, 141, 0.06);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

/* ---------- 10. 首屏底部 ---------- */
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: clamp(30px, 4.6vh, 52px);
  color: rgba(152, 156, 166, 0.42);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 9px rgba(142, 201, 174, 0.8);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  color: rgba(210, 213, 221, 0.4);
  text-decoration: none;
  transform: translate3d(-50%, 0, 0);
  transition: color 300ms ease, opacity 300ms ease;
  will-change: transform, opacity;
}

.scroll-cue:hover {
  color: rgba(248, 235, 206, 0.75);
}

.scroll-cue-text {
  font-size: 8px;
  letter-spacing: 0.32em;
}

.scroll-cue-line {
  position: relative;
  display: block;
  width: 1px;
  height: 50px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(229, 198, 141, 0.28), transparent);
}

.scroll-cue-line i {
  position: absolute;
  left: 0;
  top: -14px;
  width: 1px;
  height: 14px;
  background: linear-gradient(180deg, rgba(248, 235, 206, 0.95), transparent);
  animation: cueDrop 2.4s var(--ease-soft) infinite;
}

/* ---------- 11. 第二屏：监控中枢 ---------- */
.deck {
  position: relative;
  z-index: 2;
  padding: clamp(64px, 8vh, 100px) 0 44px;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0) 0%, rgba(10, 10, 12, 0.5) 9%, rgba(10, 10, 12, 0.88) 24%, rgba(10, 10, 12, 0.94) 100%);
}

.dashboard {
  width: min(1600px, calc(100% - clamp(32px, 6vw, 96px)));
  margin: 0 auto;
  padding: 0 0 52px;
}

.deck-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.deck-head-copy {
  min-width: 0;
}

.deck-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: rgba(229, 198, 141, 0.6);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.deck-kicker .slash {
  color: rgba(255, 255, 255, 0.18);
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(142, 201, 174, 0.9);
  animation: dotBreathe 2.8s ease-in-out infinite;
}

.deck-title {
  margin: 0;
  color: #f7f4ec;
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.14;
}

.deck-desc {
  max-width: 54ch;
  margin: 14px 0 0;
  color: rgba(180, 184, 194, 0.58);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.85;
}

.deck-head-side {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  flex: 0 0 auto;
}

.clock {
  justify-items: end;
  gap: 5px;
  color: rgba(160, 164, 174, 0.6);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.clock strong {
  color: #f5f1e8;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.deck-live-row {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.deck-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(142, 201, 174, 0.18);
  border-radius: 999px;
  background: rgba(80, 160, 126, 0.045);
  color: rgba(169, 220, 196, 0.8);
  font-size: 8px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.deck-live-chip i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(142, 201, 174, 0.9);
}

.deck-live-chip.ghost {
  border-color: rgba(255, 255, 255, 0.065);
  background: transparent;
  color: rgba(160, 164, 174, 0.45);
}

.deck-rail {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0 0;
  color: rgba(150, 154, 164, 0.35);
  font-size: 8px;
  letter-spacing: 0.22em;
  white-space: nowrap;
  overflow: hidden;
}

.rail-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(229, 198, 141, 0.4);
}

.rail-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(229, 198, 141, 0.7);
  box-shadow: 0 0 8px rgba(229, 198, 141, 0.6);
}

.rail-text {
  overflow: hidden;
  flex: 1;
  text-overflow: ellipsis;
}

.rail-line {
  flex: 1;
  height: 1px;
  min-width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* ---------- 12. 页面标签 / 身份条 ---------- */
.page-tabs {
  display: inline-flex;
  gap: 3px;
  margin: 24px 0 18px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.022);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.page-tab {
  position: relative;
  min-height: 38px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(170, 174, 184, 0.66);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 300ms var(--ease-out), background-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

.page-tab:hover {
  color: var(--gold-bright);
  background: rgba(255, 255, 255, 0.045);
}

.page-tab.active {
  color: var(--gold-bright);
  background: linear-gradient(135deg, rgba(229, 198, 141, 0.2), rgba(229, 198, 141, 0.06));
  box-shadow:
    inset 0 0 0 1px rgba(229, 198, 141, 0.24),
    0 0 26px rgba(229, 198, 141, 0.07);
}

.identity-strip {
  position: relative;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 20px;
  background:
    linear-gradient(110deg, rgba(229, 198, 141, 0.065), rgba(255, 255, 255, 0.012) 46%),
    rgba(13, 13, 17, 0.56);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.identity-badge {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgba(229, 198, 141, 0.28);
  background: radial-gradient(circle at 35% 25%, rgba(229, 198, 141, 0.18), rgba(229, 198, 141, 0.04));
  color: var(--gold-bright);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 0 24px rgba(229, 198, 141, 0.07);
}

.identity-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.identity-subtitle {
  color: rgba(170, 174, 184, 0.58);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.session-actions .role-chip {
  color: rgba(229, 198, 141, 0.66);
  border-color: rgba(229, 198, 141, 0.16);
  background: rgba(229, 198, 141, 0.04);
}

/* ---------- 13. 统计卡片 ---------- */
.stats-grid {
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 22px 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 20px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012) 52%),
    rgba(12, 12, 16, 0.52);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  animation: none;
  transition:
    transform 480ms var(--ease-out),
    border-color 480ms var(--ease-out),
    box-shadow 480ms var(--ease-out);
}

.stat-card::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.5;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -52px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 198, 141, 0.055), transparent 66%);
  pointer-events: none;
}

.stat-card:hover {
  border-color: rgba(229, 198, 141, 0.22);
  transform: translateY(-3px);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.4), 0 0 34px rgba(229, 198, 141, 0.05);
}

.stat-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 16px;
  color: rgba(176, 180, 190, 0.62);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: none;
}

.stat-en {
  color: rgba(140, 144, 154, 0.35);
  font-size: 7px;
  letter-spacing: 0.18em;
}

.stat-value {
  overflow: hidden;
  margin: 0;
  color: #f6f3ec;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.08;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat-value small {
  margin-left: 6px;
  color: rgba(229, 198, 141, 0.56);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* ---------- 14. 面板通用玻璃质感 ---------- */
.panel {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01) 46%),
    rgba(12, 12, 16, 0.56);
  box-shadow: 0 30px 74px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  animation: none;
  transition: border-color 480ms var(--ease-out), box-shadow 480ms var(--ease-out);
}

.panel:hover {
  border-color: rgba(255, 255, 255, 0.11);
}

.panel-head {
  min-height: 74px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.panel-subtitle {
  margin-top: 5px;
  color: rgba(150, 154, 164, 0.42);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.workspace-grid {
  gap: 18px;
}

.chart-panel {
  min-height: 610px;
}

.chart-shell {
  height: 534px;
}

.chart-loading {
  background: rgba(9, 9, 12, 0.72);
  color: rgba(190, 194, 204, 0.6);
  font-size: 11px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.activity-panel {
  min-height: 610px;
}

.record-list {
  gap: 9px;
  max-height: 534px;
  padding: 14px;
}

.record-item {
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 300ms ease, background-color 300ms ease;
}

.record-item:hover {
  border-color: rgba(229, 198, 141, 0.16);
  background: rgba(229, 198, 141, 0.035);
}

.record-index {
  border-color: rgba(229, 198, 141, 0.16);
  color: rgba(229, 198, 141, 0.72);
  border-radius: 11px;
}

.record-name {
  font-size: 12px;
}

.record-value {
  color: var(--gold-bright);
}

/* ---------- 15. 课堂板块 ---------- */
.classroom-board {
  margin-top: 18px;
  overflow: hidden;
}

.classroom-board .panel-head {
  padding-top: 15px;
  padding-bottom: 15px;
}

.classroom-controls {
  gap: 9px;
}

.classroom-select {
  min-width: 250px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(9, 9, 13, 0.78);
  color: var(--text);
  font-size: 11px;
  transition: border-color 240ms ease;
}

.classroom-select:focus {
  border-color: rgba(229, 198, 141, 0.4);
  box-shadow: 0 0 0 3px rgba(229, 198, 141, 0.06);
}

.classroom-stat-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 0;
  background: transparent;
}

.classroom-stat {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 320ms ease, background-color 320ms ease;
}

.classroom-stat:hover {
  border-color: rgba(229, 198, 141, 0.14);
  background: rgba(229, 198, 141, 0.03);
}

.classroom-stat-label {
  color: rgba(160, 164, 174, 0.5);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.classroom-stat-value {
  margin-top: 9px;
  font-size: 23px;
  font-weight: 400;
}

.classroom-stat-value small {
  color: rgba(229, 198, 141, 0.5);
}

.classroom-workspace {
  gap: 14px;
  padding: 14px;
}

.classroom-block {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
}

.classroom-block-head {
  min-height: 50px;
  padding: 0 15px;
}

.classroom-block-title {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.classroom-block-meta {
  color: rgba(150, 154, 164, 0.38);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.classroom-empty {
  color: rgba(150, 154, 164, 0.46);
  font-size: 10px;
}

.answer-table th {
  background: #0d0d11;
  color: rgba(160, 164, 174, 0.5);
}

.answer-table td {
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

.answer-table td:first-child {
  color: var(--text);
}

.question-feed,
.voice-feed,
.cheat-list,
.sv-list,
.moss-feed,
.answer-option-list,
.wrong-option-list,
.poll-distribution,
.pending-list,
.voice-roster,
.ppt-stage-wrap,
.ai-diagnosis-content {
  scrollbar-width: none;
}

/* 小组任务 / 学生操作台等细节同步到新质感 */
.student-console {
  border-color: rgba(229, 198, 141, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(229, 198, 141, 0.04), rgba(255, 255, 255, 0.01));
}

.sc-card {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.sc-input,
.sc-textarea,
.moss-input {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.028);
}

.teacher-control-bar {
  background:
    linear-gradient(90deg, rgba(229, 198, 141, 0.055), transparent 46%),
    rgba(8, 8, 12, 0.72);
}

.group-submit-card {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

/* ---------- 16. PPT / 资源 / 控制台 ---------- */
.ppt-panel {
  margin-top: 18px;
  margin-bottom: 18px;
}

.ppt-stage {
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #0a0a0c;
}

.resources-page,
.console-page {
  margin-top: 18px;
}

.res-grid {
  gap: 14px;
  padding: 18px;
}

.res-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 18px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008) 56%),
    rgba(14, 14, 18, 0.5);
  transition:
    transform 420ms var(--ease-out),
    border-color 420ms var(--ease-out),
    background-color 420ms var(--ease-out),
    box-shadow 420ms var(--ease-out);
}

.res-card:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 198, 141, 0.26);
  background-color: rgba(229, 198, 141, 0.025);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34), 0 0 30px rgba(229, 198, 141, 0.04);
}

.res-title {
  font-size: 14px;
  font-weight: 600;
}

.res-desc {
  color: rgba(180, 184, 194, 0.58);
  font-size: 11px;
}

.res-tag {
  border-color: rgba(168, 199, 214, 0.24);
  color: rgba(168, 199, 214, 0.72);
}

.res-tag.tag-baidu {
  border-color: rgba(229, 198, 141, 0.26);
  color: rgba(248, 235, 206, 0.72);
}

.res-tag.tag-quark {
  border-color: rgba(142, 201, 174, 0.26);
  color: rgba(142, 201, 174, 0.78);
}

.res-code {
  color: var(--gold-bright);
}

.console-strip {
  margin-top: 18px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  background: rgba(7, 7, 10, 0.6);
  color: rgba(150, 154, 164, 0.42);
  font-size: 9px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.console-code {
  color: rgba(229, 198, 141, 0.55);
}

/* ---------- 17. 轻量组件微调 ---------- */
.role-chip {
  font-size: 9px;
}

.eyebrow {
  color: rgba(229, 198, 141, 0.65);
  letter-spacing: 0.2em;
}

.record-list::-webkit-scrollbar,
.question-feed::-webkit-scrollbar,
.voice-feed::-webkit-scrollbar,
.cheat-list::-webkit-scrollbar,
.sv-list::-webkit-scrollbar,
.moss-feed::-webkit-scrollbar,
.answer-table-wrap::-webkit-scrollbar,
.wrong-option-list::-webkit-scrollbar,
.ai-diagnosis-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.toast {
  bottom: 30px;
  padding: 12px 18px;
  border: 1px solid rgba(229, 198, 141, 0.24);
  border-radius: 14px;
  background: rgba(12, 12, 16, 0.92);
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.03em;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 24px rgba(229, 198, 141, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* 登录/声纹弹窗底纹同步 */
.modal {
  background: rgba(4, 4, 6, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.voice-enroll-card {
  border-radius: 22px;
  border-color: rgba(229, 198, 141, 0.2);
  background: rgba(12, 12, 16, 0.97);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.6);
}

/* ---------- 18. 入场编排 ---------- */
.xr {
  opacity: 0;
  transform: translate3d(0, 64px, 0) scale(0.985);
  transition:
    opacity 900ms var(--ease-out),
    transform 1100ms var(--ease-out);
  transition-delay: var(--xr-delay, 0ms);
  will-change: transform, opacity;
}

.xr.in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}

/* 入场结束后仍保留卡片的悬停抬升 */
.stat-card.xr.in:hover,
.res-card.xr.in:hover {
  transform: translate3d(0, -3px, 0);
  transition-delay: 0ms;
}

/* ---------- 19. 动效 ---------- */
@keyframes dotBreathe {
  0%, 100% { opacity: 0.45; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes cosmosBreathe {
  0%, 100% { opacity: 0.72; transform: translate(-50%, -50%) scale(0.97); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes orbitSpin {
  to { transform: rotate(1turn); }
}

@keyframes cueDrop {
  0% { opacity: 0; transform: translateY(0); }
  18% { opacity: 1; }
  80% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(64px); }
}

@keyframes capsulePulse {
  0% { box-shadow: 0 34px 100px rgba(0, 0, 0, 0.52), 0 0 0 rgba(229, 198, 141, 0); }
  35% { box-shadow: 0 38px 110px rgba(0, 0, 0, 0.55), 0 0 64px rgba(229, 198, 141, 0.24); }
  100% { box-shadow: 0 34px 100px rgba(0, 0, 0, 0.52), 0 0 0 rgba(229, 198, 141, 0); }
}

@keyframes accessIn {
  from { opacity: 0; transform: translate3d(0, 22px, 0) scale(0.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 20. 响应式 ---------- */
@media (max-width: 1180px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .chart-panel,
  .activity-panel {
    min-height: auto;
  }

  .chart-shell {
    height: 460px;
  }

  .record-list {
    max-height: 380px;
  }

  .classroom-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .classroom-workspace {
    grid-template-columns: 1fr;
  }

  .classroom-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .top-nav {
    display: none;
  }

  .deck-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .deck-head-side {
    width: 100%;
    align-items: center;
    justify-content: space-between;
  }

  .clock {
    justify-items: start;
  }

  .deck-live-row {
    justify-items: end;
  }

  .classroom-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 66px;
    padding: 0 18px;
  }

  .brand-title {
    font-size: 13px;
  }

  .top-actions .status-chip {
    display: none;
  }

  .hero {
    padding: 108px 20px 92px;
  }

  .hero-eyebrow {
    padding: 7px 12px;
    font-size: 7px;
    letter-spacing: 0.2em;
  }

  .hero-title {
    margin-top: 24px;
    font-size: clamp(40px, 10.8vw, 66px);
    gap: 0.12em;
    line-height: 1.06;
  }

  .title-sep {
    width: 5px;
    height: 5px;
  }

  .hero-subtitle {
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.85;
  }

  .hero-login {
    margin-top: 30px;
  }

  .login-capsule {
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border-radius: 26px;
  }

  .login-capsule::after {
    display: none;
  }

  .capsule-field {
    padding: 12px 20px;
    border-radius: 20px;
  }

  .capsule-line {
    width: auto;
    height: 1px;
    margin: 0 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  }

  .capsule-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 7px;
    border-radius: 20px;
  }

  .login-footnote {
    font-size: 8px;
    line-height: 1.7;
  }

  .hero-meta {
    gap: 14px;
    font-size: 7px;
    letter-spacing: 0.14em;
  }

  .hero-meta span:last-child {
    display: none;
  }

  .scroll-cue {
    bottom: 18px;
  }

  .scroll-cue-line {
    height: 38px;
  }

  .access-title {
    font-size: 22px;
  }

  .btn-hero-gold,
  .btn-hero-ghost {
    min-height: 46px;
    padding: 0 24px;
    font-size: 12px;
  }

  .deck {
    padding-top: 54px;
  }

  .dashboard {
    width: calc(100% - 28px);
    padding-bottom: 36px;
  }

  .deck-head {
    padding-bottom: 22px;
  }

  .deck-title {
    font-size: clamp(28px, 7vw, 38px);
  }

  .deck-desc {
    font-size: 11px;
  }

  .deck-rail {
    gap: 10px;
    font-size: 6.5px;
  }

  .page-tabs {
    display: flex;
    width: 100%;
    margin: 18px 0 14px;
  }

  .page-tab {
    flex: 1;
    min-height: 36px;
    padding: 0 10px;
    font-size: 11px;
  }

  .identity-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .session-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat-card {
    padding: 16px;
    border-radius: 16px;
  }

  .stat-value {
    font-size: 24px;
  }

  .stat-en {
    display: none;
  }

  .panel {
    border-radius: 18px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 16px;
  }

  .chart-actions {
    width: 100%;
  }

  .chart-actions .btn {
    flex: 1;
  }

  .chart-shell {
    height: 380px;
  }

  .classroom-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  .classroom-workspace {
    padding: 10px;
  }

  .classroom-controls {
    width: 100%;
  }

  .classroom-select {
    min-width: 0;
    flex: 1;
  }

  .res-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .console-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .console-message {
    white-space: normal;
  }
}

@media (max-width: 460px) {
  .hero {
    padding: 96px 16px 84px;
  }

  .hero-title {
    font-size: clamp(36px, 11.2vw, 52px);
  }

  .hero-eyebrow {
    font-size: 6.5px;
  }

  .hero-subtitle {
    font-size: 11px;
  }

  .hero-meta span:nth-child(2) {
    display: none;
  }

  .capsule-field input {
    font-size: 13px;
  }

  .capsule-submit {
    min-height: 48px;
    font-size: 12px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card {
    padding: 14px;
  }

  .stat-value {
    font-size: 22px;
  }

  .classroom-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deck-head-side {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .deck-live-row {
    justify-items: start;
  }
}

@media (max-height: 760px) {
  .hero {
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 96px;
    padding-bottom: 86px;
  }

  .hero-title {
    margin-top: 22px;
  }

  .hero-subtitle {
    margin-top: 18px;
  }

  .hero-login {
    margin-top: 26px;
  }

  .hero-meta {
    margin-top: 24px;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 760px) {
  /* 16px 可避免 iOS 聚焦输入框时自动放大页面 */
  .capsule-field input {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cosmos-glow,
  .ring-orbits,
  .scroll-cue-line i {
    animation: none !important;
  }

  .ring-orbits {
    display: none;
  }

  .xr {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   v4.0 高级感重构
   Montserrat / Noto Sans SC · 深蓝紫星云 · 极简登录 · 已入驻星系
   ============================================================ */

/* ---------- 0. 字体与深空配色 ---------- */
:root {
  color-scheme: dark;
  --void: #04050a;
  --void-deep: #010102;
  --bg: #04050a;
  --bg-deep: #010102;
  --surface: rgba(8, 11, 20, 0.58);
  --surface-solid: #080b14;
  --surface-raised: rgba(18, 22, 36, 0.94);
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(230, 199, 143, 0.3);
  --gold: #e6c78f;
  --gold-bright: #f8ebd0;
  --gold-deep: #b98a49;
  --text: #f4f5f9;
  --muted: #9ba0ae;
  --faint: #626879;
  --font-en: "Montserrat", "Inter", "Segoe UI", sans-serif;
  --font: "Montserrat", "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

html,
body {
  background: var(--void);
}

body {
  font-family: var(--font);
  background: var(--void);
}

/* ---------- 1. 深蓝紫星云 ---------- */
.cosmos {
  background:
    radial-gradient(ellipse 60% 46% at 50% 42%, rgba(61, 54, 146, 0.34) 0%, rgba(31, 29, 82, 0.17) 38%, transparent 70%),
    radial-gradient(ellipse 46% 38% at 31% 52%, rgba(18, 74, 126, 0.22) 0%, transparent 68%),
    radial-gradient(ellipse 42% 36% at 70% 31%, rgba(98, 43, 132, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 82% 78% at 50% 48%, transparent 36%, rgba(0, 0, 0, 0.7) 100%),
    #020308;
}

.cosmos::before {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(ellipse 40% 32% at 30% 42%, rgba(70, 61, 182, 0.19), transparent 66%),
    radial-gradient(ellipse 34% 28% at 72% 52%, rgba(123, 50, 158, 0.13), transparent 68%),
    radial-gradient(ellipse 28% 24% at 51% 27%, rgba(38, 112, 170, 0.09), transparent 70%);
  filter: blur(42px);
  animation: nebulaDrift 34s ease-in-out infinite alternate;
  pointer-events: none;
}

.cosmos-glow {
  background: radial-gradient(
    ellipse at center,
    rgba(255, 212, 154, 0.085) 0%,
    rgba(118, 100, 214, 0.045) 38%,
    rgba(40, 30, 90, 0.025) 60%,
    transparent 76%
  );
}

.cosmos-grain {
  opacity: 0.027;
}

.cosmos-vignette {
  background:
    radial-gradient(ellipse 78% 70% at 50% 46%, transparent 36%, rgba(0, 0, 0, 0.76) 100%),
    linear-gradient(180deg, rgba(2, 3, 8, 0.34) 0%, transparent 16%, transparent 70%, rgba(2, 3, 8, 0.78) 100%);
}

/* ---------- 2. 顶栏与字体细节 ---------- */
.topbar.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.055);
  background: rgba(4, 5, 10, 0.66);
}

.brand-subtitle,
.top-nav-link,
.hero-eyebrow,
.title-en,
.login-label,
.field-label,
.register-link,
.status-chip,
.partners-kicker,
.partner-en,
.partner-tag,
.partners-note,
.partners-foot,
.apply-button,
.join-kicker,
.join-field > span,
.join-note {
  font-family: var(--font-en);
}

.top-nav-link {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.top-nav-link.active {
  color: var(--gold-bright);
  background: rgba(230, 199, 143, 0.08);
  box-shadow: inset 0 0 0 1px rgba(230, 199, 143, 0.12);
}

/* ---------- 3. Hero 排版 ---------- */
.hero {
  padding: clamp(112px, 14.5vh, 158px) clamp(20px, 5vw, 48px) clamp(76px, 9.5vh, 110px);
}

.hero-content {
  width: min(1080px, 100%);
}

.hero-content::before {
  inset: -12% -10%;
  background: radial-gradient(
    ellipse 52% 56% at 50% 38%,
    rgba(3, 4, 10, 0.52) 0%,
    rgba(4, 6, 14, 0.26) 46%,
    transparent 74%
  );
  filter: blur(12px);
}

.hero-eyebrow {
  color: rgba(205, 200, 235, 0.55);
  letter-spacing: 0.3em;
}

.eyebrow-dot {
  background: #e6c78f;
  box-shadow: 0 0 14px rgba(230, 199, 143, 0.8);
}

.hero-title {
  display: grid;
  justify-items: center;
  gap: 13px;
  margin: 34px 0 0;
  font-size: 0;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: none;
  filter: none;
  text-wrap: initial;
}

.title-line {
  display: block;
  color: #f8f9fc;
  font-family: var(--font);
  font-size: clamp(52px, 8.2vw, 116px);
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1.02;
  text-indent: 4px;
  text-shadow: none;
}

.title-subline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(232, 213, 178, 0.78);
  font-family: var(--font);
  font-size: clamp(13px, 1.45vw, 18px);
  font-weight: 300;
  letter-spacing: 0.5em;
  line-height: 1.2;
  text-indent: 0.5em;
  text-shadow: none;
}

.title-subline::before,
.title-subline::after {
  content: "";
  display: block;
  width: clamp(24px, 4vw, 56px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 199, 143, 0.46));
}

.title-subline::after {
  background: linear-gradient(90deg, rgba(230, 199, 143, 0.46), transparent);
}

.title-en {
  margin: 18px 0 0;
  color: rgba(190, 198, 222, 0.34);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 42em;
  margin: 22px auto 0;
  color: rgba(196, 202, 218, 0.5);
  font-size: 12.5px;
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.95;
}

.hero-login {
  width: min(880px, 100%);
  margin: clamp(28px, 4.4vh, 46px) auto 0;
}

.login-label {
  margin-bottom: 13px;
  color: rgba(230, 199, 143, 0.5);
  font-size: 8px;
  letter-spacing: 0.26em;
}

.login-label span {
  color: rgba(248, 235, 208, 0.66);
  font-size: 7px;
  letter-spacing: 0.18em;
}

/* ---------- 4. 极简登录面板 ---------- */
.login-panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 30px;
  width: 100%;
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.006) 54%, rgba(110, 100, 210, 0.022)),
    rgba(7, 9, 17, 0.28);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  text-align: left;
  transition: border-color 420ms var(--ease-out), box-shadow 420ms var(--ease-out), background-color 420ms var(--ease-out);
  will-change: transform;
}

.login-panel:focus-within {
  border-color: rgba(230, 199, 143, 0.18);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.4),
    0 0 42px rgba(230, 199, 143, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-panel.is-pulse {
  animation: panelPulse 1.5s var(--ease-out);
}

.login-fields {
  display: flex;
  flex: 1;
  gap: 30px;
  min-width: 0;
}

.field-line {
  display: grid;
  flex: 1;
  gap: 9px;
  min-width: 0;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  cursor: text;
  transition: border-color 320ms var(--ease-out);
}

.field-line:hover {
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.field-line:focus-within {
  border-bottom-color: rgba(230, 199, 143, 0.68);
}

.field-label {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: rgba(202, 210, 228, 0.4);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

.field-label em {
  color: rgba(230, 199, 143, 0.4);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.16em;
}

.field-line input {
  width: 100%;
  height: 27px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #f5f7fc;
  font-family: var(--font);
  font-size: 15px;
  letter-spacing: 0.03em;
  caret-color: var(--gold);
}

.field-line input:hover,
.field-line input:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.field-line input::placeholder {
  color: rgba(190, 197, 214, 0.24);
  font-weight: 300;
}

.field-line input.is-invalid {
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 rgba(255, 140, 140, 0.72);
}

.field-line input:-webkit-autofill,
.field-line input:-webkit-autofill:hover,
.field-line input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f5f7fc;
  -webkit-box-shadow: 0 0 0 1000px #080a12 inset;
  box-shadow: 0 0 0 1000px #080a12 inset;
  caret-color: var(--gold);
  transition: background-color 9999s ease-out 0s;
}

.login-panel-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.login-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 146px;
  min-height: 48px;
  padding: 0 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 238, 205, 0.6);
  border-radius: 12px;
  background: linear-gradient(135deg, #fbf0d6 0%, #e9cf98 40%, #cfa363 74%, #bb8a48 100%);
  color: #1a1206;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow:
    0 12px 36px rgba(201, 157, 85, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-out), filter 380ms var(--ease-out);
}

.login-submit::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  transform: skewX(-18deg);
  transition: left 700ms var(--ease-out);
  pointer-events: none;
}

.login-submit:hover {
  transform: translateY(-1px) scale(1.012);
  filter: brightness(1.04);
  box-shadow:
    0 16px 48px rgba(201, 157, 85, 0.38),
    0 0 30px rgba(255, 222, 160, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.login-submit:hover::before {
  left: 115%;
}

.login-submit:active {
  transform: translateY(0) scale(0.995);
}

.login-submit:disabled {
  cursor: wait;
  filter: saturate(0.7) brightness(0.9);
  opacity: 0.78;
}

.login-submit .capsule-arrow {
  transition: transform 380ms var(--ease-out);
}

.login-submit:hover .capsule-arrow {
  transform: translateX(3px);
}

.register-link {
  align-self: center;
  padding: 5px 0 3px;
  border: 0;
  border-bottom: 1px solid rgba(230, 199, 143, 0.22);
  background: transparent;
  color: rgba(230, 199, 143, 0.62);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 300ms var(--ease-out), border-color 300ms var(--ease-out), text-shadow 300ms var(--ease-out);
}

.register-link:hover {
  color: #fff4dc;
  border-bottom-color: rgba(255, 244, 220, 0.7);
  text-shadow: 0 0 18px rgba(230, 199, 143, 0.55);
}

.login-error {
  margin: 12px 8px 0;
  border-radius: 10px;
}

.login-footnote {
  color: rgba(160, 166, 184, 0.48);
}

/* 登录成功态宽度同步 */
.hero-access {
  width: min(880px, 100%);
}

/* ---------- 5. 首屏底部 ---------- */
.hero-meta {
  color: rgba(154, 160, 180, 0.36);
}

.meta-dot {
  background: #8ec9ae;
}

.scroll-cue {
  color: rgba(205, 210, 226, 0.36);
}

.scroll-cue:hover {
  color: rgba(248, 235, 208, 0.72);
}

/* ---------- 6. 已入驻星系 ---------- */
.partners {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  padding: clamp(92px, 12vh, 136px) clamp(20px, 5vw, 56px) clamp(52px, 7vh, 78px);
  overflow: hidden;
}

.partners::before {
  content: "PARTNERS";
  position: absolute;
  left: 50%;
  top: clamp(18px, 5vh, 58px);
  z-index: 0;
  color: transparent;
  font-family: var(--font-en);
  font-size: clamp(90px, 17vw, 252px);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 0.8;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.026);
  transform: translateX(-50%);
  pointer-events: none;
}

.partners::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(3, 4, 9, 0) 0%, rgba(3, 4, 9, 0.34) 24%, rgba(3, 4, 9, 0.88) 100%);
  pointer-events: none;
}

.partners-inner {
  position: relative;
  z-index: 1;
  width: min(1500px, 100%);
  margin: 0 auto;
}

.partners-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.partners-head-main {
  min-width: 0;
}

.partners-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: rgba(230, 199, 143, 0.58);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.26em;
  line-height: 1;
  text-transform: uppercase;
}

.partners-section {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(230, 199, 143, 0.2);
  border-radius: 50%;
  color: rgba(248, 235, 208, 0.66);
  font-size: 8px;
  letter-spacing: 0;
}

.partners-kicker .slash {
  color: rgba(255, 255, 255, 0.18);
}

.partners-title {
  margin: 0;
  color: #f5f6fa;
  font-family: var(--font);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.14;
}

.partners-sub {
  max-width: 410px;
  margin: 0;
  color: rgba(190, 196, 214, 0.48);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.95;
  text-align: right;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.partner-card {
  --accent: 230, 199, 143;
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 268px;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.007) 58%),
    rgba(7, 9, 16, 0.48);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  transition:
    transform 600ms var(--ease-out),
    border-color 600ms var(--ease-out),
    background-color 600ms var(--ease-out),
    box-shadow 600ms var(--ease-out);
  will-change: transform;
}

.partner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 72% 56% at 78% 0%, rgba(var(--accent), 0.12), transparent 62%);
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
  pointer-events: none;
}

.partner-card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent), 0.55), transparent);
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
}

.partner-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--accent), 0.32);
  background-color: rgba(var(--accent), 0.025);
  box-shadow:
    0 34px 82px rgba(0, 0, 0, 0.42),
    0 0 44px rgba(var(--accent), 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.partner-card:hover::before,
.partner-card:hover::after {
  opacity: 1;
}

.partner-astro { --accent: 230, 199, 143; }
.partner-bio { --accent: 142, 201, 174; }
.partner-outdoor { --accent: 168, 199, 214; }
.partner-nankai { --accent: 190, 140, 210; }

.partner-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.partner-number {
  color: rgba(255, 255, 255, 0.24);
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.partner-orbit {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(var(--accent), 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 12px rgba(var(--accent), 0.035);
  transition: transform 700ms var(--ease-out), border-color 700ms var(--ease-out);
}

.partner-orbit::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(var(--accent), 0.46);
  border-radius: 50%;
  transform: rotate(-24deg) scaleY(0.45);
  transition: border-color 700ms var(--ease-out);
}

.partner-orbit i {
  position: absolute;
  left: 50%;
  top: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgb(var(--accent));
  box-shadow: 0 0 12px rgba(var(--accent), 0.85);
  transform: translateX(-50%);
}

.partner-card:hover .partner-orbit {
  transform: rotate(24deg);
  border-color: rgba(var(--accent), 0.5);
}

.partner-card-body {
  position: relative;
  z-index: 1;
  margin-top: 38px;
}

.partner-name {
  margin: 0;
  color: #f2f4fa;
  font-family: var(--font);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.partner-en {
  margin: 8px 0 0;
  color: rgba(var(--accent), 0.64);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.partner-desc {
  margin: 18px 0 0;
  color: rgba(184, 190, 208, 0.5);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.85;
}

.partner-card-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.partner-tag {
  color: rgba(var(--accent), 0.58);
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.partner-school {
  color: rgba(160, 166, 184, 0.32);
  font-size: 8px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.partners-cta {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 13px;
  margin-top: 38px;
}

.apply-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 32px;
  border: 1px solid rgba(230, 199, 143, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.016);
  color: rgba(248, 232, 200, 0.9);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  cursor: pointer;
  box-shadow:
    0 12px 38px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 480ms var(--ease-out),
    color 480ms var(--ease-out),
    border-color 480ms var(--ease-out),
    background-color 480ms var(--ease-out),
    box-shadow 480ms var(--ease-out);
}

.apply-bracket {
  color: rgba(230, 199, 143, 0.72);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 17px;
  font-weight: 300;
  line-height: 1;
  transition: color 480ms var(--ease-out), transform 480ms var(--ease-out);
}

.apply-button:hover {
  border-color: rgba(255, 244, 220, 0.7);
  background: linear-gradient(135deg, #fbf0d6 0%, #e9cf98 42%, #cfa363 76%, #bb8a48 100%);
  color: #17120a;
  transform: translateY(-2px);
  box-shadow:
    0 20px 58px rgba(201, 157, 85, 0.26),
    0 0 38px rgba(230, 199, 143, 0.16);
}

.apply-button:hover .apply-bracket {
  color: #17120a;
  transform: translateX(-1px);
}

.apply-button:hover .apply-bracket:last-child {
  transform: translateX(1px);
}

.partners-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(158, 164, 184, 0.34);
  font-size: 7px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.partners-note > span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(142, 201, 174, 0.7);
  box-shadow: 0 0 9px rgba(142, 201, 174, 0.6);
}

.partners-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(146, 152, 172, 0.24);
  font-size: 7px;
  letter-spacing: 0.22em;
}

.partners-foot-end {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.footer-console {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(230, 199, 143, 0.44);
  font-family: var(--font-en);
  font-size: 7px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 300ms var(--ease-out), text-shadow 300ms var(--ease-out);
}

.footer-console:hover {
  color: var(--gold-bright);
  text-shadow: 0 0 16px rgba(230, 199, 143, 0.55);
}

/* ---------- 7. 监控中枢：默认隐藏，显式打开 ---------- */
body:not(.console-mode) #deck {
  display: none !important;
}

body.console-mode #deck {
  display: block;
  background:
    linear-gradient(180deg, rgba(4, 5, 10, 0) 0%, rgba(4, 5, 10, 0.55) 8%, rgba(4, 5, 10, 0.92) 24%, #030409 100%);
  animation: consoleIn 760ms var(--ease-out) both;
}

body.console-mode .panel,
body.console-mode .stat-card,
body.console-mode .identity-strip {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008) 52%),
    rgba(8, 11, 20, 0.56);
}

body.console-mode .deck-head {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* ---------- 8. 入驻申请弹窗 ---------- */
body.join-open {
  overflow: hidden;
}

.join-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  background: rgba(2, 3, 8, 0.72);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  pointer-events: none;
  transition: opacity 420ms var(--ease-out), visibility 0s linear 420ms;
}

.join-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 420ms var(--ease-out), visibility 0s linear 0s;
}

.join-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100svh - 48px);
  padding: 36px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(93, 76, 180, 0.14), transparent 62%),
    linear-gradient(155deg, rgba(18, 22, 38, 0.94), rgba(5, 7, 13, 0.97));
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translateY(20px) scale(0.98);
  transition: transform 520ms var(--ease-out);
}

.join-modal.open .join-card {
  transform: translateY(0) scale(1);
}

.join-card::-webkit-scrollbar {
  display: none;
}

.join-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(205, 210, 226, 0.5);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 300ms ease, border-color 300ms ease, background-color 300ms ease;
}

.join-close:hover {
  border-color: rgba(230, 199, 143, 0.32);
  background: rgba(230, 199, 143, 0.05);
  color: var(--gold-bright);
}

.join-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: rgba(230, 199, 143, 0.56);
  font-size: 8px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.join-kicker > span {
  width: 21px;
  height: 1px;
  background: linear-gradient(90deg, rgba(230, 199, 143, 0.8), transparent);
}

.join-title {
  margin: 0;
  color: #f5f6fa;
  font-family: var(--font);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.join-sub {
  margin: 14px 0 0;
  color: rgba(184, 190, 208, 0.5);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.9;
}

.join-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.join-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.join-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.join-field > span {
  color: rgba(196, 204, 224, 0.36);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.join-field input,
.join-field select,
.join-field textarea {
  width: 100%;
  padding: 9px 2px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #f4f6fb;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.03em;
  caret-color: var(--gold);
  transition: border-color 300ms var(--ease-out);
}

.join-field textarea {
  min-height: 64px;
  resize: vertical;
  line-height: 1.7;
}

.join-field select {
  color-scheme: dark;
  cursor: pointer;
}

.join-field select option {
  background: #0b0e18;
  color: #f4f6fb;
}

.join-field input:focus,
.join-field select:focus,
.join-field textarea:focus {
  border-bottom-color: rgba(230, 199, 143, 0.62);
}

.join-field input::placeholder,
.join-field textarea::placeholder {
  color: rgba(190, 197, 214, 0.24);
}

.join-field input.is-invalid,
.join-field select.is-invalid {
  border-bottom-color: rgba(255, 140, 140, 0.72);
}

.join-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  margin-top: 4px;
  border: 1px solid rgba(255, 238, 205, 0.58);
  border-radius: 12px;
  background: linear-gradient(135deg, #fbf0d6 0%, #e9cf98 40%, #cfa363 74%, #bb8a48 100%);
  color: #1a1206;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  cursor: pointer;
  box-shadow:
    0 12px 36px rgba(201, 157, 85, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-out), filter 380ms var(--ease-out);
}

.join-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 16px 48px rgba(201, 157, 85, 0.36),
    0 0 28px rgba(255, 222, 160, 0.18);
}

.join-submit .join-arrow {
  font-family: var(--font-en);
  font-size: 15px;
  transition: transform 320ms var(--ease-out);
}

.join-submit:hover .join-arrow {
  transform: translateX(3px);
}

.join-note {
  margin: 0;
  color: rgba(150, 156, 176, 0.3);
  font-size: 7px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-align: center;
}

.join-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 0 4px;
  text-align: center;
}

.join-success[hidden] {
  display: none !important;
}

.join-success-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 24px;
  border: 1px solid rgba(142, 201, 174, 0.26);
  border-radius: 50%;
  box-shadow:
    0 0 46px rgba(142, 201, 174, 0.08),
    inset 0 0 0 10px rgba(142, 201, 174, 0.025);
}

.join-success-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(142, 201, 174, 0.42);
  border-radius: 50%;
  transform: scaleY(0.42) rotate(-24deg);
}

.join-success-mark span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a9dcc4;
  box-shadow: 0 0 20px rgba(142, 201, 174, 0.9);
}

.join-success-kicker {
  margin: 0 0 10px;
  color: rgba(142, 201, 174, 0.58);
  font-family: var(--font-en);
  font-size: 7px;
  letter-spacing: 0.26em;
}

.join-success-title {
  margin: 0;
  color: #f4f6fa;
  font-family: var(--font);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.join-success-copy {
  margin: 14px 0 0;
  color: rgba(184, 190, 208, 0.5);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.9;
}

.join-success-copy strong {
  color: rgba(230, 199, 143, 0.8);
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.join-done {
  min-height: 44px;
  margin-top: 26px;
  padding: 0 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(240, 240, 246, 0.76);
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 300ms ease, background-color 300ms ease, color 300ms ease;
}

.join-done:hover {
  border-color: rgba(230, 199, 143, 0.35);
  background: rgba(230, 199, 143, 0.05);
  color: var(--gold-bright);
}

/* ---------- 9. 动效 ---------- */
@keyframes nebulaDrift {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1); opacity: 0.78; }
  50% { opacity: 1; }
  100% { transform: translate3d(1.5%, 1.5%, 0) scale(1.06); opacity: 0.86; }
}

@keyframes panelPulse {
  0% { border-color: rgba(255, 255, 255, 0.075); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34); }
  36% { border-color: rgba(230, 199, 143, 0.26); box-shadow: 0 28px 84px rgba(0, 0, 0, 0.42), 0 0 58px rgba(230, 199, 143, 0.1); }
  100% { border-color: rgba(255, 255, 255, 0.075); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34); }
}

@keyframes consoleIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1180px) {
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-card {
    min-height: 244px;
  }

  .partners-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .partners-sub {
    max-width: 560px;
    text-align: left;
  }
}

@media (max-width: 980px) {
  .hero-login,
  .hero-access {
    width: min(760px, 100%);
  }

  .login-panel {
    gap: 22px;
    padding: 20px;
  }

  .login-fields {
    gap: 22px;
  }

  .partners-title {
    font-size: clamp(34px, 5.4vw, 52px);
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 106px 18px 82px;
  }

  .hero-title {
    margin-top: 26px;
    gap: 11px;
  }

  .title-line {
    font-size: clamp(44px, 10.8vw, 64px);
    letter-spacing: 4px;
    text-indent: 4px;
  }

  .title-subline {
    gap: 11px;
    font-size: 12px;
    letter-spacing: 0.4em;
    text-indent: 0.4em;
  }

  .title-subline::before,
  .title-subline::after {
    width: 22px;
  }

  .title-en {
    margin-top: 14px;
    font-size: 6.5px;
    letter-spacing: 0.34em;
    text-indent: 0.34em;
  }

  .hero-subtitle {
    margin-top: 18px;
    font-size: 11px;
    line-height: 1.85;
  }

  .hero-login {
    margin-top: 28px;
  }

  .login-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 18px;
    border-radius: 18px;
  }

  .login-fields {
    flex-direction: column;
    gap: 18px;
  }

  .field-line {
    padding-bottom: 8px;
  }

  .field-line input {
    font-size: 16px;
  }

  .login-panel-actions {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .login-submit {
    flex: 1;
    min-height: 48px;
  }

  .register-link {
    flex: 0 0 auto;
    align-self: center;
    white-space: nowrap;
  }

  .hero-meta {
    gap: 14px;
    margin-top: 26px;
  }

  .partners {
    padding: 88px 16px 54px;
  }

  .partners::before {
    top: 34px;
    font-size: clamp(76px, 24vw, 150px);
  }

  .partners-kicker {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 7px;
    letter-spacing: 0.16em;
  }

  .partners-title {
    font-size: 36px;
    letter-spacing: 0.06em;
  }

  .partners-sub {
    font-size: 10px;
  }

  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
  }

  .partner-card {
    min-height: 224px;
    padding: 16px;
    border-radius: 16px;
  }

  .partner-number {
    font-size: 8px;
  }

  .partner-orbit {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .partner-orbit::before {
    inset: 5px;
  }

  .partner-card-body {
    margin-top: 28px;
  }

  .partner-name {
    font-size: 20px;
  }

  .partner-en {
    font-size: 6px;
    letter-spacing: 0.14em;
  }

  .partner-desc {
    margin-top: 13px;
    font-size: 10.5px;
    line-height: 1.75;
  }

  .partner-card-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding-top: 14px;
  }

  .partner-school {
    font-size: 7.5px;
  }

  .partners-cta {
    margin-top: 30px;
  }

  .apply-button {
    width: min(320px, 100%);
    min-height: 52px;
    font-size: 12px;
  }

  .partners-note {
    font-size: 6px;
    letter-spacing: 0.12em;
    text-align: center;
  }

  .partners-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin-top: 32px;
    font-size: 6px;
  }

  .join-modal {
    padding: 14px;
  }

  .join-card {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .join-title {
    font-size: 25px;
  }

  .join-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .join-close {
    top: 14px;
    right: 14px;
  }
}

@media (max-width: 520px) {
  .partners-head {
    gap: 16px;
  }

  .partners-title {
    font-size: 32px;
  }

  .login-panel-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .login-submit {
    width: 100%;
  }

  .register-link {
    align-self: center;
  }

  .title-line {
    font-size: clamp(40px, 11.6vw, 54px);
  }
}

@media (max-width: 370px) {
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .partner-card {
    min-height: 0;
    padding: 20px;
  }

  .partner-card-body {
    margin-top: 24px;
  }

  .partner-card-foot {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
  }
}

@media (max-height: 760px) {
  .hero {
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 92px;
    padding-bottom: 64px;
  }

  .hero-title {
    margin-top: 20px;
    gap: 8px;
  }

  .title-line {
    font-size: clamp(42px, 6.4vw, 80px);
  }

  .title-en {
    margin-top: 10px;
  }

  .hero-subtitle {
    margin-top: 14px;
  }

  .hero-login {
    margin-top: 20px;
  }

  .login-panel {
    padding: 16px 20px;
  }

  .hero-meta {
    margin-top: 20px;
  }

  .scroll-cue {
    display: none;
  }
}


/* ===== v2.13 TRTC 语音教室 ===== */
.trtc-panel{position:fixed;left:22px;bottom:22px;z-index:70;width:270px;padding:16px 18px;border:1px solid rgba(124,199,255,.3);
  border-radius:16px;background:rgba(7,13,26,.96);box-shadow:0 20px 60px rgba(0,0,0,.5);backdrop-filter:blur(12px)}
.trtc-head{display:flex;align-items:center;gap:8px;font-size:14px;letter-spacing:.12em;color:var(--star, #7cc7ff)}
.trtc-dot{width:7px;height:7px;border-radius:50%;background:#5c7194}
.trtc-panel.live .trtc-dot{background:#86b5a0;box-shadow:0 0 10px rgba(134,181,160,.8)}
#trtcStatus{margin-left:auto;font-size:11px;color:#93a7c4;letter-spacing:.05em}
.trtc-body{display:flex;justify-content:space-between;gap:10px;margin:10px 0 14px;font-size:11px;color:#5c7194}
.trtc-actions{display:flex;gap:8px}
.trtc-actions .btn{flex:1;min-height:34px;font-size:12px}

/* ===== v2.13 TRTC 视频墙 ===== */
.trtc-wall[hidden]{display:none !important}
.trtc-wall{position:fixed;left:22px;bottom:210px;z-index:69;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:10px;width:min(640px,60vw);max-height:46vh;overflow-y:auto;padding:10px;border:1px solid rgba(124,199,255,.22);
  border-radius:16px;background:rgba(4,7,15,.9);backdrop-filter:blur(10px)}
.trtc-tile{position:relative;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#060b16;border:1px solid rgba(124,167,220,.15)}
.trtc-tile video{width:100%;height:100%;object-fit:cover}
.trtc-tile .tile-name{position:absolute;left:8px;bottom:6px;font-size:10px;color:#eaf2fb;
  background:rgba(0,0,0,.5);padding:2px 8px;border-radius:999px}

/* ===== v2.15 线上课堂抽屉 + 教师大屏 ===== */
#onlineClass{position:fixed;top:70px;right:0;bottom:0;z-index:75;width:min(380px,92vw);display:flex;flex-direction:column;
  background:rgba(6,11,20,.98);border-left:1px solid rgba(124,167,220,.18);box-shadow:-30px 0 80px rgba(0,0,0,.5);
  transform:translateX(105%);transition:transform .45s cubic-bezier(.22,1,.36,1)}
#onlineClass.open{transform:none}
.oc-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid rgba(124,167,220,.14);font-size:15px;letter-spacing:.12em;color:#7cc7ff}
.oc-head button{background:none;border:0;color:#5c7194;font-size:22px;cursor:pointer}
.oc-sec{padding:14px 18px;border-bottom:1px solid rgba(124,167,220,.08)}
.oc-kicker{font-size:10px;letter-spacing:.25em;color:#5c7194;text-transform:uppercase;margin-bottom:10px}
.oc-chats{display:flex;flex-direction:column;gap:8px;max-height:220px;overflow-y:auto}
.oc-chats.tall{max-height:52vh}
.oc-chat{padding:9px 12px;border:1px solid rgba(124,167,220,.12);border-radius:10px;background:rgba(255,255,255,.02);font-size:12px;color:#d8dee6;line-height:1.6}
.oc-chat b{color:#eaf2fb;margin-right:6px}
.oc-chat time{color:#5c7194;font-size:10px;margin-left:8px}
.oc-askrow{display:flex;gap:8px;margin-top:10px}
.oc-askrow input{flex:1;min-width:0;padding:10px 14px;border:1px solid rgba(124,167,220,.2);border-radius:999px;background:rgba(255,255,255,.03);color:#eaf2fb;font-size:12px;outline:none}
.oc-askrow .btn{min-height:36px;font-size:12px}
.oc-roster{display:flex;flex-direction:column;gap:8px;max-height:200px;overflow-y:auto}
.oc-person{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid rgba(124,167,220,.1);border-radius:10px;background:rgba(255,255,255,.015);font-size:12px;color:#d8dee6}
.oc-person .tag{font-size:9px;padding:2px 8px;border-radius:999px;border:1px solid rgba(124,167,220,.3);color:#93a7c4;white-space:nowrap}
.oc-person .tag.online{border-color:rgba(134,181,160,.45);color:#86b5a0}
.oc-person .tag.live{border-color:rgba(230,199,143,.5);color:#e6c78f}
.oc-person .tag.muted{border-color:rgba(255,139,139,.5);color:#f0a8a8}
.oc-person .tag.req{border-color:rgba(124,199,255,.55);color:#7cc7ff}
.oc-person .grow{flex:1}
.oc-person button{padding:4px 10px;border:1px solid rgba(124,167,220,.25);border-radius:999px;background:none;color:#93a7c4;font-size:10px;cursor:pointer;font-family:inherit}
.oc-person button:hover{color:#7cc7ff;border-color:#7cc7ff}
#lectureScreen{position:fixed;inset:70px 0 0 0;z-index:74;background:rgba(4,7,15,.98);padding:24px 4vw;overflow-y:auto}
.ls-head{display:flex;align-items:center;gap:18px;margin-bottom:20px}
.ls-head span:first-child{font-size:18px;letter-spacing:.15em;color:#e6c78f}
#lsCode{font-size:15px;color:#7cc7ff;letter-spacing:.2em}
.ls-head button{margin-left:auto;background:none;border:0;color:#5c7194;font-size:26px;cursor:pointer}
.ls-cols{display:grid;grid-template-columns:1.2fr .8fr;gap:24px}
@media(max-width:900px){.ls-cols{grid-template-columns:1fr}}

/* ===== v2.16.3 监控中枢闸门 ===== */
.lecture-gate{position:absolute;inset:64px 0 0 0;z-index:5;display:grid;place-items:center;background:rgba(4,7,15,.94);border-radius:0 0 14px 14px}
.lecture-gate[hidden]{display:none !important}
.gate-card{text-align:center;max-width:420px;padding:30px}
.gate-mark{font-size:44px;color:#5c7194;margin-bottom:14px}
.gate-title{font-size:19px;letter-spacing:.15em;color:#eaf2fb;margin:0 0 10px}
.gate-sub{font-size:12px;color:#93a7c4;line-height:1.8;margin:0 0 24px}

/* ===== v2.16.5 通用模态框 ===== */
#uiModal{display:none;place-items:center}
#uiModal.open{display:grid}
.ui-card{width:min(460px,92vw);padding:26px 28px;border:1px solid rgba(124,167,220,.22);border-radius:18px;
  background:linear-gradient(170deg,#0b1526,#070d1a);box-shadow:0 40px 100px rgba(0,0,0,.6)}
.ui-card .ui-sub{margin:0;color:#5c7194;font-size:12px}
.ui-card .field label{display:block;font-size:10px;letter-spacing:.25em;color:#5c7194;text-transform:uppercase;margin-bottom:6px}
.ui-card .field input{width:100%;padding:11px 14px;border:1px solid rgba(124,167,220,.2);border-radius:11px;
  background:rgba(255,255,255,.03);color:#eaf2fb;font-size:14px;outline:none;font-family:inherit}
.ui-card .field input:focus{border-color:#7cc7ff}

/* ===== v2.18 工作台 + 星环 AI ===== */
.workbench-page{margin-top:0}
.wb-tabs{display:flex;gap:8px;padding:14px 18px 0}
.wb-tab{padding:9px 24px;border:1px solid var(--line);border-radius:999px;background:none;color:var(--muted);font-size:13px;cursor:pointer;font-family:inherit}
.wb-tab.active{border-color:rgba(230,199,143,.55);color:var(--gold);background:rgba(230,199,143,.07)}
#hubAiFloat{position:fixed;right:26px;bottom:26px;z-index:66;width:56px;height:56px;border-radius:50%;border:1px solid rgba(124,199,255,.5);
  background:radial-gradient(circle at 30% 30%,#123055,#070d1a);color:#7cc7ff;font-size:20px;cursor:pointer;
  box-shadow:0 0 28px rgba(124,199,255,.35);font-family:inherit}
#hubAiFloat:hover{transform:scale(1.07)}
#hubAiDrawer{position:fixed;top:0;right:0;bottom:0;z-index:91;width:min(400px,92vw);display:flex;flex-direction:column;
  background:rgba(6,11,20,.98);border-left:1px solid rgba(124,199,255,.2);box-shadow:-30px 0 80px rgba(0,0,0,.5);
  transform:translateX(105%);transition:transform .45s cubic-bezier(.22,1,.36,1)}
#hubAiDrawer.open{transform:none}

/* ===== v2.20 天文社区 ===== */
.community-page{margin-top:0}
.cm-composer{margin:16px 18px;padding:16px;border:1px solid rgba(124,167,220,.16);border-radius:14px;background:rgba(255,255,255,.015)}
.cm-composer textarea{width:100%;min-height:90px;padding:12px 14px;border:1px solid rgba(124,167,220,.2);border-radius:10px;background:rgba(255,255,255,.03);color:#eaf2fb;font-size:13px;outline:none;resize:vertical;font-family:inherit}
.cm-composer textarea:focus{border-color:#7cc7ff}
.cm-composer input{padding:9px 12px;border:1px solid rgba(124,167,220,.2);border-radius:9px;background:rgba(255,255,255,.03);color:#eaf2fb;font-size:12px;outline:none;font-family:inherit}
.cm-composer input:focus{border-color:#7cc7ff}
.cm-actions{display:flex;align-items:center;gap:10px;margin-top:10px;flex-wrap:wrap}
.cm-post{border:1px solid rgba(124,167,220,.14);border-radius:14px;padding:14px 16px;margin-bottom:14px;background:rgba(255,255,255,.015)}
.cm-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.cm-ava{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#1c3a63,#0c1830);color:#7cc7ff;font-size:13px;border:1px solid rgba(124,167,220,.2)}
.cm-author{font-size:13px;font-weight:600;color:#eaf2fb}
.cm-orgtag{font-size:9px;padding:2px 8px;border-radius:999px;border:1px solid rgba(124,167,220,.3);color:#93a7c4}
.cm-time{margin-left:auto;font-size:10px;color:#5c7194}
.cm-text{font-size:13px;color:#d8dee6;line-height:1.7;white-space:pre-wrap;word-break:break-word}
.cm-media{display:grid;gap:8px;margin-top:10px}
.cm-media img{width:100%;max-width:360px;border-radius:10px;border:1px solid rgba(124,167,220,.15)}
.cm-media video{width:100%;max-width:360px;border-radius:10px;background:#000}
.cm-media audio{width:100%;max-width:320px}
.cm-meta{margin-top:10px;font-size:11px;color:#e6c78f;background:rgba(230,199,143,.06);border:1px solid rgba(230,199,143,.2);border-radius:8px;padding:8px 12px;line-height:1.7}
.cm-foot{display:flex;align-items:center;gap:14px;margin-top:12px}
.cm-like{background:none;border:0;color:#93a7c4;font-size:12px;cursor:pointer;font-family:inherit;display:flex;align-items:center;gap:5px}
.cm-like:hover{color:#e6c78f}
.cm-like.liked{color:#e6c78f}
.cm-comments{margin-top:10px;border-top:1px dashed rgba(124,167,220,.12);padding-top:10px;display:grid;gap:8px}
.cm-comment{font-size:12px;color:#c9d6e8;line-height:1.6}
.cm-comment b{color:#eaf2fb}
.cm-comment.ai b{color:#7cc7ff}
.cm-comment time{color:#5c7194;font-size:10px;margin-left:8px}
.cm-crow{display:flex;gap:8px;margin-top:4px}
.cm-crow input{flex:1;padding:8px 12px;border:1px solid rgba(124,167,220,.18);border-radius:999px;background:rgba(255,255,255,.03);color:#eaf2fb;font-size:12px;outline:none;font-family:inherit}
.cm-crow .btn{min-height:32px;font-size:11px}

/* v2.21 入驻星系卡片跳转 */
a.partner-link{display:block;color:inherit;text-decoration:none}
a.partner-link:hover{border-color:rgba(230,199,143,.55);transform:translateY(-6px);box-shadow:0 24px 60px rgba(0,0,0,.45)}
a.partner-link .partner-name::after{content:" ↗";font-size:.6em;color:#5c7194}

/* v2.24 文创商城 */
.shop-page{margin-top:0}
.shop-card{border:1px solid rgba(124,167,220,.15);border-radius:14px;overflow:hidden;background:rgba(255,255,255,.015);transition:.3s;display:flex;flex-direction:column}
.shop-card:hover{transform:translateY(-4px);border-color:rgba(230,199,143,.4)}
.shop-ico{height:120px;display:grid;place-items:center;font-size:40px;color:#7cc7ff;
  background:radial-gradient(circle at 30% 20%,rgba(124,199,255,.14),transparent 55%),linear-gradient(160deg,#0a1526,#060b16)}
.shop-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:8px;flex:1}
.shop-name{font-size:15px;font-weight:600;color:#eaf2fb}
.shop-desc{font-size:11px;color:#93a7c4;line-height:1.6;flex:1}
.shop-foot{display:flex;align-items:center;justify-content:space-between;margin-top:4px}
.shop-price{color:#e6c78f;font-size:14px}
.shop-x{padding:7px 18px;border:1px solid rgba(230,199,143,.45);border-radius:999px;background:rgba(230,199,143,.07);color:#e6c78f;font-size:12px;cursor:pointer;font-family:inherit}
.shop-x:hover{background:rgba(230,199,143,.15)}
.shop-x:disabled{opacity:.4;cursor:not-allowed}

/* v2.26 手机答题浮层 */
.mq-sheet{position:fixed;inset:0;z-index:95;display:grid;place-items:end center;background:rgba(2,5,10,.6);backdrop-filter:blur(6px)}
.mq-sheet[hidden]{display:none !important}
.mq-card{width:min(560px,94vw);max-height:86vh;overflow-y:auto;padding:20px 22px;border:1px solid rgba(124,199,255,.3);border-radius:20px 20px 0 0;background:#0a1220}
@media(min-width:640px){.mq-sheet{place-items:center}.mq-card{border-radius:20px}}
.mq-head{display:flex;align-items:center;justify-content:space-between}
.mq-head span{font-size:12px;letter-spacing:.2em;color:#7cc7ff}
.mq-head button{background:none;border:0;color:#5c7194;font-size:22px;cursor:pointer}
.mq-opt{display:block;width:100%;text-align:left;margin-bottom:8px;padding:12px 16px;border:1px solid rgba(124,167,220,.25);border-radius:12px;background:rgba(255,255,255,.03);color:#d8dee6;font-size:14px;cursor:pointer;font-family:inherit}
.mq-opt:hover{border-color:#7cc7ff}
.mq-input{width:100%;padding:12px 14px;border:1px solid rgba(124,167,220,.25);border-radius:12px;background:rgba(255,255,255,.03);color:#eaf2fb;font-size:14px;outline:none;font-family:inherit}
.mq-send{width:100%;margin-top:10px;padding:12px;border:0;border-radius:12px;background:linear-gradient(135deg,#2f7fe0,#1c5cb8);color:#fff;font-size:15px;cursor:pointer;font-family:inherit}

/* v2.28 导航一行化 */
.top-nav{display:flex !important;flex-wrap:nowrap !important;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
.top-nav::-webkit-scrollbar{display:none}
.top-nav-link{padding:8px 14px !important;font-size:12px !important;flex:0 0 auto}
.top-nav-sep{flex:0 0 auto}
@media(max-width:1100px){.brand-sub{display:none !important}}

/* v2.31 手机模式 */
body.mm-on > *:not(#mobileMode):not(#toast){display:none !important}
#mmLogin input,.mm-q-input{width:100%;padding:14px 16px;border:1px solid rgba(124,167,220,.25);border-radius:12px;background:rgba(255,255,255,.04);color:#eaf2fb;font-size:16px;outline:none;font-family:inherit;box-sizing:border-box}
#mmLogin input:focus,.mm-q-input:focus{border-color:#7cc7ff}
.mobile-mode-active{overflow:hidden}
#mobileMode{position:fixed;inset:0;z-index:120;background:#04070f;overflow-y:auto}
.mm-wrap{max-width:520px;margin:0 auto;padding:18px 16px 40px;min-height:100%;display:flex;flex-direction:column}
.mm-head{display:flex;align-items:center;gap:10px;padding:6px 0 18px}
.mm-head img{width:36px;height:36px;border-radius:50%}
.mm-head span{font-size:14px;letter-spacing:.1em;color:#7cc7ff}
.mm-card{border:1px solid rgba(124,167,220,.18);border-radius:16px;padding:20px;background:rgba(255,255,255,.02);margin-bottom:14px}
.mm-tag{font-size:11px;letter-spacing:.2em;color:#7cc7ff;margin-bottom:8px}
.mm-title{font-size:18px;color:#eaf2fb;line-height:1.7;margin-bottom:16px}
.mm-opt{display:block;width:100%;text-align:left;margin-bottom:10px;padding:15px 18px;border:1px solid rgba(124,167,220,.28);border-radius:14px;background:rgba(255,255,255,.03);color:#eaf2fb;font-size:16px;cursor:pointer;font-family:inherit}
.mm-opt:active{border-color:#7cc7ff;background:rgba(124,199,255,.08)}
.mm-opt.sel{border-color:#7cc7ff;background:rgba(124,199,255,.1)}
.mm-msg{min-height:22px;margin-top:12px;font-size:13px;text-align:center;color:#86b5a0}
.mm-foot{margin-top:auto;padding-top:20px;text-align:center;color:#5c7194;font-size:11px;letter-spacing:.2em}
