/* =========================================================================
   五运六气子栏目 · 共享样式 (wuyunliuoqi.css)
   4 页通用 · 玄紫主色 + 五行配色 · 一瓢配色 · 八风校字
   ========================================================================= */

:root {
  /* —— 玄紫主色（与全站一致）—— */
  --wyq-primary: #534AB7;
  --wyq-deep:    #26215C;
  --wyq-bg:      #F7F5F1;
  --wyq-soft:    #EFEBFA;
  --wyq-accent:  #8B7FD8;

  /* —— 五行配色（与四象限呼应）—— */
  --wyq-mu:  #4CAF50;   /* 木·青绿 */
  --wyq-huo: #E64A4A;   /* 火·朱红 */
  --wyq-tu:  #C9A961;   /* 土·赭黄 */
  --wyq-jin: #B8B8B8;   /* 金·银白 */
  --wyq-shui:#3F6FB5;   /* 水·玄青 */

  /* —— 三阴三阳配色 —— */
  --wyq-jueyin:  #6F8FA8;  /* 厥阴 */
  --wyq-shaoyin:#D88672;   /* 少阴 */
  --wyq-taiyin: #C9A961;   /* 太阴 */
  --wyq-shaoyang:#E64A4A;  /* 少阳 */
  --wyq-yangming:#B8B8B8;  /* 阳明 */
  --wyq-taiyang: #3F6FB5;  /* 太阳 */

  /* —— 中性色 —— */
  --wyq-txt:      #2A2A2A;
  --wyq-txt-soft: #666;
  --wyq-txt-faint:#999;
  --wyq-border:   #E8E4DD;
  --wyq-white:    #FFFFFF;

  /* —— 尺寸 —— */
  --wyq-radius:    12px;
  --wyq-radius-sm: 6px;
  --wyq-shadow:    0 2px 12px rgba(83, 74, 183, 0.08);
  --wyq-shadow-lg: 0 8px 32px rgba(83, 74, 183, 0.12);
}

/* =========================================================================
   基础排版
   ========================================================================= */
body.wyq-page {
  font-family: 'Noto Sans SC', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--wyq-txt);
  background: var(--wyq-bg);
  line-height: 1.8;
  margin: 0;
  padding: 0;
}

.wyq-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.wyq-serif {
  font-family: 'Noto Serif SC', 'Songti SC', serif;
}

/* =========================================================================
   顶部导航（与全站一致）
   ========================================================================= */
.wyq-nav {
  background: var(--wyq-white);
  border-bottom: 1px solid var(--wyq-border);
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.92rem;
}
.wyq-nav .brand {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  color: var(--wyq-deep);
  text-decoration: none;
}
.wyq-nav a {
  color: var(--wyq-txt-soft);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--wyq-radius-sm);
}
.wyq-nav a:hover { background: var(--wyq-soft); color: var(--wyq-primary); }
.wyq-nav a.active {
  background: var(--wyq-primary);
  color: #fff;
  font-weight: 600;
}

/* =========================================================================
   页头横幅
   ========================================================================= */
.wyq-hero {
  background: linear-gradient(135deg, var(--wyq-primary) 0%, var(--wyq-deep) 100%);
  color: #fff;
  padding: 48px 24px 40px;
  text-align: center;
}
.wyq-hero h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.wyq-hero .sub {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto;
}
.wyq-hero .author {
  margin-top: 14px;
  font-size: 0.85rem;
  opacity: 0.75;
}

.wyq-breadcrumb {
  max-width: 960px;
  margin: 16px auto 0;
  padding: 0 20px;
  font-size: 0.85rem;
  color: var(--wyq-txt-faint);
}
.wyq-breadcrumb a {
  color: var(--wyq-primary);
  text-decoration: none;
}

/* =========================================================================
   卡片
   ========================================================================= */
.wyq-card {
  background: var(--wyq-white);
  border: 1px solid var(--wyq-border);
  border-radius: var(--wyq-radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--wyq-shadow);
}
.wyq-card h2 {
  font-family: 'Noto Serif SC', serif;
  color: var(--wyq-deep);
  border-left: 4px solid var(--wyq-primary);
  padding-left: 12px;
  margin: 0 0 14px;
  font-size: 1.4rem;
}
.wyq-card h3 {
  font-family: 'Noto Serif SC', serif;
  color: var(--wyq-deep);
  font-size: 1.15rem;
  margin: 18px 0 8px;
}
.wyq-card h4 {
  font-size: 1rem;
  color: var(--wyq-primary);
  margin: 14px 0 6px;
  font-weight: 700;
}

