/* =============================================
   iBabyHeart — 蓝白医疗风格响应式样式表
   ============================================= */

/* ---------- 变量 ---------- */
:root {
  --primary: #1b5e94;
  --primary-dark: #0d3b5c;
  --primary-light: #E4F0F9;
  --accent: #d9772a;
  --accent-light: #fef3e8;
  --bg: #F7FAFC;
  --card-bg: #fff;
  --text: #1a2a3a;
  --text-light: #4a5568;
  --gray-50: #F7FAFC;
  --gray-100: #edf2f7;
  --gray-200: #dde1e8;
  --gray-300: #cbd5e0;
  --gray-400: #718096;
  --gray-500: #777;
  --gray-600: #4a5568;
  --border: #e2e8f0;
  --danger: #C62828;
  --success: #2E7D32;
  --nav-height: 64px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 2px 8px rgba(0,0,0,.06);
  --shadow-hover: 0 4px 20px rgba(27,94,148,.15);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
           "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  line-height: 40px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.official-badge { display: flex; align-items: center; gap: 6px; }
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4CAF50; display: inline-block;
}
.sep { color: rgba(255,255,255,.25); }
.topbar-links { display: flex; gap: 16px; }
.topbar-links a { color: rgba(255,255,255,.8); transition: color .2s; }
.topbar-links a:hover { color: #fff; }
.admin-link { opacity: .6; }
.admin-link:hover { opacity: 1; }

/* ---------- Hamburger Menu ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
  z-index: 101;
  border-radius: 8px;
  transition: background .2s;
}
.hamburger:hover { background: var(--primary-light); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all .3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Navbar ---------- */
.navbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.navbar .container {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg,var(--primary),var(--primary-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}
.logo-text-group { line-height: 1.3; }
.logo-brand { font-size: 11px; color: var(--gray-400); }
.logo-site { font-size: 18px; font-weight: 700; color: var(--primary-dark); }
.logo-site em { font-style: normal; color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links li a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: 8px;
  transition: all .2s;
  white-space: nowrap;
}
.nav-links li a:hover { background: var(--primary-light); color: var(--primary); }
.nav-links .active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.nav-btn {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 100px !important;
  font-weight: 600;
  font-size: 13px;
}
.nav-btn:hover { background: #c46a22; transform: translateY(-1px); }
.nav-btn-secondary {
  border: 1px solid var(--border);
  padding: 8px 18px !important;
  border-radius: 100px !important;
  font-size: 13px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--primary-dark) 0%, #164a70 50%, var(--primary) 100%);
  padding: 56px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.hero h1 .slogan {
  display: block;
  font-size: clamp(18px, 2.5vw, 24px);
  color: #FFD54F;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: 0.5px;
}
.hero .sub {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  max-width: 500px;
  margin: 10px auto 24px;
  line-height: 1.6;
}
.hero .sub strong { color: rgba(255,255,255,0.8); font-weight: 600; }

/* ---------- Search Box ---------- */
.search-box {
  display: flex;
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: 60px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  padding: 6px;
}
.search-box input {
  flex: 1;
  border: none;
  padding: 16px 24px;
  font-size: 15px;
  outline: none;
  background: transparent;
}
.search-box input::placeholder { color: var(--gray-300); }
.search-btn {
  border-radius: 60px;
  border: none;
  background: linear-gradient(135deg,var(--primary),var(--primary-dark));
  color: #fff;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
  white-space: nowrap;
}
.search-btn:hover { opacity: .9; }
.search-btn:disabled { opacity: .5; cursor: not-allowed; }

.search-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.search-hints a {
  color: rgba(255,255,255,.75);
  font-size: 13px;
  padding: 4px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  transition: all .2s;
}
.search-hints .hint-label {
  color: rgba(255,255,255,.4);
  font-size: 12px;
  padding: 4px 0;
}
.search-hints a:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

/* ---------- Trust Strip ---------- */
.trust-strip {
  background: var(--primary);
  color: #fff;
}
.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 28px 24px;
}
.trust-strip .item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  opacity: 0.85;
  color: #fff;
}
.trust-strip .item .icon { font-size: 20px; }

/* ---------- Section ---------- */
section { padding: 36px 0; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-header h2 { font-size: 22px; color: var(--primary-dark); }
.section-header .sub { font-size: 14px; color: var(--gray-400); margin-top: 4px; }
.section-header .more {
  font-size: 14px;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 4px;
}
.section-header .more:hover { text-decoration: underline; }

/* ---------- AI Entry Banner ---------- */
.ai-entry {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg,var(--primary-light),#E8F5FE);
  border: 1px solid rgba(27,94,140,.1);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 16px;
}
.ai-entry .icon { font-size: 48px; flex-shrink: 0; }
.ai-entry .text { flex: 1; }
.ai-entry h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 4px; }
.ai-entry p { font-size: 14px; color: var(--text-light); }
.chat-btn {
  display: inline-block;
  background: linear-gradient(135deg,var(--primary),var(--primary-dark));
  color: #fff;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .2s;
}
.chat-btn:hover { transform: translateY(-2px); }

.ai-demo {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  line-height: 1.7;
}
.ai-demo .q {
  font-size: 15px;
  color: var(--text);
  background: var(--primary-light);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.ai-demo .a { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.ai-demo .tag {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 100px;
  margin: 0 4px 8px 0;
}
.ai-demo .expert-note {
  background: #FFF8E1;
  border-left: 3px solid #FFC107;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.ai-demo .expert-note .name { font-weight: 600; color: var(--text); }
.ai-demo .disclaimer {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 8px;
}

/* ---------- Q&A List ---------- */
.qa-list { display: flex; flex-direction: column; gap: 2px; }
.qa-card {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px 0;
  transition: all .2s;
  border-bottom: 1px solid #f5f5f5;
}
.qa-card:hover {
  background: var(--primary-light);
  box-shadow: var(--shadow-hover);
  transform: translateX(4px);
}
.qa-card .votes {
  text-align: center;
  min-width: 60px;
  padding: 0 16px;
  flex-shrink: 0;
}
.qa-card .num { font-size: 18px; font-weight: 700; color: var(--primary); }
.qa-card .label { font-size: 11px; color: var(--gray-400); }
.qa-card .body { flex: 1; min-width: 0; }
.qa-card .q-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}
.qa-card .body .q-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.qa-card .body .q-title:hover { color: var(--primary); }
.qa-card .body .q-excerpt {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}
.qa-card .q-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--gray-400);
  flex-wrap: wrap;
}
.disease-tag {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 100px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 500;
}
.disease-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* ---------- Expert Grid ---------- */
.expert-grid, .doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}
@media (max-width: 480px) {
  .expert-grid, .doctor-grid { grid-template-columns: 1fr; }
}
.expert-card, .doctor-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow .2s;
}
.expert-card:hover, .doctor-card:hover { box-shadow: var(--shadow-hover); }
.expert-card .badge {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
  font-weight: 600;
}
.expert-card h4 { font-size: 17px; margin-bottom: 10px; color: var(--primary-dark); }
.expert-card > p { font-size: 14px; color: var(--text-light); line-height: 1.7; }
.expert-card .meta {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 12px;
}
.expert-comment {
  background: #FFF8E1;
  border-left: 3px solid #FFC107;
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}
.expert-comment .label { font-weight: 600; color: var(--text); margin-bottom: 4px; }

