.szcg{
  --szcg-red:#a93434;
  --szcg-red-dark:#8f2727;
  --szcg-border:#e2ddd6;
  --szcg-soft:#fbf8f4;
  --szcg-text:#242424;
  --szcg-muted:#6f6f6f;

  width:100%;
  max-width:980px;
  margin:0 auto;
  color:var(--szcg-text);
  font-family:"Microsoft YaHei","PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  box-sizing:border-box;
}

.szcg *,
.szcg *::before,
.szcg *::after{
  box-sizing:border-box;
}

.szcg-head{
  margin:0 0 14px;
}

.szcg-kicker{
  display:inline-flex;
  padding:4px 9px;
  border:1px solid #e7c1b7;
  border-radius:999px;
  background:#fff8f5;
  color:#9b3b2d;
  font-size:11px;
  font-weight:700;
}

.szcg-title{
  margin:9px 0 0;
  color:#1f1f1f;
  font-size:27px;
  line-height:1.35;
  font-weight:800;
}

.szcg-intro{
  margin:8px 0 0;
  max-width:900px;
  color:#626262;
  font-size:13px;
  line-height:1.8;
}

.szcg-notice{
  margin:0 0 14px;
  padding:10px 13px;
  border:1px solid #ead9ba;
  border-radius:5px;
  background:#fffaf0;
  color:#725c32;
  font-size:12px;
  line-height:1.7;
}

.szcg-card,
.szcg-result{
  border:1px solid var(--szcg-border);
  border-radius:8px;
  background:#fff;
  box-shadow:0 3px 14px rgba(60,45,30,.05);
}

.szcg-card{
  padding:18px;
}

.szcg-type-row{
  display:inline-flex;
  margin-bottom:16px;
  padding:3px;
  border:1px solid #ddd;
  border-radius:6px;
  background:#f7f7f7;
}

.szcg-type{
  min-width:72px;
  height:32px;
  padding:0 14px;
  border:0;
  border-radius:4px;
  background:transparent;
  color:#555;
  cursor:pointer;
  font-size:12px;
  font-weight:700;
}

.szcg-type.is-active{
  background:#fff;
  color:var(--szcg-red);
  box-shadow:0 1px 5px rgba(0,0,0,.08);
}

.szcg-fields{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr)) auto;
  gap:10px;
  align-items:end;
}

.szcg-solar-fields{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.szcg-field{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:6px;
}

.szcg-field > span{
  color:#444;
  font-size:11px;
  font-weight:700;
}

.szcg-field input,
.szcg-field select{
  width:100%;
  height:38px;
  min-width:0;
  padding:0 10px;
  border:1px solid #b9b9b9;
  border-radius:4px;
  background:#fff;
  color:#222;
  font-size:13px;
  outline:none;
}

.szcg-field input:focus,
.szcg-field select:focus{
  border-color:#9a5555;
  box-shadow:0 0 0 2px rgba(169,52,52,.08);
}

.szcg-leap-field{
  display:flex;
  height:38px;
  align-items:center;
  gap:6px;
  padding:0 9px;
  border:1px solid #d1d1d1;
  border-radius:4px;
  color:#555;
  font-size:12px;
  white-space:nowrap;
}

.szcg-time-row{
  display:grid;
  grid-template-columns:minmax(180px,250px) 1fr;
  gap:12px;
  align-items:end;
  margin-top:12px;
}

.szcg-time-tip{
  padding-bottom:7px;
  color:#777;
  font-size:10px;
  line-height:1.6;
}

.szcg-submit{
  display:flex;
  width:100%;
  max-width:260px;
  height:42px;
  margin:18px auto 0;
  align-items:center;
  justify-content:center;
  border:1px solid var(--szcg-red-dark);
  border-radius:5px;
  background:var(--szcg-red);
  color:#fff;
  cursor:pointer;
  font-size:14px;
  font-weight:700;
}

.szcg-submit:hover{
  background:var(--szcg-red-dark);
}

.szcg-error{
  margin-top:13px;
  padding:9px 12px;
  border:1px solid #ecc4c4;
  border-radius:4px;
  background:#fff5f5;
  color:#a32d2d;
  font-size:12px;
  text-align:center;
}

.szcg-result{
  margin-top:16px;
  overflow:hidden;
}

.szcg-result-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:20px 22px;
  background:linear-gradient(90deg,#fff8f6,#fffdf9);
  border-bottom:1px solid #eee2da;
}

.szcg-result-label{
  color:#777;
  font-size:11px;
  font-weight:700;
}

.szcg-weight{
  margin-top:2px;
  color:var(--szcg-red);
  font-size:34px;
  font-weight:900;
  line-height:1.25;
}

.szcg-entry{
  color:#666;
  font-size:12px;
}

.szcg-entry strong{
  color:#333;
  font-size:16px;
}

.szcg-date-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 22px;
  padding:16px 22px 0;
  font-size:12px;
}

