/* ========== Reset & Variables ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #0b7a3e;
  --primary-dark: #065a2d;
  --primary-light: #e8f5ee;
  --accent: #ff6b35;
  --accent-light: #fff3ed;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --bg: #f5f7fa;
  --white: #fff;
  --border: #e8ecef;
  --shadow: 0 2px 8px rgba(0,0,0,.06);
  --shadow-hover: 0 4px 16px rgba(0,0,0,.1);
  --radius: 8px;
  --transition: .3s ease;
}

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container { padding: 0 16px; }

/* ========== Mobile Header ========== */
.m-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.m-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 16px;
  border-bottom: 2px solid var(--primary);
}
.m-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}
.m-logo h1 {
  font-size: 18px;
  color: var(--primary);
  letter-spacing: .5px;
}
.m-logo h1 span { color: var(--accent); }
.m-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.m-header-actions a {
  font-size: 20px;
  color: var(--text-light);
}

/* Search Bar */
.m-search {
  padding: 8px 16px 10px;
  background: var(--white);
}
.m-search-box {
  display: flex;
  height: 36px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.m-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 14px;
  font-size: 13px;
  outline: none;
  color: var(--text);
}
.m-search-box button {
  width: 48px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  border-radius: 0 18px 18px 0;
}

/* ========== Banner Swiper ========== */
.m-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #11a858 100%);
}
.m-banner-track {
  display: flex;
  transition: transform .4s ease;
}
.m-banner-slide {
  min-width: 100%;
  padding: 32px 20px 40px;
  color: #fff;
}
.m-banner-slide h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}
.m-banner-slide p {
  font-size: 13px;
  opacity: .88;
  line-height: 1.7;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-btn-hero {
  display: inline-block;
  padding: 8px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}
.m-banner-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.m-banner-dots span {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,.4);
  border-radius: 3px;
  transition: all var(--transition);
}
.m-banner-dots span.active {
  background: #fff;
  width: 18px;
}

/* ========== Quick Entry Grid ========== */
.m-quick-entry {
  background: var(--white);
  padding: 16px;
  margin-top: -1px;
}
.m-quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px 0;
}
.m-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}
.m-quick-item .icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.m-quick-item span {
  font-size: 12px;
  color: var(--text-light);
}

/* ========== Section Common ========== */
.m-section { padding: 20px 0; }
.m-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 14px;
}
.m-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  padding-left: 12px;
}
.m-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}
.m-section-more {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== Disease Categories ========== */
.m-dept-section { background: var(--white); }
.m-dept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px 0;
  padding: 0 16px;
}
.m-dept-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 4px;
}
.m-dept-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
}
.m-dept-card h4 {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

/* Expandable */
.m-dept-grid.collapsed .m-dept-card:nth-child(n+9) {
  display: none;
}
.m-expand-btn {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--white);
}
.m-expand-btn i { margin-left: 4px; transition: transform var(--transition); }
.m-expand-btn.expanded i { transform: rotate(180deg); }

/* ========== News ========== */
.m-news-featured {
  margin: 0 16px 14px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  display: block;
}
.m-news-featured-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.m-news-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-news-featured-body {
  padding: 14px 16px;
}
.m-news-featured-body h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-news-featured-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-news-list { padding: 0 16px; }
.m-news-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.m-news-item:last-child { border-bottom: none; }
.m-news-item-body { flex: 1; min-width: 0; }
.m-news-item-body h4 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-news-item-body .meta {
  font-size: 12px;
  color: var(--text-muted);
}
.m-news-item-img {
  width: 110px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}
