﻿/* 云探针 · 浅蓝气泡主题 (tech.css)
   浅蓝色背景 + 上浮气泡特效，配色延续流控后台的蓝紫风格。
   顶部为「标题 + 公告」合并的单条紧凑栏。
   本文件在 light.css 之后加载，只覆盖配色和外观，不删除原有功能。
   想恢复原样：把 index.html 里这行引用删掉即可。 */

/* 使用项目自带的 Raleway 字体，让数字和英文更精致 */
@font-face { font-family: 'Raleway'; src: url('../fonts/raleway-regular-webfont.woff2') format('woff2'), url('../fonts/raleway-regular-webfont.woff') format('woff'); font-weight: 400; }
@font-face { font-family: 'Raleway'; src: url('../fonts/raleway-semibold-webfont.woff2') format('woff2'), url('../fonts/raleway-semibold-webfont.woff') format('woff'); font-weight: 600; }
@font-face { font-family: 'Raleway'; src: url('../fonts/raleway-bold-webfont.woff2') format('woff2'), url('../fonts/raleway-bold-webfont.woff') format('woff'); font-weight: 700; }

:root {
  --flow-blue: #2563eb;
  --flow-blue-soft: #3b82f6;
  --flow-purple: #7c3aed;
  --flow-purple-soft: #a78bfa;
  --flow-ink: #1e293b;
  --flow-muted: #64748b;
}

/* ---------- 背景：浅蓝色 + 柔光 ---------- */
body {
  padding-top: 78px;
  background:
    radial-gradient(ellipse at 15% -10%, rgba(125, 211, 252, 0.55), transparent 55%),
    radial-gradient(ellipse at 85% -5%, rgba(191, 219, 254, 0.65), transparent 50%),
    radial-gradient(ellipse at 50% 115%, rgba(147, 197, 253, 0.45), transparent 60%),
    linear-gradient(180deg, #eaf7ff 0%, #dcefff 55%, #cde9fe 100%);
  color: var(--flow-ink);
  font-family: 'Raleway', 'Microsoft YaHei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif;
}

/* ---------- 气泡特效层（固定铺满全屏，不挡点击） ---------- */
#tech-bubbles {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
#tech-bubbles span {
  position: absolute;
  bottom: -130px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.40) 22%,
    rgba(125, 211, 252, 0.30) 55%,
    rgba(56, 189, 248, 0.10) 100%);
  border: 1px solid rgba(255, 255, 255, 0.80);
  box-shadow:
    inset -4px -6px 12px rgba(56, 189, 248, 0.18),
    0 4px 18px rgba(56, 189, 248, 0.20);
  animation: tech-bubble-rise linear infinite;
  will-change: transform;
}
@keyframes tech-bubble-rise {
  0%   { transform: translateY(0) translateX(0) scale(1); }
  25%  { transform: translateY(-28vh) translateX(16px) scale(1.03); }
  50%  { transform: translateY(-56vh) translateX(-14px) scale(0.97); }
  75%  { transform: translateY(-84vh) translateX(12px) scale(1.02); }
  100% { transform: translateY(-118vh) translateX(-8px) scale(1); }
}

/* ---------- 顶部单栏：标题 + 公告合并，紧凑排版 ---------- */
.navbar-top {
  min-height: 46px;
  background: rgba(255, 255, 255, 0.88) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(125, 211, 252, 0.55);
  box-shadow: 0 2px 14px rgba(56, 189, 248, 0.18);
}
.tech-topbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 64px;
  padding-left: 0;
  padding-right: 20px;
}
/* 禁用 Bootstrap container 的 clearfix 伪元素：它们在 flex 顶部栏里会变成隐形占位项，把标题往中间挤 */
.tech-topbar::before,
.tech-topbar::after {
  content: none !important;
  display: none !important;
}
/* 去掉 Bootstrap 自带的 -15px 负边距；标题与公告都靠左，与卡片对齐 */
.navbar-header {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* 抵消 Bootstrap 对导航栏内 brand 的 -15px 外边距，保证标题与下方卡片左缘完全对齐 */
.navbar-top .navbar-brand {
  margin-left: 0 !important;
}
.navbar-inverse .navbar-brand {
  color: #2563eb !important;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 15px;
  line-height: 1.4;
  padding: 0;
}
.tech-topbar-msg {
  color: #334155;
  font-size: 13px;
  margin-left: 0;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
/* 公告文字特效：蓝紫流光渐变 */
.type-text {
  background: linear-gradient(90deg, #2563eb, #7c3aed, #06b6d4, #2563eb);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tech-text-flow 8s linear infinite;
}
@keyframes tech-text-flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
/* 打字机光标：蓝色呼吸闪烁 */
.type-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--flow-blue);
  animation: tech-caret-blink 0.8s steps(1, start) infinite;
}
@keyframes tech-caret-blink {
  50% { opacity: 0; }
}
.tech-topbar-msg i {
  color: var(--flow-blue);
  margin-right: 6px;
}

/* ---------- 主面板：半透明玻璃卡片，气泡透出更明显 ---------- */
.content {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(148, 197, 253, 0.55);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.18), 0 2px 10px rgba(34, 41, 47, 0.06);
}