.szcg-date-summary span{
  color:#777;
}

.szcg-date-summary strong{
  color:#333;
}

.szcg-breakdown{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  padding:16px 22px;
}

.szcg-breakdown article{
  min-height:105px;
  padding:14px;
  border:1px solid #e7e2dc;
  border-radius:6px;
  background:var(--szcg-soft);
}

.szcg-breakdown article > span{
  display:block;
  color:#777;
  font-size:10px;
  font-weight:700;
}

.szcg-breakdown article > strong{
  display:block;
  margin-top:6px;
  color:#9c3434;
  font-size:20px;
}

.szcg-breakdown article > small{
  display:block;
  margin-top:5px;
  color:#666;
  font-size:10px;
  line-height:1.5;
}

.szcg-method-note{
  margin:0 22px 20px;
  padding:14px 16px;
  border-left:4px solid #b6765f;
  background:#faf7f2;
}

.szcg-method-note h2,
.szcg-seo h2{
  margin:0;
  color:#292929;
  font-size:16px;
  font-weight:800;
}

.szcg-method-note p,
.szcg-seo p{
  margin:6px 0 0;
  color:#666;
  font-size:12px;
  line-height:1.8;
}

.szcg-seo{
  margin-top:20px;
  padding:0 2px;
}

.szcg-seo h2:not(:first-child){
  margin-top:18px;
}

