:root {
  --bg: #f5f5f7;
  --surface: #fff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d9d9de;
  --blue: #0071e3;
  --green: #178a58;
  --red: #c9343b;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); letter-spacing: 0; }
button, a { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
.topbar { height: 64px; padding: 0 max(24px, calc((100vw - 1120px) / 2)); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.82); border-bottom: 1px solid rgba(0,0,0,.08); backdrop-filter: blur(20px); position: sticky; top: 0; z-index: 10; }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: #171719; border-radius: 8px; font-weight: 750; }
.brand > span:last-child { display: grid; gap: 1px; }
.brand strong { font-size: 14px; }.brand small { color: var(--muted); font-size: 10px; }
.text-button { border: 0; background: transparent; color: var(--blue); padding: 8px; }
main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 80px; }
.login-view { min-height: calc(100vh - 202px); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8%; }
.login-copy { max-width: 520px; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.login-copy h1 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.08; margin: 16px 0 22px; font-weight: 720; }
.login-copy h1 span { display: block; white-space: nowrap; }
.login-copy p { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 0 0 30px; max-width: 480px; }
.primary-button, .secondary-button, .danger-button { min-height: 42px; border: 1px solid transparent; border-radius: 7px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.primary-button { background: var(--blue); color: white; font-weight: 650; }
.secondary-button { background: white; color: var(--text); border-color: var(--line); }
.danger-button { background: white; color: var(--red); border-color: #e6c4c6; }
.primary-button:disabled, .secondary-button:disabled { opacity: .45; cursor: not-allowed; }
.login-actions { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.trial-button { min-height: 42px; padding: 0 16px; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; background: rgba(0,113,227,.07); color: var(--blue); border: 1px solid rgba(0,113,227,.28); border-radius: 7px; }
.trial-button:hover:not(:disabled) { background: rgba(0,113,227,.12); }
.trial-button .trial-title { font-size: 14px; font-weight: 650; line-height: 1.25; }
.trial-button .trial-window { font-size: 10px; color: var(--muted); line-height: 1.25; }
.trial-button:disabled { opacity: .55; cursor: not-allowed; }
.trial-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.trial-note.error-tone { color: var(--red); }
.trial-banner { margin-bottom: 14px; padding: 13px 16px; border: 1px solid rgba(0,113,227,.22); border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; background: rgba(0,113,227,.06); color: var(--text); font-size: 13px; line-height: 1.6; }
.trial-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(0,113,227,.09); color: var(--blue); font-size: 11px; font-weight: 620; }
.notice, .error, .inline-message { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.error { color: var(--red); }
.login-visual { min-height: 470px; display: grid; place-items: center; background: #e8e9ed; border-radius: 8px; padding: 38px; }
.api-window { width: min(430px, 100%); background: #171719; color: #fff; border: 1px solid #2c2c2f; border-radius: 8px; padding: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.window-top { display: flex; gap: 7px; padding-bottom: 22px; }.window-top i { width: 8px; height: 8px; border-radius: 50%; background: #55555b; }
.api-window code { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid #303034; font-size: 12px; overflow-wrap: anywhere; }
.api-window code span { color: #8e8e93; }.api-window code b { font-weight: 520; color: #d6e9ff; }
.signal { display: flex; align-items: center; gap: 8px; color: #a9a9af; font-size: 11px; margin-top: 22px; }.signal i { width: 7px; height: 7px; border-radius: 50%; background: #30d17b; box-shadow: 0 0 0 5px rgba(48,209,123,.12); }
.member-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.member-name { display: flex; align-items: center; gap: 14px; }.member-name img, .avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }.avatar { display: grid; place-items: center; background: #202124; color: white; font-weight: 700; }
.member-name h1 { font-size: 27px; margin: 4px 0 0; }
.status-band { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.status-band div { min-height: 104px; padding: 19px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); }
.status-band div:last-child { border-right: 0; }.status-band span { color: var(--muted); font-size: 11px; }.status-band strong { font-size: 17px; }
.workspace { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-top: 14px; padding: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }.section-head h2 { margin: 0; font-size: 18px; }.section-head p, .section-head > span { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.status-pill { padding: 5px 9px; border-radius: 6px; background: #eeeeF1; color: var(--muted); }
.status-pill.active { color: var(--green); background: #eaf7f1; }.status-pill.expired, .status-pill.revoked { color: var(--red); background: #fff0f1; }
.api-config { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.api-config label { min-width: 0; padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 8px; color: var(--muted); font-size: 10px; border: 1px solid var(--line); border-radius: 7px; }
.api-config code { grid-column: 1; color: var(--text); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.copy-button { border: 0; background: transparent; color: var(--blue); padding: 0 4px; }
.actions { display: flex; gap: 8px; margin-top: 18px; }
.model-list, .usage-list { border-top: 1px solid var(--line); }
.model-item, .usage-item { min-height: 58px; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; border-bottom: 1px solid var(--line); font-size: 12px; }.model-item:last-child, .usage-item:last-child { border-bottom: 0; }.model-item strong, .usage-item strong { font-weight: 620; }.model-item span, .usage-item span { color: var(--muted); text-align: right; }
.empty { color: var(--muted); font-size: 12px; padding: 20px 0; }
dialog { border: 0; border-radius: 8px; padding: 0; width: min(600px, calc(100% - 28px)); box-shadow: 0 30px 100px rgba(0,0,0,.25); } dialog::backdrop { background: rgba(0,0,0,.35); backdrop-filter: blur(4px); }
.dialog-body { padding: 32px; }.success-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: white; background: var(--green); font-weight: 800; }.dialog-body h2 { margin: 18px 0 6px; }.dialog-body p { color: var(--muted); margin: 0 0 18px; }
.secret-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 14px; background: #f1f1f3; border-radius: 7px; margin-bottom: 18px; }.secret-row code { overflow-wrap: anywhere; font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: #1d1d1f; color: #fff; border-radius: 7px; padding: 10px 14px; font-size: 12px; transition: .2s; }.toast.show { transform: translate(-50%, 0); opacity: 1; }
[hidden] { display: none !important; }
@media (max-width: 820px) { .login-view { grid-template-columns: 1fr; padding-top: 12px; }.login-visual { min-height: 340px; }.status-band { grid-template-columns: repeat(2, 1fr); }.status-band div { border-bottom: 1px solid var(--line); }.api-config { grid-template-columns: 1fr; } }
@media (max-width: 520px) { main { width: calc(100% - 24px); padding-top: 32px; }.topbar { padding: 0 14px; }.member-heading { align-items: flex-start; gap: 18px; }.member-heading .secondary-button { padding: 0 10px; }.status-band { grid-template-columns: 1fr; }.status-band div { min-height: 78px; border-right: 0; }.actions { flex-wrap: wrap; }.actions button { flex: 1; }.workspace { padding: 18px; } }

/* 使用范围声明：限定为星球内教科研用途 */
.usage-scope {
  margin: 34px 0 0;
  padding: 11px 15px;
  max-width: 480px;
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: rgba(0, 113, 227, .06);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
