/* ===========================
   先进建造技术情报看板
   明亮科技风 · 非黑 · 蓝青紫渐变 + 磨砂玻璃
   =========================== */

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 背景 — 明亮科技蓝青底（绝非黑色） */
  --bg-base: #E9F3FD;
  --bg-deep: #DCEBFB;

  /* 玻璃表面 */
  --bg-surface: rgba(255, 255, 255, 0.72);
  --bg-card: rgba(255, 255, 255, 0.66);
  --bg-card-hover: rgba(255, 255, 255, 0.92);
  --bg-elevated: rgba(223, 238, 253, 0.6);

  /* 边框 — 淡蓝玻璃边 */
  --border-color: rgba(120, 170, 220, 0.34);
  --border-hover: rgba(47, 107, 255, 0.55);

  /* 文字 — 深蓝（非黑），保证辨识 */
  --text-primary: #143A63;
  --text-secondary: #3A5E82;
  --text-muted: #6E8CAD;
  --text-tertiary: #93A9C2;

  /* 科技强调色 — 霓虹青 / 电光蓝 / 紫（更亮，强科技感） */
  --cyan: #00E5FF;
  --blue: #2D7CFF;
  --violet: #7C5CFF;
  --accent-coral: #2F6BFF;   /* 主蓝（兼容旧引用） */
  --accent-blue: #2F6BFF;
  --accent-pink: #00C8FF;
  --accent-orange: #2F6BFF;
  --accent-amber: #FFAE3B;   /* 中重要性 */
  --accent-green: #00D6B4;   /* 青绿 */
  --accent-purple: #8B5CFF;  /* 紫 */
  --accent-red: #FF5C7A;     /* 柔和警示红（非黑） */

  /* 渐变 */
  --grad-primary: linear-gradient(135deg, #00C8FF 0%, #2F6BFF 100%);
  --grad-violet: linear-gradient(135deg, #2F6BFF 0%, #8B5CFF 100%);
  --grad-cyan: linear-gradient(135deg, #5BE7FF 0%, #00C8FF 100%);
  --grad-text: linear-gradient(120deg, #00C8FF 0%, #2F6BFF 42%, #8B5CFF 100%);

  /* 分类色（科技蓝青紫） */
  --cat-smart: 47, 107, 255;     /* 电光蓝 */
  --cat-digital: 0, 200, 255;    /* 青 */
  --cat-green: 0, 214, 180;      /* 青绿 */
  --cat-focus: 139, 92, 255;     /* 紫 */

  /* 字体 */
  --font-mono: "SF Mono", "JetBrains Mono", "Roboto Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;

  /* 尺寸 */
  --sidebar-w: 240px;
  --header-h: 64px;
  --radius: 16px;
  --radius-sm: 11px;

  /* 阴影 & 发光 */
  --shadow-sm: 0 4px 16px rgba(20, 70, 140, 0.08);
  --shadow-md: 0 8px 28px rgba(20, 70, 140, 0.12);
  --shadow-lg: 0 18px 50px rgba(20, 70, 140, 0.18);
  --glow-cyan: 0 0 22px rgba(0, 229, 255, 0.55);
  --glow-blue: 0 0 26px rgba(45, 124, 255, 0.5);

  /* 过渡 */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* 霓虹 / HUD 辅助 */
  --hud-line: rgba(0, 229, 255, 0.6);
  --grid-line: rgba(45, 124, 255, 0.07);
  --ring: rgba(0, 229, 255, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(160deg, #EAF4FD 0%, #E1EDFB 55%, #DBE9FB 100%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 滚动条 — 科技蓝 */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(47, 107, 255, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(47, 107, 255, 0.5);
}

/* ===== 科技背景：蓝图网格（主/次双层）+ 扫描线 + 浮动光晕 ===== */
.tech-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background-color: transparent;
  background-image:
    linear-gradient(rgba(45, 124, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 124, 255, 0.10) 1px, transparent 1px),
    linear-gradient(rgba(45, 124, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 124, 255, 0.04) 1px, transparent 1px);
  background-size: 176px 176px, 176px 176px, 44px 44px, 44px 44px;
  background-position: center;
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 60%, transparent 100%);
  mask-image: radial-gradient(circle at 50% 22%, #000 60%, transparent 100%);
}
.tech-bg::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.12), transparent);
  animation: bgScan 11s linear infinite;
  opacity: 0.8;
}
@keyframes bgScan {
  0% { transform: translateY(-180px); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}
.tech-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.tech-bg .orb-1 {
  width: 420px; height: 420px;
  top: -120px; left: -80px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.55), transparent 70%);
  animation: orbFloat1 18s ease-in-out infinite;
}
.tech-bg .orb-2 {
  width: 460px; height: 460px;
  bottom: -160px; right: -120px;
  background: radial-gradient(circle, rgba(139, 92, 255, 0.45), transparent 70%);
  animation: orbFloat2 22s ease-in-out infinite;
}
.tech-bg .orb-3 {
  width: 340px; height: 340px;
  top: 40%; left: 55%;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.4), transparent 70%);
  animation: orbFloat3 26s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 50px) scale(1.12); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -40px) scale(1.1); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 60px) scale(1.08); }
}

