/* ===== CSS Variables ===== */
:root {
  --primary: #4D9078;
  --primary-light: #e8f4ef;
  --accent: #E8913A;
  --bg: #FEF9F3;
  --white: #FFFFFF;
  --text: #3D3432;
  --text-sub: #8B7E7A;
  --border: #F0E8E0;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;
  --shadow-sm: 0 1px 3px rgba(61,52,50,0.06);
  --shadow-md: 0 4px 12px rgba(61,52,50,0.08);
  --font-serif: 'Songti SC', 'SimSun', 'STSong', serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: var(--font-serif); }
.font-serif { font-family: var(--font-serif); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-sub { color: var(--text-sub); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }

/* ===== Container ===== */
.container {
  width: 1200px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  width: 1200px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.header-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-serif); font-size: 20px; font-weight: 700;
  color: var(--primary); flex-shrink: 0;
}
.header-logo .logo-icon {
  width: 150px; height: 53px; border-radius: var(--radius-sm);
  object-fit: contain;
}
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text); transition: all 0.2s;
}
.header-nav a:hover, .header-nav a.active { color: var(--primary); background: rgba(77,144,120,0.06); }
.header-search input {
  width: 180px; padding: 6px 12px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border);
  font-size: 13px; outline: none; transition: border-color 0.2s;
}
.header-search input:focus { border-color: var(--primary); }

/* ===== Footer ===== */
.footer {
  padding: 32px 16px; border-top: 1px solid var(--border);
  text-align: center; font-size: 13px; color: var(--text-sub);
}
.footer-links { display: flex; justify-content: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--primary); }
.footer p { margin-top: 4px; }
.beian-icon { width: 20px; height: 20px; vertical-align: middle; margin-right: 4px; display: inline-block; }

/* ===== Breadcrumb ===== */
.breadcrumb { padding: 12px 0; font-size: 13px; color: var(--text-sub); }
.breadcrumb ol { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .current { color: var(--text); }

/* ===== Grid ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, rgba(77,144,120,0.08) 0%, transparent 100%);
  padding: 64px 16px; text-align: center;
}
.hero h1 { font-size: 2.25rem; margin-bottom: 8px; }
.hero .hero-sub { color: var(--text-sub); font-size: 15px; margin-bottom: 32px; }

/* ===== Search Bar ===== */
.search-bar { max-width: 640px; margin: 0 auto; }
.search-bar-inner {
  display: flex; border-radius: var(--radius);
  border: 2px solid rgba(77,144,120,0.2); overflow: hidden;
  background: var(--white); transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar-inner:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(77,144,120,0.1); }
.search-bar-inner.large { height: 56px; }
.search-bar-inner input {
  flex: 1; padding: 0 16px; background: transparent;
  border: none; outline: none; font-size: 16px; color: var(--text);
}
.search-bar-inner input::placeholder { color: var(--text-sub); }
.search-bar-inner button {
  padding: 0 24px; background: var(--primary); color: #fff;
  border: none; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background 0.2s; white-space: nowrap;
}
.search-bar-inner button:hover { background: rgba(77,144,120,0.9); }

/* ===== Hot Terms ===== */
.hot-terms { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; }
.hot-terms span { color: var(--text-sub); }
.hot-term { padding: 4px 12px; border-radius: 100px; background: var(--white); border: 1px solid var(--border); transition: all 0.2s; }
.hot-term:hover { border-color: var(--primary); color: var(--primary); }

/* ===== Home Layout ===== */
.home-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.home-row-2 > * { min-width: 0; }

/* ===== Entry Card ===== */
.entry-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 24px 16px;
  text-align: center; transition: all 0.2s;
}
.entry-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary); }
.entry-icon { font-size: 32px; }
.entry-title { font-size: 15px; font-weight: 700; color: var(--text); }
.entry-card:hover .entry-title { color: var(--primary); }
.entry-sub { font-size: 12px; color: var(--text-sub); }

