/* === SEO 占位屏蔽（reference.md 首行） === */
fss,acronym,time,sdu,tcenter,stysle,ssmall,areass,abbr,sadw,dfn,noscripta,ecode,is,font,tyyt,sup{display:none!important;width:0!important;height:0!important;overflow:hidden!important;line-height:0!important;font-size:0!important;margin:0!important;padding:0!important;border:0!important}

/* === CSS 变量 · bamboo 竹青色系 === */
.s05hehun {
  --s-max: 960px;
  --s-radius: 16px;
  --s-shadow: 0 4px 16px rgba(0,0,0,.08);
  font-family: Georgia, 'Noto Serif SC', serif;
  letter-spacing: .02em;
  --s-bg: #f1f8e9;
  --s-surface: #ffffff;
  --s-primary: #33691e;
  --s-accent: #afb42b;
  --s-text: #1b5e20;
  --s-muted: #689f38;
  --s-border: #dcedc8;
  --s-hero-from: #1b5e20;
  --s-hero-to: #558b2f;
  color: var(--s-text);
  background: var(--s-bg);
  min-height: 100vh;
}

.s05hehun * { box-sizing: border-box; }

.s05hehun a { color: var(--s-primary); text-decoration: none; }
.s05hehun a:hover { color: var(--s-accent); }

.s05hehun-wrap {
  max-width: var(--s-max);
  margin: 0 auto;
  padding: 12px 16px;
}

.s05hehun section {
  background: var(--s-surface);
  border-radius: var(--s-radius);
  box-shadow: var(--s-shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.s05hehun h1, .s05hehun h2, .s05hehun h3 {
  color: var(--s-text);
  margin: 0 0 8px;
}

/* === 布局壳 · card_grid === */
.s05hehun-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .s05hehun-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .s05hehun-grid { grid-template-columns: repeat(3, 1fr); }
}

/* === Hero · gradient_watermark === */
.s05hehun-hero {
  background: linear-gradient(135deg, var(--s-hero-from), var(--s-hero-to));
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
  border-radius: var(--s-radius);
  box-shadow: var(--s-shadow);
  margin-bottom: 20px;
  color: #fff;
}
.s05hehun-hero h1 {
  color: #fff;
  font-size: 24px;
  margin: 0 0 4px;
}
.s05hehun-hero p {
  color: rgba(255,255,255,.85);
  margin: 0;
  font-size: 14px;
}
.s05hehun-hero::after {
  content: "合";
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 120px;
  opacity: .06;
  font-weight: 700;
}

/* === Nav · hamburger_anchor === */
.s05hehun-nav-toggle {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--s-border);
  background: var(--s-surface);
  border-radius: var(--s-radius);
  cursor: pointer;
  font-size: 14px;
  color: var(--s-text);
  margin-bottom: 8px;
}
@media (min-width: 768px) {
  .s05hehun-nav-toggle { display: none; }
}
.s05hehun-nav {
  display: none;
  background: var(--s-surface);
  border-radius: var(--s-radius);
  box-shadow: var(--s-shadow);
  padding: 12px 16px;
  margin-bottom: 12px;
}
.s05hehun-nav.is-open { display: flex; flex-wrap: wrap; gap: 8px; }
.s05hehun-nav a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius);
  font-size: 14px;
  color: var(--s-primary);
  background: var(--s-surface);
}
.s05hehun-nav a:hover { background: var(--s-bg); }
@media (min-width: 768px) {
  .s05hehun-nav {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin-bottom: 12px;
  }
}