/* ---------- 表格 ---------- */
.table { background: transparent; color: var(--flow-ink); }
.table > thead > tr > th {
  color: var(--flow-blue);
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(37, 99, 235, 0.18);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08));
}
.table > tbody > tr > td { border-top: 1px solid rgba(37, 99, 235, 0.10); }
.table-striped > tbody > tr.even > td,
.table-striped > tbody > tr.even > th { background: rgba(147, 197, 253, 0.16); }
.table-striped > tbody > tr.odd > td,
.table-striped > tbody > tr.odd > th { background: rgba(255, 255, 255, 0.50); }
.table-hover > tbody > tr:hover > td { background: rgba(125, 211, 252, 0.35); }
tr.even.expandRow > td,
tr.odd.expandRow > td { background: rgba(191, 219, 254, 0.28) !important; }
tr.even.expandRow > td:hover,
tr.odd.expandRow > td:hover { background: rgba(191, 219, 254, 0.28) !important; }
.expandRow > td { padding: 0 !important; border-top: 0 !important; }

/* ---------- 进度条：圆角渐变 ---------- */
.progress {
  background: rgba(226, 232, 240, 0.85);
  border: 1px solid rgba(148, 197, 253, 0.60);
  border-radius: 999px;
  height: 18px;
  box-shadow: inset 0 1px 3px rgba(30, 41, 59, 0.08);
}
.progress-bar {
  color: #ffffff;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.progress-bar-success {
  background-image: linear-gradient(135deg, #059669 0%, #34d399 100%);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}
.progress-striped .progress-bar-success {
  background-image:
    linear-gradient(135deg, #059669 0%, #34d399 100%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.20) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.20) 50%, rgba(255, 255, 255, 0.20) 75%, transparent 75%, transparent);
  background-size: 40px 40px;
}
.progress-bar-danger {
  background-image: linear-gradient(135deg, #e11d48 0%, #fb7185 100%);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
}
.progress-striped .progress-bar-danger {
  background-image:
    linear-gradient(135deg, #e11d48 0%, #fb7185 100%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.20) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.20) 50%, rgba(255, 255, 255, 0.20) 75%, transparent 75%, transparent);
  background-size: 40px 40px;
}
.progress-bar-warning {
  background-image: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}
.progress-striped .progress-bar-warning {
  background-image:
    linear-gradient(135deg, #d97706 0%, #fbbf24 100%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.20) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.20) 50%, rgba(255, 255, 255, 0.20) 75%, transparent 75%, transparent);
  background-size: 40px 40px;
}
.progress-bar-info {
  background-image: linear-gradient(135deg, var(--flow-blue) 0%, var(--flow-blue-soft) 100%);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.progress-bar-error {
  background-image: linear-gradient(135deg, #e11d48 0%, #ff5b5c 100%);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
}
.progress-striped .progress-bar-error {
  background-image:
    linear-gradient(135deg, #e11d48 0%, #ff5b5c 100%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.20) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.20) 50%, rgba(255, 255, 255, 0.20) 75%, transparent 75%, transparent);
  background-size: 40px 40px;
}

/* ---------- 加载提示 / 更新时间 / 页脚 ---------- */
#loading-notice { color: var(--flow-ink); }
#loading-notice .alert-danger {
  background: rgba(254, 242, 242, 0.90);
  border-color: #fecaca;
  color: #b91c1c;
}
#updated { color: var(--flow-muted); }
.container > p { color: var(--flow-muted); }

/* ---------- 滚动条和选中文字 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(226, 232, 240, 0.60); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--flow-blue-soft), var(--flow-purple-soft));
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--flow-blue), var(--flow-purple)); }
::selection { background: rgba(37, 99, 235, 0.20); color: #0f172a; }






/* ---------- 手机端（窄屏）：标题和公告居中，文字允许换行 ---------- */
@media (max-width: 767px) {
  .tech-topbar {
    align-items: center;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
  }
  .navbar-header {
    text-align: center;
  }
  .tech-topbar-msg {
    white-space: normal;
    text-align: center;
    line-height: 1.5;
    margin-top: 4px;
  }
  .navbar-inverse .navbar-brand {
    font-size: 14px;
  }
}
