/*
Theme Name: 美知道
Theme URI: https://www.meizhidao.com/
Description: 专业医美科普平台WordPress主题，GEO/SEO优化，支持文章Schema、FAQ Schema、Breadcrumb。
Version: 1.1.0
Author: 美知道编辑部
Author URI: https://www.meizhidao.com/
Tags: medical, seo, blog, responsive, geo-optimized
Text Domain: meizhidao
*/

/* ============================================
   美知道 v1.1 — 焕新版
   医美文章网站 · GEO/SEO 优化
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
  /* 品牌色系 */
  --primary: #e84393;
  --primary-dark: #c8216f;
  --primary-deep: #a01a5a;
  --primary-light: #fce4ec;
  --primary-glow: rgba(232,67,147,0.25);

  /* 辅助色 */
  --secondary: #00b8a9;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --rose: #f06292;
  --coral: #ff7e67;

  /* 中性色 */
  --bg: #fdfcfb;
  --bg-card: #ffffff;
  --bg-warm: #fef8fa;
  --bg-soft: #f8f7f5;
  --text: #1a1a2e;
  --text-body: #2d3436;
  --text-secondary: #5a6a7a;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  --border: #e8ecf1;
  --border-light: #f1f4f8;

  /* 状态色 */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* 阴影系统 */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.03);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.1), 0 8px 24px rgba(0,0,0,0.05);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.06), 0 12px 32px rgba(232,67,147,0.08);

  /* 圆角 */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* 排版 */
  --font-main: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --max-width: 1200px;
  --nav-height: 68px;
  --content-width: 780px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-main);
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  line-height: 1.4;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; }

ul, ol { padding-left: 1.5em; margin-bottom: 1em; }
li { margin-bottom: 0.3em; }

::selection {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ---------- 工具类 ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }

/* ---------- Top Bar ---------- */
.top-bar {
  background: linear-gradient(135deg, var(--primary-deep), #2d1b69);
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  padding: 7px 0;
  letter-spacing: 0.01em;
}
.top-bar .container {
  display: flex; justify-content: space-between; align-items: center;
}
.top-bar a { color: rgba(255,255,255,0.75); }
.top-bar a:hover { color: #fff; }
.top-bar__left { display: flex; align-items: center; gap: 6px; }
.top-bar__right { display: flex; align-items: center; gap: 12px; }

/* ---------- Navigation (毛玻璃) ---------- */
.navbar {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(232,67,147,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.nav-logo img { height: 36px; width: auto; }
.nav-logo span {
  background: linear-gradient(135deg, var(--primary), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex; gap: 4px; list-style: none; padding: 0; margin: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  display: inline-block;
  transition: all 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-links .current-menu-item > a,
.nav-links .active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}
.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--rose));
  color: #fff !important;
  padding: 8px 22px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px var(--primary-glow);
  transition: all 0.3s ease !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,67,147,0.35) !important;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
}

/* 移动端菜单 */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; z-index: 1001;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  margin: 5px 0; transition: 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ---------- Hero 区域 ---------- */
.hero {
  background: linear-gradient(135deg, #e84393 0%, #d63384 30%, #c8216f 60%, #0d0628 100%);
  color: #fff;
  padding: 80px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* 装饰渐变圆 */
.hero::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  top: -120px; right: -80px;
  animation: heroFloat 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  bottom: -60px; left: -40px;
  animation: heroFloat 10s ease-in-out infinite reverse;
}
@keyframes heroFloat {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(20px,-20px); }
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.03em;
}
.hero p {
  font-size: 1.12rem;
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}
.hero-search {
  max-width: 580px; margin: 0 auto; position: relative; z-index: 1;
  display: flex; background: rgba(255,255,255,0.95);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: box-shadow 0.3s ease;
}
.hero-search:focus-within {
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 0 3px rgba(255,255,255,0.3);
}
.hero-search input {
  flex: 1; border: none; padding: 17px 28px;
  font-size: 16px; outline: none;
  background: transparent; color: var(--text);
}
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search button {
  background: linear-gradient(135deg, var(--primary), var(--rose));
  color: #fff; border: none;
  padding: 0 32px; cursor: pointer;
  font-size: 16px; font-weight: 600;
  transition: all 0.2s ease;
}
.hero-search button:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 14px 0; font-size: 13px; color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-soft);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-light); }

/* ---------- 分区标题 ---------- */
.section { padding: 56px 0; }
.section--alt { background: var(--bg-soft); }

