@import url("./brand-tokens.css");
@import url("./typography.css");

html, body { background: var(--bg); }
body { background: linear-gradient(180deg, #08172e 0, #0a1830 280px, #09172c 100%); color: var(--text-primary); line-height: 1.5; }

.topbar { z-index: var(--z-topbar); padding: var(--space-3) var(--space-6); background: rgba(8, 23, 46, 0.98); border-bottom-color: var(--border); box-shadow: none; backdrop-filter: none; }
.dashboard-mark { width: 38px; height: 38px; filter: none; }
.topbar h1 { font-size: 18px; font-weight: 600; line-height: 28px; }
.eyebrow { color: var(--brand-cyan); font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.layout { padding: var(--space-6) var(--space-6) 56px; }
.dashboard-zone { gap: var(--space-4); margin-top: var(--space-8); }
.zone-heading h2 { font-size: 24px; font-weight: 600; line-height: 34px; }
.zone-heading > span, .section-title span { font-size: 13px; line-height: 20px; }

.panel, .status-panel, .brain-panel, .market-section, .asset-card, .feed-card, .digest-item, .research-item, .audit-item, .review-block, .command-card, .mini-metric, .stat-card, .key-level, .research-brief-group, .evidence-card, .service-light { background: var(--surface); border-color: var(--border); box-shadow: none; backdrop-filter: none; }
.panel, .status-panel, .brain-panel, .market-section { padding: var(--space-5); border-radius: var(--radius-lg); }
.status-panel, .card-dark { background: var(--surface); border-color: var(--border-strong); }
.status-panel h2 { font-family: var(--font-num); font-size: 40px; font-weight: 600; }
.command-panel .command-card:first-child, .command-panel .command-card:nth-child(2), .insight-block, .ai-main, .key-level.primary { background: var(--surface-soft); }
.command-card, .mini-metric, .stat-card, .key-level, .research-item, .audit-item { padding: var(--space-3); }
.command-card strong, .mini-metric strong, .stat-card strong, .key-level strong, .asset-main-signal strong, .latest-price strong { font-family: var(--font-num); font-weight: 600; }
.title-cn, .section-title h2, .asset-head h3, .research-title strong, .review-head h3 { font-weight: 600; }
.title-cn { font-size: 14px; line-height: 20px; }
.asset-head h3 { font-size: 24px; line-height: 28px; }
.asset-summary { font-size: 14px; line-height: 20px; }
.badge, .impact-tag, .reaction-chip { min-height: 24px; padding: 3px 8px; font-weight: 500; border-radius: var(--radius-pill); }

button { min-height: 36px; padding: 7px 14px; border-radius: var(--radius-md); border-color: var(--info-border); background: var(--surface-raised); box-shadow: none; transition: background-color var(--motion-fast), border-color var(--motion-fast); }
button:hover { transform: none; background: #1a3355; border-color: var(--brand-sky); }
button:focus-visible, input:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 2px; }

.table-wrap { border-radius: var(--radius-md); background: var(--surface-console); }
table { font-size: 12px; line-height: 18px; }
th, td { padding: 10px 12px; border-bottom-color: var(--border); }
th { color: var(--text-muted); font-size: 12px; font-weight: 500; text-transform: none; }
tbody tr:hover { background: rgba(119, 230, 255, 0.05); }
.empty, .empty-state { padding: var(--space-4); border-color: var(--border-strong); background: var(--surface-soft); }
.progress-fill { background: var(--brand-sky); }

/* 登录页是入口页：保留信息，不保留装饰性数据光效。 */
.login-page { background: var(--brand-navy); padding: var(--space-6); }
.login-page::before, .login-stage, .login-data-extension, .login-beam-extension, .login-scanline, .login-particles { display: none; }
.login-shell { width: min(1120px, 100%); grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 56px; }
.hero-console { justify-items: start; text-align: left; }
.brand-hero { position: relative; display: grid; width: min(100%, 610px); min-height: 150px; place-items: center start; overflow: hidden; isolation: isolate; }
.brand-hero::before, .brand-hero::after { content: ""; position: absolute; pointer-events: none; z-index: -1; }
.brand-hero::before { left: -3%; top: 22%; width: 70%; height: 64%; border-radius: 50%; background: linear-gradient(104deg, transparent 3%, rgba(119, 230, 255, .18) 35%, rgba(94, 164, 255, .17) 57%, rgba(139, 103, 255, .12) 76%, transparent 98%); filter: blur(14px); transform: rotate(-7deg); animation: brand-aurora-drift 9s ease-in-out infinite; }
.brand-hero::after { left: 8%; top: 42%; width: 58%; height: 18%; border-radius: 50%; background: linear-gradient(90deg, transparent, rgba(119, 230, 255, .38), rgba(94, 164, 255, .32), rgba(139, 103, 255, .18), transparent); filter: blur(5px); animation: brand-aurora-drift 9s ease-in-out -3.5s infinite reverse; }
.brand-primary-logo { position: relative; z-index: 1; display: block; width: min(440px, 94%); height: auto; }
@keyframes brand-aurora-drift { 0%, 100% { opacity: .52; transform: translateX(-10px) rotate(-7deg) scaleX(.96); } 50% { opacity: .92; transform: translateX(14px) rotate(-4deg) scaleX(1.04); } }
.login-column { display: grid; width: min(100%, 420px); justify-self: end; gap: 16px; }
.login-context { display: grid; gap: 4px; padding-left: 4px; }
.login-context p { margin: 0; color: var(--brand-cyan); font-family: var(--font-num); font-size: 11px; font-weight: 500; letter-spacing: .1em; }
.login-context h2 { margin: 0; color: var(--text-primary); font-size: 20px; font-weight: 600; line-height: 28px; }
.login-context span { color: var(--text-secondary); font-size: 14px; line-height: 20px; }
.hero-console .brand-lockup { display: none; }
.brand-title, .brand-subtitle { display: none; }
.console-preview { margin-top: 12px; padding: var(--space-4); border-radius: var(--radius-lg); border-color: var(--border); background: var(--surface); box-shadow: none; backdrop-filter: none; animation: none; }
.console-preview::before, .console-preview::after { display: none; }
.console-preview-bar span, .console-footer span { font-weight: 500; letter-spacing: .04em; background: var(--surface-console); }
.console-preview-bar i { box-shadow: none; animation: none; background: var(--brand-cyan); }
.bias-block, .fear-greed-gauge, .feature-pill { border-radius: var(--radius-md); border-color: var(--border); background: var(--surface-console); box-shadow: none; }
.bias-block { min-height: 108px; padding: var(--space-3); }
.legacy-signal-line { display: none; }
.prism-aurora { height: 76px; margin-top: 16px; overflow: visible; }
.console-preview .prism-aurora { display: none; }
.prism-aurora path { vector-effect: non-scaling-stroke; }
.aurora-ribbon { fill: none; stroke-linecap: round; transform-origin: center; animation: aurora-drift 8s ease-in-out infinite; }
.aurora-ribbon-wide { stroke: url(#aurora-wide); stroke-width: 9; opacity: .42; filter: url(#aurora-soft); }
.aurora-ribbon-fine { stroke: url(#aurora-fine); stroke-width: 2; opacity: .82; animation-delay: -2.4s; }
.aurora-ribbon-veil { stroke: url(#aurora-wide); stroke-width: 4; opacity: .28; filter: url(#aurora-soft); animation-delay: -4.8s; }
@keyframes aurora-drift { 0%, 100% { opacity: .58; transform: translateX(-5px) translateY(1px) scaleX(.98); } 50% { opacity: 1; transform: translateX(6px) translateY(-2px) scaleX(1.02); } }
.feature-pill { min-height: 60px; padding: var(--space-3); transition: border-color var(--motion-fast), background-color var(--motion-fast); }
.feature-pill:hover { transform: none; background: var(--surface-raised); border-color: var(--border-strong); }
.login-panel { width: 100%; justify-self: stretch; padding: 32px; border-radius: var(--radius-lg); border-color: var(--border-strong); background: var(--surface); box-shadow: var(--shadow-card); backdrop-filter: none; animation: none; }
.login-panel::before, .login-panel::after { display: none; }
.login-panel-head h2 { font-size: 28px; font-weight: 600; }
.login-form label { font-size: 14px; line-height: 20px; }
.login-input, .login-form input, .login-form input[type="text"], .login-form input[type="password"] { height: 48px; border-radius: var(--radius-md); border-color: var(--border-strong); background: var(--surface-console) !important; font-size: 14px; }
.login-input:focus, .login-form input:focus, .login-form input[type="password"]:focus { border-color: var(--brand-sky); box-shadow: 0 0 0 3px rgba(94, 164, 255, .18); }
.login-form button { height: 44px; border-color: var(--brand-blue); background: var(--brand-blue); box-shadow: none; }
.login-form button:hover { background: #5b7cff; }
.login-form button::after { display: none; }

@media (max-width: 767px) {
  .topbar { padding: var(--space-3) var(--space-4); }
  .dashboard-mark { width: 34px; height: 34px; }
  .layout { padding: var(--space-4) var(--space-3) 34px; }
  .login-page { padding: var(--space-4); }
  .login-shell { width: 100%; max-width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "login" "market" "features"; gap: var(--space-5); }
  .hero-console { display: contents; }
  .brand-hero { grid-area: brand; width: 100%; min-height: 112px; }
  .brand-primary-logo { width: min(340px, 94%); }
  .login-column { grid-area: login; width: 100%; justify-self: stretch; }
  .console-preview { grid-area: market; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
  .console-preview-main, .market-ticker-grid { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; }
  .prism-aurora { height: 64px; margin-top: 12px; }
  .login-panel { padding: var(--space-5); }
  .feature-grid { grid-area: features; width: 100%; grid-template-columns: 1fr; }
}
