/* 三马AI · 今日三才签（页面样式） */
.sg-wrap{padding-bottom:48px}
.sg-hero{padding:26px 0 6px}
.sg-kicker{font-size:12px;letter-spacing:2px;color:var(--gold);font-weight:600}
.sg-hero h1{font-size:32px;line-height:1.3;color:var(--ink);margin-top:10px;letter-spacing:.5px}
.sg-hero p{margin-top:12px;max-width:760px;color:var(--ink2);font-size:14.5px;line-height:1.95}
.sg-meta{margin-top:12px;font-size:12.5px;color:var(--ink3);line-height:1.8}
.sg-href{color:var(--gold);text-decoration:none;border-bottom:1px dashed rgba(176,141,87,.5);white-space:nowrap}
.sg-href:hover{color:#a8482f;border-bottom-color:#a8482f}

/* 所问 */
.sg-quests{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:18px 0 0}
.sg-quests b{font-size:13px;color:var(--ink2);font-weight:600;margin-right:2px}
.sg-q{padding:6px 14px;border-radius:999px;background:#fff;border:1px solid var(--paper3);
  font-size:13.5px;color:var(--ink2);transition:.14s}
.sg-q:hover{border-color:var(--celadon);color:var(--celadon);opacity:1}
.sg-q.on{background:var(--ink);border-color:var(--ink);color:#fdfbf6;font-weight:600}

/* ---------- 签卡 ---------- */
.sg-card{margin-top:18px;background:linear-gradient(180deg,#fffdf8,#fbf6ec);
  border:1px solid #e3d9c6;border-radius:18px;padding:24px 26px 18px;position:relative;
  box-shadow:0 18px 40px rgba(96,82,56,.10);overflow:hidden}
.sg-card::before{content:"";position:absolute;inset:8px;border:1px solid rgba(176,141,87,.28);
  border-radius:12px;pointer-events:none}
.sg-card.good{box-shadow:0 18px 44px rgba(180,85,63,.13)}
.sg-card-top{display:flex;justify-content:space-between;gap:10px;font-size:11.5px;
  letter-spacing:1px;color:var(--ink3);position:relative}
.sg-no{display:flex;align-items:baseline;gap:6px;margin-top:16px;position:relative}
.sg-no em{font-style:normal;font-size:15px;color:var(--ink3)}
.sg-no b{font-size:62px;line-height:1;font-weight:600;letter-spacing:2px;color:var(--ink)}
.sg-level{margin-left:14px;padding:5px 14px;border-radius:8px;font-size:14px;font-weight:600;border:1px solid}
.sg-level.good{color:#b4553f;border-color:#e2bcae;background:#fbeee9}
.sg-level.mid{color:#8a6c3f;border-color:#e3d3b3;background:#f7efdd}
.sg-level.low{color:#5d6b64;border-color:#d6ded8;background:#eef2ee}
.sg-score{margin-left:auto;font-size:30px;font-weight:700;color:var(--gold);letter-spacing:0}
.sg-score i{font-style:normal;font-size:12px;color:var(--ink3);margin-left:2px;font-weight:400}

.sg-poem{margin:24px 0 6px;text-align:center;font-family:"Songti SC","STSong",serif;
  font-size:27px;line-height:2;letter-spacing:3px;color:var(--ink)}
.sg-poem span{display:block}
.sg-verdict{margin-top:14px;padding:13px 16px;border-radius:12px;text-align:center;
  background:var(--gold2);border:1px dashed #ddcbaa;color:#7a5c2e;font-size:16px;line-height:1.8}
.sg-for{margin-top:10px;text-align:center;font-size:12px;color:var(--ink3)}

.sg-lucky{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;position:relative}
.sg-lucky span{display:inline-flex;align-items:baseline;gap:6px;padding:4px 10px;border-radius:7px;
  background:#fff;border:1px solid var(--paper3);font-size:13px;color:var(--ink)}
.sg-lucky i{font-style:normal;font-size:11px;color:var(--ink3)}

.sg-yiji{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px;position:relative}
.sg-yi,.sg-ji{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:10px 12px;border-radius:10px}
.sg-yi{background:#f2f7f1;border:1px solid #dce8d8}
.sg-ji{background:#fbf0ee;border:1px solid #ecd9d4}
.sg-yi b,.sg-ji b{font-size:12px;font-weight:600;margin-right:2px}
.sg-yi b{color:#5d7a4f} .sg-ji b{color:#b4553f}
.sg-yi span,.sg-ji span{font-size:12.5px;padding:2px 8px;border-radius:6px;background:#fff;color:var(--ink2)}
.sg-card-foot{display:flex;justify-content:space-between;gap:10px;margin-top:16px;padding-top:12px;
  border-top:1px dashed #e3d9c6;font-size:11.5px;color:var(--ink3);letter-spacing:.6px;position:relative}

/* ---------- 生日 ---------- */
.sg-prof{margin-top:16px;background:#fff;border:1px solid var(--paper3);border-radius:14px;padding:16px 18px}
.sg-prof b{display:block;font-size:14.5px;color:var(--ink)}
.sg-prof-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:11px;align-items:center}
.sg-prof-row input{flex:0 0 190px;max-width:100%}
.sg-prof-row select{flex:0 0 150px;max-width:100%}
.sg-prof-row .btn{flex:0 0 auto}
.sg-prof-row-ok{justify-content:space-between}
/* 生日三下拉：年/月/日各点一次，避免原生日期控件逐月翻页 */
.sg-birth{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px;align-items:center}
.sg-birth select{flex:1 1 0;min-width:0;padding:9px 8px;border:1px solid var(--paper3);border-radius:10px;
  background:#fff;font-size:14px;color:var(--ink);appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,#a89e8a 50%),linear-gradient(135deg,#a89e8a 50%,transparent 50%);
  background-position:calc(100% - 14px) 50%,calc(100% - 9px) 50%;
  background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:24px}
.sg-birth select:invalid,.sg-birth select option[value=""]{color:#8a8f99}
.sg-birth .btn{flex:0 0 auto}
.sg-prof-info{font-size:13.5px;color:var(--ink2);line-height:1.8}
.sg-tip{display:block;margin-top:9px;font-size:12px;color:var(--ink3);line-height:1.75}
.sg-point{color:#5d7a4f}

/* ---------- 连签 ---------- */
.sg-streak{display:flex;gap:20px;align-items:center;margin-top:16px;padding:20px 22px;border-radius:16px;
  background:linear-gradient(135deg,#2f3a36,#3d4a44);color:#f7f4ec}
.sg-streak-num{flex:0 0 auto;text-align:center}
.sg-streak-num b{display:block;font-size:46px;line-height:1;font-weight:600;letter-spacing:1px}
.sg-streak-num span{display:block;font-size:12px;color:#c8cfc6;margin-top:4px;letter-spacing:1px}
.sg-streak-main{flex:1;min-width:0}
.sg-dots{display:flex;gap:7px}
.sg-dots i{display:block;width:16px;height:16px;border-radius:50%;background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.2)}
.sg-dots i.on{background:var(--gold);border-color:var(--gold);box-shadow:0 0 0 3px rgba(176,141,87,.18)}
.sg-next{margin-top:11px;font-size:14px;color:#f2eee4}
.sg-next b{color:var(--gold);font-size:18px;margin:0 2px}
.sg-bar{height:6px;border-radius:5px;background:rgba(255,255,255,.14);overflow:hidden;margin-top:10px}
.sg-bar i{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#c9a870,#e6cf9f)}
.sg-streak .sg-tip{margin-top:10px;color:#a9b3a9}

.sg-marks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}
.sg-mark{background:#fff;border:1px solid var(--paper3);border-radius:12px;padding:12px 13px;position:relative}
.sg-mark b{display:block;font-size:14px;color:var(--ink)}
.sg-mark em{display:block;font-style:normal;font-size:12.5px;color:var(--ink2);margin-top:3px}
.sg-mark span{display:block;font-size:11.5px;color:var(--ink3);margin-top:4px;line-height:1.6}
.sg-mark i{position:absolute;right:10px;top:11px;font-style:normal;font-size:10.5px;color:#b9bfb7;letter-spacing:.5px}
.sg-mark.got{border-color:#ddcbaa;background:#fdfaf2}
.sg-mark.got i{color:#8a6c3f}

/* ---------- 三才三层 ---------- */
.sg-layers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.sg-layer{background:#fff;border:1px solid var(--paper3);border-radius:14px;padding:17px 18px;
  display:flex;flex-direction:column}
.sg-layer.tian{border-top:3px solid #6f8f9c}
.sg-layer.ren{border-top:3px solid #a8846e}
.sg-layer.di{border-top:3px solid #8a9a6b}
.sg-lh{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.sg-lh i{display:inline-flex;align-items:center;justify-content:center;width:29px;height:29px;border-radius:8px;
  font-style:normal;font-size:14px;font-weight:600}
.sg-layer.tian .sg-lh i{background:#e6eef1;color:#4f7484}
.sg-layer.ren .sg-lh i{background:#f4ece6;color:#8a6349}
.sg-layer.di .sg-lh i{background:#eef2e5;color:#66774a}
.sg-lh b{font-size:15.5px;color:var(--ink)}
.sg-lh em{display:block;width:100%;font-style:normal;font-size:12.5px;color:var(--ink3);margin-top:2px}
.sg-layer ul{margin:12px 0 0;padding-left:16px}
.sg-layer li{font-size:13px;line-height:1.85;color:var(--ink2);margin-bottom:6px}
.sg-act{margin-top:auto;padding-top:11px;border-top:1px dashed #e6dece;font-size:12.5px;
  color:#7a5c2e;line-height:1.75;background:var(--gold2);margin-left:-18px;margin-right:-18px;
  padding-left:18px;padding-right:18px;border-radius:0 0 13px 13px}

/* ---------- 深度 / 未解锁 ---------- */
.sg-deep{margin-top:16px;padding:20px 22px;border-radius:16px;background:linear-gradient(180deg,#fffdf6,#f9f2e3);
  border:1px solid #e3d3b3}
.sg-deep-h{display:flex;align-items:baseline;gap:10px}
.sg-deep-h b{font-size:17px;color:#7a5c2e;letter-spacing:.5px}
.sg-deep-h span{font-size:11.5px;color:#a08a63}
.sg-deep p{margin-top:10px;font-size:13.5px;line-height:1.9;color:var(--ink2)}
.sg-locked{margin-top:16px;padding:18px 20px;border-radius:14px;border:1px dashed #d9cbb2;background:#fdfaf4}
.sg-locked b{font-size:15px;color:#7a5c2e}
.sg-locked p{margin-top:8px;font-size:13px;line-height:1.85;color:var(--ink2)}
.sg-locked span{display:inline-block;margin-top:10px;font-size:12px;color:#8a6c3f;background:var(--gold2);
  padding:3px 10px;border-radius:6px}

/* ---------- 分享 / 提问 ---------- */
.sg-share,.sg-ask{margin-top:16px;background:#fff;border:1px solid var(--paper3);border-radius:16px;padding:20px 22px}
.sg-share b,.sg-ask b{display:block;font-size:16px;color:var(--ink)}
.sg-ask p{margin-top:9px;font-size:13.5px;line-height:1.9;color:var(--ink2)}
.sg-share-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:13px}
.sg-share-row .btn{display:inline-flex;align-items:center;height:42px;font-size:14px}

/* 微信 / 微信群：说明三步走 */
.sg-wx{margin-top:14px;padding:14px 16px;border-radius:12px;background:#f7f9f4;border:1px solid #e3ead9}
.sg-wx>b{display:block;font-size:13.5px;font-weight:600;color:#3d6b45}
.sg-wx ol{margin:8px 0 0;padding-left:18px}
.sg-wx li{font-size:12.5px;line-height:1.9;color:var(--ink2)}
.sg-wx-hint{display:block;margin-top:8px;font-size:11.5px;line-height:1.7;color:var(--ink3)}

/* ---------- 签史 ---------- */
.sg-history{margin-top:16px;background:#fff;border:1px solid var(--paper3);border-radius:16px;padding:20px 22px}
.sg-hist-h{display:flex;align-items:baseline;gap:10px}
.sg-hist-h b{font-size:16px;color:var(--ink)}
.sg-hist-h span{font-size:11.5px;color:var(--ink3)}
.sg-hrow{display:grid;grid-template-columns:96px 82px 68px 1fr;gap:8px;align-items:baseline;
  padding:9px 0;border-bottom:1px solid var(--line2);font-size:12.5px;color:var(--ink2)}
.sg-hrow:last-child{border-bottom:0}
.sg-hd{color:var(--ink3)}
.sg-hn{color:var(--ink)}
.sg-hl{color:#8a6c3f}
.sg-hp{font-family:"Songti SC","STSong",serif;color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg-empty{margin-top:12px;padding:18px;border-radius:12px;background:var(--paper2);font-size:13px;
  color:var(--ink2);line-height:1.8}

/* ---------- 明日 ---------- */
.sg-tomorrow{margin-top:16px;padding:20px 22px;border-radius:16px;background:#fff;border:1px solid var(--paper3)}
.sg-tomorrow b{font-size:15.5px;color:var(--ink)}
.sg-tomorrow p{margin-top:9px;font-size:13.5px;line-height:1.9;color:var(--ink2)}

/* ---------- 说明 ---------- */
.sg-faq{margin-top:18px;padding:22px 24px;border-radius:16px;background:var(--paper2);border:1px solid var(--paper3)}
.sg-faq h2{font-size:17px;color:var(--ink)}
.sg-faq p{margin-top:10px;font-size:13px;line-height:1.95;color:var(--ink2)}

/* ---------- 终端适配 ---------- */
@media(max-width:900px){
  .sg-layers{grid-template-columns:1fr}
  .sg-marks{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sg-hero h1{font-size:27px}
}
@media(max-width:640px){
  .sg-wrap{padding-bottom:36px}
  .sg-hero{padding:18px 0 4px}
  .sg-kicker{font-size:11px;letter-spacing:1.4px}
  .sg-hero h1{font-size:23px}
  .sg-hero p{font-size:13.5px;line-height:1.85}
  .sg-meta{font-size:11.5px}
  .sg-quests{gap:6px}
  .sg-q{padding:6px 11px;font-size:12.5px}
  .sg-card{padding:19px 17px 15px;border-radius:15px}
  .sg-card::before{inset:6px}
  .sg-no b{font-size:48px}
  .sg-level{font-size:12.5px;padding:4px 11px;margin-left:9px}
  .sg-score{font-size:24px}
  .sg-poem{font-size:20px;letter-spacing:2px;line-height:2.05;margin:19px 0 4px}
  .sg-verdict{font-size:14px;padding:11px 13px}
  .sg-lucky span{font-size:12px;padding:3px 8px}
  .sg-yiji{grid-template-columns:1fr;gap:8px}
  .sg-yi span,.sg-ji span{font-size:12px}
  .sg-card-foot{font-size:10.5px;flex-wrap:wrap;gap:6px}
  .sg-prof{padding:14px 15px}
  .sg-prof-row input,.sg-prof-row select{flex:1 1 140px}
  .sg-prof-row .btn{flex:1 1 100%}
  .sg-birth .btn{flex:1 1 100%}
  .sg-streak{padding:16px 17px;gap:14px;flex-wrap:wrap}
  .sg-streak-num{flex:0 0 82px}
  .sg-streak-num b{font-size:36px}
  .sg-dots{gap:5px}
  .sg-dots i{width:13px;height:13px}
  .sg-next{font-size:12.5px}
  .sg-layer{padding:15px 15px}
  .sg-act{margin-left:-15px;margin-right:-15px;padding-left:15px;padding-right:15px}
  .sg-share,.sg-ask,.sg-history,.sg-tomorrow,.sg-faq{padding:16px 16px}
  .sg-share b,.sg-ask b,.sg-hist-h b{font-size:15px}
  .sg-share-row .btn{flex:1 1 46%;justify-content:center;font-size:13px;height:40px}
  .sg-hrow{grid-template-columns:74px 1fr;grid-template-areas:"d l" "n p";row-gap:2px}
  .sg-hd{grid-area:d} .sg-hl{grid-area:l;text-align:right}
  .sg-hn{grid-area:n} .sg-hp{grid-area:p;text-align:right}
}
@media(max-width:380px){
  .sg-hero h1{font-size:21px}
  .sg-card{padding:16px 13px 13px}
  .sg-no b{font-size:42px}
  .sg-level{margin-left:6px;font-size:12px;padding:3px 9px}
  .sg-poem{font-size:18.5px;letter-spacing:1.5px}
  .sg-score{font-size:21px}
  .sg-streak-num{flex:0 0 66px}
  .sg-streak-num b{font-size:31px}
  .sg-dots i{width:11px;height:11px}
}