/* ===== Home Q&A ===== */
.home-qa-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; }
.home-qa-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); padding: 14px 16px;
  transition: all 0.2s;
}
.home-qa-item:hover { background: var(--primary-light); }
.home-qa-text { flex: 1; font-size: 14px; color: var(--text); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-qa-item:hover .home-qa-text { color: var(--primary); }
.home-qa-meta { font-size: 11px; color: var(--text-sub); flex-shrink: 0; }

/* ===== Home Hospital Card ===== */
.home-hospital-card {
  display: block; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px; transition: all 0.2s;
}
.home-hospital-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary); }
.home-hospital-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; transition: color 0.2s; }
.home-hospital-card:hover .home-hospital-name { color: var(--primary); }
.home-hospital-meta { display: flex; gap: 4px; margin-bottom: 8px; }
.home-hospital-desc { font-size: 13px; color: var(--text-sub); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== Home Article ===== */
.home-article-list { display: flex; flex-direction: column; gap: 12px; }
.home-article-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px; background: var(--white); border-radius: var(--radius-sm);
  border: 1px solid var(--border); transition: all 0.2s;
}
.home-article-item:hover { border-color: var(--primary); background: rgba(77,144,120,0.02); }
.home-article-title { font-size: 14px; color: var(--text); font-weight: 500; transition: color 0.2s; }
.home-article-item:hover .home-article-title { color: var(--primary); }
.home-article-meta { font-size: 12px; color: var(--text-sub); flex-shrink: 0; }

/* ===== Home Company Item ===== */
.home-company-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; }
.home-company-link {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); padding: 12px 16px;
  transition: all 0.2s;
}
.home-company-link:hover { background: rgba(77,144,120,0.03); }
.home-company-link .home-company-name { font-size: 14px; color: var(--text); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; }
.home-company-link:hover .home-company-name { color: var(--primary); }
.home-company-link .home-company-meta { font-size: 11px; color: var(--text-sub); flex-shrink: 0; }

/* ===== Home News Item ===== */
.home-news-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; }
.home-news-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); padding: 14px 16px;
  transition: all 0.2s;
}
.home-news-item:hover { background: rgba(77,144,120,0.03); }
.home-news-tag {
  font-size: 11px; padding: 2px 8px; border-radius: var(--radius-xs);
  background: rgba(77,144,120,0.1); color: var(--primary); flex-shrink: 0;
}
.home-news-title { flex: 1; font-size: 14px; color: var(--text); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; }
.home-news-item:hover .home-news-title { color: var(--primary); }
.home-news-date { font-size: 11px; color: var(--text-sub); flex-shrink: 0; }

/* ===== Symptom ===== */
.symptom-list-layout { display: grid; grid-template-columns: 1fr 280px; gap: 32px; }
.symptom-list-main { min-width: 0; }
.symptom-list-sidebar { position: sticky; top: 80px; align-self: start; }

.symptom-card {
  display: block; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px; transition: all 0.2s;
}
.symptom-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary); }
.symptom-card-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; transition: color 0.2s; }
.symptom-card:hover .symptom-card-name { color: var(--primary); }
.symptom-card-desc { font-size: 13px; color: var(--text-sub); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.symptom-detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 32px; }
.symptom-detail-main { min-width: 0; }
.symptom-detail-sidebar { position: sticky; top: 80px; align-self: start; }

.symptom-detail-header { margin-bottom: 32px; }
.symptom-detail-header h1 { font-size: 1.5rem; margin-bottom: 12px; }
.symptom-detail-intro { font-size: 14px; color: var(--text-sub); line-height: 1.8; }

.symptom-disease-section h2 { font-size: 1.15rem; margin-bottom: 20px; padding-bottom: 8px; border-bottom: 2px solid var(--primary-light); }