/* ---------- Journey Strip ---------- */
.journey-strip {
  padding: 36px 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
}
.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.journey-step {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: all .25s;
  border: 1px solid var(--gray-200);
  text-align: center;
}
.journey-step:hover {
  box-shadow: 0 4px 20px rgba(27,94,140,0.08);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}
.journey-step .num {
  width: 44px; height: 44px;
  background: linear-gradient(135deg,var(--primary),var(--primary-dark));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  margin: 0 auto 14px;
}
.journey-step h4 { font-size: 16px; margin-bottom: 8px; color: var(--primary-dark); }
.journey-step p { font-size: 14px; color: var(--gray-500); margin: 0; line-height: 1.6; }

/* ---------- Page Banner ---------- */
.page-banner {
  background: linear-gradient(135deg,var(--primary),var(--primary-dark)) !important;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  margin-bottom: 32px;
}
.page-banner h1 { color: #fff; margin: 0 0 16px; }
.page-banner p { color: rgba(255,255,255,.8); }
.page-banner .stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,.65);
}

/* ---------- Forum Cards ---------- */
.forum-group { margin-bottom: 32px; }
.forum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.forum-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all .2s;
}
.forum-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}
.forum-name { font-size: 16px; font-weight: 600; color: var(--primary-dark); margin-bottom: 6px; }
.forum-stat { font-size: 13px; color: var(--gray-400); margin-bottom: 8px; display: flex; gap: 16px; }
.forum-desc { font-size: 13px; color: var(--text-light); line-height: 1.5; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 32px 0 16px;
}
.pagination a, .pagination .current {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  transition: all .2s;
}
.pagination a { background: var(--card-bg); border: 1px solid var(--border); color: var(--text); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border: 1px solid var(--primary); }

