/* fm_hunyin_01 - 沙色极简 · 柔雾玻璃 · 1040px */
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 变量 */
.fm-hunyin {
  --fm-max-w: 1040px;
  --fm-radius: 16px;
  --fm-bg: #faf8f5;
  --fm-surface: #ffffff;
  --fm-primary: #795548;
  --fm-accent: #ff8a65;
  --fm-text: #3e2723;
  --fm-muted: #a1887f;
  --fm-border: #efebe9;
  --fm-hero-from: #5d4037;
  --fm-hero-to: #8d6e63;
}

/* 基础 */
.fm-hunyin{font-family:"PingFang SC","Microsoft YaHei",sans-serif;background:var(--fm-bg);color:var(--fm-text);min-height:100vh;line-height:1.5}
.fm-hunyin *{box-sizing:border-box}
.fm-hunyin a{color:var(--fm-primary);text-decoration:none}
.fm-hunyin a:hover{color:var(--fm-accent)}
#fm-calc-result{scroll-margin-top:80px;outline:none}

/* 主内容区 - 限制宽度 */
.fm-hunyin-main{
  max-width:var(--fm-max-w);
  margin:0 auto;
  padding:0 16px 48px;
}

/* Hero */
.fm-hunyin-hero{
  background:linear-gradient(135deg,var(--fm-hero-from),var(--fm-hero-to));
  border-radius:0 0 var(--fm-radius) var(--fm-radius);
  padding:40px 28px 36px;
  color:#fff;
  text-align:center;
}
.fm-hunyin-hero-badge{
  display:inline-block;
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.1em;
  color:#d7ccc8;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.2);
  padding:5px 16px;
  border-radius:999px;
  margin-bottom:14px;
}
.fm-hunyin-hero h1{font-size:1.6rem;font-weight:800;margin:0 0 10px}
.fm-hunyin-hero-sub{font-size:.88rem;color:rgba(255,255,255,.85);margin:0 0 20px}
.fm-hunyin-hero-stats{
  display:flex;
  justify-content:center;
  gap:24px;
}
.fm-hunyin-hero-stats span{
  font-size:.78rem;
  color:rgba(255,255,255,.8);
  padding:6px 14px;
  background:rgba(255,255,255,.1);
  border-radius:999px;
}

