/*
Theme Name: Smart Telehealth Hub
Theme URI: https://smarttelehealthhub.help
Description: Digital health navigation. Reviews of online doctor platforms, remote diagnostic tools, and digital prescription delivery services.
Style ID: c9bb5a
Version: 1.0.0
Text Domain: smart-telehealth-hub
*/

/* ============ 配色系统（深色） ============ */
:root {
  --bg: #1b1613;
  --bg-alt: #28231f;
  --bg-deep: #110f0d;
  --text: #efedeb;
  --text-muted: #a59d97;
  --accent: #e69056;
  --border: #3f3731;
  /* 宽松视觉密度 */
  --spacing: 28px;
  --spacing-lg: 60px;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  --font-head: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

/* ============ 基础重置 ============ */
.c9bb5a-body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.c9bb5a-body *, .c9bb5a-body *::before, .c9bb5a-body *::after {
  box-sizing: border-box;
}

.c9bb5a-body a { color: var(--accent); text-decoration: none; }
.c9bb5a-body a:hover { opacity: 0.8; }
.c9bb5a-body img { max-width: 100%; height: auto; display: block; }

.c9bb5a-body h1, .c9bb5a-body h2, .c9bb5a-body h3,
.c9bb5a-body h4, .c9bb5a-body h5, .c9bb5a-body h6 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.c9bb5a-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 26px;
}

/* ============ 页首 Header ============ */
.c9bb5a-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 15, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.c9bb5a-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 26px;
  height: 66px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.c9bb5a-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.c9bb5a-logo a { color: var(--text); display: flex; align-items: center; gap: 10px; }
.c9bb5a-logo a:hover { opacity: 1; }

.c9bb5a-logo-mark {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(230, 144, 86, 0.6);
  display: inline-block;
}

.c9bb5a-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  justify-content: center;
}

.c9bb5a-nav a {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
}

.c9bb5a-nav a:hover { color: var(--accent); opacity: 1; }

.c9bb5a-subscribe-btn {
  justify-self: end;
  background: var(--accent);
  color: #110f0d;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 24px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.c9bb5a-subscribe-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(230, 144, 86, 0.4);
  opacity: 1;
}

/* ============ 文章卡片（样式 A：图片在上、文字在下） ============ */
.c9bb5a-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.c9bb5a-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 144, 86, 0.5);
}

.c9bb5a-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.c9bb5a-card-media .c9bb5a-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.c9bb5a-card:hover .c9bb5a-card-bg { transform: scale(1.06); }

.c9bb5a-card-body { padding: 20px; }

.c9bb5a-card-cat {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--accent);
  margin-bottom: 10px;
}

.c9bb5a-card-title {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 12px;
}

.c9bb5a-card-title a { color: var(--text); }
.c9bb5a-card-title a:hover { color: var(--accent); opacity: 1; }

.c9bb5a-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

/* 文章元数据（作者头像 + 名字，无阅读时长、无日期） */
.c9bb5a-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
}

.c9bb5a-meta-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.c9bb5a-meta-group { display: flex; align-items: center; gap: 9px; }
.c9bb5a-meta-name { color: var(--text); font-weight: 600; }

/* ============ 归档/索引页 ============ */
.c9bb5a-page-head {
  padding: 52px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.c9bb5a-page-head h1 { font-size: 38px; margin-bottom: 10px; }
.c9bb5a-page-desc { color: var(--text-muted); max-width: 640px; }

.c9bb5a-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 60px;
}

/* ============ 单篇文章页（标准阅读页） ============ */
.c9bb5a-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 0 80px;
}

.c9bb5a-article-header { margin-bottom: 30px; }

.c9bb5a-article-header h1 {
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 18px;
}

.c9bb5a-article-featured {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.c9bb5a-article-featured img { width: 100%; }

.c9bb5a-article-content {
  font-size: 18px;
  line-height: 1.95;
  color: var(--text);
}

.c9bb5a-article-content p { margin: 0 0 1.6em; }
.c9bb5a-article-content h2 { font-size: 26px; margin: 1.7em 0 0.7em; }
.c9bb5a-article-content h3 { font-size: 21px; margin: 1.4em 0 0.5em; }
.c9bb5a-article-content a { text-decoration: underline; text-underline-offset: 3px; }

.c9bb5a-article-tags {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.c9bb5a-article-tags a {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
}

.c9bb5a-article-tags a:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* ============ 页脚（4 列 + 底栏） ============ */
.c9bb5a-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
  margin-top: 30px;
}

.c9bb5a-footer-cols {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 26px 44px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}

.c9bb5a-footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-family: var(--font-head);
}

.c9bb5a-footer-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 12px;
  display: block;
}

.c9bb5a-footer-mission { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.c9bb5a-footer ul { list-style: none; margin: 0; padding: 0; }
.c9bb5a-footer ul li { margin-bottom: 10px; }
.c9bb5a-footer ul li a { color: var(--text-muted); font-size: 14px; }
.c9bb5a-footer ul li a:hover { color: var(--accent); opacity: 1; }

.c9bb5a-footer-bar { border-top: 1px solid var(--border); }

.c9bb5a-footer-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.c9bb5a-footer-bar-links { display: flex; gap: 20px; }
.c9bb5a-footer-bar-links a { color: var(--text-muted); font-size: 13px; }
.c9bb5a-footer-bar-links a:hover { color: var(--accent); opacity: 1; }

/* ============ 404 ============ */
.c9bb5a-404 { text-align: center; padding: 120px 24px; }
.c9bb5a-404 h1 { font-size: 96px; color: var(--accent); margin-bottom: 0; }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .c9bb5a-grid { grid-template-columns: repeat(2, 1fr); }
  .c9bb5a-footer-cols { grid-template-columns: 1fr 1fr; }
  .c9bb5a-nav { display: none; }
  .c9bb5a-header-inner { grid-template-columns: 1fr auto; }
}

@media (max-width: 640px) {
  .c9bb5a-grid { grid-template-columns: 1fr; }
  .c9bb5a-article-header h1 { font-size: 30px; }
  .c9bb5a-footer-cols { grid-template-columns: 1fr; }
  .c9bb5a-page-head h1 { font-size: 28px; }
  .c9bb5a-footer-bar-inner { flex-direction: column; gap: 10px; text-align: center; }
}