/* ---------- Article ---------- */
.article-page { padding: 24px 0; }
.breadcrumb {
  font-size: 13px;
  color: var(--gray-400);
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

.thread-main {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 16px;
}
.thread-title { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.thread-title h1 { font-size: 22px; color: var(--primary-dark); flex: 1; }
.closed-tag { font-size: 12px; background: #FCE4EC; color: var(--danger); padding: 2px 10px; border-radius: 4px; }
.thread-meta {
  font-size: 13px;
  color: var(--gray-400);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.vip-lock-banner {
  background: linear-gradient(135deg,#FF8F00,#FF6F00);
  padding: 20px 24px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
}
.lock-icon { font-size: 32px; }
.vip-lock-banner h4 { font-size: 16px; margin-bottom: 4px; }
.vip-lock-banner p { font-size: 14px; opacity: .85; }
.thread-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.thread-content .post-content-body blockquote {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 8px;
  color: var(--text-light);
  font-size: 14px;
}
.thread-content .post-content-body pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
  margin: 16px 0;
}
.thread-content .post-content-body code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}
.thread-content .post-content-body pre code {
  background: none;
  padding: 0;
}
.thread-content .post-content-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 12px 0;
  box-shadow: var(--shadow);
}
.thread-content .post-content-body a {
  color: var(--primary);
  text-decoration: underline;
}
.thread-content .post-content-body ul,
.thread-content .post-content-body ol {
  padding-left: 24px;
  margin: 12px 0;
}
.thread-content .post-content-body li {
  margin-bottom: 4px;
}
.thread-content .post-content-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.replies-section { margin-bottom: 24px; }
.replies-section h2 { font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.replies-section .count { font-size: 14px; color: var(--gray-400); font-weight: 400; }

.no-replies {
  text-align: center;
  padding: 40px 0;
  color: var(--gray-400);
}
.reply-btn {
  display: inline-block;
  background: linear-gradient(135deg,var(--primary),var(--primary-dark));
  color: #fff;
  padding: 10px 28px;
  border-radius: 100px;
  font-size: 14px;
  margin-top: 12px;
}
.reply-btn:hover { opacity: .9; }

.reply-card {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #f5f5f5;
}
.reply-avatar { text-align: center; min-width: 60px; }
.reply-avatar img {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover;
}
.reply-author { font-size: 13px; color: var(--primary); font-weight: 600; margin-top: 4px; }
.reply-body { flex: 1; min-width: 0; }
.reply-meta { font-size: 12px; color: var(--gray-400); margin-bottom: 8px; }
.reply-content { font-size: 14px; line-height: 1.7; color: var(--text); }

.related-section { margin-bottom: 24px; }
.related-section h2 { font-size: 18px; margin-bottom: 16px; }

/* ---------- Disease Grid ---------- */
.disease-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.disease-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all .25s;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}
.disease-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(27,94,140,0.1);
  transform: translateY(-2px);
}
.disease-card .code {
  min-width: 40px; height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  white-space: nowrap;
}
.disease-card .info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}
.disease-card .info .count {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 1px;
}
.disease-card .info .count em { font-style: normal; color: var(--accent); font-weight: 600; }
.disease-info { flex: 1; }
.disease-info h4 { font-size: 16px; margin-bottom: 4px; color: var(--primary-dark); }
.disease-info p { font-size: 13px; color: var(--text-light); line-height: 1.5; }
.disease-info .count {
  font-size: 12px; color: var(--primary); margin-top: 6px; display: inline-block;
}