.m-news-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== Encyclopedia ========== */
.m-encyclopedia-section { background: var(--white); }
.m-tab-nav {
  display: flex;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.m-tab-nav::-webkit-scrollbar { display: none; }
.m-tab-nav span {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.m-tab-nav span.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.m-tab-content { display: none; padding: 14px 16px; }
.m-tab-content.active { display: block; }

.m-encyclopedia-card {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.m-encyclopedia-card:last-child { border-bottom: none; }
.m-encyclopedia-card-body { flex: 1; min-width: 0; }
.m-encyclopedia-card-body h4 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-encyclopedia-card-body p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-encyclopedia-card-img {
  width: 110px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}
.m-encyclopedia-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== Tools ========== */
.m-tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 0 16px;
  background: var(--white);
  border-radius: var(--radius);
  margin: 0 16px;
  box-shadow: var(--shadow);
}
.m-tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 4px;
}
.m-tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.m-tool-card:nth-child(1) .m-tool-icon { background: #e3f2fd; color: #1976d2; }
.m-tool-card:nth-child(2) .m-tool-icon { background: #fce4ec; color: #c62828; }
.m-tool-card:nth-child(3) .m-tool-icon { background: #e8f5e9; color: #2e7d32; }
.m-tool-card:nth-child(4) .m-tool-icon { background: #fff3e0; color: #e65100; }
.m-tool-card:nth-child(5) .m-tool-icon { background: #f3e5f5; color: #7b1fa2; }
.m-tool-card h4 {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

/* ========== Q&A ========== */
.m-qa-section { background: var(--white); }
.m-qa-list { padding: 0 16px; }
.m-qa-card {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.m-qa-card:last-child { border-bottom: none; }
.m-qa-tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 11px;
  border-radius: 3px;
  margin-bottom: 8px;
  font-weight: 500;
}
.m-qa-card:nth-child(odd) .m-qa-tag {
  background: #fff0e6;
  color: var(--accent);
}
.m-qa-card:nth-child(even) .m-qa-tag {
  background: var(--primary-light);
  color: var(--primary);
}
.m-qa-card h4 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 6px;
}
.m-qa-card > p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.m-qa-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}
.m-qa-meta i { margin-right: 3px; }

/* ========== Hospital ========== */
.m-hospital-list { padding: 0 16px; }
.m-hospital-card {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.m-hospital-card:last-child { border-bottom: none; }
.m-hospital-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--primary-light);
}
.m-hospital-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-hospital-info { flex: 1; min-width: 0; }
.m-hospital-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-hospital-info .tag {
  font-size: 11px;
  color: var(--primary);
  margin-bottom: 3px;
}
.m-hospital-info .addr {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== Stats Banner ========== */
.m-stats-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #11a858 100%);
  padding: 28px 16px;
  text-align: center;
  color: #fff;
}
.m-stats-banner h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.m-stats-banner > p {
  font-size: 13px;
  opacity: .8;
  margin-bottom: 22px;
}
.m-stats-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 22px;
}
.m-stat-item .num {
  font-size: 28px;
  font-weight: 700;
}
.m-stat-item .label {
  font-size: 12px;
  opacity: .75;
  margin-top: 2px;
}
.m-btn-stats {
  display: inline-block;
  padding: 10px 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* ========== Footer ========== */
.m-footer {
  background: #2a2d35;
  color: rgba(255,255,255,.65);
  padding: 28px 16px 20px;
}
.m-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.m-footer-brand .m-logo-icon {
  width: 28px;
  height: 28px;
  font-size: 14px;
}
.m-footer-brand h2 {
  font-size: 16px;
  color: #fff;
}
.m-footer-brand h2 span { color: var(--accent); }
.m-footer-desc {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.m-footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 0;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.m-footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,.55);
}
.m-footer-bottom {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,.35);
  line-height: 1.8;
}
.m-footer-bottom a { color: rgba(255,255,255,.5); }

/* ========== Bottom Nav ========== */
.m-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.m-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  color: var(--text-muted);
}
.m-bottom-nav a i { font-size: 20px; }
.m-bottom-nav a.active {
  color: var(--primary);
}

body { padding-bottom: 56px; }

/* ========== Article Detail ========== */
.m-breadcrumb {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--white);
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.m-breadcrumb::-webkit-scrollbar { display: none; }
.m-breadcrumb a { color: var(--text-light); }
.m-breadcrumb .sep { margin: 0 6px; color: var(--border); }

.m-article {
  background: var(--white);
}
.m-article-header { padding: 20px 16px 0; }
.m-article-header h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 14px;
}
.m-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
  color: var(--text-muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.m-article-meta i { margin-right: 3px; }
.m-article-meta .tag {
  display: inline-block;
  padding: 1px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}

.m-article-cover {
  padding: 14px 16px 0;
}
.m-article-cover img {
  width: 100%;
  border-radius: var(--radius);
}

/* Article Body */
.m-article-body {
  padding: 16px;
  font-size: 15px;
  line-height: 1.9;
  color: #444;
}
.m-article-body h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}
.m-article-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 18px 0 10px;
}
.m-article-body p { margin-bottom: 14px; }
.m-article-body img {
  border-radius: 6px;
  margin: 14px 0;
}
.m-article-body ul,
.m-article-body ol {
  margin: 10px 0 14px 20px;
  list-style: disc;
}
.m-article-body ol { list-style: decimal; }
.m-article-body li {
  margin-bottom: 6px;
  line-height: 1.8;
}
.m-article-body blockquote {
  margin: 16px 0;
  padding: 12px 14px 12px 16px;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 6px 6px 0;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.75;
}
.m-article-body strong { color: var(--text); }
.m-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.m-article-body th,
.m-article-body td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}
.m-article-body th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