.section__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.section__title {
  font-size: 1.55rem; font-weight: 800; margin: 0;
  display: flex; align-items: center; gap: 12px;
}
.section__title::after {
  content: '';
  height: 2px; flex: 1; min-width: 40px;
  background: linear-gradient(90deg, var(--primary-light), transparent);
  border-radius: 1px;
}
.section__more {
  font-size: 0.9rem; font-weight: 500; color: var(--primary);
  display: flex; align-items: center; gap: 4px;
}

/* ---------- 文章卡片（新版） ---------- */
.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-card);
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(232,67,147,0.15);
}
.article-card__thumb-wrap {
  position: relative;
  overflow: hidden;
  height: 210px;
  background: var(--bg-soft);
}
.article-card__thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-card:hover .article-card__thumb { transform: scale(1.06); }
.article-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: linear-gradient(135deg, var(--accent), #f7b32a);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-xs);
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
  z-index: 1;
}
.article-card__reading-time {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 11px;
  padding: 3px 8px; border-radius: var(--radius-xs);
  backdrop-filter: blur(4px);
}
.article-card__body {
  padding: 20px 22px 22px;
  flex: 1; display: flex; flex-direction: column;
}
.article-card__category {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600;
  color: var(--primary); background: var(--primary-light);
  padding: 4px 12px; border-radius: var(--radius-full);
  margin-bottom: 10px; width: fit-content;
  letter-spacing: 0.02em;
}
.article-card__category a { color: inherit; }
.article-card__title {
  font-size: 1.05rem; font-weight: 700; line-height: 1.5;
  margin: 0 0 10px; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.article-card__title a { color: inherit; }
.article-card__title a:hover { color: var(--primary); }
.article-card__excerpt {
  font-size: 0.9rem; color: var(--text-secondary);
  line-height: 1.7; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 16px;
}
.article-card__meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.8rem; color: var(--text-muted);
  padding-top: 14px; border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.article-card__meta .author-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-light);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--primary);
  margin-right: 4px;
}

/* ---------- 网格布局 ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- 精选文章大卡 ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.featured-main {
  grid-row: 1 / 3;
  position: relative;
}
.featured-main .article-card__thumb-wrap { height: 100%; min-height: 440px; }
.featured-main .article-card__body {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff; padding: 32px 22px 22px;
}
.featured-main .article-card__title { color: #fff; font-size: 1.2rem; }
.featured-main .article-card__title a { color: #fff; }
.featured-main .article-card__excerpt { color: rgba(255,255,255,0.8); }
.featured-main .article-card__meta { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); }
.featured-main .article-card__category { background: rgba(255,255,255,0.2); color: #fff; }

/* ---------- 热门分类标签云 ---------- */
.cat-cloud {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-full);
  font-size: 0.93rem; font-weight: 600;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-xs);
}
.cat-pill:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--rose));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}
.cat-pill .count {
  font-size: 0.78rem; opacity: 0.6;
  background: rgba(0,0,0,0.06); padding: 2px 8px;
  border-radius: var(--radius-full);
}
.cat-pill:hover .count { background: rgba(255,255,255,0.25); }

/* ---------- 侧边栏 ---------- */
.sidebar { position: sticky; top: calc(var(--nav-height) + 24px); }
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}
.sidebar-widget__title {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 2px solid var(--primary-light);
  display: flex; align-items: center; gap: 8px;
}
.sidebar-widget__title::before {
  content: '';
  width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--rose));
}
/* 热门文章列表 */
.sidebar-post-list { list-style: none; padding: 0; }
.sidebar-post-list li {
  padding: 12px 0; border-bottom: 1px solid var(--border-light);
  transition: all 0.2s ease;
}
.sidebar-post-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post-list a {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--text); font-size: 0.93rem; font-weight: 500;
  line-height: 1.5;
}
.sidebar-post-list a:hover { color: var(--primary); }
.sidebar-post-list .thumb {
  width: 64px; height: 48px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
}

/* 侧边栏医生卡 */
.doctor-sidebar-card {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}
.doctor-sidebar-card:last-child { border-bottom: none; padding-bottom: 0; }
.doctor-sidebar-card__avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), #fce4f0);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--primary); font-weight: 700;
  flex-shrink: 0;
}
.doctor-sidebar-card__info .name { font-weight: 600; font-size: 0.9rem; }
.doctor-sidebar-card__info .role {
  font-size: 0.75rem; color: var(--text-muted);
  margin-top: 2px;
}

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-badge {
  display: inline-block; padding: 5px 14px;
  border-radius: var(--radius-full); font-size: 0.82rem;
  background: var(--bg-soft); color: var(--text-secondary);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}