/* ---------- Auth Pages ---------- */
.auth-page {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}
.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.auth-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg,var(--primary),var(--primary-dark));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: #fff;
  margin: 0 auto 16px;
}
.auth-card h1 { font-size: 24px; color: var(--primary-dark); margin-bottom: 4px; }
.auth-sub { font-size: 14px; color: var(--gray-400); margin-bottom: 24px; }
.auth-error {
  background: #FCE4EC;
  color: var(--danger);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: left;
}
.auth-card form { text-align: left; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; color: var(--text); margin-bottom: 6px; font-weight: 500; }
.field input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.field input:focus { border-color: var(--primary); }
.remember-row { margin-bottom: 8px; }
.remember-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; }
.remember-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.field-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.field-checkbox input { width: 18px; height: 18px; }
.field-checkbox label { font-size: 13px; color: var(--text-light); }
.auth-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg,var(--primary),var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}
.auth-btn:hover { opacity: .9; }
.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13px;
}
.auth-links a { color: var(--primary); }
.auth-links a:hover { text-decoration: underline; }

/* ---------- Member ---------- */
.member-header {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 16px;
}
.member-avatar { flex-shrink: 0; }
.member-info { flex: 1; }
.member-info h1 { font-size: 24px; margin-bottom: 8px; }
.member-badges { display: flex; gap: 8px; margin-bottom: 12px; }
.member-badges .badge {
  display: inline-block;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 100px;
  background: var(--primary-light);
  color: var(--primary);
}
.member-badges .badge.admin { background: #FCE4EC; color: var(--danger); }
.member-badges .badge.vip { background: #FFF8E1; color: #F57F17; }
.member-stats { font-size: 14px; color: var(--gray-400); display: flex; gap: 16px; flex-wrap: wrap; }

.upgrade-banner {
  background: linear-gradient(135deg,#FFF8E1,#FFECB3);
  border: 1px solid #FFE082;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.upgrade-icon { font-size: 36px; flex-shrink: 0; }
.upgrade-text { flex: 1; }
.upgrade-text h3 { font-size: 16px; margin-bottom: 4px; }
.upgrade-text p { font-size: 14px; color: var(--text-light); }
.upgrade-btn {
  display: inline-block;
  background: linear-gradient(135deg,var(--primary),var(--primary-dark));
  color: #fff;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.upgrade-btn:hover { opacity: .9; }

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.member-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow .2s;
  cursor: pointer;
}
.member-card:hover { box-shadow: var(--shadow-hover); }
.member-card h4 { font-size: 16px; margin-bottom: 8px; }
.member-card p { font-size: 13px; color: var(--gray-400); }

/* ---------- Plans (Member Upgrade) ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.plan-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: all .2s;
}
.plan-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-hover); }
.plan-card.recommended {
  border-color: var(--primary);
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(27,94,140,.15);
}
.recommended-tag, .current-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}
.recommended-tag { background: var(--primary); color: #fff; }
.current-tag { background: #E8F5E9; color: var(--success); }
.plan-card h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 12px; }
.plan-card .price { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.feature-list { text-align: left; margin-bottom: 24px; }
.feature-list li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-light);
}
.current-badge {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 100px;
  background: #E8F5E9;
  color: var(--success);
  font-size: 14px;
  font-weight: 600;
}
.choose-btn {
  display: inline-block;
  padding: 10px 32px;
  background: linear-gradient(135deg,var(--primary),var(--primary-dark));
  color: #fff;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
}
.choose-btn:hover { opacity: .9; }

/* ---------- Search ---------- */
.search-meta {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
  padding: 12px 0;
}

/* ---------- About Section ---------- */
.about-section { margin-bottom: 32px; }
.about-section h2 { font-size: 20px; color: var(--primary); margin-bottom: 12px; }
.about-section p { font-size: 15px; line-height: 1.8; color: var(--text); }
.about-section ul { padding-left: 20px; }
.about-section li { font-size: 15px; line-height: 1.8; color: var(--text); margin-bottom: 4px; }
.about-section a { color: var(--primary); }
.about-section a:hover { text-decoration: underline; }

/* ---------- AI Chat ---------- */
.ai-chat-interface { max-width: 800px; margin: 0 auto; }
.chat-messages {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 16px;
  min-height: 400px;
}
.chat-msg { display: flex; gap: 12px; margin-bottom: 20px; }
.chat-msg.user { flex-direction: row-reverse; }
.msg-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--primary-light);
}
.chat-msg.user .msg-avatar { background: var(--primary); }
.msg-body { max-width: 75%; }
.chat-msg .msg-name { font-size: 12px; color: var(--gray-400); margin-bottom: 4px; }
.chat-msg.user .msg-name { text-align: right; }
.msg-text {
  background: var(--primary-light);
  border-radius: 8px 16px 16px 16px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.chat-msg.user .msg-text {
  background: var(--primary);
  color: #fff;
  border-radius: 16px 8px 16px 16px;
}
.msg-text p { margin-bottom: 8px; }
.msg-text p:last-child { margin-bottom: 0; }
.msg-text ul { padding-left: 16px; margin-bottom: 8px; }
.msg-text li { margin-bottom: 4px; }
.msg-footer { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.msg-footer .tag {
  font-size: 11px; color: var(--primary); background: var(--primary-light);
  padding: 2px 10px; border-radius: 100px;
}
.msg-disclaimer {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 8px;
}

.chat-input {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 16px;
}
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.chat-input-row input:focus { border-color: var(--primary); }
.chat-input-row input:disabled { background: #f8f8f8; cursor: not-allowed; }

/* 快捷提问 */
.quick-asks {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: 12px;
  margin-bottom: 12px;
}
.quick-label { font-size: 13px; color: var(--gray-400); white-space: nowrap; }
.quick-btn {
  padding: 6px 14px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  transition: all .2s;
}
.quick-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Doctor Page ---------- */
.doctor-card { text-align: center; }
.doctor-avatar { margin-bottom: 16px; }
.avatar-placeholder {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--primary),var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #fff;
  margin: 0 auto;
}
.doctor-card h4 { font-size: 18px; margin-bottom: 4px; }
.doctor-card .title {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 2px;
}
.doctor-card .specialty {
  font-size: 13px;
  color: var(--primary);
  margin: 8px 0;
  line-height: 1.5;
}
.doctor-card .desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---------- Footer ---------- */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
  padding: 48px 0 0;
  margin-top: auto;
}
footer .container {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
}
footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}
footer a {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: 14px;
  margin-bottom: 8px;
  transition: color .2s;
}
footer a:hover { color: #fff; }

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  white-space: nowrap;
}
.footer-bottom .container {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 960px) {
  .footer-bottom { white-space: normal; padding: 16px; }
}

/* Make footer label consistent */
footer .brand p { font-size: 14px; line-height: 1.7; margin: 0; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-300); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 32px; }
  .plan-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .plan-card.recommended { transform: none; }
}