/* 面包屑 */
.fm-hunyin-crumb{
  display:flex;
  align-items:center;
  gap:0;
  padding:16px 0;
  font-size:.82rem;
  color:var(--fm-muted);
}
.fm-hunyin-crumb a{
  padding:4px 10px;
  background:var(--fm-surface);
  border:1px solid var(--fm-border);
  border-radius:var(--fm-radius);
}
.fm-hunyin-crumb a:hover{background:#efebe9}
.fm-hunyin-crumb span{color:var(--fm-primary);padding:0 8px}
.fm-hunyin-crumb em{font-style:normal;padding:4px 10px;background:#efebe9;border:1px solid var(--fm-border);border-radius:var(--fm-radius)}

/* 测算表单 */
.fm-hunyin-form-section{
  background:var(--fm-surface);
  border-radius:var(--fm-radius);
  padding:28px;
  margin-bottom:20px;
  box-shadow:0 8px 32px rgba(121,85,72,.08);
}
.fm-hunyin-form-header{margin-bottom:20px}
.fm-hunyin-form-step{
  display:inline-block;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.15em;
  color:var(--fm-accent);
  margin-bottom:8px;
}
.fm-hunyin-form-header h2{font-size:1.3rem;font-weight:800;margin:0 0 10px;color:var(--fm-primary)}
.fm-hunyin-form-tip{font-size:.84rem;color:var(--fm-muted);margin:0;line-height:1.7}
.fm-hunyin-form{display:flex;flex-direction:column;gap:16px}
.fm-hunyin-form-row{display:grid;gap:16px;grid-template-columns:1fr 1fr}
.fm-hunyin-form-row--3{grid-template-columns:repeat(3,1fr)}
.fm-hunyin-field{display:flex;flex-direction:column;gap:6px}
.fm-hunyin-field--full{grid-column:span 2}
.fm-hunyin-field label{font-size:.78rem;font-weight:700;color:var(--fm-muted)}
.fm-hunyin-field input,
.fm-hunyin-field select{
  padding:12px 14px;
  border:1px solid var(--fm-border);
  border-radius:var(--fm-radius);
  font-size:.92rem;
  color:var(--fm-text);
  background:#faf8f5;
  transition:all .2s;
}
.fm-hunyin-field input:focus,
.fm-hunyin-field select:focus{outline:none;border-color:var(--fm-primary);background:#fff;box-shadow:0 0 0 3px rgba(121,85,72,.1)}
.fm-hunyin-sex-row{display:flex;gap:12px;padding:8px 0}
.fm-hunyin-radio{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:.88rem;
  color:var(--fm-text);
  cursor:pointer;
}
.fm-hunyin-radio input{margin:0}
.fm-hunyin-submit{
  padding:14px 32px;
  border:0;
  border-radius:var(--fm-radius);
  background:linear-gradient(135deg,var(--fm-primary),var(--fm-hero-to));
  color:#fff;
  font-size:1rem;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(121,85,72,.25);
  transition:all .2s;
  align-self:center;
}
.fm-hunyin-submit:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(121,85,72,.3)}

/* 测算结果 */
.fm-hunyin-error{
  background:#fff5f5;
  border:1px solid #fecaca;
  border-radius:var(--fm-radius);
  padding:18px;
  color:#b91c1c;
  margin-bottom:20px;
}
.fm-hunyin-result{
  background:var(--fm-surface);
  border-radius:var(--fm-radius);
  overflow:hidden;
  margin-bottom:20px;
  box-shadow:0 8px 32px rgba(121,85,72,.08);
}
.fm-hunyin-result-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:28px;
  background:linear-gradient(135deg,var(--fm-hero-from),var(--fm-hero-to));
  color:#fff;
  flex-wrap:wrap;
}
.fm-hunyin-result-step{
  display:inline-block;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.15em;
  color:#d7ccc8;
  margin-bottom:8px;
}
.fm-hunyin-result-banner h2{font-size:1.3rem;font-weight:800;margin:0 0 8px}
.fm-hunyin-result-banner p{font-size:.84rem;color:rgba(255,255,255,.8);margin:0}
.fm-hunyin-score{display:flex;flex-direction:column;align-items:center;gap:10px}
.fm-hunyin-score-dial{position:relative;width:120px;height:120px}
.fm-hunyin-score-dial svg{width:100%;height:100%;transform:rotate(-90deg)}
.fm-hunyin-score-track{fill:none;stroke:rgba(255,255,255,.15);stroke-width:8}
.fm-hunyin-score-fill{fill:none;stroke:#ff8a65;stroke-width:8;stroke-linecap:round;stroke-dasharray:327;stroke-dashoffset:calc(327 - (327 * var(--pct,75) / 100))}
.fm-hunyin-score-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.fm-hunyin-score-center b{font-size:2rem;font-weight:900;color:#fff;line-height:1}
.fm-hunyin-score-center span{font-size:.72rem;color:rgba(255,255,255,.7);margin-top:4px}
.fm-hunyin-score-badge{
  font-style:normal;
  font-size:.78rem;
  font-weight:800;
  color:var(--fm-hero-from);
  background:#ffe0b2;
  padding:5px 16px;
  border-radius:999px;
}
.fm-hunyin-result-body{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:0;
}
.fm-hunyin-result-main{padding:24px;border-right:1px solid var(--fm-border)}
.fm-hunyin-result-side{padding:24px;background:#faf8f5;display:flex;flex-direction:column;gap:16px}
.fm-hunyin-star-card{
  background:#fff;
  border:1px solid var(--fm-border);
  border-radius:var(--fm-radius);
  padding:20px;
  margin-bottom:16px;
}
.fm-hunyin-star-hd{margin-bottom:12px}
.fm-hunyin-star-label{display:block;font-size:.72rem;font-weight:800;color:var(--fm-muted);letter-spacing:.1em;margin-bottom:4px}
.fm-hunyin-star-hd strong{font-size:1.4rem;font-weight:800;color:var(--fm-primary)}
.fm-hunyin-star-card p{font-size:.84rem;color:var(--fm-muted);line-height:1.65;margin:0 0 12px}
.fm-hunyin-star-tags{display:flex;flex-wrap:wrap;gap:8px}
.fm-hunyin-star-tags span{
  font-size:.8rem;
  background:#efebe9;
  border:1px solid var(--fm-border);
  border-radius:var(--fm-radius);
  padding:8px 12px;
  flex:1;
  min-width:120px;
}
.fm-hunyin-star-tags i{font-style:normal;font-size:.72rem;font-weight:800;color:var(--fm-primary);margin-right:4px}
.fm-hunyin-parse h3{font-size:1rem;font-weight:800;color:var(--fm-primary);margin:0 0 12px}
.fm-hunyin-parse blockquote{
  margin:0 0 14px;
  padding:14px 16px;
  border-left:4px solid var(--fm-accent);
  background:#fff3e0;
  border-radius:0 var(--fm-radius) var(--fm-radius) 0;
  font-size:.92rem;
  color:#5d4037;
  line-height:1.7;
}
.fm-hunyin-parse p{font-size:.86rem;color:var(--fm-text);line-height:1.75;margin:0 0 10px;text-align:justify}
.fm-hunyin-info-card{
  background:var(--fm-surface);
  border:1px solid var(--fm-border);
  border-radius:var(--fm-radius);
  padding:18px;
}
.fm-hunyin-info-card h3{font-size:.88rem;font-weight:800;color:var(--fm-primary);margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid var(--fm-border)}
.fm-hunyin-info-card dl{margin:0}
.fm-hunyin-info-card > dl > div{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 0;
  border-bottom:1px dashed #f5f0eb;
  font-size:.84rem;
}
.fm-hunyin-info-card > dl > div:last-child{border-bottom:0}
.fm-hunyin-info-card dt{font-weight:700;color:var(--fm-muted);font-size:.78rem}
.fm-hunyin-info-card dd{margin:0;color:var(--fm-text);font-weight:600}
.fm-hunyin-info-card--taohua{border-color:#ffccbc;background:#fff8f5}
.fm-hunyin-taohua-val{font-size:1.2rem;font-weight:800;color:var(--fm-primary);margin:0 0 10px}
.fm-hunyin-info-card--taohua ul{margin:0;padding-left:18px;font-size:.82rem;color:var(--fm-muted);line-height:1.65}
.fm-hunyin-info-card--taohua li{margin-bottom:4px}
.fm-hunyin-taohua-note{font-size:.75rem;color:var(--fm-muted);margin:10px 0 0;line-height:1.5}

/* 广告位 */
.fm-hunyin-ad-script{margin:0 0 20px;padding:18px;background:var(--fm-surface);border-radius:var(--fm-radius);border:1px solid var(--fm-border);text-align:center;font-size:.86rem;line-height:1.6}
.fm-hunyin-ad-icons{
  background:var(--fm-surface);
  border-radius:var(--fm-radius);
  border:1px solid var(--fm-border);
  padding:20px;
  margin-bottom:20px;
}
.fm-hunyin-ad-lead{font-size:.88rem;color:var(--fm-primary);font-weight:600;text-align:center;margin:0 0 14px}
.fm-hunyin-ad-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.fm-hunyin-ad-grid a{
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:12px 8px;
  background:#faf8f5;
  border:1px solid var(--fm-border);
  border-radius:var(--fm-radius);
  text-decoration:none;
  transition:all .2s;
}
.fm-hunyin-ad-grid a:hover{border-color:var(--fm-primary);box-shadow:0 4px 12px rgba(121,85,72,.1)}
.fm-hunyin-ad-grid img{width:64px;height:64px;border-radius:50%;object-fit:cover;margin-bottom:8px;border:2px solid var(--fm-border)}
.fm-hunyin-ad-grid span{font-size:.75rem;color:var(--fm-text);text-align:center}

/* 导语 */
.fm-hunyin-lead{
  background:var(--fm-surface);
  border-radius:var(--fm-radius);
  border-left:4px solid var(--fm-accent);
  padding:18px 20px;
  margin-bottom:20px;
  font-size:.88rem;
  color:var(--fm-text);
  line-height:1.7;
}

/* 内容区块 */
.fm-hunyin-block{
  background:var(--fm-surface);
  border-radius:var(--fm-radius);
  border:1px solid var(--fm-border);
  padding:20px;
  margin-bottom:16px;
}
.fm-hunyin-block h3{font-size:1rem;color:var(--fm-primary);margin:0 0 14px;font-weight:800}
.fm-hunyin-block ul{margin:0;padding-left:18px}
.fm-hunyin-block li{margin-bottom:8px;font-size:.86rem;line-height:1.65;color:var(--fm-text)}
.fm-hunyin-block p{font-size:.86rem;line-height:1.75;margin:0 0 10px;color:var(--fm-text)}

/* 知识文章 */
.fm-hunyin-knowledge{
  background:var(--fm-surface);
  border-radius:var(--fm-radius);
  border:1px solid var(--fm-border);
  padding:24px;
  margin-bottom:16px;
}
.fm-hunyin-knowledge header{margin-bottom:18px;padding-bottom:14px;border-bottom:2px solid var(--fm-border)}
.fm-hunyin-knowledge h2{font-size:1.1rem;color:var(--fm-primary);margin:0 0 6px;font-weight:800}
.fm-hunyin-knowledge header p{font-size:.82rem;color:var(--fm-muted);margin:0}
.fm-hunyin-knowledge article{padding:16px 0;border-top:1px dashed #d7ccc8}
.fm-hunyin-knowledge article:first-of-type{border-top:0;padding-top:0}
.fm-hunyin-knowledge h3{font-size:.96rem;color:var(--fm-text);margin:0 0 6px;font-weight:700}
.fm-hunyin-knowledge-sub{font-size:.78rem;color:var(--fm-primary);margin:0 0 10px}
.fm-hunyin-knowledge p{font-size:.86rem;color:var(--fm-text);line-height:1.75;margin:0 0 10px;text-align:justify}
.fm-hunyin-knowledge p:last-child{margin-bottom:0}
.fm-hunyin-knowledge-img{margin-bottom:14px;border-radius:var(--fm-radius);overflow:hidden;border:1px solid var(--fm-border)}
.fm-hunyin-knowledge-img img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.fm-hunyin-knowledge-body{padding:0 2px}

/* 今日黄历 Lite */
.fm-hunyin-hl{
  background:var(--fm-surface);
  border-radius:var(--fm-radius);
  border:1px solid var(--fm-border);
  overflow:hidden;
  margin-bottom:20px;
  box-shadow:0 8px 32px rgba(121,85,72,.08);
}
.fm-hunyin-hl-head{
  display:flex;
  gap:16px;
  align-items:center;
  padding:18px 22px;
  background:linear-gradient(135deg,var(--fm-primary),var(--fm-hero-to));
  color:#fff;
}
.fm-hunyin-hl-date{
  flex-shrink:0;
  width:60px;
  text-align:center;
  background:rgba(255,255,255,.12);
  border:2px solid rgba(255,255,255,.2);
  border-radius:14px;
  padding:10px 6px;
}
.fm-hunyin-hl-date b{display:block;font-size:28px;font-weight:900;line-height:1;color:#ffe8a3;text-shadow:0 2px 4px rgba(0,0,0,.1)}
.fm-hunyin-hl-date span{display:block;font-size:11px;margin-top:4px;opacity:.9;letter-spacing:.05em}
.fm-hunyin-hl-text{min-width:0}
.fm-hunyin-hl-text h2{margin:0 0 4px;font-size:18px;font-weight:800}
.fm-hunyin-hl-text p{margin:0;font-size:12px;color:rgba(255,255,255,.8)}
.fm-hunyin-hl-body{padding:0}
.fm-hunyin-hl-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:18px 22px 12px;border-bottom:1px dashed var(--fm-border)}
.fm-hunyin-hl-solar{display:flex;flex-direction:column;gap:6px}
.fm-hunyin-hl-gongli{margin:0;font-size:16px;font-weight:800;color:#3e2723}
.fm-hunyin-hl-icon{margin-right:6px;font-style:normal}
.fm-hunyin-hl-lunar{margin:0;font-size:13px;color:var(--fm-muted)}
.fm-hunyin-hl-columns{text-align:right}
.fm-hunyin-hl-pillars{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;margin-bottom:6px}
.fm-hunyin-hl-pillars span{font-size:12px;font-weight:700;color:var(--fm-primary);background:#efebe9;border:1px solid var(--fm-border);border-radius:999px;padding:4px 12px}
.fm-hunyin-hl-extra{margin:0;font-size:12px;color:var(--fm-muted);text-align:right}
.fm-hunyin-hl-yiji{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:16px 22px;border-bottom:1px dashed var(--fm-border)}
.fm-hunyin-hl-yi,.fm-hunyin-hl-ji{padding:14px;border-radius:12px;margin:0}
.fm-hunyin-hl-yi{background:#f0fdf4;border:1px solid #bbf7d0}
.fm-hunyin-hl-ji{background:#fef2f2;border:1px solid #fecaca}
.fm-hunyin-hl-yi label,.fm-hunyin-hl-ji label{display:block;font-size:13px;font-weight:800;margin-bottom:8px}
.fm-hunyin-hl-yi label{color:#166534}
.fm-hunyin-hl-ji label{color:#dc2626}
.fm-hunyin-hl-yi div,.fm-hunyin-hl-ji div{font-size:13px;line-height:1.65}
.fm-hunyin-hl-yi div span{display:inline-block;margin:0 4px 4px 0;padding:4px 10px;border-radius:8px;font-size:12px;background:#dcfce7;color:#166534}
.fm-hunyin-hl-ji div span{background:#fee2e2;color:#dc2626}
.fm-hunyin-hl-gods{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:14px 22px;border-bottom:1px dashed var(--fm-border)}
.fm-hunyin-hl-god{text-align:center;background:#faf8f5;border:1px solid var(--fm-border);border-radius:12px;padding:12px 6px;transition:all .2s}
.fm-hunyin-hl-god:hover{background:#efebe9}
.fm-hunyin-hl-god i{display:block;font-style:normal;font-size:18px;margin-bottom:6px;line-height:1}
.fm-hunyin-hl-god b{display:block;font-size:12px;font-weight:600;color:var(--fm-text);word-break:break-all}
.fm-hunyin-hl-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:14px 22px 18px}
@media(max-width:600px){.fm-hunyin-hl-grid{grid-template-columns:1fr}}
.fm-hunyin-hl-col{padding:0}
.fm-hunyin-hl-col:first-child{padding-right:16px;border-right:1px dashed var(--fm-border)}
@media(max-width:600px){.fm-hunyin-hl-col:first-child{padding-right:0;border-right:0}}
.fm-hunyin-hl-col:last-child{padding-left:16px}
@media(max-width:600px){.fm-hunyin-hl-col:last-child{padding-left:0}}
.fm-hunyin-hl-row{display:grid;grid-template-columns:5em 1fr;gap:8px;padding:10px 0;border-top:1px solid #faf5f0;font-size:13px}
.fm-hunyin-hl-row:first-child{border-top:0;padding-top:0}
.fm-hunyin-hl-row dt{margin:0;font-size:12px;font-weight:800;color:var(--fm-primary)}
.fm-hunyin-hl-row dd{margin:0;font-size:12px;color:var(--fm-text);word-break:break-all;line-height:1.5}
.fm-hunyin-hl-row dd em{display:block;margin-top:3px;font-style:normal;color:var(--fm-muted);font-size:11px}
.fm-hunyin-hl-row--ji dd{color:#15803d}
.fm-hunyin-hl-row--xiong dd{color:#dc2626}

/* FAQ */
.fm-hunyin-faq-grid{display:grid;gap:10px}
.fm-hunyin-faq-item{
  background:#faf8f5;
  border:1px solid var(--fm-border);
  border-radius:var(--fm-radius);
  padding:16px;
}
.fm-hunyin-faq-item summary{
  font-size:.88rem;
  color:var(--fm-text);
  cursor:pointer;
  font-weight:700;
  list-style:none;
}
.fm-hunyin-faq-item summary::-webkit-details-marker{display:none}
.fm-hunyin-faq-item p{margin:10px 0 0;font-size:.84rem;color:var(--fm-muted);line-height:1.6}

/* 链轮 */
.fm-hunyin-wheel{
  background:var(--fm-surface);
  border-radius:var(--fm-radius);
  border:1px solid var(--fm-border);
  padding:20px;
  margin-bottom:20px;
}
.fm-hunyin-wheel h3{font-size:.92rem;color:var(--fm-primary);margin:0 0 14px;font-weight:800}
.fm-hunyin-wheel-pills{display:flex;flex-wrap:wrap;gap:8px}
.fm-hunyin-wheel-pills a{
  display:inline-block;
  font-size:.82rem;
  color:var(--fm-text);
  background:#efebe9;
  border:1px solid var(--fm-border);
  border-radius:999px;
  padding:8px 16px;
  text-decoration:none;
  transition:all .2s;
}
.fm-hunyin-wheel-pills a:hover{color:#fff;background:var(--fm-primary);border-color:var(--fm-primary)}

/* 页脚 */
.fm-hunyin-foot{text-align:center;padding:24px 0;font-size:.76rem;color:var(--fm-muted);line-height:1.8}
.fm-hunyin-foot p{margin:4px 0}
.fm-hunyin-foot a{color:var(--fm-primary)}

/* 响应式 */
@media(max-width:1080px){
  .fm-hunyin-result-body{grid-template-columns:1fr}
  .fm-hunyin-result-main{border-right:0;border-bottom:1px solid var(--fm-border)}
}
@media(max-width:768px){
  .fm-hunyin-hero{padding:28px 20px 24px}
  .fm-hunyin-hero h1{font-size:1.3rem}
  .fm-hunyin-form-section{padding:20px}
  .fm-hunyin-form-row{grid-template-columns:1fr}
  .fm-hunyin-form-row--3{grid-template-columns:repeat(3,1fr)}
  .fm-hunyin-field--full{grid-column:span 1}
  .fm-hunyin-submit{width:100%}
  .fm-hunyin-result-banner{flex-direction:column;align-items:flex-start}
  .fm-hunyin-ad-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:480px){
  .fm-hunyin{font-size:14px}
  .fm-hunyin-main{padding:0 12px 32px}
  .fm-hunyin-form-row--3{grid-template-columns:1fr}
  .fm-hunyin-ad-grid{grid-template-columns:repeat(2,1fr);gap:8px}
  .fm-hunyin-ad-grid img{width:56px;height:56px}
}