.tag-badge:hover {
  background: var(--primary-light); color: var(--primary);
  border-color: var(--primary);
}

/* ---------- 文章详情页 ---------- */
/* 阅读进度条 */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--rose));
  z-index: 9999; width: 0;
  transition: width 0.1s linear;
}

.article-header {
  padding: 48px 0 28px;
  background: linear-gradient(180deg, var(--bg-warm), var(--bg));
  border-bottom: 1px solid var(--border-light);
}
.article-header__category {
  display: inline-block; font-size: 0.82rem; font-weight: 600;
  color: var(--primary); margin-bottom: 14px;
  background: var(--primary-light); padding: 4px 14px;
  border-radius: var(--radius-full);
}
.article-header__title {
  font-size: 2rem; font-weight: 800;
  line-height: 1.35; margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.article-header__meta {
  display: flex; align-items: center; gap: 18px;
  font-size: 0.88rem; color: var(--text-muted);
  flex-wrap: wrap;
}
.article-header__meta .author-info {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 600;
}
.article-header__meta .author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), #fce4f0);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--primary);
}

/* 文章主体 */
.article-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 24px;
  font-size: 1.08rem;
  line-height: 1.95;
  color: var(--text-body);
}
.article-body h2 {
  margin-top: 2.2em; margin-bottom: 0.8em;
  font-size: 1.45rem; font-weight: 800;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
  position: relative;
}
.article-body h2::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 50px; height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.article-body h3 {
  margin-top: 1.8em;
  font-size: 1.2rem;
  color: var(--text);
}
.article-body img {
  border-radius: var(--radius-md);
  margin: 28px 0;
  box-shadow: var(--shadow-md);
}
.article-body blockquote {
  background: var(--bg-warm);
  border-left: 4px solid var(--primary);
  padding: 22px 28px; margin: 28px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  font-style: italic;
}
.article-body table {
  width: 100%; border-collapse: collapse;
  margin: 28px 0; font-size: 0.95rem;
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.article-body table thead { background: var(--primary-light); }
.article-body table th {
  padding: 14px 18px; text-align: left;
  font-weight: 700; color: var(--primary-dark);
  font-size: 0.9rem;
}
.article-body table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
}
.article-body table tr:last-child td { border-bottom: none; }
.article-body table tbody tr:hover { background: var(--bg-soft); }
.article-body ul li::marker { color: var(--primary); }

/* 核心要点盒子 */
.key-points {
  background: linear-gradient(135deg, var(--primary-light), #fff);
  border: 2px solid rgba(232,67,147,0.15);
  border-radius: var(--radius-lg);
  padding: 28px 32px; margin: 36px 0;
  box-shadow: 0 4px 20px rgba(232,67,147,0.06);
  position: relative;
  overflow: hidden;
}
.key-points::before {
  content: '';
  position: absolute;
  width: 6px; left: 0; top: 0; bottom: 0;
  background: linear-gradient(180deg, var(--primary), var(--rose));
  border-radius: 0 3px 3px 0;
}
.key-points__title {
  font-size: 1.15rem; font-weight: 800; color: var(--primary-dark);
  margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}
.key-points ul { list-style: none; padding: 0; margin: 0; }
.key-points li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid rgba(232,67,147,0.08);
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.6;
}
.key-points li:last-child { border-bottom: none; }
.key-points li::before {
  content: '';
  position: absolute; left: 4px; top: 18px;
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.5;
}

/* FAQ 手风琴 */
.faq-section { margin: 48px 0; }
.faq-section h2 {
  font-size: 1.4rem; margin-bottom: 24px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
  background: var(--bg-card);
}
.faq-item:hover { border-color: rgba(232,67,147,0.2); }
.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(232,67,147,0.08);
}
.faq-question {
  background: var(--bg-card);
  padding: 18px 22px;
  font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.2s ease; gap: 16px;
  user-select: none;
}
.faq-question:hover { background: var(--bg-warm); }
.faq-item.open .faq-question {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.faq-question .arrow {
  font-size: 0.75rem; color: var(--text-muted);
  transition: transform 0.3s ease; flex-shrink: 0;
}
.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 22px 20px;
}
.faq-answer > div {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.96rem;
}