@media (max-width: 960px) {
  .disease-grid { grid-template-columns: repeat(3, 1fr); }
  .journey-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .topbar { font-size: 12px; line-height: 36px; }
  .topbar .container { flex-direction: column; text-align: center; gap: 2px; }
  .topbar-links { display: none; }

  .navbar .container { flex-wrap: wrap; height: auto; padding: 12px 20px; gap: 0; }
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 4px;
  }
  .nav-links.show { display: flex; }
  .nav-links li a {
    font-size: 14px;
    padding: 10px 12px;
    white-space: nowrap;
    border-radius: 8px;
  }
  .nav-links .nav-btn,
  .nav-links .nav-btn-secondary {
    text-align: center;
    padding: 10px 12px !important;
    width: 100%;
  }

  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 26px; }
  .hero .sub { font-size: 14px; }

  .search-box { border-radius: 12px; flex-direction: column; }
  .search-box input { padding: 14px 18px; }
  .search-btn { padding: 14px; }

  .trust-strip .container { gap: 16px; padding: 16px 20px; }
  .trust-strip .item { font-size: 13px; }

  section { padding: 32px 0; }
  .section-header { flex-direction: column; }
  .section-header h2 { font-size: 18px; }

  .ai-entry { flex-direction: column; text-align: center; padding: 24px; }

  .page-banner { padding: 32px 24px !important; }
  .page-banner h1 { font-size: 22px; }

  .expert-grid, .doctor-grid,
  .forum-grid, .member-grid,
  .plan-grid { grid-template-columns: 1fr; }
  .disease-grid { grid-template-columns: repeat(2, 1fr); }
  .journey-grid { grid-template-columns: 1fr; }

  .qa-card { flex-direction: column; }
  .qa-card .votes { display: flex; gap: 6px; align-items: center; }
  .qa-card .votes .num { font-size: 15px; }
  .qa-card .q-title { white-space: normal; }

  .thread-main { padding: 20px; }
  .thread-title { flex-direction: column; align-items: flex-start; }
  .thread-title h1 { font-size: 18px; }

  .reply-card { flex-direction: column; align-items: flex-start; }
  .reply-author { margin: 0; }
  .reply-avatar { display: flex; align-items: center; gap: 8px; }

  /* Footer 响应式 */
  footer .container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ========== AI 聊天页 ========== */
