/* Nexus Geek Hub - 与 Nexus 主站统一风格 */
:root {
  --bg-deep: #0a0b0d;
  --bg-start: #0f1216;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-primary: #e8eaef;
  --text-secondary: #9ca3b4;
  --text-muted: #6b7280;
  --accent: #22d3ee;
  --accent-dim: #0891b2;
  --accent-soft: rgba(34, 211, 238, 0.25);
  --radius: 12px;
  --radius-sm: 10px;
  --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  padding: 0 12px;
  padding-bottom: env(safe-area-inset-bottom);
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 211, 238, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(8, 145, 178, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 24px) 0 80px;
  min-height: 100vh;
}

/* 顶栏 */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  min-height: 52px;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* 主内容区 */
.main { padding-top: 8px; }
.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

/* 玻璃卡片 */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.card-list { display: flex; flex-direction: column; gap: 12px; }
.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: border-color 0.2s, background 0.2s;
}
.card:hover { border-color: rgba(34, 211, 238, 0.3); background: rgba(255, 255, 255, 0.06); }
.card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--text-primary); }
.card p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 8px; }
.card-meta { font-size: 0.75rem; color: var(--text-muted); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.05s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: #0a0b0d;
}
.btn-primary:hover { opacity: 0.9; }
.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

/* 表单 */
.input, .textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  margin-bottom: 12px;
}
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.textarea { min-height: 100px; resize: vertical; }
label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 6px; }

/* 详情页 */
.detail-title { font-size: 1.25rem; margin-bottom: 12px; }
.detail-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; }
.detail-body { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; white-space: pre-wrap; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 12px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: rgba(10, 11, 13, 0.95);
  border-top: 1px solid var(--glass-border);
  z-index: 100;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.bottom-nav a:hover, .bottom-nav a.active { color: var(--accent); background: var(--accent-soft); }

/* 首页 */
.hero {
  text-align: center;
  padding: 32px 0 24px;
}
.hero h1 { font-size: 1.75rem; margin-bottom: 8px; }
.hero p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 24px; }
.hero .logo { font-size: 1.5rem; }
.section-head { font-size: 1rem; font-weight: 600; margin: 24px 0 12px; color: var(--text-primary); }

/* 搜索 */
.search-wrap { margin-bottom: 16px; }
.search-wrap .input { margin-bottom: 0; }

/* 空状态 */
.empty { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 0.9rem; }