@media(max-width:720px){
  .szcg-title{
    font-size:22px;
  }

  .szcg-fields{
    grid-template-columns:1fr 1fr;
  }

  .szcg-solar-fields{
    grid-template-columns:1fr;
  }

  .szcg-leap-field{
    align-self:end;
  }

  .szcg-time-row{
    grid-template-columns:1fr;
  }

  .szcg-time-tip{
    padding-bottom:0;
  }

  .szcg-date-summary,
  .szcg-breakdown{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:480px){
  .szcg-card{
    padding:14px;
  }

  .szcg-fields,
  .szcg-date-summary,
  .szcg-breakdown{
    grid-template-columns:1fr;
  }

  .szcg-result-top{
    align-items:flex-start;
    flex-direction:column;
  }

  .szcg-weight{
    font-size:30px;
  }
}

@media print{
  .szcg-card,
  .szcg-notice,
  .szcg-seo{
    display:none!important;
  }
}


/* =========================================================
   v1.0.1：修复阳历 / 阴历输入区域同时显示
   ========================================================= */
.szcg [hidden]{
  display:none!important;
}


/* =========================================================
   v1.0.2：阳历改为 年 / 月 / 日 下拉选择
   ========================================================= */
.szcg-solar-fields{
  width:100%;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}

@media(max-width:720px){
  .szcg-solar-fields{
    grid-template-columns:1fr 1fr!important;
  }
}

@media(max-width:480px){
  .szcg-solar-fields{
    grid-template-columns:1fr!important;
  }
}


/* =========================================================
   v1.0.3：称骨歌结果卡片
   ========================================================= */
.szcg-song-card{
  margin:0 22px 18px;
  padding:17px 18px;
  border:1px solid #e7ddd3;
  border-radius:7px;
  background:#fffdf9;
}

.szcg-song-head{
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:9px;
}

.szcg-song-head > span{
  display:inline-flex;
  min-height:21px;
  align-items:center;
  padding:1px 7px;
  border:1px solid #e6c9bb;
  border-radius:999px;
  background:#fff7f3;
  color:#9b4c38;
  font-size:10px;
  font-weight:700;
}

.szcg-song-head h2{
  margin:0;
  color:#292929;
  font-size:17px;
  font-weight:800;
}

.szcg-song-weight{
  margin:0 0 10px;
  color:#666;
  font-size:12px;
}

.szcg-song-weight strong{
  color:#9c3434;
  font-size:14px;
}

.szcg-song-text{
  margin:0;
  padding:13px 15px;
  border-left:4px solid #b66a56;
  background:#faf5ef;
  color:#292929;
  font-family:"STKaiti","KaiTi","Microsoft YaHei",serif;
  font-size:16px;
  font-weight:600;
  line-height:2;
  letter-spacing:.2px;
}

.szcg-song-tip{
  margin:9px 0 0;
  color:#888;
  font-size:10px;
  line-height:1.65;
}

@media(max-width:480px){
  .szcg-song-card{
    margin:0 14px 16px;
    padding:14px;
  }

  .szcg-song-text{
    padding:11px 12px;
    font-size:15px;
    line-height:1.9;
  }
}


/* =========================================================
   v1.0.4：袁天罡相关资料入口
   ========================================================= */
.szcg-resource-bar{margin:0 0 14px!important;}

.szcg-resource-link{
  position:relative!important;
  display:flex!important;
  min-height:82px!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  padding:14px 20px 14px 24px!important;
  border:1px solid #e7c0ad!important;
  border-radius:7px!important;
  background:linear-gradient(90deg,#fff8f3 0%,#fffdf9 55%,#fff 100%)!important;
  box-shadow:0 3px 12px rgba(140,70,35,.07)!important;
  overflow:hidden!important;
  text-decoration:none!important;
}

.szcg-resource-link::before{
  content:""!important;
  position:absolute!important;
  left:0!important;top:0!important;bottom:0!important;
  width:5px!important;
  background:#b55235!important;
}

.szcg-resource-copy{
  display:flex!important;
  min-width:0!important;
  flex-direction:column!important;
}

.szcg-resource-badge{
  display:inline-flex!important;
  width:max-content!important;
  min-height:20px!important;
  margin:0 0 3px!important;
  align-items:center!important;
  padding:1px 7px!important;
  border:1px solid #e7c7b8!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#9e412c!important;
  font-size:10px!important;
  font-weight:700!important;
}

.szcg-resource-title{
  color:#272727!important;
  font-size:19px!important;
  font-weight:800!important;
  line-height:1.4!important;
}

.szcg-resource-desc{
  margin-top:2px!important;
  color:#6b6b6b!important;
  font-size:12px!important;
  line-height:1.5!important;
}

.szcg-resource-action{
  min-width:142px!important;
  min-height:40px!important;
  padding:0 16px!important;
  border:1px solid #b55235!important;
  border-radius:5px!important;
  background:#b55235!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:38px!important;
  text-align:center!important;
  white-space:nowrap!important;
}

/* =========================================================
   v1.0.4：B2 原生赞助支持
   ========================================================= */
.szcg-b2-reward{
  display:flex!important;
  margin:22px 0 4px!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
}

.szcg-b2-reward-btn{
  display:inline-flex!important;
  min-width:132px!important;
  min-height:38px!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  padding:0 16px!important;
  border:1px solid #d3c1b8!important;
  border-radius:5px!important;
  background:#fff!important;
  color:#8b4232!important;
  -webkit-text-fill-color:#8b4232!important;
  cursor:pointer!important;
  font-size:12px!important;
  font-weight:700!important;
}

.szcg-b2-reward-btn:hover{
  border-color:#b55235!important;
  background:#fff8f4!important;
}

.szcg-b2-reward-btn:disabled{
  opacity:.65!important;
  cursor:wait!important;
}

.szcg-b2-reward-tip{
  max-width:680px!important;
  color:#a33!important;
  font-size:10px!important;
  line-height:1.55!important;
  text-align:center!important;
}

.szcg-b2-native-carrier{
  position:absolute!important;
  left:-100000px!important;
  top:-100000px!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  opacity:.001!important;
  pointer-events:none!important;
}

.szcg-b2-modal-parked{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}

body > [data-szcg-promoted-b2-modal]{
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}

@media(max-width:640px){
  .szcg-resource-link{
    min-height:auto!important;
    align-items:flex-start!important;
    flex-direction:column!important;
    gap:10px!important;
    padding:13px 14px 13px 18px!important;
  }

  .szcg-resource-action{
    min-width:0!important;
    width:100%!important;
  }

  .szcg-resource-title{
    font-size:17px!important;
  }
}