/* Disclaimer */
.m-article-disclaimer {
  margin: 0 16px;
  padding: 12px 14px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: var(--radius);
  font-size: 12px;
  color: #ad8b00;
  line-height: 1.75;
}
.m-article-disclaimer i { margin-right: 4px; color: #faad14; }

/* Tags */
.m-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
}
.m-article-tags a {
  display: inline-block;
  padding: 3px 12px;
  background: var(--bg);
  border-radius: 16px;
  font-size: 12px;
  color: var(--text-light);
  border: 1px solid var(--border);
}

/* Actions Bar */
.m-article-actions {
  display: flex;
  justify-content: space-around;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.m-article-actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.m-article-actions a i { font-size: 18px; }
.m-article-actions a.active { color: var(--primary); }

/* Prev / Next */
.m-article-prev-next { padding: 0 16px 16px; }
.m-prev-next-card {
  display: block;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 10px;
}
.m-prev-next-card .label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.m-prev-next-card .title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Related Articles */
.m-related-section { background: var(--white); }
.m-related-list { padding: 0 16px; }
.m-related-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.m-related-item:last-child { border-bottom: none; }
.m-related-item-body { flex: 1; min-width: 0; }
.m-related-item-body h4 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-related-item-body .meta {
  font-size: 11px;
  color: var(--text-muted);
}
.m-related-item-img {
  width: 100px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}
.m-related-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating TOC Button */
.m-toc-fab {
  position: fixed;
  right: 16px;
  bottom: 72px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 12px rgba(11,122,62,.3);
  z-index: 90;
  cursor: pointer;
}

/* TOC Drawer */
.m-toc-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.12);
  z-index: 200;
  transform: translateY(100%);
  transition: transform .3s ease;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
}
.m-toc-drawer.open { transform: translateY(0); }
.m-toc-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.m-toc-drawer-header h3 {
  font-size: 16px;
  font-weight: 600;
}
.m-toc-drawer-close {
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}
.m-toc-drawer-body {
  padding: 8px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}
.m-toc-drawer-body ul { list-style: none; }
.m-toc-drawer-body a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-light);
  border-left: 3px solid transparent;
}
.m-toc-drawer-body a.active {
  color: var(--primary);
  background: var(--primary-light);
  border-left-color: var(--primary);
}
.m-toc-drawer-body a.toc-h3 {
  padding-left: 36px;
  font-size: 13px;
}
.m-toc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 199;
  display: none;
}
.m-toc-overlay.open { display: block; }

/* ========== List Page ========== */

/* Page Banner */
.m-page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #11a858 100%);
  padding: 28px 16px;
  color: #fff;
}
.m-page-banner h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.m-page-banner p {
  font-size: 13px;
  opacity: .8;
}

/* Filter Tabs */
.m-list-filter {
  background: var(--white);
  position: sticky;
  top: 50px;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}
.m-filter-scroll {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px;
  height: 42px;
  align-items: center;
  gap: 4px;
}
.m-filter-scroll::-webkit-scrollbar { display: none; }
.m-filter-scroll a {
  flex-shrink: 0;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--text-light);
  border-radius: 16px;
  white-space: nowrap;
}
.m-filter-scroll a.active {
  color: #fff;
  background: var(--primary);
}
.m-filter-sort {
  display: flex;
  justify-content: flex-end;
  padding: 0 16px;
  height: 34px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg);
}
.m-filter-sort a {
  font-size: 12px;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 3px;
}
.m-filter-sort a.active { color: var(--primary); font-weight: 600; }

