/* MisterGuan BaZi SEO landing pages — shared styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #C20409; --primary-dark: #940307;
  --bg: #F5F0E6; --card: #FFFFFF;
  --text: #5C4033; --text-muted: #7A5C4E;
  --border: #DDD4C4; --gold: #D4A84B;
  --wood: #3a7d44; --fire: #C20409; --earth: #a0763a; --metal: #8a8a8a; --water: #2d6a8a;
  --radius: 12px;
}
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

nav {
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 64px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 100;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #C20409 0%, #8B0000 100%);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.25rem; font-weight: 700; flex-shrink: 0;
}
.nav-text h1 { font-size: 1.15rem; font-weight: 700; color: var(--primary); line-height: 1.1; }
.nav-text p { font-size: 0.72rem; color: #6b7280; margin-top: 1px; }
.nav-cta {
  background: var(--primary); color: #fff; padding: 8px 20px;
  border-radius: 8px; font-size: 0.875rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-dark); text-decoration: none; }

.article-hero {
  background: linear-gradient(135deg, #EDE5D3 0%, #F5EDDB 100%);
  border-bottom: 1px solid var(--border);
  color: var(--text); padding: 48px 24px 52px;
}
.breadcrumb { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-muted); }
.article-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
  background: rgba(58,125,68,0.12); border: 1px solid rgba(58,125,68,0.35); color: var(--wood);
}
.tag-fire { background: rgba(194,4,9,0.10); border-color: rgba(194,4,9,0.35); color: var(--fire); }
.tag-earth { background: rgba(160,118,58,0.12); border-color: rgba(160,118,58,0.35); color: var(--earth); }
.tag-metal { background: rgba(138,138,138,0.14); border-color: rgba(138,138,138,0.40); color: #666; }
.tag-water { background: rgba(45,106,138,0.12); border-color: rgba(45,106,138,0.35); color: var(--water); }

.article-hero h1 {
  font-size: clamp(1.8rem, 4.6vw, 2.6rem); font-weight: 700;
  line-height: 1.2; max-width: 760px; margin-bottom: 16px;
}
.article-hero .lede {
  color: var(--text-muted); max-width: 760px; font-size: 1.1rem; line-height: 1.65;
}
.article-meta { margin-top: 20px; font-size: 0.8rem; color: var(--text-muted); }

.article-body { max-width: 720px; margin: 0 auto; padding: 48px 24px; }
.article-body h2 {
  font-size: 1.45rem; font-weight: 700; margin: 44px 0 14px; color: var(--text); line-height: 1.3;
}
.article-body p { margin-bottom: 20px; color: var(--text); font-size: 1rem; }
.article-body strong { color: var(--text); }
.article-body ul { padding-left: 24px; margin-bottom: 20px; }
.article-body li { margin-bottom: 10px; color: var(--text); font-size: 1rem; }

.diagnostic {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; margin: 36px 0;
  box-shadow: 0 2px 12px rgba(92,64,51,0.04);
}
.diagnostic-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 8px; color: var(--wood);
}
.diag-fire { color: var(--fire) !important; }
.diag-earth { color: var(--earth) !important; }
.diag-metal { color: #666 !important; }
.diag-water { color: var(--water) !important; }
.diagnostic h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 18px; }
.diagnostic-list { list-style: none; padding: 0; margin: 0 0 18px; }
.diagnostic-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
  font-size: 0.97rem; line-height: 1.55; color: var(--text); margin-bottom: 0;
}
.diagnostic-list li:last-child { border-bottom: none; }
.diagnostic-check {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 5px;
  border: 1.5px solid var(--wood); background: rgba(58,125,68,0.06); margin-top: 2px;
}
.diag-check-fire { border-color: var(--fire); background: rgba(194,4,9,0.06); }
.diag-check-earth { border-color: var(--earth); background: rgba(160,118,58,0.08); }
.diag-check-metal { border-color: #888; background: rgba(138,138,138,0.10); }
.diag-check-water { border-color: var(--water); background: rgba(45,106,138,0.08); }
.diagnostic-footer {
  background: rgba(58,125,68,0.08); border-radius: 8px;
  padding: 12px 16px; font-size: 0.9rem; color: var(--text);
}
.diag-footer-fire { background: rgba(194,4,9,0.07); }
.diag-footer-earth { background: rgba(160,118,58,0.10); }
.diag-footer-metal { background: rgba(138,138,138,0.13); }
.diag-footer-water { background: rgba(45,106,138,0.09); }
.diagnostic-footer strong { color: var(--wood); }
.diag-strong-fire { color: var(--fire) !important; }
.diag-strong-earth { color: var(--earth) !important; }
.diag-strong-metal { color: #666 !important; }
.diag-strong-water { color: var(--water) !important; }

.cycle-wrap {
  margin: 40px 0 32px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 20px 20px; text-align: center;
}
.cycle-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px;
}
.cycle-wrap h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.cycle-svg { max-width: 360px; width: 100%; height: auto; display: block; margin: 0 auto; }
.cycle-caption {
  font-size: 0.88rem; color: var(--text-muted); max-width: 440px;
  margin: 16px auto 0; line-height: 1.55;
}
.cycle-caption strong { color: var(--wood); }
.cap-fire strong { color: var(--fire); }
.cap-earth strong { color: var(--earth); }
.cap-metal strong { color: #666; }
.cap-water strong { color: var(--water); }

.chart-teaser {
  margin: 40px 0;
  background: linear-gradient(135deg, #FAF6EC 0%, #F5EDDB 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px;
}
.teaser-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 6px;
}
.chart-teaser h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.chart-teaser .sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 22px; }
.mini-chart {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  max-width: 440px; margin: 0 auto 20px;
}
.mini-pillar-label {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
  text-align: center; padding-bottom: 6px;
}
.mini-cell {
  background: var(--card); border-radius: 8px; padding: 12px 6px;
  text-align: center; border: 1px solid var(--border); position: relative;
}
.mini-cell.day { border: 2px solid var(--primary); box-shadow: 0 2px 8px rgba(194,4,9,0.15); }
.mini-cell.hl-wood { background: rgba(58,125,68,0.1); border-color: rgba(58,125,68,0.35); }
.mini-cell.hl-fire { background: rgba(194,4,9,0.08); border-color: rgba(194,4,9,0.30); }
.mini-cell.hl-earth { background: rgba(160,118,58,0.10); border-color: rgba(160,118,58,0.35); }
.mini-cell.hl-metal { background: rgba(138,138,138,0.12); border-color: rgba(138,138,138,0.40); }
.mini-cell.hl-water { background: rgba(45,106,138,0.10); border-color: rgba(45,106,138,0.35); }
.mini-cell .elem {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.mini-cell .name { font-size: 0.82rem; font-weight: 600; color: var(--text); margin-top: 4px; }
.elem-wood { color: var(--wood); } .elem-fire { color: var(--fire); }
.elem-earth { color: var(--earth); } .elem-metal { color: var(--metal); } .elem-water { color: var(--water); }
.teaser-notes { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.teaser-note {
  display: flex; gap: 10px; align-items: flex-start; color: var(--text);
  padding: 10px 14px; background: rgba(255,255,255,0.6); border-radius: 8px;
  border-left: 3px solid var(--primary);
}
.teaser-note .arrow { color: var(--primary); font-weight: 700; flex-shrink: 0; }

.callout {
  background: rgba(58,125,68,0.07); border-left: 4px solid var(--wood);
  border-radius: 0 8px 8px 0; padding: 20px 24px; margin: 32px 0;
}
.callout p { margin-bottom: 0; color: var(--text); }
.callout strong { color: var(--wood); }
.callout-fire { background: rgba(194,4,9,0.06); border-left-color: var(--fire); }
.callout-fire strong { color: var(--fire); }
.callout-earth { background: rgba(160,118,58,0.09); border-left-color: var(--earth); }
.callout-earth strong { color: var(--earth); }
.callout-metal { background: rgba(138,138,138,0.11); border-left-color: #888; }
.callout-metal strong { color: #666; }
.callout-water { background: rgba(45,106,138,0.08); border-left-color: var(--water); }
.callout-water strong { color: var(--water); }

.inline-cta {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; margin: 40px 0; text-align: center;
}
.inline-cta p.lead {
  font-size: 1rem; color: var(--text); margin-bottom: 20px;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.cta-btn {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 13px 32px; border-radius: 8px; font-size: 0.95rem; font-weight: 700;
  box-shadow: 0 4px 20px rgba(194,4,9,0.25);
}
.cta-btn:hover { background: var(--primary-dark); text-decoration: none; }

.related { background: var(--card); border-top: 1px solid var(--border); padding: 48px 24px; }
.related-inner { max-width: 720px; margin: 0 auto; }
.related h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.related .sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.related-links { display: flex; flex-direction: column; gap: 12px; }
.related-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-weight: 600; font-size: 0.92rem;
}
.related-link:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.related-link .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wood); flex-shrink: 0; }
.dot-fire { background: var(--fire) !important; }
.dot-earth { background: var(--earth) !important; }
.dot-metal { background: #888 !important; }
.dot-water { background: var(--water) !important; }

.cta-band {
  background: linear-gradient(135deg, #EDE5D3 0%, #F5EDDB 100%);
  border-top: 1px solid var(--border);
  padding: 64px 24px; text-align: center;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--text); margin-bottom: 12px; }
.cta-band p { color: var(--text-muted); max-width: 480px; margin: 0 auto 32px; }
.hero-btn {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 14px 36px; border-radius: 10px; font-size: 1rem; font-weight: 700;
  box-shadow: 0 4px 20px rgba(194,4,9,0.4);
}
.hero-btn:hover { background: var(--primary-dark); text-decoration: none; }

footer {
  background: var(--card); border-top: 1px solid var(--border);
  padding: 32px 24px; text-align: center; font-size: 0.85rem; color: var(--text-muted);
}
footer a { color: var(--text-muted); margin: 0 12px; }
footer a:hover { color: var(--primary); }

@media (max-width: 520px) {
  .article-body { padding: 36px 20px; }
  .diagnostic, .chart-teaser, .inline-cta { padding: 22px 18px; }
  .mini-chart { gap: 6px; }
  .mini-cell { padding: 10px 4px; }
  .mini-cell .name { font-size: 0.72rem; }
}