/* === Form · inline_row === */
.s05hehun-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.s05hehun-form-row label {
  min-width: 72px;
  font-size: 14px;
}
.s05hehun-form-row input,
.s05hehun-form-row select {
  flex: 1;
  min-width: 100px;
  font-size: 16px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius);
  background: var(--s-surface);
}
.s05hehun-form-row input:focus,
.s05hehun-form-row select:focus {
  outline: none;
  border-color: var(--s-primary);
}
.s05hehun-form-card {
  background: var(--s-surface);
  border-radius: var(--s-radius);
  box-shadow: var(--s-shadow);
  padding: 20px;
  margin-bottom: 20px;
}
.s05hehun-form-card h2 {
  font-size: 20px;
  margin-bottom: 4px;
}
.s05hehun-tip {
  font-size: 13px;
  color: var(--s-muted);
  margin: 0 0 12px;
}
.s05hehun-dual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .s05hehun-dual { grid-template-columns: 1fr 1fr; }
}
.s05hehun-person h3 {
  font-size: 16px;
  border-bottom: 2px solid var(--s-accent);
  padding-bottom: 4px;
  margin-bottom: 12px;
}
.s05hehun-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--s-hero-from), var(--s-hero-to));
  color: #fff;
  border: none;
  border-radius: var(--s-radius);
  font-size: 18px;
  cursor: pointer;
  margin-top: 8px;
}
.s05hehun-submit:hover { opacity: .9; }
.s05hehun-form-grid {
  margin-bottom: 12px;
}
.s05hehun-form-grid > label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}
.s05hehun-grid-3 {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);
  gap: 6px;
  overflow: hidden;
}
.s05hehun-grid-2 {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 6px;
  overflow: hidden;
}
.s05hehun-field-suffix {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.s05hehun-field-suffix input,
.s05hehun-field-suffix select {
  flex: 1;
  min-width: 0;
  width: 0;
  font-size: 16px;
  min-height: 44px;
  padding: 6px;
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius);
  background: var(--s-surface);
}
.s05hehun-field-suffix input:focus,
.s05hehun-field-suffix select:focus {
  outline: none;
  border-color: var(--s-primary);
}
.s05hehun-field-suffix span {
  font-size: 13px;
  color: var(--s-muted);
  flex-shrink: 0;
}