/* 渐变标题文字 */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== Layout ===== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar — 磨砂玻璃 ===== */
.sidebar {
  width: var(--sidebar-w);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
  background-image:
    linear-gradient(rgba(45, 124, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 124, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  box-shadow: var(--shadow-md), inset 3px 0 0 rgba(0, 229, 255, 0.7);
}

.sidebar-header {
  padding: 20px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--glow-blue);
  position: relative;
}
.sidebar-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.5);
  opacity: 0.6;
}

.sidebar-logo svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.3;
}

.sidebar-subtitle {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 16px 12px 6px;
  font-family: var(--font-mono);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 2px;
  position: relative;
}

.nav-item:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.14), rgba(47, 107, 255, 0.08));
  color: var(--blue);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(47, 107, 255, 0.2);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--grad-primary);
  box-shadow: var(--glow-cyan);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-item .nav-badge {
  margin-left: auto;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  background: rgba(47, 107, 255, 0.1);
  color: var(--blue);
  font-weight: 700;
  font-family: var(--font-mono);
}

.nav-item.active .nav-badge {
  background: rgba(47, 107, 255, 0.18);
  color: var(--blue);
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border-color);
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
}

/* ===== Header — 磨砂玻璃 ===== */
.top-header {
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm), 0 2px 16px rgba(0, 229, 255, 0.28);
}

.search-box {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 40px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 13px;
  transition: all var(--transition);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.16), var(--glow-blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.header-btn:hover {
  background: #fff;
  color: var(--blue);
  border-color: var(--border-hover);
  box-shadow: var(--glow-blue);
}
.header-btn svg { width: 15px; height: 15px; }

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 214, 180, 0.12);
  border: 1px solid rgba(0, 214, 180, 0.35);
  border-radius: 20px;
  font-size: 11px;
  color: #00A98C;
  font-weight: 700;
  font-family: var(--font-mono);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00D6B4;
  box-shadow: 0 0 8px rgba(0, 214, 180, 0.8);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ===== Page Container ===== */
.page-container {
  padding: 24px;
  max-width: 1400px;
}

.page-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.page-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ===== Stats Grid ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  background-image:
    linear-gradient(var(--hud-line), var(--hud-line)), linear-gradient(var(--hud-line), var(--hud-line)),
    linear-gradient(var(--hud-line), var(--hud-line)), linear-gradient(var(--hud-line), var(--hud-line)),
    linear-gradient(var(--hud-line), var(--hud-line)), linear-gradient(var(--hud-line), var(--hud-line)),
    linear-gradient(var(--hud-line), var(--hud-line)), linear-gradient(var(--hud-line), var(--hud-line));
  background-repeat: no-repeat;
  background-size: 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px;
  background-position: top left, top left, top right, top right, bottom left, bottom left, bottom right, bottom right;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0.85;
}
.stat-card:hover {
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 229, 255, 0.5), var(--glow-blue);
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.stat-card-highlight {
  border-color: rgba(0, 214, 180, 0.45);
  background: linear-gradient(135deg, rgba(0, 226, 190, 0.1), rgba(0, 200, 255, 0.05));
}
.stat-card-highlight:hover {
  border-color: rgba(0, 214, 180, 0.7);
  background: rgba(0, 226, 190, 0.14);
}