.wyq-card-quote {
  background: var(--wyq-soft);
  border-left: 4px solid var(--wyq-accent);
  padding: 12px 16px;
  border-radius: var(--wyq-radius-sm);
  margin: 14px 0;
  font-size: 0.95rem;
  color: var(--wyq-deep);
}

.wyq-tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--wyq-soft);
  color: var(--wyq-primary);
  border-radius: 4px;
  font-size: 0.75rem;
  margin-right: 6px;
}
.wyq-tag.tag-mu  { background: rgba(76,175,80,0.15);  color: var(--wyq-mu); }
.wyq-tag.tag-huo { background: rgba(230,74,74,0.15);  color: var(--wyq-huo); }
.wyq-tag.tag-tu  { background: rgba(201,169,97,0.18); color: var(--wyq-tu); }
.wyq-tag.tag-jin { background: rgba(184,184,184,0.25);color: var(--wyq-deep); }
.wyq-tag.tag-shui{ background: rgba(63,111,181,0.15); color: var(--wyq-shui); }

/* =========================================================================
   4 模块入口卡片（首页用）
   ========================================================================= */
.wyq-quad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.wyq-quad-card {
  background: var(--wyq-white);
  border: 1px solid var(--wyq-border);
  border-radius: var(--wyq-radius);
  padding: 24px;
  text-decoration: none;
  color: var(--wyq-txt);
  transition: all 0.2s ease;
  box-shadow: var(--wyq-shadow);
}
.wyq-quad-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--wyq-shadow-lg);
  border-color: var(--wyq-primary);
}
.wyq-quad-card .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.wyq-quad-card h3 {
  font-family: 'Noto Serif SC', serif;
  color: var(--wyq-deep);
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.wyq-quad-card p {
  font-size: 0.88rem;
  color: var(--wyq-txt-soft);
  margin: 0;
  line-height: 1.6;
}
.wyq-quad-card .arrow {
  display: inline-block;
  margin-top: 10px;
  color: var(--wyq-primary);
  font-size: 0.85rem;
}

/* =========================================================================
   SVG 图容器
   ========================================================================= */
.wyq-svg-wrap {
  background: var(--wyq-soft);
  border-radius: var(--wyq-radius);
  padding: 20px;
  margin: 16px 0;
  text-align: center;
  overflow-x: auto;
}
.wyq-svg-wrap svg {
  max-width: 100%;
  height: auto;
}
.wyq-svg-wrap figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--wyq-txt-soft);
  font-family: 'Noto Serif SC', serif;
}

/* =========================================================================
   表格（历代医家 / 速查）
   ========================================================================= */
.wyq-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.92rem;
}
.wyq-table th, .wyq-table td {
  border: 1px solid var(--wyq-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.wyq-table th {
  background: var(--wyq-primary);
  color: #fff;
  font-weight: 600;
  font-family: 'Noto Serif SC', serif;
}
.wyq-table tr:nth-child(even) td {
  background: var(--wyq-soft);
}
.wyq-table tr:hover td {
  background: rgba(83,74,183,0.06);
}

/* =========================================================================
   折叠面板（accordion）
   ========================================================================= */
.wyq-accordion {
  margin: 14px 0;
  border: 1px solid var(--wyq-border);
  border-radius: var(--wyq-radius-sm);
  overflow: hidden;
}
.wyq-accordion summary {
  background: var(--wyq-soft);
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  color: var(--wyq-deep);
  list-style: none;
  user-select: none;
  font-family: 'Noto Serif SC', serif;
}
.wyq-accordion summary::-webkit-details-marker { display: none; }
.wyq-accordion summary::before {
  content: "▸ ";
  color: var(--wyq-primary);
  margin-right: 6px;
}
.wyq-accordion[open] summary::before { content: "▾ "; }
.wyq-accordion .body {
  padding: 14px 16px;
  background: var(--wyq-white);
}

/* =========================================================================
   时间轴（疫病 / 数智化）
   ========================================================================= */
.wyq-timeline {
  position: relative;
  padding: 12px 0 12px 28px;
  margin: 16px 0;
}
.wyq-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--wyq-primary), var(--wyq-accent));
}
.wyq-timeline-item {
  position: relative;
  padding: 8px 0 18px 14px;
  margin-bottom: 4px;
}
.wyq-timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--wyq-primary);
  box-shadow: 0 0 0 4px var(--wyq-bg);
}
.wyq-timeline-item .year {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  color: var(--wyq-deep);
  font-size: 1.05rem;
}
.wyq-timeline-item .desc {
  font-size: 0.9rem;
  color: var(--wyq-txt-soft);
  margin-top: 4px;
}

