/* Hallmark · macrostructure: AI Command Center · genre: modern-minimal
 * design-system: prototype/design.md · page: AI 智研
 */

body.ai-app {
  background: var(--bg-page);
  color: var(--text-body);
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-title);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-logo svg { color: var(--brand); }
.brand-sub { color: var(--text-muted); font-size: 11px; font-weight: 500; }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-menu a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active { color: var(--brand); background: var(--brand-50); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-hamburger { display: none; }

.ai-layout {
  height: 100vh;
  padding-top: 64px;
  padding-bottom: 0;
  background: var(--bg-page);
}

.ai-sidebar {
  top: 64px;
  left: 0;
  bottom: 0;
  width: 204px;
  padding: 12px 10px;
  border: 0;
  border-right: 1px solid var(--border-light);
  border-radius: 0;
  background: var(--white);
  box-shadow: none;
}

.ai-sidebar:hover {
  width: 204px;
  background: var(--white);
}

.ai-nav-item {
  height: 38px;
  padding: 0 11px;
  color: var(--text-secondary);
}

.ai-nav-item span,
.ai-sidebar:hover .ai-nav-item span {
  opacity: 1;
  transform: none;
  font-size: 12px;
}

.ai-nav-item.active {
  color: var(--brand);
  background: var(--brand-50);
}

.ai-nav-item.active::before {
  width: 2px;
  box-shadow: none;
}

.ai-sidebar-section-title {
  font-size: 10px;
  color: var(--text-muted);
}

.ai-main {
  margin-left: 204px;
  margin-right: 380px;
  background: var(--bg-page);
}

.ai-main::before {
  display: none;
}

.ai-module-root {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 34px 40px;
}

.ai-panel {
  top: 76px;
  right: 12px;
  bottom: 12px;
  width: 356px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.ai-panel-header {
  height: 50px;
  border-color: var(--border-light);
}

.ai-welcome {
  max-width: 940px;
  margin: 0 auto;
  text-align: left;
}

.ai-welcome-brand {
  align-items: flex-start;
  text-align: left;
}

.ai-welcome-title {
  font-size: 30px;
}

.ai-welcome-subtitle {
  max-width: 720px;
  font-size: 13px;
}

.ai-welcome-input-wrap {
  max-width: 900px;
  margin-left: 0;
}

.ai-welcome-input-box {
  border-radius: 8px;
  border-color: var(--border-default);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.ai-topic-card,
.ai-beginner-card {
  border-radius: 8px;
  background: var(--white);
  box-shadow: none;
}

.ai-top-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-top-nav-actions .ai-api-status {
  height: 30px;
}

.ai-top-nav-actions button {
  height: 30px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--white);
  color: var(--text-secondary);
  font-size: 11px;
}

.ai-top-nav-actions button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

@media (max-width: 1100px) {
  .ai-main { margin-right: 0; }
  .ai-panel { display: none; }
}

@media (max-width: 760px) {
  .top-nav { gap: 10px; padding: 0 12px; }
  .brand-sub, .nav-menu { display: none; }
  .nav-right { margin-left: auto; }
  .nav-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-secondary);
  }
  .ai-sidebar { display: none; }
  .ai-main { margin-left: 0; }
  .ai-module-root { padding: 22px 16px 32px; }
}