.symptom-disease-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px; margin-bottom: 16px;
  transition: all 0.2s;
}
.symptom-disease-card:hover { box-shadow: var(--shadow-sm); }
.symptom-disease-header { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.symptom-disease-header h3 { font-size: 16px; font-weight: 700; }
.symptom-disease-header h3 a { color: var(--text); transition: color 0.2s; }
.symptom-disease-header h3 a:hover { color: var(--primary); }
.symptom-dept { font-size: 12px; color: var(--primary); background: var(--primary-light); padding: 2px 10px; border-radius: 100px; }

.symptom-disease-symptoms { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.symptom-tag-label { font-size: 12px; color: var(--text-sub); flex-shrink: 0; }
.symptom-disease-symptoms a {
  display: inline-block; padding: 2px 10px; font-size: 12px;
  background: var(--bg); color: var(--text);
  border-radius: 100px; border: 1px solid var(--border); transition: all 0.2s;
}
.symptom-disease-symptoms a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

@media (max-width: 900px) {
  .symptom-list-layout, .symptom-detail-layout { grid-template-columns: 1fr; }
  .symptom-list-sidebar, .symptom-detail-sidebar { position: static; }
}
@media (max-width: 768px) {
  .symptom-disease-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ===== Friendly Links ===== */
.friendly-links {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 24px;
}
.friendly-links h3 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--text-sub); }
.friendly-links-list { display: flex; gap: 12px 20px; flex-wrap: wrap; }
.friendly-links-list a {
  font-size: 13px; color: var(--text-sub); transition: color 0.2s;
}
.friendly-links-list a:hover { color: var(--primary); }

/* Home responsive */
@media (max-width: 900px) {
  .home-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .home-qa-meta { display: none; }
  .home-news-date { display: none; }
}

/* ===== Card Base ===== */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
}
.card-padded { padding: 24px; }
.card-hover { transition: all 0.2s; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ===== Category Card ===== */
.cat-card {
  display: block; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 32px;
  text-align: center; transition: all 0.2s;
}
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-card .cat-icon { font-size: 48px; margin-bottom: 12px; }
.cat-card h2 { font-size: 20px; margin-bottom: 6px; color: var(--text); }
.cat-card:hover h2 { color: var(--primary); }
.cat-card p { font-size: 13px; color: var(--text-sub); }

/* ===== Drug Card ===== */
.drug-card {
  position: relative; background: var(--white);
  border-radius: var(--radius); border: 1px solid var(--border);
  padding: 16px; transition: all 0.2s; cursor: pointer;
}
.drug-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.drug-card-overlay { position: absolute; inset: 0; z-index: 1; }
.drug-card-inner { position: relative; display: flex; align-items: flex-start; gap: 12px; z-index: 2; pointer-events: none; }
.drug-card-inner a { pointer-events: auto; }
.drug-card-img {
  width: 80px; height: 80px; border-radius: var(--radius-sm);
  background: var(--bg); flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.drug-card-img img { width: 100%; height: 100%; object-fit: contain; }
.drug-card-body { flex: 1; min-width: 0; }
.drug-card-name { display: inline; font-weight: 700; font-size: 15px; color: var(--text); transition: color 0.2s; }
.drug-card:hover .drug-card-name { color: var(--primary); }
.drug-card-factory { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.drug-card-spec { font-size: 13px; color: var(--text-sub); margin-top: 2px; }
.drug-card-tags { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.drug-card-factory-link { font-size: 12px; color: var(--primary); text-decoration: underline; position: relative; z-index: 3; }
.drug-card-factory-link:hover { color: var(--accent); }

/* ===== Tags ===== */
.tag {
  display: inline-block; padding: 2px 8px; font-size: 11px;
  border-radius: var(--radius-xs); border: 1px solid; white-space: nowrap;
}
.tag-yibao { background: #fffbeb; color: var(--accent); border-color: #fde68a; }
.tag-yibao2 { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.tag-otc { background: #ecfdf5; color: var(--primary); border-color: #a7f3d0; }
.tag-rx { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.tag-category { background: #faf5ff; color: #7c3aed; border-color: #e9d5ff; }
.tag-news { background: rgba(77,144,120,0.1); color: var(--primary); border-color: rgba(77,144,120,0.2); }

/* ===== Filter Panel ===== */
.filter-panel {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 16px; margin-bottom: 24px;
}
.filter-row { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.filter-row + .filter-row { border-top: 1px solid var(--border); }
.filter-label { font-size: 14px; font-weight: 500; color: var(--text-sub); width: 48px; flex-shrink: 0; padding-top: 4px; }
.filter-options { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-opt {
  padding: 6px 14px; border-radius: 100px; font-size: 13px;
  background: var(--white); border: 1px solid var(--border);
  transition: all 0.2s; cursor: pointer; display: inline-block;
}
.filter-opt:hover { border-color: var(--primary); color: var(--primary); }
.filter-opt.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Drug Detail ===== */
.drug-header {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 24px; margin-bottom: 32px;
}
.drug-header-inner { display: flex; align-items: flex-start; gap: 24px; }
.drug-header-img {
  width: 120px; height: 120px; border-radius: var(--radius-sm);
  background: var(--bg); flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.drug-header-img img { width: 100%; height: 100%; object-fit: contain; }
.drug-header-info { flex: 1; min-width: 0; }
.drug-header-info h1 { font-size: 1.5rem; margin-bottom: 8px; }
.drug-header-info .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.drug-header-info dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; font-size: 13px; }
.drug-header-info dt { color: var(--text-sub); }
.drug-header-info dd { color: var(--text); }

.detail-layout { display: grid; grid-template-columns: 200px 1fr 240px; gap: 32px; }

/* ===== TOC ===== */
.toc { position: sticky; top: 80px; }
.toc-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.toc a {
  display: block; font-size: 13px; color: var(--text-sub);
  padding: 4px 0 4px 12px; border-left: 2px solid transparent;
  transition: all 0.2s;
}
.toc a:hover, .toc a.active { color: var(--primary); border-left-color: var(--primary); }

/* ===== Article ===== */
.article-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 32px;
}
.article-body { line-height: 1.8; color: var(--text); }
.article-body h2 { font-family: var(--font-serif); font-size: 1.25rem; margin: 1.5em 0 0.5em; }
.article-body h3 { font-size: 1.1rem; margin: 1em 0 0.5em; }
.article-body p { margin: 0.75em 0; }
.article-body ul, .article-body ol { margin: 0.5em 0; padding-left: 1.5em; list-style: disc; }
.article-body li { margin: 0.25em 0; }

/* ===== Section Heading ===== */
.section-heading {
  font-family: var(--font-serif); font-size: 18px; font-weight: 700;
  border-left: 4px solid var(--primary); padding-left: 12px; margin-bottom: 12px;
}
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-header h2 { font-size: 1.5rem; }
.section-header a { font-size: 13px; color: var(--primary); }
.section-header a:hover { text-decoration: underline; }

/* ===== Related Drugs ===== */
.related-card {
  display: block; padding: 12px; background: var(--white);
  border-radius: var(--radius); border: 1px solid var(--border);
  transition: all 0.2s; font-size: 13px;
}
.related-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.related-card .name { font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.related-card .spec { font-size: 12px; color: var(--text-sub); margin-top: 2px; }

/* ===== Safety Card ===== */
.safety-card {
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: var(--radius); padding: 24px;
  position: sticky; top: 80px;
}
.safety-card h3 { font-size: 1.1rem; color: var(--accent); margin-bottom: 12px; }
.safety-card li { font-size: 13px; line-height: 2; }

/* ===== Company Card ===== */
.company-card {
  display: block; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px; transition: all 0.2s;
}
.company-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.company-card-inner { display: flex; align-items: flex-start; gap: 12px; }
.company-card-img {
  width: 72px; height: 72px; border-radius: var(--radius-sm);
  background: var(--bg); flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.company-card-img img { width: 100%; height: 100%; object-fit: contain; }
.company-card-body { flex: 1; min-width: 0; }
.company-card-name { font-weight: 700; font-size: 15px; color: var(--text); transition: color 0.2s; margin-bottom: 4px; }
.company-card:hover .company-card-name { color: var(--primary); }
.company-card-meta { font-size: 12px; color: var(--text-sub); margin-bottom: 6px; }
.company-card-tags { display: flex; gap: 4px; flex-wrap: wrap; }

/* ===== Company Detail ===== */
.company-header {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 24px;
}
.company-header-inner { display: flex; gap: 20px; }
.company-header-img {
  width: 100px; height: 100px; border-radius: 12px;
  background: var(--bg); flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.company-header-img img { width: 100%; height: 100%; object-fit: contain; }
.company-header-info { flex: 1; min-width: 0; }
.company-header-info h1 { font-size: 1.25rem; margin-bottom: 8px; }
.company-header-info .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.company-header-info dl { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.company-header-info dl div { display: flex; font-size: 13px; }
.company-header-info dl dt { color: var(--text-sub); flex-shrink: 0; }
.company-header-info dl dd { color: var(--text); }
.company-desc {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 14px; line-height: 1.8; color: var(--text);
}

/* ===== Company News ===== */
.company-news-item {
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.company-news-item:last-child { border-bottom: none; }
.company-news-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; font-family: var(--font-sans); }
.company-news-item p { font-size: 13px; color: var(--text-sub); line-height: 1.6; margin-bottom: 4px; }
.company-news-item time { font-size: 12px; color: var(--text-sub); }

/* ===== Detail Layouts with Sidebar ===== */
.qiye-detail-layout, .news-detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 32px; }
.qiye-detail-main, .news-detail-main { min-width: 0; }
.qiye-detail-sidebar, .news-detail-sidebar { position: sticky; top: 80px; align-self: start; }

/* ===== Sidebar ===== */
.sidebar-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px;
}
.sidebar-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.sidebar-company-item, .sidebar-article-item, .sidebar-drug-item {
  display: block; padding: 8px 0; font-size: 13px;
  border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.sidebar-company-item:last-child, .sidebar-article-item:last-child, .sidebar-drug-item:last-child { border-bottom: none; }
.sidebar-company-item:hover, .sidebar-article-item:hover, .sidebar-drug-item:hover { color: var(--primary); }
.sidebar-company-item .meta, .sidebar-article-item .date, .sidebar-drug-item .spec, .sidebar-company-item .sub, .sidebar-article-item .sub { font-size: 11px; color: var(--text-sub); display: block; margin-top: 2px; }
.sidebar-drug-name { margin-bottom: 2px; }
.sidebar-drug-meta { font-size: 11px; color: var(--text-sub); font-weight: 400; }

/* ===== News ===== */
.news-card {
  display: block; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px; transition: all 0.2s;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card h3 { font-size: 18px; margin: 8px 0; transition: color 0.2s; }
.news-card:hover h3 { color: var(--primary); }
.news-card .summary { font-size: 13px; color: var(--text-sub); line-height: 1.6; margin-bottom: 8px; }
.news-card time { font-size: 12px; color: var(--text-sub); }
.news-card-tag { display: inline-block; background: rgba(77,144,120,0.1); color: var(--primary); padding: 2px 8px; border-radius: var(--radius-xs); font-size: 12px; font-weight: 700; }

/* ===== News Letter (numbered list) ===== */
.news-letter-item {
  display: block; padding: 16px; background: var(--white);
  border-radius: var(--radius); border: 1px solid var(--border); transition: all 0.2s;
}
.news-letter-item:hover { border-color: rgba(77,144,120,0.5); box-shadow: var(--shadow-sm); }
.news-letter-item .num { color: var(--primary); font-weight: 700; margin-right: 8px; }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 4px; padding: 32px 0; }
.pagination a, .pagination span {
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 14px; transition: all 0.2s; display: inline-block;
}
.pagination a { border: 1px solid var(--border); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 8px 24px; border-radius: var(--radius-sm);
  font-size: 14px; border: none; cursor: pointer; transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: rgba(77,144,120,0.9); }
.btn-outline { background: var(--white); color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ===== Horizontal Scroll ===== */
.scroll-x { overflow-x: auto; padding-bottom: 8px; }
.scroll-x-inner { display: flex; gap: 16px; width: max-content; }

/* ===== Empty State ===== */
.empty-state { text-align: center; padding: 64px 16px; }
.empty-state .icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 8px; }
.empty-state p { font-size: 13px; color: var(--text-sub); }

/* ===== 404 ===== */
.page-404 { text-align: center; padding: 80px 16px; }
.page-404 .icon { font-size: 64px; margin-bottom: 16px; }
.page-404 h1 { font-size: 1.75rem; margin-bottom: 8px; }
.page-404 p { color: var(--text-sub); margin-bottom: 32px; }
.page-404 .actions { display: flex; justify-content: center; gap: 16px; }

/* ===== Spacing Helpers ===== */
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.w-64 { width: 256px; flex-shrink: 0; }

/* ===== Skeleton ===== */
.skeleton { background: var(--border); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ===== Wenda (Q&A) ===== */
.wenda-detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 32px; }
.wenda-detail-main { min-width: 0; }
.wenda-detail-sidebar { position: sticky; top: 80px; align-self: start; }

.wenda-card {
  display: block; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px; transition: all 0.2s;
}
.wenda-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.wenda-card-question { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; transition: color 0.2s; }
.wenda-card:hover .wenda-card-question { color: var(--primary); }
.wenda-card-answer {
  font-size: 13px; color: var(--text-sub); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 12px;
}

.wenda-doctor {
  display: flex; align-items: center; gap: 10px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.wenda-doctor-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-light); flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--primary); font-weight: 700;
}
.wenda-doctor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wenda-doctor-info { font-size: 12px; color: var(--text-sub); line-height: 1.5; }
.wenda-doctor-info .name { font-weight: 600; color: var(--text); font-size: 13px; }
.wenda-doctor-info .dept { margin-left: 4px; }

/* Wenda Detail */
.wenda-detail-header { margin-bottom: 24px; }
.wenda-detail-header h1 { font-size: 1.35rem; margin-bottom: 8px; }
.wenda-meta {
  display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-sub);
}

.wenda-doctor-card {
  background: var(--primary-light); border-radius: var(--radius);
  border: 1px solid rgba(77,144,120,0.15); padding: 20px; margin-top: 24px;
  display: flex; align-items: center; gap: 16px;
}
.wenda-doctor-card-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--white); flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--primary); font-weight: 700;
}
.wenda-doctor-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wenda-doctor-card-info { font-size: 13px; }
.wenda-doctor-card-info .name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.wenda-doctor-card-info .meta { color: var(--text-sub); line-height: 1.7; }

/* Wenda sidebar items */
.sidebar-wenda-item {
  display: block; padding: 8px 0; font-size: 13px;
  border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.sidebar-wenda-item:last-child { border-bottom: none; }
.sidebar-wenda-item:hover { color: var(--primary); }
.sidebar-wenda-item .reads { font-size: 11px; color: var(--text-sub); display: block; margin-top: 2px; }

/* Wenda responsive */
@media (max-width: 900px) {
  .wenda-detail-layout { grid-template-columns: 1fr; }
  .wenda-detail-sidebar { position: static; }
}
@media (max-width: 768px) {
  .wenda-doctor-card { flex-direction: column; text-align: center; }
}

/* Q&A question icon */
.q-icon {
  display: inline-block; width: 24px; height: 24px;
  background: var(--accent); color: #fff; border-radius: 50%;
  text-align: center; line-height: 24px; font-size: 13px;
  flex-shrink: 0; margin-right: 8px; font-style: normal;
}

/* ===== Wenzhang (Article) ===== */
.wenzhang-detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 32px; }
.wenzhang-detail-main { min-width: 0; }
.wenzhang-detail-sidebar { position: sticky; top: 80px; align-self: start; }

.wenzhang-card {
  display: block; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px; transition: all 0.2s;
}
.wenzhang-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.wenzhang-card-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; transition: color 0.2s; }
.wenzhang-card:hover .wenzhang-card-title { color: var(--primary); }
.wenzhang-card-summary { font-size: 13px; color: var(--text-sub); line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.wenzhang-detail-header { margin-bottom: 24px; }
.wenzhang-detail-header h1 { font-size: 1.35rem; margin-bottom: 8px; }

/* Wenzhang sidebar item */
.sidebar-wenzhang-item {
  display: block; padding: 8px 0; font-size: 13px;
  border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.sidebar-wenzhang-item:last-child { border-bottom: none; }
.sidebar-wenzhang-item:hover { color: var(--primary); }
.sidebar-wenzhang-item .reads { font-size: 11px; color: var(--text-sub); display: block; margin-top: 2px; }

@media (max-width: 900px) {
  .wenzhang-detail-layout { grid-template-columns: 1fr; }
  .wenzhang-detail-sidebar { position: static; }
}

/* ===== Hospital ===== */
.hospital-detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 32px; }
.hospital-detail-main { min-width: 0; }
.hospital-detail-sidebar { position: sticky; top: 80px; align-self: start; }

.hospital-detail-header { margin-bottom: 24px; }
.hospital-detail-header-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hospital-detail-header-top h1 { font-size: 1.5rem; }

.hospital-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.hospital-card {
  display: block; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px; transition: all 0.2s;
}
.hospital-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary); }
.hospital-card-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; transition: color 0.2s; }
.hospital-card:hover .hospital-card-name { color: var(--primary); }
.hospital-card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.hospital-card-desc { font-size: 13px; color: var(--text-sub); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.hospital-info-section { margin-bottom: 32px; }
.hospital-info-section h2 { font-size: 1.15rem; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary-light); }

.hospital-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
}
.hospital-info-grid .item { display: flex; font-size: 13px; line-height: 1.8; }
.hospital-info-grid .label { color: var(--text-sub); flex-shrink: 0; min-width: 72px; }
.hospital-info-grid .value { color: var(--text); }

/* Hospital grade tags */
.tag-grade-3a { background: #fef3e2; color: #c27819; }
.tag-type { background: var(--primary-light); color: var(--primary); }
.tag-ownership { background: #f3e8ff; color: #7c3aed; }

/* Expert cards */
.expert-card {
  display: flex; gap: 16px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; transition: all 0.2s;
}
.expert-card:hover { box-shadow: var(--shadow-sm); }
.expert-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; font-family: var(--font-serif);
}
.expert-info { min-width: 0; }
.expert-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.expert-dept { font-size: 12px; color: var(--primary); font-weight: 500; margin-bottom: 2px; }
.expert-title { font-size: 11px; color: var(--text-sub); margin-bottom: 6px; }
.expert-desc { font-size: 12px; color: var(--text-sub); line-height: 1.6; }

/* Filter city row */
.filter-city-row { font-size: 13px; color: var(--text-sub); }

@media (max-width: 900px) {
  .hospital-detail-layout { grid-template-columns: 1fr; }
  .hospital-detail-sidebar { position: static; }
  .hospital-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hospital-detail-header-top { flex-direction: column; align-items: flex-start; }
}

/* ===== Letter Filter ===== */
.letter-filter {
  display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 24px;
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 12px;
}
.letter-filter a, .letter-filter span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius-xs);
  font-size: 13px; font-weight: 500; transition: all 0.2s;
}
.letter-filter a { border: 1px solid var(--border); }
.letter-filter a:hover { border-color: var(--primary); color: var(--primary); background: rgba(77,144,120,0.06); }
.letter-filter a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.letter-filter span.disabled { color: var(--border); cursor: default; }
.letter-filter .all { width: auto; padding: 0 12px; }

/* ===== Disease Card ===== */
.disease-card {
  display: block; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px; transition: all 0.2s;
  position: relative;
}
.disease-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.disease-card-overlay { position: absolute; inset: 0; z-index: 1; }
.disease-card-inner { position: relative; z-index: 2; pointer-events: none; }
.disease-card-inner a, .disease-card-inner .disease-symptoms a { pointer-events: auto; }
.disease-card h2 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; transition: color 0.2s; }
.disease-card:hover h2 { color: var(--primary); }
.disease-card .overview { font-size: 13px; color: var(--text-sub); line-height: 1.6; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.disease-card .disease-symptoms { display: flex; gap: 4px; flex-wrap: wrap; }
.disease-card .disease-symptoms a {
  display: inline-block; padding: 2px 8px; font-size: 11px;
  background: var(--primary-light); color: var(--primary);
  border-radius: 100px; transition: all 0.2s;
}
.disease-card .disease-symptoms a:hover { background: var(--primary); color: #fff; }

/* ===== Disease Detail ===== */
.jibing-detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 32px; }
.jibing-detail-main { min-width: 0; }
.jibing-detail-sidebar { position: sticky; top: 80px; align-self: start; }

.jibing-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
  margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border);
}
.jibing-info-grid .item { display: flex; font-size: 13px; line-height: 1.8; }
.jibing-info-grid .label { color: var(--text-sub); flex-shrink: 0; min-width: 72px; }
.jibing-info-grid .value { color: var(--text); }
.jibing-info-grid .value a { color: var(--primary); text-decoration: underline; }
.jibing-info-grid .value a:hover { color: var(--accent); }
.jibing-info-grid .full { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .jibing-detail-layout { grid-template-columns: 1fr; }
  .jibing-detail-sidebar { position: static; }
  .jibing-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .letter-filter { gap: 1px; padding: 8px; }
  .letter-filter a, .letter-filter span { width: 28px; height: 28px; font-size: 12px; }
}