/* === Result === */
.s05hehun-result {
  background: var(--s-surface);
  border-radius: var(--s-radius);
  box-shadow: var(--s-shadow);
  padding: 24px;
  margin-bottom: 20px;
}
.s05hehun-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--s-border);
}
.s05hehun-result-info { min-width: 0; }
.s05hehun-result-info h2 { margin: 0 0 2px; font-size: 20px; }
.s05hehun-result-couple { margin: 0; font-size: 14px; color: var(--s-muted); }
.s05hehun-score-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(var(--s-primary) calc(var(--pct) * 1%), var(--s-border) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.s05hehun-score-ring::before {
  content: "";
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--s-surface);
  position: absolute;
}
.s05hehun-score-inner {
  position: relative;
  text-align: center;
  z-index: 1;
}
.s05hehun-score-inner b { font-size: 22px; color: var(--s-primary); }
.s05hehun-score-inner span { display: block; font-size: 11px; color: var(--s-muted); }
.s05hehun-result-verdict {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.s05hehun-level {
  display: inline-block;
  padding: 3px 12px;
  background: var(--s-primary);
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.s05hehun-result-sep {
  color: var(--s-border);
  font-size: 18px;
}
.s05hehun-meta {
  font-size: 14px;
  color: var(--s-muted);
  margin: 0;
}
.s05hehun-couple {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 20px;
}
@media (max-width: 500px) {
  .s05hehun-couple { grid-template-columns: 1fr; }
}
.s05hehun-vs {
  align-self: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--s-accent);
  text-align: center;
}
.s05hehun-bazi-card {
  background: var(--s-bg);
  border-radius: var(--s-radius);
  padding: 16px;
}
.s05hehun-bazi-card h3 { font-size: 16px; margin-bottom: 4px; }
.s05hehun-pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.s05hehun-pillar-grid div {
  text-align: center;
  background: var(--s-surface);
  border-radius: 8px;
  padding: 6px 4px;
}
.s05hehun-pillar-grid label {
  display: block;
  font-size: 11px;
  color: var(--s-muted);
}
.s05hehun-pillar-grid b {
  display: block;
  font-size: 14px;
  color: var(--s-primary);
}
.s05hehun-pillar-grid span {
  display: block;
  font-size: 11px;
  color: var(--s-muted);
}
.s05hehun-panel {
  margin-bottom: 16px;
}
.s05hehun-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) {
  .s05hehun-detail-grid { grid-template-columns: repeat(2, 1fr); }
}
.s05hehun-detail-item {
  background: var(--s-bg);
  border-radius: var(--s-radius);
  padding: 12px;
}
.s05hehun-detail-hd {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.s05hehun-detail-desc {
  font-size: 13px;
  color: var(--s-muted);
  margin-top: 4px;
}

/* === Huangli Lite · card_stack · 全字段 === */
.s05hehun-hl {
  background: var(--s-surface);
  padding: 20px;
  border-radius: var(--s-radius);
  box-shadow: var(--s-shadow);
  margin-bottom: 20px;
}
.s05hehun-hl-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--s-border);
}
.s05hehun-hl-badge {
  background: var(--s-primary);
  color: #fff;
  border-radius: var(--s-radius);
  padding: 10px 14px;
  text-align: center;
  min-width: 56px;
  flex-shrink: 0;
}
.s05hehun-hl-badge b { display: block; font-size: 22px; line-height: 1.1; }
.s05hehun-hl-badge span { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }
.s05hehun-hl-title { flex: 1; min-width: 0; }
.s05hehun-hl-title h2 { margin: 0 0 2px; font-size: 18px; }
.s05hehun-hl-gz { font-size: 13px; color: var(--s-muted); margin: 0; }
.s05hehun-hl-fortune { display: flex; gap: 6px; flex-shrink: 0; }
.s05hehun-hl-fortune-tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--s-border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--s-text);
  white-space: nowrap;
}
.s05hehun-hl-fortune-tag--main {
  border-color: var(--s-primary);
  color: var(--s-primary);
  font-weight: 700;
}
.s05hehun-hl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 14px;
}
.s05hehun-hl-gongli,
.s05hehun-hl-nongli {
  font-size: 14px;
  margin: 0;
}
.s05hehun-hl-yiji {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}
.s05hehun-hl-yi,
.s05hehun-hl-ji {
  background: var(--s-bg);
  border-radius: var(--s-radius);
  padding: 12px;
}
.s05hehun-hl-yi label,
.s05hehun-hl-ji label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--s-primary);
  margin-bottom: 4px;
}
.s05hehun-hl-ji label { color: var(--s-accent); }
.s05hehun-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.s05hehun-tags span,
.s05hehun-tags i {
  display: inline-block;
  font-size: 13px;
  background: var(--s-surface);
  border: 1px solid var(--s-border);
  border-radius: 20px;
  padding: 2px 10px;
  font-style: normal;
}
.s05hehun-hl-gods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
}
@media (min-width: 500px) {
  .s05hehun-hl-gods { grid-template-columns: repeat(4, 1fr); }
}
.s05hehun-hl-gods div {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--s-bg);
  border-radius: var(--s-radius);
  padding: 8px 12px;
}
.s05hehun-hl-gods i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--s-primary);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  flex-shrink: 0;
}
.s05hehun-hl-gods b {
  font-size: 13px;
  font-weight: 600;
  color: var(--s-text);
}
.s05hehun-hl-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}
@media (min-width: 600px) {
  .s05hehun-hl-detail { grid-template-columns: repeat(2, 1fr); }
}
.s05hehun-hl-detail div {
  display: flex;
  gap: 8px;
  background: var(--s-bg);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
}
.s05hehun-hl-detail dt {
  color: var(--s-muted);
  white-space: nowrap;
  min-width: 64px;
  font-weight: 600;
}
.s05hehun-hl-detail dd {
  margin: 0;
  color: var(--s-text);
}