/* List Article Cards */
.m-list-body { padding: 10px 16px 0; }

.m-list-card {
  display: flex;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.m-list-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.m-list-card-body h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-list-card-body .summary {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.m-list-card-body .meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  align-items: center;
  flex-wrap: wrap;
}
.m-list-card-body .meta i { margin-right: 2px; }
.m-list-card-body .meta .cat-tag {
  padding: 1px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}

.m-list-card-img {
  width: 110px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}
.m-list-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Featured Card (top) */
.m-list-featured {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.m-list-featured-img {
  width: 100%;
  height: 170px;
  overflow: hidden;
}
.m-list-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-list-featured-body {
  padding: 12px 14px 14px;
}
.m-list-featured-body h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-list-featured-body .summary {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.m-list-featured-body .meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  align-items: center;
}
.m-list-featured-body .meta i { margin-right: 2px; }
.m-list-featured-body .meta .cat-tag {
  padding: 1px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}

/* Pagination */
.m-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 20px 16px 24px;
}
.m-pagination a,
.m-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-light);
  border: 1px solid var(--border);
  background: var(--white);
}
.m-pagination span.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.m-pagination span.dots {
  border: none;
  background: none;
  color: var(--text-muted);
  min-width: 20px;
  padding: 0;
}
.m-pagination .prev,
.m-pagination .next {
  padding: 0 12px;
  font-size: 12px;
}

/* Hot Tags (list page bottom) */
.m-hot-tags-section { background: var(--white); }
.m-hot-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
}
.m-hot-tags-wrap a {
  padding: 4px 12px;
  background: var(--bg);
  border-radius: 16px;
  font-size: 12px;
  color: var(--text-light);
}

/* ========== Wiki List Page ========== */

/* Stats Row */
.m-wiki-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.m-wiki-stat {
  text-align: center;
  padding: 14px 4px;
  border-right: 1px solid var(--border);
}
.m-wiki-stat:last-child { border-right: none; }
.m-wiki-stat .num {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.m-wiki-stat .label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Wiki Search */
.m-wiki-search {
  padding: 10px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.m-wiki-search-box {
  display: flex;
  height: 36px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--primary);
}
.m-wiki-search-box input {
  flex: 1;
  border: none;
  padding: 0 14px;
  font-size: 13px;
  outline: none;
  background: transparent;
}
.m-wiki-search-box button {
  width: 48px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

/* Department Scroll */
.m-wiki-dept {
  background: var(--white);
  padding: 14px 0;
}
.m-wiki-dept-title {
  font-size: 15px;
  font-weight: 700;
  padding: 0 16px;
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
}
.m-wiki-dept-title::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  background: var(--primary);
  border-radius: 2px;
}
.m-wiki-dept-scroll {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px;
  gap: 10px;
}
.m-wiki-dept-scroll::-webkit-scrollbar { display: none; }
.m-wiki-dept-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid transparent;
  flex-shrink: 0;
  min-width: 72px;
}
.m-wiki-dept-item.active {
  border-color: var(--primary);
  background: var(--primary-light);
}
.m-wiki-dept-item .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--primary);
}
.m-wiki-dept-item.active .icon {
  background: var(--primary);
  color: #fff;
}
.m-wiki-dept-item span {
  font-size: 11px;
  color: var(--text-light);
  white-space: nowrap;
}

/* Letter Index */
.m-wiki-letters {
  background: var(--white);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.m-wiki-letters-scroll {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 4px;
}
.m-wiki-letters-scroll::-webkit-scrollbar { display: none; }
.m-wiki-letters-scroll a {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg);
}
.m-wiki-letters-scroll a.active {
  background: var(--primary);
  color: #fff;
}