/* 作者框 */
.author-box {
  display: flex; gap: 18px;
  padding: 28px; background: var(--bg-warm);
  border-radius: var(--radius-lg);
  margin: 48px auto; max-width: var(--content-width);
  border: 1px solid var(--border-light);
}
.author-box__avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), #fce4f0);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
.author-box__name { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.author-box__bio { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* 标签组 */
.article-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 32px 0; max-width: var(--content-width);
  margin-left: auto; margin-right: auto; padding: 0 24px;
}
.article-tag {
  display: inline-block; padding: 6px 16px;
  border-radius: var(--radius-full); font-size: 0.84rem;
  background: var(--bg-soft); color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.article-tag:hover {
  background: var(--primary-light); color: var(--primary);
  border-color: var(--primary);
}

/* 相关文章 */
.related-section { padding: 48px 24px; background: var(--bg-soft); }
.related-section h3 { font-size: 1.3rem; margin-bottom: 24px; max-width: var(--content-width); margin-left: auto; margin-right: auto; }

/* ---------- CTA 区域 ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark), #0d0628);
  color: #fff; padding: 52px 32px; text-align: center;
  border-radius: var(--radius-xl);
  margin: 52px auto;
  max-width: var(--content-width);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px var(--primary-glow);
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  top: -50px; right: -50px;
}
.cta-section h3 { color: #fff; margin-bottom: 8px; font-size: 1.3rem; }
.cta-section p { opacity: 0.88; margin-bottom: 20px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--primary);
  padding: 15px 38px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  color: var(--primary-dark);
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  padding: 40px 0; flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-size: 0.9rem;
  color: var(--text); font-weight: 500;
  transition: all 0.2s ease; padding: 0 14px;
  background: var(--bg-card);
}
.pagination a:hover {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}
.pagination .current {
  background: linear-gradient(135deg, var(--primary), var(--rose));
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ---------- 页脚 ---------- */
.footer {
  background: linear-gradient(180deg, #1a1a2e, #0d0628);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
  margin-top: 64px;
}
.footer h4 {
  color: #fff; margin-bottom: 18px;
  font-size: 1rem; font-weight: 700;
  position: relative; padding-bottom: 10px;
}
.footer h4::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.footer a { color: rgba(255,255,255,0.55); font-size: 0.9rem; transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__brand {
  font-size: 1.3rem; font-weight: 800; color: #fff;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--primary), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.footer__desc { font-size: 0.88rem; line-height: 1.8; opacity: 0.65; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer__disclaimer {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.05);
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex; justify-content: space-between;
  align-items: center; font-size: 0.82rem;
  flex-wrap: wrap; gap: 12px;
  color: rgba(255,255,255,0.4);
}
.footer__bottom a { color: rgba(255,255,255,0.5); }

/* ---------- 回到顶部 ---------- */
.scroll-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--rose));
  color: #fff; border: none; cursor: pointer;
  font-size: 20px; box-shadow: 0 6px 24px var(--primary-glow);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999; display: flex; align-items: center; justify-content: center;
}
.scroll-top.visible {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(232,67,147,0.4);
}

/* ---------- 搜索结果 ---------- */
.search-result-item {
  padding: 20px 0; border-bottom: 1px solid var(--border-light);
}
.search-result-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.search-result-item .date { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- 404 ---------- */
.error-404 {
  text-align: center; padding: 100px 20px;
}
.error-404__code {
  font-size: 8rem; font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.error-404 h2 { margin-bottom: 12px; }
.error-404 p { color: var(--text-secondary); margin-bottom: 28px; }

/* ---------- WordPress 通用 ---------- */
.sticky { }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; }
.alignleft { float: left; margin-right: 20px; margin-bottom: 20px; }
.alignright { float: right; margin-left: 20px; margin-bottom: 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.84rem; color: var(--text-muted); text-align: center; margin-top: 10px; }

/* 搜索表单 */
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; padding: 11px 18px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.95rem; transition: border-color 0.2s; }
.search-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.search-form button { padding: 11px 22px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; transition: background 0.2s; }
.search-form button:hover { background: var(--primary-dark); }

/* ---------- 深色卡片装饰 ---------- */
.card-glow {
  position: relative;
}
.card-glow::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(232,67,147,0.06), transparent, rgba(232,67,147,0.03));
  pointer-events: none;
}