.ai-page .ai-hero {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 50%, #1b7ab0 100%);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    margin-bottom: 32px;
    color: #fff;
    text-align: center;
  }
  .ai-page .ai-hero h1 {
    font-size: 26px;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .ai-icon { font-size: 28px; }
  .ai-hero-desc { font-size: 15px; color: rgba(255,255,255,0.85); line-height: 1.6; margin: 0; }
  .ai-hero-desc strong { color: #fff; }

  /* 聊天容器 */
  .ai-chat-wrap {
    max-width: 800px;
    margin: 0 auto;
  }

  /* 消息列表 */
  .chat-messages {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    min-height: 400px;
    max-height: 560px;
    overflow-y: auto;
    scroll-behavior: smooth;
  }

  /* 单条消息 */
  .chat-msg {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
  }
  .chat-msg:last-child { margin-bottom: 0; }

  .msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }
  .chat-msg.user .msg-avatar {
    background: var(--primary-light);
  }
  .chat-msg.ai .msg-avatar {
    background: linear-gradient(135deg, var(--primary-light), #D0E4F7);
  }

  .msg-body {
    flex: 1;
    min-width: 0;
    max-width: 82%;
  }
  .msg-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
  }
  .msg-text {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text);
    word-wrap: break-word;
  }
  .msg-text p { margin: 0 0 8px; }
  .msg-text p:last-child { margin-bottom: 0; }
  .msg-text ul { margin: 6px 0; padding-left: 20px; }
  .msg-text li { margin-bottom: 4px; }
  .msg-text strong { color: var(--primary-dark); }
  .msg-warning {
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 10px !important;
  }
  .msg-footer {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  .msg-disclaimer {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 6px;
    font-style: italic;
  }

  /* 思考动画 */
  .thinking-dots { display: inline-flex; gap: 2px; align-items: center; }
  .thinking-dots .dot {
    font-size: 28px;
    line-height: 1;
    color: var(--primary);
    animation: dot-pulse 1.4s ease-in-out infinite;
  }
  .thinking-dots .dot:nth-child(2) { animation-delay: 0.2s; }
  .thinking-dots .dot:nth-child(3) { animation-delay: 0.4s; }
  @keyframes dot-pulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.1); }
  }

  /* 来源区域 */
  .chat-sources {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
  }
  .sources-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
  }
  .sources-list { display: flex; flex-direction: column; gap: 6px; }
  .source-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.15s;
    gap: 12px;
  }
  .source-item:hover {
    border-color: var(--primary);
    background: #f0f7ff;
  }
  .source-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .source-meta {
    font-size: 12px;
    color: var(--gray-400);
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* 输入区 */
  .chat-input-area {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
  }
  .chat-input-row {
    display: flex;
    gap: 10px;
  }
  .chat-input-row input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    background: var(--gray-50);
  }
  .chat-input-row input:focus {
    border-color: var(--primary);
    background: var(--card-bg);
  }
  .chat-input-row input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  .chat-input-row .search-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  .chat-hint {
    text-align: center;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 10px;
    margin-bottom: 0;
  }
  .chat-login-tip {
    text-align: center;
    padding: 8px 0;
  }
  .chat-login-tip .btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
  }
  .chat-login-tip .btn:hover {
    background: var(--primary-dark);
  }

  @media (max-width: 640px) {
    .ai-page .ai-hero { padding: 28px 20px; }
    .ai-page .ai-hero h1 { font-size: 20px; }
    .chat-messages { max-height: 400px; padding: 16px; }
    .chat-msg .msg-body { max-width: 90%; }
  }