.pulse-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  animation: pulse 1.6s infinite;
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 107, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(47, 107, 255, 0.18);
}
.stat-icon svg { width: 20px; height: 20px; color: var(--blue); }

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
}

.stat-value {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  font-family: var(--font-mono);
  letter-spacing: -1px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-trend {
  font-size: 11px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
}
.stat-trend.up { color: #00A98C; }
.stat-trend.down { color: var(--accent-red); }

/* ===== Section Title ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: "";
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--grad-primary);
  box-shadow: var(--glow-cyan);
}
.section-link {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
  font-family: var(--font-mono);
}
.section-link:hover { color: var(--blue); }

/* ===== Intel Cards Grid ===== */
.intel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.intel-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  background-image:
    linear-gradient(var(--hud-line), var(--hud-line)), linear-gradient(var(--hud-line), var(--hud-line)),
    linear-gradient(var(--hud-line), var(--hud-line)), linear-gradient(var(--hud-line), var(--hud-line)),
    linear-gradient(var(--hud-line), var(--hud-line)), linear-gradient(var(--hud-line), var(--hud-line)),
    linear-gradient(var(--hud-line), var(--hud-line)), linear-gradient(var(--hud-line), var(--hud-line));
  background-repeat: no-repeat;
  background-size: 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px;
  background-position: top left, top left, top right, top right, bottom left, bottom left, bottom right, bottom right;
}
.intel-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, rgb(var(--card-accent, var(--cat-smart))), transparent);
  opacity: 0.9;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 14px rgba(var(--card-accent, var(--cat-smart)), 0.7);
  z-index: 2;
}
.intel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(0, 229, 255, 0.10), transparent 60%),
    linear-gradient(rgba(45, 124, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 124, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px, 22px 22px;
  pointer-events: none;
  z-index: 0;
}
.intel-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 229, 255, 0.45), var(--glow-blue);
}
.intel-card:hover::before { opacity: 1; box-shadow: 0 0 18px rgba(var(--card-accent, var(--cat-smart)), 0.9); }

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.type-badge svg { width: 12px; height: 12px; }

.importance-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.importance-dot.high {
  background: var(--blue);
  box-shadow: 0 0 8px rgba(47, 107, 255, 0.7);
}
.importance-dot.medium { background: var(--accent-amber); }
.importance-dot.low { background: var(--text-muted); }

