/* ==================================================================
   浏览器内核检测与分析系统 · 自定义样式
   兼容策略:
     - 布局使用 table/float/block, 不依赖 flex / grid (兼容 IE8+)
     - 渐变均提供 solid 背景回退 + -ms- / -webkit- 前缀 (IE10+ 渐变, IE9 回退)
     - 圆角、阴影、透明度均为渐进增强, 老浏览器自动降级
   ================================================================== */

body {
  background: #f2f2f2;
  -webkit-text-size-adjust: 100%;
}

/* ---------- 顶部 ---------- */
.core-header {
  color: #fff;
  padding: 26px 0;
  margin-bottom: 20px;
  background: #1E9FFF; /* IE9 回退 */
  background: -ms-linear-gradient(135deg, #1E9FFF 0%, #16b777 100%);
  background: -webkit-linear-gradient(135deg, #1E9FFF 0%, #16b777 100%);
  background: linear-gradient(135deg, #1E9FFF 0%, #16b777 100%);
}
.core-header-inner { display: table; width: 100%; }
.core-logo {
  display: table-cell;
  vertical-align: middle;
  width: 1%;
  font-size: 46px;
  padding-right: 16px;
}
.core-title { display: table-cell; vertical-align: middle; }
.core-title h1 {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  letter-spacing: 1px;
}
.core-title p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 6px;
}
.core-tools {
  display: table-cell;
  vertical-align: middle;
  text-align: right;
  white-space: nowrap;
}
.core-tools .layui-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #1E9FFF;
  border: none;
}
.core-tools .layui-btn:hover { background: #fff; color: #16b777; }
.core-tools .layui-btn .layui-icon { font-size: 14px; }

.core-container { padding-bottom: 10px; }

/* ---------- 汇总卡片 ---------- */
.core-summary-card { margin-bottom: 4px; }
.core-summary-card .layui-card-header {
  font-weight: 600;
  font-size: 14px;
}
.core-summary-card .layui-card-header .layui-icon { color: #1E9FFF; margin-right: 4px; }
.core-summary-card .layui-card-body { padding: 16px 18px; }
.core-big {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  word-break: break-all;
}
.core-sub { font-size: 12px; color: #999; margin-top: 4px; }
.core-summary-card .layui-progress { margin-top: 8px; }

/* ---------- 系统分析 ---------- */
.core-analysis-card { margin-top: 18px; }
.core-analysis-card .layui-card-header {
  font-weight: 600;
  font-size: 15px;
}
.core-analysis-card .layui-card-header .layui-icon { color: #16b777; margin-right: 4px; }
.core-analysis { margin: 0; padding: 0; }
.core-analysis li {
  list-style: none;
  padding: 7px 0;
  line-height: 1.7;
  color: #555;
  border-bottom: 1px dashed #eee;
}
.core-analysis li:last-child { border-bottom: none; }
.core-analysis li .layui-icon {
  color: #1E9FFF;
  margin-right: 6px;
  font-size: 12px;
}

/* ---------- 标签页 ---------- */
.core-tab { margin-top: 18px; }
.core-tab .layui-tab-title { height: 46px; }
.core-tab .layui-tab-title li { font-size: 14px; }
.core-tab .layui-tab-title li .layui-icon { margin-right: 4px; font-size: 15px; }
.core-tab .layui-tab-content { padding: 0; }

/* ---------- 信息表格 ---------- */
.core-table { margin: 0; }
.core-table td { font-size: 13px; padding: 9px 12px; }
.core-table .core-k {
  color: #666;
  font-weight: 600;
  background: #FAFAFA;
  width: 230px;
  white-space: nowrap;
}
.core-table .core-v {
  color: #333;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-all;
}

/* ---------- 状态徽章 ---------- */
.core-badge {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.7;
  color: #fff;
}
.core-ok { background: #5FB878; }
.core-no { background: #a0a0a0; }
.core-maybe { background: #FFB800; }

/* ---------- 原始 JSON ---------- */
.core-json {
  background: #1f2430;
  color: #d7e0f0;
  padding: 16px;
  margin: 0;
  font: 12px/1.6 Consolas, Monaco, 'Courier New', monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-all;
  max-height: 560px;
  overflow: auto;
  border-radius: 2px;
}

/* ---------- 底部操作 ---------- */
.core-actions {
  margin-top: 20px;
  text-align: center;
}
.core-footer {
  margin-top: 14px;
  padding: 14px 0;
  border-top: 1px solid #e6e6e6;
  color: #999;
  font-size: 12px;
  overflow: hidden;
}
.core-footer-right { float: right; }

/* ---------- 站点页脚 (覆盖 layui-footer 的 fixed 定位) ---------- */
footer .layui-footer {
  position: static;
  height: auto;
  line-height: inherit;
  left: auto;
  right: auto;
  bottom: auto;
  text-align: center;
}
.ws-footer {
  background: #fff;
  border-top: 1px solid #e6e6e6;
  padding: 16px 0;
  color: #999;
  font-size: 13px;
}
.ws-footer p { margin: 0; }
.ws-footer a { color: #1E9FFF; }

/* ---------- 响应式 (移动端) ---------- */
@media (max-width: 767px) {
  .core-header-inner { display: block; }
  .core-logo { display: block; font-size: 36px; padding-bottom: 10px; }
  .core-title { display: block; }
  .core-title h1 { font-size: 20px; }
  .core-tools { display: block; text-align: left; margin-top: 14px; }
  .core-footer-right { float: none; display: block; margin-top: 4px; }
}