@media (max-width: 480px) {
  .hero h1 { font-size: 22px; }
  .logo-site { font-size: 16px; }
  .official-badge span { display: none; }
  .official-badge span:first-child { display: inline; }
  .expert-card { padding: 20px; }
  footer .container { grid-template-columns: 1fr; }
  .search-hints a { font-size: 12px; padding: 3px 10px; }
}

/* ---------- 600px 断点 —— 移动端核心优化 ---------- */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  section { padding: 28px 0; }
  .section-header h2 { font-size: 17px; }
  .section-header p { font-size: 13px; }

  /* Hero */
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 20px; }
  .hero .sub { font-size: 13px; margin: 8px auto 20px; }

  /* 搜索框 */
  .search-box { border-radius: 10px; flex-direction: column; }
  .search-box input { padding: 12px 16px; font-size: 15px; }
  .search-btn { padding: 12px; font-size: 14px; }

  /* 卡片网格 - 全宽 */
  .expert-grid, .doctor-grid,
  .forum-grid, .member-grid,
  .plan-grid, .progress-grid,
  .center-focus-grid { grid-template-columns: 1fr; }

  /* 病种网格 - 2列紧凑 */
  .disease-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .disease-card { padding: 16px; }
  .disease-card h3 { font-size: 14px; }
  .disease-card .count { font-size: 12px; }

  /* 卡片内边距紧凑 */
  .expert-card { padding: 18px; }
  .forum-card { padding: 16px; }
  .progress-card { padding: 16px; }
  .focus-card { padding: 18px; }
  .qa-card { padding: 16px; }
  .journey-step { padding: 22px 18px; }

  /* 字体缩小 */
  .expert-card h4 { font-size: 15px; }
  .expert-card > p { font-size: 13px; }
  .forum-name { font-size: 15px; }
  .forum-stat { font-size: 12px; gap: 10px; }
  .forum-desc { font-size: 12px; }
  .progress-card h4 { font-size: 14px; }
  .progress-card .excerpt { font-size: 12px; }
  .focus-card h4 { font-size: 14px; }
  .focus-card p { font-size: 12px; }
  .qa-card .q-title { font-size: 15px; }
  .journey-step h4 { font-size: 15px; }
  .journey-step p { font-size: 13px; }

  /* 信任条 */
  .trust-strip .container { gap: 12px; padding: 14px 16px; gap: 8px; }
  .trust-strip .item { font-size: 12px; }

  /* 文章/详情页 */
  .article-page { padding: 16px 0; }
  .thread-main { padding: 16px; }
  .page-banner { padding: 24px 18px !important; }
  .page-banner h1 { font-size: 20px; }
  .page-banner p { font-size: 13px; }
  .page-banner .stats { flex-wrap: wrap; gap: 12px; font-size: 13px; }

  /* 分页 */
  .pagination { padding: 24px 0 12px; gap: 4px; }
  .pagination a, .pagination .current { padding: 6px 12px; font-size: 13px; }

  /* Footer */
  footer { padding: 32px 0 0; }
  footer .col-title { font-size: 14px; }
  footer a { font-size: 13px; }
  .footer-bottom { font-size: 12px; padding: 16px; }
  footer .brand p { font-size: 13px; }

  /* 行高 - 改善阅读舒适度 */
  body { line-height: 1.7; }
  .hero .sub { line-height: 1.7; }
  .expert-card > p { line-height: 1.8; }
  .qa-card .q-excerpt { line-height: 1.7; font-size: 13px; }
}