.card-date {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-summary {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(47, 107, 255, 0.1);
  color: var(--text-secondary);
  font-weight: 600;
  font-family: var(--font-mono);
}

.card-source {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-source svg { width: 12px; height: 12px; }

/* ===== Category Cards (Dashboard) ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.category-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  background-image:
    linear-gradient(rgba(var(--cat-color-rgb), 0.55), rgba(var(--cat-color-rgb), 0.55)), linear-gradient(rgba(var(--cat-color-rgb), 0.55), rgba(var(--cat-color-rgb), 0.55)),
    linear-gradient(rgba(var(--cat-color-rgb), 0.55), rgba(var(--cat-color-rgb), 0.55)), linear-gradient(rgba(var(--cat-color-rgb), 0.55), rgba(var(--cat-color-rgb), 0.55)),
    linear-gradient(rgba(var(--cat-color-rgb), 0.55), rgba(var(--cat-color-rgb), 0.55)), linear-gradient(rgba(var(--cat-color-rgb), 0.55), rgba(var(--cat-color-rgb), 0.55)),
    linear-gradient(rgba(var(--cat-color-rgb), 0.55), rgba(var(--cat-color-rgb), 0.55)), linear-gradient(rgba(var(--cat-color-rgb), 0.55), rgba(var(--cat-color-rgb), 0.55));
  background-repeat: no-repeat;
  background-size: 16px 2px, 2px 16px, 16px 2px, 2px 16px, 16px 2px, 2px 16px, 16px 2px, 2px 16px;
  background-position: top left, top left, top right, top right, bottom left, bottom left, bottom right, bottom right;
}
.category-card:hover {
  transform: translateY(-5px);
  border-color: rgb(var(--cat-color-rgb));
  box-shadow: var(--shadow-lg), 0 0 30px rgba(var(--cat-color-rgb), 0.5), inset 0 0 0 1px rgba(var(--cat-color-rgb), 0.4);
}
.category-card::after {
  content: "";
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--cat-color-rgb), 0.22), transparent 70%);
}
.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(var(--cat-color-rgb), 0.5), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.domain-detail-card {
  display: flex;
  flex-direction: column;
}
.domain-count-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0 10px;
}
.domain-big-count {
  font-size: 34px;
  font-weight: 800;
  color: rgb(var(--cat-color-rgb));
  font-family: var(--font-mono);
  line-height: 1;
}
.domain-count-unit {
  font-size: 13px;
  color: var(--text-muted);
}
.domain-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.domain-type-chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  font-weight: 600;
}
.domain-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  margin-top: auto;
}
.domain-enter {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: rgb(var(--cat-color-rgb));
  text-align: right;
}

.cat-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(var(--cat-color-rgb), 0.14);
  box-shadow: 0 0 16px rgba(var(--cat-color-rgb), 0.3);
}
.cat-icon-wrap svg { width: 24px; height: 24px; color: rgb(var(--cat-color-rgb)); }

.cat-name {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}
.cat-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.cat-stats { display: flex; gap: 16px; font-size: 12px; }
.cat-stat-item { color: var(--text-secondary); }
.cat-stat-item strong {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 800;
  display: block;
  font-family: var(--font-mono);
}

/* ===== Trend Chart ===== */
.trend-section {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.trend-chart-wrap {
  margin-top: 16px;
  position: relative;
  height: 200px;
}
.trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 160px;
  padding-top: 20px;
}
.trend-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.trend-bar-stack {
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
  max-width: 40px;
  gap: 1px;
  border-radius: 3px 3px 0 0;
  overflow: hidden;
  transition: all var(--transition);
}
.trend-bar-group:hover .trend-bar-stack {
  transform: scaleY(1.05);
  transform-origin: bottom;
  box-shadow: var(--glow-blue);
}
.trend-bar-segment { width: 100%; transition: all var(--transition); }
.trend-bar-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-family: var(--font-mono);
}
.trend-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}
.legend-dot { width: 10px; height: 10px; border-radius: 3px; }

/* ===== Filter Bar ===== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 600;
  white-space: nowrap;
}
.filter-chip:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: #fff;
}
.filter-chip.active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: var(--glow-blue);
}
.filter-chip svg { width: 13px; height: 13px; }

.filter-divider {
  width: 1px;
  height: 20px;
  background: var(--border-color);
  margin: 0 4px;
}
.sort-select {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 12px;
  padding: 7px 14px;
  cursor: pointer;
  font-family: var(--font-mono);
}

/* ===== Detail Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 50, 90, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s;
}
.modal-overlay.active { display: flex; opacity: 1; }

.modal-content {
  background-color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px;
  transform: scale(0.95);
  transition: transform 0.2s;
  box-shadow: var(--shadow-lg), var(--glow-blue);
}
.modal-overlay.active .modal-content { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}
.modal-close:hover { color: var(--blue); background: #fff; box-shadow: var(--glow-blue); }
.modal-close svg { width: 16px; height: 16px; }

.modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.modal-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 14px;
  padding-right: 40px;
}
.modal-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(0, 200, 255, 0.07);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--blue);
}
.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.modal-info-item { display: flex; flex-direction: column; gap: 4px; }
.modal-info-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}
.modal-info-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
}
.modal-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.modal-tags .tag { font-size: 12px; padding: 4px 10px; }

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--grad-primary);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: var(--glow-blue);
}
.modal-link:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(47, 107, 255, 0.55); }

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state-text { font-size: 14px; }

/* ===== Loading ===== */
.loading-skeleton { display: flex; flex-direction: column; gap: 16px; }
.skeleton-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 18px;
  height: 140px;
  position: relative;
  overflow: hidden;
}
.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== 情报源管理页 ===== */
.source-url-link {
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  word-break: break-all;
}
.source-url-link:hover { text-decoration: underline; opacity: 0.85; }
.source-rss-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(0, 200, 255, 0.16);
  color: var(--cyan);
  letter-spacing: 1px;
  font-family: var(--font-mono);
}
.source-norss-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
}
.source-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.source-name { font-weight: 700; font-size: 15px; }
.source-type-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
  font-family: var(--font-mono);
}
.source-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.source-info { flex: 1; min-width: 0; }
.source-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== Stats bar ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.stat-item {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
  font-family: var(--font-mono);
}
.stat-label { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
  .intel-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

/* 侧边栏遮罩（手机端点击关闭） */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 50, 90, 0.45);
  backdrop-filter: blur(2px);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.3s;
}
.sidebar-overlay.show { display: block; opacity: 1; }
@media (min-width: 769px) {
  .sidebar-overlay { display: none !important; }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: none; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
    width: 82%;
    max-width: 290px;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding-bottom: 84px; }
  .top-header { padding: 0 14px; gap: 8px; flex-wrap: wrap; }
  .search-box { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions { margin-left: auto; gap: 6px; }
  .header-btn span { display: none; }
  .header-btn { padding: 8px 10px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-info-grid { grid-template-columns: 1fr; }
  .page-container { padding: 16px; }
  .page-title { font-size: 18px; }
  .modal-content { padding: 20px; margin: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .source-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .source-actions { align-self: stretch; justify-content: flex-end; }
  .auth-card { padding: 32px 24px; }
  .bottom-nav { display: flex; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .top-header { padding: 0 10px; }
  .page-container { padding: 12px; }
  .auth-card { padding: 28px 18px; }
  .stat-value { font-size: 22px; }
  .modal-content { padding: 16px; margin: 8px; }
  .user-name { max-width: 56px; }
  .live-indicator span:last-child { display: none; }
  .page-title { font-size: 16px; }
  .category-grid { grid-template-columns: 1fr; }
  .bottom-nav { padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); gap: 2px; }
  .bottom-tab span { font-size: 10px; }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.3s ease-out forwards; }

/* Mobile menu toggle (hidden on mobile now; kept for desktop safety) */
.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
}

/* ===== 手机端底部导航（App 化科技导航） ===== */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  align-items: stretch;
  justify-content: space-around;
  gap: 4px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -8px 30px rgba(20, 70, 140, 0.12);
}
.bottom-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  border: none;
  background: none;
  border-radius: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.bottom-tab svg { width: 22px; height: 22px; }