/* Wiki Disease Card */
.m-wiki-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  border-left: 3px solid transparent;
}
.m-wiki-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.m-wiki-card-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.m-wiki-card-tags span {
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}
.m-wiki-tag-dept { background: var(--primary-light); color: var(--primary); }
.m-wiki-tag-common { background: #e3f2fd; color: #1565c0; }
.m-wiki-tag-risk { background: #fff0e6; color: var(--accent); }
.m-wiki-card .desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.m-wiki-card .symptoms {
  font-size: 12px;
  color: var(--text-muted);
}
.m-wiki-card .symptoms i { margin-right: 3px; color: var(--primary); }

/* ========== Wiki Detail Page ========== */

/* Overview */
.m-wiki-overview {
  background: var(--white);
  overflow: hidden;
}
.m-wiki-overview-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0d8f4a 55%, #0a6d3a 100%);
  padding: 24px 16px 26px;
  color: #fff;
}
.m-wiki-ov-title h1 {
  font-size: 23px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.m-wiki-ov-subtitle {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.92;
  letter-spacing: 0.04em;
}
.m-wiki-ov-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.m-wiki-ov-tags span {
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.28);
}
.m-wiki-overview-body {
  padding: 16px;
}
.m-wiki-overview-lead {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.m-wiki-overview-media {
  margin: 0 0 14px;
  padding: 0;
  background: linear-gradient(180deg, #f6faf8 0%, #eef5f1 100%);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(11, 122, 62, 0.08);
  overflow: hidden;
}
.m-wiki-overview-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  vertical-align: middle;
}
.m-wiki-overview-media figcaption {
  padding: 8px 12px 10px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.m-wiki-ov-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.85;
  margin: 0;
}
.m-wiki-ov-desc p {
  margin: 0;
}
.m-wiki-ov-desc strong {
  color: var(--text);
  font-weight: 600;
}
.m-wiki-info-list { }
.m-wiki-info-row {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.m-wiki-info-row:last-child { border-bottom: none; }
.m-wiki-info-label {
  color: var(--text-muted);
  flex-shrink: 0;
  width: 72px;
  font-weight: 500;
}
.m-wiki-info-value {
  color: var(--text);
  flex: 1;
}
.m-wiki-info-value a {
  color: var(--primary);
  text-decoration: none;
}
.m-wiki-info-value a:active {
  opacity: 0.85;
}

/* Tab Nav */
.m-wiki-tab-nav {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  position: sticky;
  top: 50px;
  z-index: 50;
  border-bottom: 2px solid var(--border);
}
.m-wiki-tab-nav::-webkit-scrollbar { display: none; }
.m-wiki-tab-nav a {
  flex-shrink: 0;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}
.m-wiki-tab-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.m-wiki-tab-nav a i { margin-right: 4px; }

/* Content Section */
.m-wiki-section {
  background: var(--white);
  margin-top: 10px;
}
.m-wiki-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.m-wiki-section-header h2 {
  font-size: 17px;
  font-weight: 700;
}
.m-wiki-section-header i {
  font-size: 16px;
  color: var(--primary);
}
.m-wiki-section-body {
  padding: 14px 16px 18px;
  font-size: 14px;
  line-height: 1.85;
  color: #444;
}
.m-wiki-section-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 18px 0 8px;
}
.m-wiki-section-body h3:first-child { margin-top: 0; }
.m-wiki-section-body p { margin-bottom: 12px; }
.m-wiki-section-body ul,
.m-wiki-section-body ol {
  margin: 8px 0 14px 18px;
  list-style: disc;
}
.m-wiki-section-body ol { list-style: decimal; }
.m-wiki-section-body li {
  margin-bottom: 5px;
  line-height: 1.75;
}
.m-wiki-section-body blockquote {
  margin: 14px 0;
  padding: 10px 12px 10px 14px;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 6px 6px 0;
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.75;
}
.m-wiki-section-body strong { color: var(--text); }
.m-wiki-section-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 12px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.m-wiki-section-body th,
.m-wiki-section-body td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}
.m-wiki-section-body th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

/* Symptom Grid */
.m-wiki-symptom-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.m-wiki-symptom-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.m-wiki-symptom-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.m-wiki-symptom-item.high .m-wiki-symptom-dot { background: #e53935; }
.m-wiki-symptom-item.mid .m-wiki-symptom-dot { background: var(--accent); }
.m-wiki-symptom-item span {
  font-size: 13px;
  color: var(--text);
}
.m-wiki-symptom-item .freq {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Related Diseases */
.m-wiki-related-list {
  margin-top: 12px;
}
.m-wiki-related-card {
  display: block;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.m-wiki-related-card:last-child { margin-bottom: 0; }
.m-wiki-related-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.m-wiki-related-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

/* Wiki Actions */
.m-wiki-actions {
  display: flex;
  justify-content: space-around;
  padding: 14px 16px;
  background: var(--white);
  margin-top: 10px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.m-wiki-actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.m-wiki-actions a i { font-size: 18px; }

/* ========== Q&A List Page ========== */

.m-qa-list-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  border-left: 3px solid transparent;
  cursor: pointer;
}
.m-qa-list-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.m-qa-icon-q {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.m-qa-list-head h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-qa-list-answer {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.m-qa-icon-a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.m-qa-list-answer p {
  flex: 1;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-qa-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.m-qa-list-tags {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.m-qa-list-tags span:not(.m-qa-status) {
  padding: 1px 8px;
  background: var(--bg);
  border-radius: 3px;
  font-size: 11px;
  color: var(--text-muted);
}
.m-qa-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}
.m-qa-status-resolved { background: var(--primary-light); color: var(--primary); }
.m-qa-list-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
}
.m-qa-list-meta i { margin-right: 2px; }

/* ========== Q&A Detail Page ========== */

/* Question */
.m-qa-detail-question {
  background: var(--white);
}
.m-qa-detail-q-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.m-qa-detail-q-header h1 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
}
.m-qa-detail-q-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: 36px;
}
.m-qa-detail-q-tags span:not(.m-qa-status) {
  padding: 1px 8px;
  background: var(--bg);
  border-radius: 3px;
  font-size: 11px;
  color: var(--text-muted);
}
.m-qa-detail-q-body {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}
.m-qa-detail-q-body p { margin-bottom: 10px; }
.m-qa-detail-q-footer {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.m-qa-detail-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-qa-detail-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--primary);
}
.m-qa-detail-user-info .name {
  font-size: 13px;
  font-weight: 500;
}
.m-qa-detail-user-info .time {
  font-size: 11px;
  color: var(--text-muted);
}
.m-qa-detail-q-stats {
  font-size: 11px;
  color: var(--text-muted);
}

/* Answers */
.m-qa-answers-header {
  font-size: 16px;
  font-weight: 700;
  padding: 14px 16px;
  margin-top: 10px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding-left: 28px;
  position: relative;
}
.m-qa-answers-header::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: var(--primary);
  border-radius: 2px;
}
.m-qa-answer-card {
  background: var(--white);
  margin-top: 10px;
}
.m-qa-answer-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.m-qa-answer-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.m-qa-answer-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--primary);
  flex-shrink: 0;
}
.m-qa-answer-avatar.expert {
  background: var(--primary);
  color: #fff;
}
.m-qa-answer-info .name {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.m-qa-answer-info .name .badge {
  padding: 0 6px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 500;
}
.m-qa-answer-info .name .badge-expert {
  background: var(--primary);
  color: #fff;
}
.m-qa-answer-info .time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.m-qa-answer-best {
  padding: 2px 10px;
  background: #fff7e6;
  border: 1px solid #ffd666;
  color: #d48806;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.m-qa-answer-body {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.85;
  color: #444;
}
.m-qa-answer-body p { margin-bottom: 12px; }
.m-qa-answer-body ul,
.m-qa-answer-body ol {
  margin: 8px 0 14px 18px;
  list-style: disc;
}
.m-qa-answer-body ol { list-style: decimal; }
.m-qa-answer-body li {
  margin-bottom: 5px;
  line-height: 1.75;
}
.m-qa-answer-body strong { color: var(--text); }
.m-qa-answer-body blockquote {
  margin: 12px 0;
  padding: 10px 12px 10px 14px;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 6px 6px 0;
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.75;
}
.m-qa-answer-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 18px;
}
.m-qa-answer-foot a {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.m-qa-answer-foot a.liked { color: var(--primary); font-weight: 500; }

/* Q&A Actions */
.m-qa-actions {
  display: flex;
  justify-content: space-around;
  padding: 14px 16px;
  background: var(--white);
  margin-top: 10px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.m-qa-actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.m-qa-actions a i { font-size: 18px; }

/* ========== Tools Overview Page ========== */
.m-tools-grid {
  padding: 12px;
}
.m-tool-overview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 10px;
}
.m-tool-overview-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.m-tool-overview-info {
  flex: 1;
  min-width: 0;
}
.m-tool-overview-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}
.m-tool-overview-info p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-tool-overview-arrow {
  color: var(--text-muted);
  font-size: 14px;
  flex-shrink: 0;
}

