/* Knowledge Hud - Jarvis Integrated Station */

:root {
  --jarvis-cyan: #00f5d4;
  --jarvis-amber: #f9a825;
  --jarvis-bg: rgba(2, 10, 20, 0.98);
  --jarvis-border: 1px solid rgba(0, 245, 212, 0.4);
  --hex-pattern: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMzQuNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAgMEwwIDUuN3YxMS41TDEwIDIzbDEwLTUuN1Y1LjdMMTAgMHpNMTAgMjJsLTgtNC42VjYuOEwxMCAyLjJsOCA0LjZ2MTAuNkwxMCAyMnoiIGZpbGw9IiMwMGY1ZDQiIGZpbGwtb3BhY2l0eT0iMC4wNSIvPjwvc3ZnPg==');
}

/* 全屏遮罩层 */
.jarvis-hud-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 5, 10, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* 一体化 HUD 主容器 */
.jarvis-integrated-station {
  width: 100%;
  max-width: 1100px;
  height: 700px;
  background: var(--jarvis-bg);
  background-image: var(--hex-pattern);
  border: var(--jarvis-border);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 100px rgba(0, 245, 212, 0.15);
}

/* 装饰性科技支架 */
.jarvis-integrated-station::before,
.jarvis-integrated-station::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border: 3px solid var(--jarvis-cyan);
  pointer-events: none;
}
.jarvis-integrated-station::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.jarvis-integrated-station::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* 顶部标题栏 */
.station-header {
  padding: 20px 30px;
  background: linear-gradient(90deg, rgba(0, 245, 212, 0.1), transparent);
  border-bottom: 1px solid rgba(0, 245, 212, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.station-title-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.station-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.1em;
  margin: 0;
}

/* 主体内容区布局 */
.station-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* 左侧栏：目录树 */
.station-sidebar {
  width: 280px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.sidebar-label {
  padding: 15px 25px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--jarvis-cyan);
  opacity: 0.6;
  letter-spacing: 0.2em;
}

.folder-nav-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.nav-item-jarvis {
  width: 100%;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: 0.2s;
}

.nav-item-jarvis:hover, .nav-item-jarvis.active {
  background: rgba(0, 245, 212, 0.1);
  color: var(--jarvis-cyan);
  padding-left: 20px;
}

/* 右侧内容区 */
.station-main-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.1);
}

.view-toolbar {
  padding: 15px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 25px;
}

/* 文件网格 */
.data-grid-jarvis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 15px;
}

.data-card-jarvis {
  padding: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: 0.2s;
}

.data-card-jarvis:hover {
  border-color: var(--jarvis-cyan);
  background: rgba(0, 245, 212, 0.05);
  transform: translateY(-2px);
}

/* 底部状态栏 */
.station-footer {
  padding: 10px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
}

/* 按钮通用 */
.jarvis-btn {
  background: transparent;
  border: 1px solid var(--jarvis-cyan);
  color: var(--jarvis-cyan);
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 10px;
  text-transform: uppercase;
  cursor: pointer;
}
.jarvis-btn:hover { background: var(--jarvis-cyan); color: #000; }
.jarvis-btn.amber { border-color: var(--jarvis-amber); color: var(--jarvis-amber); }
.jarvis-btn.amber:hover { background: var(--jarvis-amber); color: #000; }
