:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --ink: #1d1d1f;
  --muted: #86868b;
  --line: #e5e5e7;
  --purple: #6b4eff;
  --purple-soft: #eeeaff;
  --green: #29a263;
  --orange: #f09254;
  --shadow: 0 18px 50px rgba(31, 31, 42, .06);
  --radius: 20px;
  /* 系统字体栈：不依赖外部 CDN，各平台自动用本机最合适的中文字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; overflow: hidden; }
.topbar { height: 72px; padding: 0 clamp(20px, 5vw, 76px); display: flex; align-items: center; gap: 40px; background: rgba(245,245,247,.85); border-bottom: 1px solid rgba(229,229,231,.7); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(22px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #1d1d1f; font-size: 15px; }
.top-nav { display: flex; align-items: center; gap: 30px; flex: 1; }
.top-nav a { color: #6e6e73; font-size: 13px; transition: color .2s; }
.top-nav a:hover, .top-nav a.active { color: var(--ink); }
.top-nav a.active { font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.icon-button, .profile-chip { color: #6e6e73; background: transparent; }
.icon-button { width: 30px; height: 30px; display: grid; place-items: center; font-size: 22px; line-height: 1; position: relative; }
.notification-dot { position: absolute; right: 4px; top: 3px; width: 5px; height: 5px; border-radius: 50%; background: #ff5f57; }
.profile-chip { display: flex; align-items: center; gap: 9px; padding: 3px 0 3px 8px; font-size: 13px; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #ded8ff; color: #5541c8; font-weight: 600; }
.chevron { font-size: 16px; color: #999; }

.hero-band { min-height: 420px; max-width: 1440px; margin: 0 auto; padding: 90px clamp(24px, 8vw, 128px) 70px; display: flex; justify-content: space-between; align-items: center; position: relative; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-kicker, .panel-eyebrow { margin: 0; color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; color: #727277; }
.live-pulse, .status-light { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #b9b9bd; vertical-align: middle; }
.live-pulse { background: #fe625a; box-shadow: 0 0 0 4px rgba(254,98,90,.12); }
.status-light.green { background: var(--green); box-shadow: 0 0 0 3px rgba(41,162,99,.11); }
.status-light.yellow { background: #e6ab35; }
.status-light.gray { background: #c7c7cb; }
.hero-copy h1 { margin: 0; font-size: clamp(42px, 5.7vw, 80px); line-height: 1.08; letter-spacing: -.065em; font-weight: 700; }
.hero-copy h1 em { color: var(--purple); font-style: normal; }
.hero-description { margin: 26px 0 30px; color: #6e6e73; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 16px; }
.primary-button, .secondary-button, .dark-button { min-height: 44px; padding: 0 19px; border-radius: 24px; display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; transition: transform .2s, box-shadow .2s, background .2s; }
.primary-button { background: var(--ink); color: #fff; box-shadow: 0 6px 16px rgba(29,29,31,.12); }
.primary-button:hover, .dark-button:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(29,29,31,.18); }
.button-icon { font-size: 20px; line-height: 0; font-weight: 400; }
.secondary-button { color: #6e6e73; background: transparent; padding-left: 4px; }
.secondary-button:hover, .text-button:hover { color: var(--purple); }
.hero-orbit { width: min(37vw, 460px); aspect-ratio: 1; margin-right: 2vw; position: relative; opacity: .95; }
.orbit { position: absolute; inset: 13%; border: 1px solid #ddd9f2; border-radius: 50%; transform: rotate(-20deg) skewX(12deg); }
.orbit-one { inset: 8%; transform: rotate(26deg) skewX(-18deg); }
.orbit-two { inset: 20%; border-color: #d3cafe; transform: rotate(-45deg) skewX(17deg); }
.orbit-three { inset: 29%; border-color: #ece9ff; transform: rotate(54deg) skewX(-13deg); }
.core-glow { position: absolute; width: 31%; height: 31%; top: 34%; left: 34%; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #d9d1ff, #8e78ff 46%, #6047e9 75%, #3b2aaf); box-shadow: 0 0 60px rgba(107,78,255,.34), inset -14px -15px 24px rgba(45,27,139,.3); }
.core-symbol { position: absolute; top: 44%; left: 46%; color: white; font-size: 24px; }
.orbit-label { position: absolute; color: #9a92c1; font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; }
.label-one { top: 14%; left: 9%; }.label-two { right: 6%; top: 51%; }.label-three { bottom: 16%; left: 17%; }

.console-section { max-width: 1440px; margin: 0 auto; padding: 40px clamp(24px, 5vw, 76px) 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2, .user-welcome h2 { margin: 9px 0 0; font-size: clamp(24px, 3vw, 35px); line-height: 1.2; letter-spacing: -.045em; }
.console-switcher { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.6); }
.switch-button { min-height: 34px; padding: 0 17px; border-radius: 18px; color: var(--muted); background: transparent; font-size: 12px; transition: color .2s, background .2s, box-shadow .2s; }
.switch-button.active { color: var(--ink); background: #fff; box-shadow: 0 2px 10px rgba(29,29,31,.09); font-weight: 600; }
.view-panel { display: none; animation: panelIn .35s ease both; }.view-panel.active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { min-height: 170px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); position: relative; overflow: hidden; }
.stat-card-dark { color: #fff; background: #202023; border-color: #202023; }
.stat-top, .stat-bottom, .panel-header, .system-line, .system-footer { display: flex; justify-content: space-between; align-items: center; }
.stat-top { color: #77777c; font-size: 12px; }.stat-card-dark .stat-top { color: #b2b2b5; }
.stat-icon { color: #5b48de; font-size: 17px; }.stat-icon.purple { color: #a293ff; }.stat-icon.orange { color: var(--orange); }
.stat-value { display: block; margin: 18px 0 13px; font-size: 31px; letter-spacing: -.06em; }.stat-bottom { color: #a2a2a7; font-size: 10px; gap: 8px; justify-content: flex-start; }.trend-up { color: var(--green); font-weight: 600; }.stat-card-dark .trend-up { color: #85d2a6; }
.sparkline { height: 34px; margin-top: 13px; display: flex; align-items: end; gap: 5px; }.sparkline i, .mini-bars i { display: block; flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(#a497ff, #6854e8); opacity: .85; }.mini-progress, .meter { height: 5px; margin-top: 22px; overflow: hidden; border-radius: 3px; background: #efeff1; }.mini-progress span, .meter span { display: block; height: 100%; border-radius: inherit; background: #8a78f7; }.mini-bars { height: 26px; margin-top: 17px; display: flex; align-items: end; gap: 5px; }.meter { background: #f2e9dd; }.meter span { background: var(--orange); }.stat-card-dark .sparkline i { background: linear-gradient(#aa9bff, #5543d2); }
.dashboard-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 14px; }.lower-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; margin-top: 14px; }
.panel { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }.panel-header { align-items: start; }.panel-eyebrow { color: #aaaab0; font-size: 9px; }.panel h3 { margin: 8px 0 0; font-size: 17px; letter-spacing: -.03em; }.more-button { color: #aaaab0; padding: 0; background: transparent; letter-spacing: 2px; }.text-button { padding: 0; color: #717176; background: transparent; font-size: 12px; }.chart-meta { display: flex; align-items: baseline; gap: 12px; margin-top: 32px; }.chart-meta strong { font-size: 31px; letter-spacing: -.05em; }.chart-meta > span:last-child { color: #aaaab0; font-size: 11px; }.chart-wrap { height: 190px; margin-top: 12px; position: relative; padding-left: 35px; }.chart-y { position: absolute; inset: 0 auto 20px 0; display: flex; flex-direction: column; justify-content: space-between; color: #b2b2b6; font: 9px var(--font-mono); }.line-chart { width: 100%; height: calc(100% - 20px); overflow: visible; border-bottom: 1px solid #f0f0f2; background: repeating-linear-gradient(to bottom, transparent 0, transparent 39px, #f2f2f4 40px); }.chart-x { display: flex; justify-content: space-between; color: #aaaab0; font-size: 9px; padding-top: 9px; }.room-item { display: flex; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid #f0f0f2; }.room-thumb { width: 49px; height: 49px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: #fff; font-weight: 700; font-size: 16px; }.thumb-blue { background: linear-gradient(135deg, #92d5ff, #5274dd); }.thumb-orange { background: linear-gradient(135deg, #ffc995, #e66f3b); }.thumb-purple { background: linear-gradient(135deg, #cabaff, #6954e7); }.room-info { min-width: 0; flex: 1; }.room-info strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.room-info span { display: block; margin-top: 7px; color: #a0a0a5; font-size: 10px; }.room-info .status-light { margin-right: 6px; }.room-menu { color: #a8a8ad; background: transparent; letter-spacing: 2px; }.new-room-button { width: 100%; min-height: 40px; margin-top: 15px; border: 1px dashed #d1d1d4; border-radius: 12px; color: #76767c; background: transparent; font-size: 12px; transition: background .2s; }.new-room-button:hover { background: #fafafa; }
.activity-row { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid #f0f0f2; }.activity-row:last-child { border: 0; }.activity-symbol, .small-card-icon, .inspiration-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; flex: 0 0 auto; }.activity-symbol { font-size: 15px; }.activity-symbol.lavender, .purple-bg { color: #684fe2; background: #eeeaff; }.activity-symbol.mint, .mint-bg { color: #198a62; background: #e1f6ea; }.activity-symbol.peach, .orange-bg { color: #d96d2d; background: #ffedde; }.activity-row div { flex: 1; }.activity-row strong { display: block; font-size: 11px; font-weight: 500; }.activity-row span:not(.activity-symbol):not(.activity-arrow) { display: block; margin-top: 6px; color: #aaaab0; font-size: 10px; }.activity-arrow { color: #a8a8ad; }.all-good { color: var(--green); font-size: 10px; }.all-good .status-light { margin-right: 7px; }.system-line { min-height: 47px; border-bottom: 1px solid #f0f0f2; color: #6e6e73; font-size: 11px; }.system-value { color: #6e6e73; }.system-value .status-light { margin-right: 7px; }.system-footer { padding-top: 17px; color: #aaaab0; font-size: 10px; }.refresh-button { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #6b4eff; background: #f0edff; font-size: 17px; }
.user-welcome { display: flex; justify-content: space-between; align-items: end; padding: 28px 0 28px; }.user-welcome p:not(.section-kicker) { margin: 11px 0 0; color: #77777c; font-size: 13px; }.user-grid { display: grid; grid-template-columns: 1.45fr .55fr .55fr; gap: 14px; }.user-feature { min-height: 285px; display: flex; overflow: hidden; border-radius: var(--radius); background: #1f2024; color: #fff; position: relative; }.feature-copy { width: 56%; padding: 32px; position: relative; z-index: 2; }.feature-tag { color: #b3a6ff; font: 10px var(--font-mono); letter-spacing: .12em; }.feature-copy h3 { margin: 22px 0 13px; font-size: 27px; line-height: 1.22; letter-spacing: -.055em; }.feature-copy p { max-width: 260px; color: #b8b8bc; font-size: 11px; line-height: 1.7; }.dark-button { margin-top: 15px; color: #1f2024; background: #fff; }.feature-art { position: absolute; inset: 0 0 0 53%; overflow: hidden; background: radial-gradient(circle at 54% 49%, rgba(123,102,255,.8) 0, rgba(84,66,200,.36) 18%, transparent 50%), radial-gradient(circle at 75% 0%, rgba(236,158,103,.45), transparent 35%); }.feature-art:before, .feature-art:after { content: ""; position: absolute; border: 1px solid rgba(174,164,255,.35); border-radius: 50%; transform: rotate(35deg) skewX(-18deg); }.feature-art:before { width: 280px; height: 175px; top: 64px; left: 30px; }.feature-art:after { width: 190px; height: 120px; top: 89px; left: 76px; }.floating-card { position: absolute; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; background: rgba(255,255,255,.12); backdrop-filter: blur(15px); box-shadow: 0 12px 30px rgba(0,0,0,.2); }.card-script { top: 68px; right: 31px; width: 145px; padding: 15px; transform: rotate(7deg); }.card-script span { color: #cec9ff; font-size: 9px; }.card-script strong { display: block; margin-top: 12px; font-size: 15px; line-height: 1.35; letter-spacing: -.03em; }.card-script i { position: absolute; top: 10px; right: 12px; color: #c0b6ff; font-style: normal; }.card-time { right: 55px; bottom: 42px; padding: 9px 13px; color: #bdbdc3; font-size: 9px; transform: rotate(-5deg); }.card-time b { margin-left: 8px; color: #fff; font: 11px var(--font-mono); }.user-small-card { min-height: 285px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }.small-card-icon { margin-bottom: 24px; }.user-small-card h4 { margin: 0; font-size: 13px; }.user-small-card strong { display: block; margin-top: 23px; font-size: 43px; letter-spacing: -.07em; }.user-small-card p { margin: 4px 0 22px; color: #99999e; font-size: 11px; }.user-small-card a { color: #6d57ea; font-size: 11px; }.inspiration-panel { margin-top: 14px; }.inspiration-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 19px; }.inspiration-item { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid #f0f0f2; border-radius: 13px; }.inspiration-item div:nth-child(2) { flex: 1; }.inspiration-item strong { display: block; font-size: 11px; font-weight: 500; }.inspiration-item span { display: block; margin-top: 6px; color: #a0a0a5; font-size: 9px; }.inspiration-item > span:last-child { margin: 0; color: #aaaab0; font-size: 14px; }.blue-bg { color: #3569ba; background: #e6f1ff; }.footer { max-width: 1440px; margin: auto; padding: 22px clamp(24px, 5vw, 76px) 40px; display: flex; justify-content: space-between; color: #aaaab0; font-size: 10px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(29,29,31,.28); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .2s; }.modal-backdrop.open { opacity: 1; pointer-events: auto; }.modal { width: min(100%, 440px); padding: 27px; border-radius: 20px; background: #fff; box-shadow: 0 25px 80px rgba(0,0,0,.2); transform: translateY(12px); transition: transform .2s; }.modal-backdrop.open .modal { transform: translateY(0); }.modal-header { display: flex; align-items: start; justify-content: space-between; margin-bottom: 24px; }.modal h3 { margin: 8px 0 0; font-size: 22px; letter-spacing: -.04em; }.modal-close { width: 28px; height: 28px; border-radius: 50%; color: #86868b; background: #f5f5f7; font-size: 21px; line-height: 1; }.modal label { display: block; margin-top: 16px; color: #6e6e73; font-size: 11px; }.modal input { display: block; width: 100%; height: 44px; margin-top: 8px; padding: 0 13px; border: 1px solid #e5e5e7; border-radius: 10px; color: #1d1d1f; outline: none; font-size: 13px; }.modal input:focus { border-color: #8b72ff; box-shadow: 0 0 0 3px rgba(107,78,255,.12); }.modal-actions { display: flex; justify-content: flex-end; gap: 11px; margin-top: 26px; }.modal-actions .secondary-button { padding: 0 14px; }.modal-actions .primary-button { min-height: 40px; }.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; padding: 12px 18px; border-radius: 22px; color: #fff; background: #1d1d1f; box-shadow: 0 10px 25px rgba(0,0,0,.18); font-size: 12px; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .25s, transform .25s; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
button:disabled { cursor: wait; opacity: .65; }
.role-badge { padding: 5px 11px; border-radius: 14px; background: #eeeaff; color: #684fe2; font-size: 10px; font-weight: 600; letter-spacing: .04em; }
/* 运行状态徽标（由 nav.js 的 setStatus 使用），替代以前各页面写死的内联颜色 */
.role-badge.ok { background: #e1f6ea; color: #198a62; }
.role-badge.warn { background: #ffedde; color: #d96d2d; }
.role-badge.off { background: #f1f1f3; color: #77777c; }
.role-badge[hidden] { display: none; }
/* 顶栏右侧：页面自己的控件 + 全站统一的账号区（nav.js 只渲染后者） */
#pageActions, [data-nav-actions] { display: flex; align-items: center; gap: 16px; }
.logout-button { margin-left: 6px; font-size: 11px; }
.entry-section { min-height: 70vh; }.entry-heading { margin-bottom: 38px; }.entry-heading h2 { margin: 12px 0 0; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.045em; }.entry-heading p:not(.section-kicker) { margin: 12px 0 0; color: #77777c; font-size: 13px; }.entry-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }.entry-card { position: relative; display: block; padding: 38px 33px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }.entry-card:hover { transform: translateY(-4px); box-shadow: 0 22px 55px rgba(31,31,42,.09); }.entry-icon { display: grid; place-items: center; width: 47px; height: 47px; margin-bottom: 27px; border-radius: 14px; font-size: 21px; }.entry-admin .entry-icon { color: #684fe2; background: #eeeaff; }.entry-user .entry-icon { color: #198a62; background: #e1f6ea; }.entry-card h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.04em; }.entry-card p { margin: 0; color: #77777c; font-size: 12px; line-height: 1.7; }.entry-arrow { position: absolute; right: 28px; top: 28px; color: #b4b4b9; font-size: 21px; }.user-welcome-actions { display: flex; align-items: center; gap: 16px; }
.auth-section { min-height: 70vh; display: grid; place-items: center; padding: 40px 20px; }.auth-card { width: min(100%, 400px); padding: 36px 34px; }.auth-title { margin: 10px 0 0; font-size: 26px; letter-spacing: -.04em; }.auth-sub { margin: 10px 0 0; color: #77777c; font-size: 12px; line-height: 1.7; }.auth-submit { width: 100%; justify-content: center; margin-top: 24px; }.auth-error { min-height: 18px; margin: 14px 0 0; color: #d4534d; font-size: 11px; }.auth-foot { margin: 22px 0 0; color: #99999e; font-size: 11px; text-align: center; }.auth-foot a { color: #684fe2; }
/* 状态页（403/404）里的操作按钮行 */
.page-actions-row { display: flex; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.page-actions-row .primary-button, .page-actions-row .secondary-button { min-height: 40px; }
.host-section { max-width: 1440px; margin: 0 auto; padding: 40px clamp(24px, 5vw, 76px) 90px; display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.host-settings { position: sticky; top: 92px; }.host-settings.collapsed { display: none; }.host-settings .panel-header { margin-bottom: 18px; }.field-label { display: block; margin-top: 16px; color: #6e6e73; font-size: 11px; font-weight: 600; }.field-label span { display: block; margin-top: 6px; font-weight: 400; color: #a0a0a5; font-size: 10px; line-height: 1.6; }.field-input { display: block; width: 100%; height: 44px; margin-top: 8px; padding: 0 13px; border: 1px solid #e5e5e7; border-radius: 10px; color: #1d1d1f; outline: none; font-size: 13px; background: #fff; }.field-input:focus { border-color: #8b72ff; box-shadow: 0 0 0 3px rgba(107,78,255,.12); }.persona-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }.persona-chip { min-height: 38px; border: 1px solid #e5e5e7; border-radius: 10px; color: #6e6e73; background: #fff; font-size: 12px; }.persona-chip.active { border-color: #8b72ff; color: #684fe2; background: #f4f1ff; font-weight: 600; }.host-actions { display: flex; gap: 10px; margin-top: 22px; }.host-actions .primary-button, .host-actions .secondary-button { flex: 1; justify-content: center; min-height: 40px; padding: 0 10px; font-size: 12px; }.host-hint { margin: 18px 0 0; color: #a0a0a5; font-size: 10px; line-height: 1.6; }.host-main { min-width: 0; }.host-status-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }.host-state { color: #6e6e73; font-size: 12px; }.host-state .status-light { margin-right: 7px; }.teleprompter-card { min-height: 320px; padding: 44px clamp(28px, 5vw, 60px); border-radius: var(--radius); background: #1f2024; color: #fff; position: relative; overflow: hidden; }.teleprompter-card:after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(123,102,255,.35), transparent 65%); }.teleprompter-danmaku { margin: 22px 0 14px; color: #b8b8bc; font-size: 15px; }.teleprompter-reply { margin: 0; max-width: 760px; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.35; letter-spacing: -.04em; font-weight: 500; }.teleprompter-reply.thinking { color: #a99cf2; }.teleprompter-user { display: block; margin-top: 18px; color: #78787d; font-size: 11px; }.queue-row { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; }.queue-label { color: #6e6e73; font-size: 11px; }.queue-count { min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 10px; background: #eeeaff; color: #684fe2; font-size: 11px; font-weight: 600; }.history-list { display: flex; flex-direction: column; gap: 8px; }.history-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; animation: panelIn .3s ease both; }.history-left { min-width: 0; }.history-user { color: #684fe2; font-size: 11px; font-weight: 600; }.history-danmaku { margin: 6px 0 4px; color: #a0a0a5; font-size: 11px; }.history-reply { margin: 0; color: #1d1d1f; font-size: 13px; line-height: 1.5; }.history-time { flex: 0 0 auto; color: #b4b4b9; font: 10px var(--font-mono); }
@media (max-width: 900px) { .topbar { gap: 22px; }.top-nav { gap: 16px; }.hero-band { padding-top: 65px; }.hero-orbit { width: 36vw; }.stat-grid { grid-template-columns: repeat(2, 1fr); }.dashboard-grid, .lower-grid { grid-template-columns: 1fr; }.user-grid { grid-template-columns: 1fr 1fr; }.user-feature { grid-column: 1 / -1; }.inspiration-list { grid-template-columns: 1fr; }.host-section { grid-template-columns: 1fr; }.host-settings { position: static; }.teleprompter-card { min-height: 250px; padding: 30px 24px; } }
@media (max-width: 620px) { .topbar { height: 62px; padding: 0 20px; }.top-nav { display: none; }.top-actions { margin-left: auto; gap: 8px; }.profile-name, .chevron { display: none; }.hero-band { min-height: 640px; display: block; padding: 62px 24px 0; }.hero-copy h1 { font-size: 49px; }.hero-description { max-width: 280px; font-size: 14px; }.hero-orbit { width: 310px; max-width: 100%; margin: 46px auto 0; }.console-section { padding: 28px 20px 55px; }.section-heading { display: block; }.console-switcher { width: 100%; margin-top: 20px; }.switch-button { flex: 1; padding: 0 8px; }.stat-grid { gap: 9px; }.stat-card { min-height: 145px; padding: 17px; }.stat-value { margin: 14px 0 10px; font-size: 25px; }.stat-bottom { display: block; line-height: 1.6; }.stat-bottom span { display: block; }.dashboard-grid, .lower-grid { gap: 9px; margin-top: 9px; }.panel { padding: 19px; }.chart-meta { margin-top: 25px; }.user-welcome { display: block; padding-top: 5px; }.user-welcome .primary-button { margin-top: 22px; }.user-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.feature-copy { width: 100%; padding: 25px; }.feature-copy h3 { font-size: 24px; }.feature-art { opacity: .35; inset: 0 0 0 32%; }.user-small-card { min-height: 220px; padding: 19px; }.user-small-card strong { font-size: 34px; margin-top: 19px; }.inspiration-panel { margin-top: 9px; }.footer { padding: 18px 20px 30px; }.footer span:last-child { display: none; }.entry-cards { grid-template-columns: 1fr; }.entry-card { padding: 30px 26px; }.user-welcome-actions { display: block; }.user-welcome-actions .primary-button { margin-top: 22px; }.user-welcome-actions .secondary-button { margin-top: 14px; padding-left: 0; } }

/* ---------------------------------------------------------------------------
   直播间通道列表（主播工作台侧栏）
   注意：类名用 channel- 前缀，不要用 room-*——styles.css 里已有 .room-item /
   .room-info / .room-thumb 供管理员仪表盘使用，同名会互相覆盖。
   --------------------------------------------------------------------------- */
.settings-divider { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.channel-list { display: flex; flex-direction: column; gap: 8px; max-height: 210px; overflow-y: auto; margin-bottom: 10px; }
.channel-empty { margin: 4px 0; font-size: 12px; color: var(--muted); }
.channel-item { display: grid; grid-template-columns: 10px 1fr; grid-template-rows: auto auto; gap: 2px 8px; align-items: center; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; text-align: left; transition: border-color .2s, background .2s; }
.channel-item:hover { border-color: #d8d8dc; }
.channel-item.active { border-color: #b4a4ff; background: #f6f3ff; }
.channel-dot { grid-row: span 2; width: 8px; height: 8px; border-radius: 50%; background: #c7c7cb; }
.channel-dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(41,162,99,.11); }
.channel-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-id { font-size: 10px; color: var(--muted); font-family: var(--font-mono); }
.channel-add-button { width: 100%; justify-content: center; }
.new-room-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
/* 坑：作者样式里的 display 会盖掉 hidden 属性的 UA 规则（display:none），
   导致设了 hidden 的元素照样显示。凡是设了 display 又想用 hidden 隐藏的元素都要补这条。 */
.new-room-form[hidden] { display: none; }
.danger-button { color: #c0392b; margin-top: 6px; }
.danger-button:hover { color: #a52f22; }
.current-room-label { display: flex; align-items: center; justify-content: space-between; }
.channel-tag { padding: 3px 10px; border-radius: 999px; background: var(--purple-soft); color: #5541c8; font-size: 10px; font-weight: 600; }
.channel-tag.live { background: #e1f6ea; color: #198a62; }
.channel-tag.paused { background: #fdeceb; color: #b23c33; }
.channel-tag.idle { background: #f1f1f3; color: #77777c; }

/* ---------------------------------------------------------------------------
   语音播出端（/host/live.html）
   --------------------------------------------------------------------------- */
.broadcast-section { max-width: 1440px; margin: 0 auto; padding: 40px clamp(24px, 5vw, 76px) 90px; }
.broadcast-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 14px; align-items: start; }
.broadcast-stage { padding: 20px; border-radius: var(--radius); background: #1f2024; color: #fff; box-shadow: var(--shadow); }
.broadcast-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.broadcast-stage-head .panel-eyebrow { color: #8f8fa6; }
.broadcast-state { display: inline-flex; align-items: center; color: #d6d6da; font-size: 12px; }
.broadcast-player { position: relative; z-index: 1; width: 100%; height: 210px; display: block; border-radius: 14px; background: #000; }
.broadcast-note { position: relative; z-index: 1; margin: 12px 0 0; color: #9a9aa2; font-size: 11px; line-height: 1.7; }
.broadcast-actions { display: grid; gap: 10px; margin-top: 20px; }
.broadcast-actions .primary-button, .broadcast-actions .secondary-button { justify-content: center; min-height: 46px; }
.select-input { display: block; width: 100%; height: 44px; margin-top: 8px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 13px; outline: none; }
.select-input:focus { border-color: #8b72ff; box-shadow: 0 0 0 3px rgba(107,78,255,.12); }
.diag-list { margin: 0; }
.diag-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid #f0f0f2; font-size: 12px; }
.diag-row:last-child { border-bottom: 0; }
.diag-row dt { flex: 0 0 auto; color: var(--muted); }
.diag-row dd { margin: 0; color: #4a4a4f; font: 11px var(--font-mono); text-align: right; word-break: break-all; }
.diag-row dd.error { color: #d4534d; font-family: inherit; font-size: 12px; }
.notice { margin-bottom: 16px; padding: 14px 17px; border-radius: 14px; font-size: 12px; line-height: 1.75; }
.notice.info { background: var(--purple-soft); color: #4b38a8; }
.notice.warn { background: #fdf3e3; color: #8a5a12; }
.notice.err { background: #fdeceb; color: #a5322a; }
.notice[hidden] { display: none; }
.taster-audio { width: 100%; margin-top: 12px; }
.taster-audio[hidden] { display: none; }
@media (max-width: 900px) { .broadcast-grid { grid-template-columns: 1fr; } .broadcast-player { height: 180px; } }

/* ---------------------------------------------------------------------------
   定价页（/pricing.html）
   --------------------------------------------------------------------------- */
.pricing-section { max-width: 1440px; margin: 0 auto; padding: 40px clamp(24px, 5vw, 76px) 90px; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.price-card.popular { border-color: #b4a4ff; }
.price-badge { position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 999px; background: var(--purple-soft); color: #5541c8; font-size: 10px; font-weight: 600; }
.price-name { margin: 0; font-size: 17px; letter-spacing: -.03em; }
.price-tagline { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.price-amount { display: flex; align-items: baseline; gap: 5px; margin: 18px 0 0; }
.price-amount strong { font-size: 34px; letter-spacing: -.055em; }
.price-amount span { color: var(--muted); font-size: 12px; }
.price-list { flex: 1; margin: 20px 0 0; padding: 0; list-style: none; }
.price-list li { padding: 9px 0; border-bottom: 1px solid #f0f0f2; color: #5c5c61; font-size: 12px; line-height: 1.5; }
.price-list li:last-child { border-bottom: 0; }
.price-list li b { color: var(--ink); font-weight: 600; }
.price-card .primary-button, .price-card .secondary-button { width: 100%; justify-content: center; margin-top: 18px; }
.pricing-note { margin: 26px 0 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.pricing-teaser { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }

/* ---------------------------------------------------------------------------
   套餐与用量
   --------------------------------------------------------------------------- */
.usage-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.usage-amount { font-size: 30px; letter-spacing: -.05em; }
.usage-amount small { margin-left: 6px; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.usage-meter { height: 7px; margin-top: 12px; overflow: hidden; border-radius: 4px; background: #efeff1; }
.usage-meter i { display: block; height: 100%; border-radius: inherit; background: #8a78f7; transition: width .3s; }
.usage-meter i.warn { background: var(--orange); }
.usage-meter i.danger { background: #d4534d; }
.usage-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.usage-block { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.usage-block span { display: block; color: var(--muted); font-size: 10px; }
.usage-block strong { display: block; margin-top: 7px; font-size: 16px; letter-spacing: -.03em; }
.usage-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.quota-inline { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); font-size: 11px; color: #5c5c61; }
.quota-inline b { color: var(--ink); }
.quota-inline.low { border-color: #f4d7a8; background: #fdf7ea; }
.quota-inline.empty { border-color: #f3c9c4; background: #fdeceb; }

/* ---------------------------------------------------------------------------
   数据表格（管理员：用户与套餐）
   --------------------------------------------------------------------------- */
.table-wrap { margin-top: 14px; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 500; text-align: left; white-space: nowrap; }
.data-table td { padding: 13px 12px; border-bottom: 1px solid #f0f0f2; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .user-cell { font-weight: 600; }
.data-table .mono { font-family: var(--font-mono); font-size: 11px; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.tag.plan-free { background: #f1f1f3; color: #77777c; }
.tag.plan-basic { background: #e1f6ea; color: #198a62; }
.tag.plan-standard { background: var(--purple-soft); color: #5541c8; }
.tag.plan-pro { background: #ffedde; color: #d96d2d; }
.tag.plan-internal { background: #1f2024; color: #fff; }
.tag.suspended { background: #fdeceb; color: #b23c33; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-button { padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #5c5c61; font-size: 11px; cursor: pointer; transition: border-color .2s, color .2s; }
.mini-button:hover { border-color: #c9c9cf; color: var(--ink); }
.mini-button.danger { color: #c0392b; }
.mini-button.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.table-empty { padding: 26px 0; color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 1100px) { .pricing-grid, .pricing-teaser { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .usage-blocks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .pricing-grid, .pricing-teaser { grid-template-columns: 1fr; } .usage-blocks { grid-template-columns: 1fr; } }