/* ========== Tool Detail Page ========== */
.m-tool-main {
  background: var(--white);
  margin: 10px 0;
}
.m-tool-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.m-tool-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.m-tool-header h1 {
  font-size: 17px;
  font-weight: 700;
}
.m-tool-header p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.m-tool-body {
  padding: 16px;
}

/* Mobile Form Elements */
.m-tool-form-group {
  margin-bottom: 16px;
}
.m-tool-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.m-tool-form-group label span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
}
.m-tool-input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  background: var(--bg);
  transition: border-color var(--transition);
  box-sizing: border-box;
}
.m-tool-input:focus {
  border-color: var(--primary);
  background: var(--white);
}
.m-tool-select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  background: var(--bg);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  box-sizing: border-box;
}
.m-tool-input-row {
  display: flex;
  gap: 10px;
}
.m-tool-input-row .m-tool-form-group { flex: 1; }
.m-tool-radio-group {
  display: flex;
  gap: 10px;
}
.m-tool-radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 400;
  font-size: 13px;
  margin-bottom: 0;
  flex: 1;
  justify-content: center;
  transition: all var(--transition);
}
.m-tool-radio-group label.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.m-tool-radio-group input[type="radio"] { display: none; }
.m-tool-btn {
  display: inline-block;
  padding: 11px 0;
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}
.m-tool-btn:active { opacity: .85; }
.m-tool-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.m-tool-btn-row .m-tool-btn { flex: 1; }
.m-tool-btn-reset {
  background: var(--bg);
  color: var(--text-light);
  border: 1px solid var(--border);
}