/* ---------- 医生卡片 ---------- */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.doctor-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(232,67,147,0.15);
}
.doctor-card__link { text-decoration: none; color: inherit; display: block; }
.doctor-card__avatar {
  width: 80px; height: 80px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-light);
  background: var(--bg-soft);
}
.doctor-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.doctor-card__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
}
.doctor-card__info { margin-bottom: 16px; }
.doctor-card__name {
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
}
.doctor-card__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  font-size: 10px; font-weight: 700;
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}
.doctor-card__title {
  font-size: 0.85rem; color: var(--text-secondary);
  margin-bottom: 4px;
}
.doctor-card__hospital {
  font-size: 0.82rem; color: var(--text-muted);
}
.doctor-card__btn {
  display: inline-block;
  padding: 8px 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  border-radius: var(--radius-full);
  font-size: 0.88rem; font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(232,67,147,0.3);
}
.doctor-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,67,147,0.4);
}

/* ---------- 医生详情页 ---------- */
.doctor-detail { padding: 48px 0 64px; }
.doctor-profile {
  display: flex; gap: 40px; align-items: flex-start;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}
.doctor-profile__avatar {
  width: 180px; height: 180px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-light);
}
.doctor-profile__img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.doctor-profile__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; font-weight: 900;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary-light), #fce4ec);
}
.doctor-profile__body { flex: 1; }
.doctor-profile__name {
  font-size: 1.8rem; font-weight: 800;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
}
.doctor-profile__badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 12px;
  font-size: 0.75rem; font-weight: 600;
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius-full);
}
.doctor-profile__title {
  font-size: 1.15rem; color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}
.doctor-profile__hospital {
  font-size: 1.05rem; color: var(--text-body);
  margin-bottom: 16px;
}
.doctor-profile__specialty {
  margin-bottom: 20px;
}
.doctor-profile__specialty .label {
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-secondary);
}
.doctor-profile__specialty .tag {
  display: inline-block;
  padding: 4px 14px; margin: 3px 4px;
  background: var(--accent-light);
  color: #92400e;
  border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 500;
}
.doctor-profile__cta {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--primary), var(--rose));
  color: #fff !important;
  border-radius: var(--radius-full);
  font-size: 1rem; font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(232,67,147,0.35);
}
.doctor-profile__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,67,147,0.45);
}

.doctor-bio {
  max-width: var(--content-width);
  margin-bottom: 48px;
}
.doctor-bio h2 {
  font-size: 1.4rem; font-weight: 800;
  margin-bottom: 18px;
}
.related-doctors { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
.related-doctors h2 {
  font-size: 1.3rem; font-weight: 800;
}

/* ---------- 响应式：医生 ---------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-main { grid-row: auto; }
  .featured-main .article-card__thumb-wrap { min-height: 240px; }
  .doctor-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    display: none;
    position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px; z-index: 1000;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 1.05rem; padding: 14px 20px;
  }
  .nav-toggle { display: block; }
  .sidebar { position: static; }
  .hero h1 { font-size: 2rem; }
  .doctor-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-grid--2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .hero { padding: 56px 0 48px; }
  .hero-search input { padding: 14px 20px; font-size: 15px; }
  .hero-search button { padding: 0 22px; font-size: 15px; }
  .article-header__title { font-size: 1.45rem; }
  .article-body { font-size: 1rem; padding: 28px 16px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 36px 0; }
  .cat-pill { padding: 8px 16px; font-size: 0.85rem; }
  .key-points { padding: 22px 20px; }
  .cta-section { padding: 36px 24px; border-radius: var(--radius-lg); }
  .doctor-profile { flex-direction: column; padding: 24px; gap: 20px; }
  .doctor-profile__avatar { width: 140px; height: 140px; margin: 0 auto; }
  .doctor-profile__name { font-size: 1.4rem; justify-content: center; }
  .doctor-profile__body { text-align: center; }
}
@media (max-width: 480px) {
  .doctor-grid { grid-template-columns: 1fr; }
}

/* ---------- 打印 ---------- */
@media print {
  .navbar, .hero, .footer, .sidebar, .cta-section,
  .related-section, .scroll-top, .reading-progress { display: none; }
  .article-body { max-width: 100%; }
  body { font-size: 14px; }
  .doctor-card__btn { display: none; }
}
