:root { --bg: #f6f4ef; --card: #fff; --ink: #2b2b2b; --muted: #6b6b6b; --accent: #b5443c; --line: #e3ded4;
  --wood: #3f8f5a; --fire: #c9463d; --earth: #b98a3a; --metal: #8c8c8c; --water: #3b6fb6; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; background: var(--bg); color: var(--ink); }
header { background: #2b2b2b; color: #fff; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
header h1 { font-size: 20px; margin: 0; }
header nav a { color: #ddd; text-decoration: none; margin-right: 16px; padding-bottom: 4px; }
header nav a.active { color: #fff; border-bottom: 2px solid var(--accent); }
main { max-width: 1200px; margin: 24px auto; padding: 0 16px; display: grid; grid-template-columns: 340px 1fr; gap: 24px; }
@media (max-width: 860px) { main { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.card h3 { margin: 0 0 10px; font-size: 16px; }
label { display: block; font-size: 14px; color: var(--muted); margin: 10px 0 4px; }
label.inline { display: inline-block; margin-right: 12px; color: var(--ink); }
input, select { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; font-family: inherit; }
input[type=radio] { width: auto; }
.row { display: flex; gap: 8px; } .row > * { flex: 1; }
button { margin-top: 14px; width: 100%; padding: 10px; background: var(--accent); color: #fff; border: none; border-radius: 6px; font-size: 16px; cursor: pointer; font-family: inherit; }
button:disabled { opacity: .5; cursor: not-allowed; }
.btn-link { display: inline-block; margin-top: 6px; padding: 10px 22px; background: var(--accent); color: #fff; border-radius: 6px; font-size: 16px; text-decoration: none; }
.btn-link:hover { opacity: .9; }
.error { color: var(--accent); margin-top: 8px; min-height: 1.2em; font-size: 14px; }
.suggest { position: relative; }
.suggest ul { position: absolute; z-index: 5; left: 0; right: 0; background: #fff; border: 1px solid var(--line); list-style: none; margin: 0; padding: 0; max-height: 220px; overflow: auto; }
.suggest ul:empty { display: none; }
.suggest li { padding: 6px 10px; cursor: pointer; } .suggest li:hover { background: #f0ede6; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.pillar b { display: block; font-size: 22px; }
.pillar small { display: block; }
.bar { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 4px 0; }
.bar i { display: block; height: 10px; border-radius: 5px; min-width: 2px; }
.wx-木 { background: var(--wood); } .wx-火 { background: var(--fire); } .wx-土 { background: var(--earth); } .wx-金 { background: var(--metal); } .wx-水 { background: var(--water); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; color: #fff; margin: 2px 4px 2px 0; }
.tag.gray { background: #999; }
.cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cand { cursor: pointer; margin: 0; }
.cand .name { font-size: 30px; letter-spacing: 4px; }
.cand .total { float: right; font-size: 26px; color: var(--accent); }
.cand .detail { display: none; border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; font-size: 13px; }
.cand.open .detail { display: block; }
.score-bars div { font-size: 13px; margin: 3px 0; }
.score-bars span { display: inline-block; width: 72px; }
.score-bars i { display: inline-block; height: 8px; background: var(--accent); border-radius: 4px; vertical-align: middle; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 6px; text-align: left; vertical-align: top; }
.luck-吉, .luck-大吉 { color: #2f7d4f; font-weight: bold; }
.luck-半吉, .luck-中吉 { color: #b98a3a; font-weight: bold; }
.luck-凶 { color: var(--accent); font-weight: bold; }
.muted { color: var(--muted); font-size: 13px; }
.total-big { font-size: 40px; color: var(--accent); }
.flag { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; margin-right: 6px; border: 1px solid var(--line); }
.flag.on { background: #e6f2ea; color: #2f7d4f; border-color: #bfdcc9; }
.flag.off { background: #f0ede6; color: var(--muted); }

.source { font-size: 13px; color: var(--muted); margin: 6px 0; line-height: 1.5; }
.source b { color: var(--ink); font-weight: normal; }
.sources { margin: 6px 0; padding-left: 18px; font-size: 13px; color: var(--muted); line-height: 1.6; }

.pillar-table td, .pillar-table th { text-align: center; }
.pillar-table b { display: block; font-size: 20px; }
.pillar-table small { display: block; font-size: 11px; }
.dayun-table tr.current td { background: #fbf3e6; font-weight: bold; }
.dayun-table tr.peak td:first-child::after { content: ' ★'; color: var(--accent); }
.tag.favor-喜 { background: #2f7d4f; } .tag.favor-忌 { background: var(--accent); } .tag.favor-中 { background: #999; }
.section p { line-height: 1.8; margin: 8px 0; }
.section h4 { margin: 14px 0 4px; font-size: 14px; color: var(--muted); }
.disclaimer { color: var(--muted); font-size: 12px; text-align: center; margin: 24px 0; }
.overview { line-height: 1.8; border-top: 1px dashed var(--line); padding-top: 8px; }
.more-link { color: var(--accent); }
details.adv { margin-top: 10px; } details.adv summary { cursor: pointer; color: var(--muted); font-size: 14px; }
input[type=checkbox] { width: auto; }

.picker-row { position: relative; align-items: flex-end; }
.picker-row > .pick { flex: 0 0 auto; width: auto; margin: 0 0 1px; padding: 7px 10px; background: #fff; color: var(--ink); border: 1px solid var(--line); font-size: 16px; line-height: 1; }
.picker-row > .pick:disabled { opacity: .4; }
.hidden-picker { position: absolute; left: 0; bottom: 0; opacity: 0; width: 1px; height: 1px; pointer-events: none; border: 0; padding: 0; }

header { justify-content: space-between; }
header .lang a { color: #ddd; text-decoration: none; border: 1px solid #666; border-radius: 4px; padding: 2px 8px; font-size: 13px; }
main.single { display: block; max-width: 900px; }
.site-footer { max-width: 1200px; margin: 24px auto 40px; padding: 0 16px; color: var(--muted); font-size: 13px; text-align: center; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.tier { border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.tier .price { font-size: 26px; color: var(--accent); margin: 6px 0; }
.tier .includes { margin: 10px 0 0; padding-left: 1.2em; }
.tier .includes li { margin: 4px 0; }
.intro p, .card.section p { line-height: 1.8; }
.note { border-left: 3px solid var(--earth); background: #fbf3e6; padding: 8px 12px; }
.seo-text h2 { margin-top: 18px; } .faq dt { font-weight: bold; margin-top: 10px; } .faq dd { margin: 4px 0 0; color: var(--muted); line-height: 1.7; }