/* Mobile Result Panel */
.m-tool-result {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: none;
}
.m-tool-result.show { display: block; }
.m-tool-result-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.m-tool-result-value {
  text-align: center;
  padding: 14px 0;
}
.m-tool-result-value .number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.m-tool-result-value .unit {
  font-size: 14px;
  color: var(--text-muted);
}
.m-tool-result-value .label {
  font-size: 16px;
  font-weight: 600;
  margin-top: 6px;
}
.m-tool-result-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-top: 12px;
}
.m-tool-result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 12px;
}
.m-tool-result-table th,
.m-tool-result-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}
.m-tool-result-table th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}
.m-tool-result-table tr.active {
  background: var(--primary-light);
  font-weight: 600;
}

/* Mobile Calorie Search */
.m-tool-search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.m-tool-search-box .m-tool-input { flex: 1; }
.m-tool-search-box .m-tool-btn {
  width: auto;
  padding: 0 16px;
  height: 42px;
  font-size: 14px;
}

/* Mobile Category Buttons */
.m-tool-cat-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 14px;
}
.m-tool-cat-scroll::-webkit-scrollbar { display: none; }
.m-tool-cat-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
}
.m-tool-cat-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}
.m-tool-cat-btn i {
  margin-right: 4px;
}

/* Mobile Symptom Body Area */
.m-symptom-area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.m-symptom-area-btn {
  padding: 10px 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition);
}
.m-symptom-area-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}
.m-symptom-area-btn i {
  display: block;
  font-size: 18px;
  margin-bottom: 3px;
}

/* Mobile Symptom Checkboxes */
.m-symptom-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.m-symptom-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}
.m-symptom-checkbox.checked {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.m-symptom-checkbox i {
  font-size: 14px;
  color: var(--border);
}
.m-symptom-checkbox.checked i { color: var(--primary); }

/* Mobile Tool Tips */
.m-tool-tips {
  padding: 0 12px;
  margin-bottom: 12px;
}
.m-tool-tip-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 10px;
}
.m-tool-tip-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}
.m-tool-tip-card h4 i { color: var(--primary); }
.m-tool-tip-card li {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.7;
  padding: 3px 0 3px 14px;
  position: relative;
  list-style: none;
}
.m-tool-tip-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