.bottom-tab span {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
}
.bottom-tab::before { display: none; }
.bottom-tab.active {
  color: var(--blue);
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.16), rgba(47, 107, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(47, 107, 255, 0.2);
}
.bottom-tab.active::after {
  content: "";
  position: absolute;
  top: 0;
  width: 22px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--grad-primary);
  box-shadow: var(--glow-cyan);
}
.bottom-tab:active { transform: scale(0.94); }

/* ===== Export Dropdown ===== */
.export-dropdown { position: relative; }
.export-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px;
  min-width: 190px;
  display: none;
  z-index: 150;
  box-shadow: var(--shadow-lg);
}
.export-menu.show { display: block; }
.export-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-secondary);
  transition: all var(--transition);
  font-weight: 600;
}
.export-menu-item:hover { background: var(--bg-elevated); color: var(--text-primary); }
.export-menu-item svg { flex-shrink: 0; }

/* ===== Custom Entry Badge ===== */
.custom-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(47, 107, 255, 0.12);
  color: var(--accent-amber);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.custom-badge svg { width: 10px; height: 10px; }

/* ===== Entry Form ===== */
.entry-form { margin-top: 4px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  transition: all var(--transition);
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.14);
}
.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%234A6B8C' stroke-width='2'%3E%3Cpath d='m6 9 6-6H0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.form-field textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

/* ===== Data Source Cards ===== */
.source-list { display: flex; flex-direction: column; gap: 10px; }
.source-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.source-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md), var(--glow-blue); }
.source-info { flex: 1; min-width: 0; }
.source-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.source-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.source-type-tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(47, 107, 255, 0.12);
  color: var(--blue);
  font-weight: 700;
  font-family: var(--font-mono);
}
.source-region-tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.source-url {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 4px;
  word-break: break-all;
}
.source-meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 16px; }
.source-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.preset-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(139, 92, 255, 0.14);
  color: var(--accent-purple);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ===== RSS Results ===== */
.rss-results { animation: fadeInUp 0.3s ease-out; }
.rss-item { opacity: 0.85; }