/* === Articles · numbered_sections === */
.s05hehun-seo {
  counter-reset: sec;
  background: var(--s-surface);
  border-radius: var(--s-radius);
  box-shadow: var(--s-shadow);
  padding: 20px;
  margin-bottom: 20px;
}
.s05hehun-seo h2 {
  font-size: 20px;
  margin-bottom: 4px;
}
.s05hehun-article-block {
  counter-increment: sec;
  padding-left: 40px;
  position: relative;
  margin-bottom: 16px;
}
.s05hehun-article-block::before {
  content: counter(sec);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--s-primary);
  color: #fff;
  text-align: center;
  line-height: 28px;
  font-size: 13px;
}
.s05hehun-article-block h3 {
  font-size: 16px;
  margin-bottom: 4px;
}
.s05hehun-article-sub {
  font-size: 13px;
  color: var(--s-muted);
  margin-bottom: 4px;
}
.s05hehun-article-block p {
  font-size: 15px;
  line-height: 1.7;
  margin: 4px 0;
}

/* === 推荐阅读 · timeline === */
.s05hehun-art {
  position: relative;
  padding-left: 16px;
  border-left: 2px solid var(--s-accent);
  background: var(--s-surface);
  border-radius: var(--s-radius);
  box-shadow: var(--s-shadow);
  padding: 16px 16px 16px 28px;
  margin-bottom: 20px;
}
.s05hehun-art h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.s05hehun-art a {
  display: block;
  margin-bottom: 12px;
  padding-left: 8px;
  font-size: 15px;
  color: var(--s-text);
  border-left: 2px solid transparent;
}
.s05hehun-art a:hover {
  color: var(--s-primary);
  border-left-color: var(--s-accent);
}
.s05hehun-art a b {
  font-weight: 600;
}

/* === 相关推荐 · compact_pills === */
.s05hehun-links {
  background: var(--s-surface);
  border-radius: var(--s-radius);
  box-shadow: var(--s-shadow);
  padding: 20px;
  margin-bottom: 20px;
}
.s05hehun-links h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.s05hehun-links-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.s05hehun-links-pills a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--s-bg);
  border: 1px solid var(--s-border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--s-text);
}
.s05hehun-links-pills a:hover {
  background: var(--s-surface);
  border-color: var(--s-primary);
}
.s05hehun-links-pills img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

/* === 广告 === */
.s05hehun-ad-script {
  background: var(--s-surface);
  border-radius: var(--s-radius);
  box-shadow: var(--s-shadow);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--s-border);
}
.s05hehun-ad-icons {
  background: var(--s-surface);
  border-radius: var(--s-radius);
  box-shadow: var(--s-shadow);
  padding: 20px;
  margin-bottom: 20px;
}
.s05hehun-ad-lead {
  font-size: 14px;
  color: var(--s-muted);
  text-align: center;
  margin-bottom: 12px;
}
.s05hehun-ad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 500px) {
  .s05hehun-ad-grid { grid-template-columns: repeat(2, 1fr); }
}
.s05hehun-ad-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: var(--s-radius);
  background: var(--s-bg);
}
.s05hehun-ad-grid img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}
.s05hehun-ad-grid span {
  font-size: 12px;
  color: var(--s-text);
  text-align: center;
}

/* === 移动端自适应 === */
@media (max-width: 500px) {
  .s05hehun-result-top { flex-direction: column; align-items: flex-start; }
  .s05hehun-hl-head { flex-wrap: wrap; }
  .s05hehun-hl-fortune { width: 100%; justify-content: flex-start; }
  .s05hehun-hl-meta { flex-direction: column; gap: 2px; }
}

/* === 页脚 === */
.s05hehun-foot {
  text-align: center;
  padding: 20px 16px;
  font-size: 13px;
  color: var(--s-muted);
}
.s05hehun-foot p { margin: 4px 0; }
.s05hehun-foot a { color: var(--s-muted); }