/* ===== 最新研究进展（Progress Section）===== */
.section-latest { background: #fff; padding: 36px 0; }

.progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.progress-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.2s;
}
.progress-card:hover { box-shadow: 0 4px 16px rgba(27,94,148,0.1); }
.progress-card .badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}
.progress-card h4 { font-size: 15px; margin: 0 0 6px; line-height: 1.4; }
.progress-card h4 a { color: var(--primary-dark); text-decoration: none; }
.progress-card h4 a:hover { color: var(--primary); text-decoration: underline; }
.kb-link { color: var(--primary-dark); text-decoration: none; border-bottom: 1px dashed rgba(27,94,148,0.3); }
.kb-link:hover { color: var(--primary); border-bottom-style: solid; }
.original-link { font-size: 11px; color: #999; text-decoration: none; }
.original-link:hover { color: var(--primary); text-decoration: underline; }
.progress-card .authors { font-size: 12px; color: #666; margin: 0 0 8px; }
.progress-card .excerpt { font-size: 13px; color: #555; line-height: 1.5; margin: 0; }
.progress-card .progress-meta {
  font-size: 12px; color: #999; margin-top: 8px;
}
.progress-card .progress-meta .author { color: #777; }

/* ===== 中心聚焦（Center Focus Section）===== */
.center-focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.focus-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.focus-card:hover { box-shadow: 0 4px 20px rgba(27,94,148,0.1); transform: translateY(-2px); }
.focus-card .focus-meta { display: flex; align-items: center; gap: 10px; }
.focus-card .tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.focus-card .date { font-size: 12px; color: #999; }
.focus-card h4 { font-size: 16px; font-weight: 600; color: var(--text); margin: 0; line-height: 1.4; }
.focus-card p { font-size: 13px; color: #666; line-height: 1.6; margin: 0; }
.focus-card .source { font-size: 12px; color: #aaa; }
.focus-card .read-more {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  margin-top: 4px;
  text-decoration: none;
}
.focus-card .read-more:hover { text-decoration: underline; }

/* ===== 中心权威数据统计卡片 ===== */
.stat-card-item {
  background: linear-gradient(135deg, #f0f8ff 0%, #e3f2fd 100%);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid rgba(21,101,192,0.08);
}
.stat-card-item:hover { box-shadow: 0 4px 20px rgba(21,101,192,0.1); transform: translateY(-2px); }
.stat-card-item .icon { font-size: 36px; margin-bottom: 8px; }
.stat-card-item .value { font-size: 28px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.stat-card-item .label { font-size: 14px; font-weight: 600; color: var(--text); margin: 4px 0 8px; }
.stat-card-item p { font-size: 12px; color: #666; line-height: 1.5; margin: 0; }

/* ===== 证据来源标注 ===== */
.adopted-note {
  font-size: 12px;
  color: #888;
  margin: 8px 0 0;
  line-height: 1.5;
  border-top: 1px solid #f0f0f0;
  padding-top: 8px;
}
.adopted-note .icon { margin-right: 3px; }
.adopted-note strong { color: var(--primary); font-weight: 600; }
.adopted-tags { display: inline; }
.adopted-tags a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.adopted-tags a:hover { text-decoration: underline; }

/* ===== 中心聚焦：统计药丸条 ===== */
.center-stats-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f0f8ff, #e3f2fd);
  border: 1px solid rgba(21,101,192,0.12);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 13px;
  white-space: nowrap;
}
.stat-pill .icon { font-size: 18px; }
.stat-pill .value { font-weight: 700; color: var(--primary); font-size: 16px; }
.stat-pill .label { color: #666; }

/* ===== 知识库计数 ===== */
.disease-card .count em { color: var(--accent); font-style: normal; font-weight: 700; }