/* ========== Search Results Page ========== */
.m-search-hero {
  background: linear-gradient(135deg, #0b7a3e 0%, #10a956 50%, #2dc46d 100%);
  padding: 20px 14px 24px;
}
.m-search-hero h2 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
}
.m-search-hero h2 i { margin-right: 6px; }
.m-search-box-large {
  display: flex;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,.12);
}
.m-search-box-large input {
  flex: 1;
  border: none;
  outline: none;
  padding: 11px 16px;
  font-size: 14px;
  background: transparent;
  min-width: 0;
}
.m-search-box-large button {
  padding: 0 18px;
  background: var(--primary-dark);
  color: #fff;
  border: none;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.m-search-hot-tags {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.m-search-hot-tags span {
  color: rgba(255,255,255,.55);
  font-size: 11px;
}
.m-search-hot-tags a {
  padding: 2px 10px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border-radius: 12px;
  font-size: 11px;
}

/* Search Summary */
.m-search-summary {
  padding: 12px 14px;
  background: var(--white);
  font-size: 13px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.m-search-summary strong {
  color: var(--primary);
  font-size: 16px;
}
.m-search-summary em {
  color: var(--primary);
  font-style: normal;
  font-weight: 600;
}
.m-search-tabs {
  display: flex;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.m-search-tabs::-webkit-scrollbar { display: none; }
.m-search-tabs a {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text-light);
  position: relative;
}
.m-search-tabs a.active {
  color: var(--primary);
  font-weight: 600;
}
.m-search-tabs a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* Search Result Card */
.m-search-result-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.m-search-result-body {
  flex: 1;
  min-width: 0;
}
.m-search-result-body h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-search-result-body h3 a { color: var(--text); }
.m-search-result-body h3 em {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
}
.m-search-result-body .summary {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-search-result-body .summary em {
  color: var(--accent);
  font-style: normal;
}
.m-search-result-body .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.m-search-result-body .meta .source {
  padding: 1px 7px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 3px;
  font-weight: 500;
  font-size: 10px;
}
.m-search-result-img {
  width: 100px;
  height: 70px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.m-search-result-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== Contact Page ========== */
.m-contact-info {
  background: var(--white);
  margin-bottom: 10px;
}
.m-contact-info-header {
  padding: 20px 14px;
  background: linear-gradient(135deg, #0b7a3e 0%, #10a956 100%);
  color: #fff;
  text-align: center;
}
.m-contact-info-header h2 {
  font-size: 18px;
  font-weight: 700;
}
.m-contact-info-header p {
  font-size: 13px;
  opacity: .8;
  margin-top: 3px;
}
.m-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}
.m-contact-item:last-child { border-bottom: none; }
.m-contact-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.m-contact-item-text h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.m-contact-item-text p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}
.m-contact-item-text a {
  color: var(--primary);
  font-weight: 500;
}
.m-contact-social {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.m-contact-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
}
.m-contact-form {
  background: var(--white);
  padding: 14px;
  margin-bottom: 10px;
}
.m-contact-form h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-contact-form h3 i { color: var(--primary); }
.m-contact-form-group {
  margin-bottom: 14px;
}
.m-contact-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}
.m-contact-form-group label .req {
  color: var(--accent);
}
.m-contact-form-input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  background: var(--bg);
  box-sizing: border-box;
}
.m-contact-form-input:focus {
  border-color: var(--primary);
  background: var(--white);
}
.m-contact-form-textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: var(--bg);
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
  box-sizing: border-box;
}
.m-contact-form-textarea:focus {
  border-color: var(--primary);
  background: var(--white);
}
.m-contact-form-submit {
  width: 100%;
  padding: 11px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.m-contact-form-submit:active { opacity: .85; }

/* Mobile FAQ */
.m-contact-faq {
  padding: 14px;
}
.m-contact-faq h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.m-contact-faq h3 i { color: var(--primary); }
.m-faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 8px;
  overflow: hidden;
}
.m-faq-question {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.m-faq-question i {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 8px;
}
.m-faq-item.open .m-faq-question i { transform: rotate(180deg); }
.m-faq-answer {
  padding: 0 14px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.m-faq-item.open .m-faq-answer {
  padding: 0 14px 14px;
  max-height: 300px;
}
.m-faq-answer p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========== Animations ========== */
.animate-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Utilities ========== */
.m-pc-link {
  display: block;
  text-align: center;
  padding: 14px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--white);
  margin-bottom: 56px;
}
.m-pc-link a { color: var(--primary); }