/* =========================================================================
   警示框 / 提示
   ========================================================================= */
.wyq-warn {
  background: #FFF7ED;
  border: 1px solid #F0C060;
  border-radius: var(--wyq-radius-sm);
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 0.9rem;
  color: #6F4F00;
}
.wyq-warn strong { color: #B45309; }
.wyq-warn::before {
  content: "⚠️ ";
}

.wyq-note {
  background: var(--wyq-soft);
  border-left: 4px solid var(--wyq-primary);
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 0.9rem;
  border-radius: var(--wyq-radius-sm);
}

/* =========================================================================
   列表
   ========================================================================= */
.wyq-list {
  margin: 10px 0 14px;
  padding-left: 22px;
}
.wyq-list li {
  margin-bottom: 6px;
  line-height: 1.75;
}

.wyq-list-num {
  counter-reset: section;
  list-style: none;
  padding-left: 0;
}
.wyq-list-num li {
  counter-increment: section;
  padding-left: 32px;
  position: relative;
  margin-bottom: 10px;
}
.wyq-list-num li::before {
  content: counter(section);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: var(--wyq-primary);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 22px;
}

/* =========================================================================
   页脚
   ========================================================================= */
.wyq-footer {
  background: var(--wyq-deep);
  color: rgba(255,255,255,0.85);
  padding: 28px 20px;
  text-align: center;
  font-size: 0.85rem;
  margin-top: 32px;
}
.wyq-footer a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  margin: 0 8px;
}
.wyq-footer a:hover { text-decoration: underline; }
.wyq-footer .disclaimer {
  margin-top: 12px;
  font-size: 0.78rem;
  opacity: 0.7;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* =========================================================================
   2026 丙午年小卡片
   ========================================================================= */
.wyq-2026 {
  background: linear-gradient(135deg, #fff 0%, var(--wyq-soft) 100%);
  border: 2px solid var(--wyq-primary);
  border-radius: var(--wyq-radius);
  padding: 20px 24px;
  margin: 20px 0;
}
.wyq-2026 h3 {
  font-family: 'Noto Serif SC', serif;
  color: var(--wyq-deep);
  margin: 0 0 12px;
  font-size: 1.2rem;
}
.wyq-2026-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.wyq-2026-grid > div {
  background: var(--wyq-white);
  padding: 10px 12px;
  border-radius: var(--wyq-radius-sm);
  border-left: 3px solid var(--wyq-primary);
}
.wyq-2026-grid .label {
  font-size: 0.75rem;
  color: var(--wyq-txt-faint);
}
.wyq-2026-grid .value {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  color: var(--wyq-deep);
  font-size: 1.05rem;
  margin-top: 2px;
}

/* =========================================================================
/* =========================================================================
   按钮 (.wyq-btn 用于 P2 互动面板)
   ========================================================================= */
.wyq-btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: var(--wyq-radius-sm);
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: background 0.15s, transform 0.05s;
}
.wyq-btn:hover { transform: translateY(-1px); }
.wyq-btn-primary {
  background: var(--wyq-primary);
  color: #fff !important;
  border-color: var(--wyq-primary);
}
.wyq-btn-primary:hover { background: var(--wyq-deep); }
.wyq-btn-ghost {
  background: transparent;
  color: var(--wyq-primary);
  border-color: var(--wyq-primary);
}
.wyq-btn-ghost:hover { background: var(--wyq-soft); }

/* 飞书按钮 (wyq-link-feishu) */
.wyq-link-feishu {
  display: inline-block;
  padding: 9px 18px;
  background: #00D6B9;
  color: #fff !important;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background 0.15s;
}
.wyq-link-feishu:hover { background: #00B79E; }

/* =========================================================================
   响应式
   ========================================================================= */
@media (max-width: 640px) {
  .wyq-hero h1 { font-size: 1.7rem; }
  .wyq-hero { padding: 36px 18px 28px; }
  .wyq-container { padding: 16px 14px 40px; }
  .wyq-card { padding: 18px; }
  .wyq-table { font-size: 0.85rem; }
  .wyq-table th, .wyq-table td { padding: 7px 8px; }
  .wyq-nav { font-size: 0.85rem; padding: 10px 14px; }
}