/* ===== 打印样式 ===== */
@media print {
  .sidebar, .top-header, .modal-overlay, .export-dropdown, .bottom-nav, .tech-bg {
    display: none !important;
  }
  .main-content { margin-left: 0 !important; padding-bottom: 0 !important; }
  body { background: #fff; color: #000; }
  .intel-card { border: 1px solid #ccc; background: #fff; break-inside: avoid; }
  .card-title { color: #000; }
  .card-summary { color: #333; }
}

/* ===== 用户区域 ===== */
.user-area { display: flex; align-items: center; gap: 8px; }
.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  cursor: default;
}
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--glow-blue);
}
.user-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== 登录/注册界面 — 科技风 ===== */
.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  position: fixed;
  inset: 0;
  z-index: 500;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(0, 200, 255, 0.25), transparent 60%),
    radial-gradient(800px 500px at 90% 90%, rgba(139, 92, 255, 0.22), transparent 60%),
    linear-gradient(160deg, #EAF4FD 0%, #DEECFB 100%);
}
.auth-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 107, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 107, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.auth-card {
  background-color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 42px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 70px rgba(20, 70, 140, 0.18), var(--glow-blue);
  position: relative;
  z-index: 1;
}
.auth-logo {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--glow-blue);
}
.auth-logo svg { width: 34px; height: 34px; color: #fff; }
.auth-title {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.auth-subtitle {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
}
.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 10px;
  transition: all var(--transition);
}
.auth-tab.active {
  background: #fff;
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.auth-field input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all var(--transition);
  width: 100%;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.14);
}
.auth-error { font-size: 12px; color: var(--accent-red); min-height: 16px; }
.auth-submit {
  padding: 13px;
  background: var(--grad-primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 2px;
  box-shadow: var(--glow-blue);
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(47, 107, 255, 0.5); }
.auth-submit:active { transform: translateY(0); }
.auth-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 10px 14px;
  background: rgba(47, 107, 255, 0.1);
  border: 1px solid rgba(47, 107, 255, 0.25);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--blue);
  line-height: 1.5;
}

/* ===== 用户管理表格 ===== */
.user-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.user-table thead { background: rgba(255, 255, 255, 0.7); }
.user-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
}
.user-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); color: var(--text-primary); }
.user-table tbody tr:hover { background: var(--bg-elevated); }
.user-table tbody tr:last-child td { border-bottom: none; }

/* ===== HUD 切角（弹窗 / 登录 / 趋势 / 源卡片） ===== */
.modal-content,
.auth-card,
.trend-section,
.source-card {
  background-image:
    linear-gradient(var(--hud-line), var(--hud-line)), linear-gradient(var(--hud-line), var(--hud-line)),
    linear-gradient(var(--hud-line), var(--hud-line)), linear-gradient(var(--hud-line), var(--hud-line)),
    linear-gradient(var(--hud-line), var(--hud-line)), linear-gradient(var(--hud-line), var(--hud-line)),
    linear-gradient(var(--hud-line), var(--hud-line)), linear-gradient(var(--hud-line), var(--hud-line));
  background-repeat: no-repeat;
  background-size: 18px 2px, 2px 18px, 18px 2px, 2px 18px, 18px 2px, 2px 18px, 18px 2px, 2px 18px;
  background-position: top left, top left, top right, top right, bottom left, bottom left, bottom right, bottom right;
}

/* ===== 内置翻译按钮（零 token 消耗 · 点击才翻译） ===== */
.translate-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.1);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.translate-btn:hover {
  background: rgba(0, 229, 255, 0.22);
  box-shadow: var(--glow-cyan);
  color: var(--blue);
}
.translate-btn svg { width: 12px; height: 12px; }
.translate-btn.loading { opacity: 0.6; pointer-events: none; }
.translate-btn.done { border-color: rgba(0, 214, 180, 0.5); background: rgba(0, 214, 180, 0.12); color: #00A98C; }

.card-translate { margin-left: auto; }
.tr-error { font-size: 12px; color: var(--accent-red); margin-top: 8px; }
.modal-translate-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.lang-zh-label {
  font-size: 11px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.5px; font-family: var(--font-mono); margin-bottom: 6px;
}
.modal-summary-zh {
  font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px;
  padding: 16px; background: rgba(0, 214, 180, 0.08); border-radius: var(--radius-sm);
  border-left: 3px solid #00D6B4;
}
