/* ============ 医院管理指标系统 ============ */
:root {
  --primary: #0f6fbf;
  --primary-dark: #0b5a9d;
  --primary-light: #e8f2fb;
  --accent: #17a2a6;
  --text: #22303e;
  --text-muted: #6b7a8a;
  --bg: #f4f7fa;
  --card: #ffffff;
  --border: #e3eaf1;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 80, 140, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

/* ===== 首页 Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #0a4d8c 0%, #0f6fbf 45%, #17a2a6 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.hero::before { width: 560px; height: 560px; top: -180px; right: -140px; }
.hero::after { width: 420px; height: 420px; bottom: -160px; left: -120px; }
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 32px;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.08);
}
.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 18px;
}
.hero h1 span { color: #ffe08a; }
.hero p.desc {
  font-size: 18px;
  opacity: 0.92;
  max-width: 640px;
  margin-bottom: 42px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 38px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.24); }
.hero-stats {
  display: flex;
  gap: 56px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.hero-stats .stat .num { font-size: 34px; font-weight: 700; }
.hero-stats .stat .label { font-size: 14px; opacity: 0.85; }
.hero-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  z-index: 1;
}

/* ===== 顶部导航 ===== */
.navbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--primary-dark); }
.logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.nav-links { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.15s;
}
.nav-links a:hover { background: var(--primary-light); color: var(--primary-dark); }
.nav-links a.active { background: var(--primary); color: #fff; }

/* ===== 控制台 ===== */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 32px 24px 60px; }
.page-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.page-sub { color: var(--text-muted); margin-bottom: 28px; font-size: 14px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.sys-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all 0.2s;
  position: relative;
}
.sys-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15, 80, 140, 0.14); }
.sys-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  color: #fff;
}
.sys-card h3 { font-size: 18px; margin-bottom: 6px; }
.sys-card p { font-size: 13px; color: var(--text-muted); }
.sys-tag {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
}
.tag-ready { background: #e6f7f0; color: #0a9d6c; }
.tag-wip { background: #fff6e5; color: #d98e00; }

/* ===== 指标表 ===== */
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}
.search-input {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  background: var(--card);
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 111, 191, 0.12); }
.filter-select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  font-size: 14px;
  color: var(--text);
  outline: none;
}
.btn-mini {
  padding: 9px 18px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.btn-mini.ghost { background: var(--card); color: var(--primary-dark); border: 1px solid var(--border); }
.table-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: auto;
}
table.indicators { width: 100%; border-collapse: collapse; min-width: 860px; }
table.indicators th, table.indicators td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  text-align: left;
  vertical-align: middle;
}
table.indicators th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
table.indicators tbody tr:hover { background: #f7fafd; }
td.center, th.center { text-align: center; }
.num-input {
  width: 100%;
  min-width: 72px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.num-input:focus { border-color: var(--primary); }
.rate-cell { font-weight: 700; color: var(--primary-dark); white-space: nowrap; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}
.b-quant { background: #e8f2fb; color: #0f6fbf; }
.b-qual { background: #f3ecfb; color: #7a4fc9; }
.dir-up { color: #0a9d6c; }
.dir-down { color: #d9534f; }
.dir-watch { color: #b58900; }
.chip-star { color: #d98e00; font-weight: 700; }

/* 等级评审章节 */
.chapter {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}
.chapter-head {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: linear-gradient(90deg, var(--primary-light), transparent);
  user-select: none;
}
.chapter-head .arrow { margin-left: auto; transition: transform 0.2s; color: var(--text-muted); }
.chapter.open .arrow { transform: rotate(180deg); }
.chapter-head h3 { font-size: 16px; color: var(--primary-dark); }
.chapter-body { padding: 6px 22px 14px; }
.sub-row td { color: var(--text); font-weight: 600; background: #fbfdff; }
.sub-row2 td { background: #f7fafd; font-weight: 500; }

/* 质控专业列表 */
.spec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.spec-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow);
}
.spec-item .no {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 8px;
  padding: 3px 9px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

/* 页脚 */
.site-footer {
  text-align: center;
  padding: 26px 16px 40px;
  color: var(--text-muted);
  font-size: 13px;
}

/* 建设中页 */
.build-wrap {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.build-icon { font-size: 64px; margin-bottom: 18px; }
.build-wrap h2 { font-size: 26px; margin-bottom: 10px; }
.build-wrap p { color: var(--text-muted); margin-bottom: 26px; }

@media (max-width: 720px) {
  .hero h1 { font-size: 34px; }
  .hero-stats { gap: 28px; }
  .navbar-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; }
  .nav-links { margin-left: 0; width: 100%; }
}