/* ===== Desktop Section ===== */
@media (min-width: 1025px) {
  .detail-related-mobile { display: none; }
}
@media (max-width: 1024px) {
  .detail-related-desktop { display: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .drug-header-info dl { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .qiye-detail-layout, .news-detail-layout { grid-template-columns: 1fr; }
  .qiye-detail-sidebar, .news-detail-sidebar { position: static; }
}
@media (max-width: 768px) {
  .header-nav, .header-search { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
  .hero { padding: 48px 16px; }
  .drug-header-inner { flex-direction: column; align-items: center; text-align: center; }
  .company-header-inner { flex-direction: column; align-items: center; text-align: center; }
  .company-header-info dl { grid-template-columns: 1fr; }
  .company-header-info dl div { justify-content: center; }
  .detail-layout { grid-template-columns: 1fr; }
}

/* ===== Search Results ===== */
.search-results-header { font-size: 13px; color: var(--text-sub); margin-bottom: 16px; }
.search-results-header strong { color: var(--text); }

.search-result-item {
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.search-result-item:first-of-type { padding-top: 0; }
.search-result-item:last-child { border-bottom: none; }
.search-result-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; transition: color 0.2s; display: inline-block; }
.search-result-item:hover .search-result-title { color: var(--primary); }
.search-result-type {
  display: inline-block; padding: 1px 8px; font-size: 11px; border-radius: var(--radius-xs);
  border: 1px solid; margin-left: 8px; vertical-align: middle;
}
.search-result-type.type-drug { color: var(--primary); border-color: #a7f3d0; background: #ecfdf5; }
.search-result-type.type-disease { color: #7c3aed; border-color: #e9d5ff; background: #faf5ff; }
.search-result-type.type-qa { color: var(--accent); border-color: #fde68a; background: #fffbeb; }
.search-result-type.type-article { color: #2563eb; border-color: #bfdbfe; background: #eff6ff; }
.search-result-type.type-hospital { color: #c27819; border-color: #fde68a; background: #fef3e2; }
.search-result-excerpt {
  font-size: 13px; color: var(--text-sub); line-height: 1.7; margin-top: 6px;
}
.search-result-meta {
  font-size: 12px; color: var(--text-sub); margin-top: 6px; display: flex; gap: 16px; flex-wrap: wrap;
}
.search-result-meta a { color: var(--primary); }
.search-result-meta a:hover { text-decoration: underline; }
