:root {
  --ink: #2c2322;
  --muted: #827471;
  --paper: #fbf8f2;
  --canvas: #f3ede5;
  --line: #e9dfd3;
  --red: #8e2b2b;
  --red-deep: #6d1d24;
  --red-soft: #f4e5df;
  --gold: #b88a44;
  --gold-light: #ebd6ac;
  --shadow: 0 22px 50px rgba(89, 47, 28, .09);
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
[data-project-view].is-project-hidden { display:none !important; }
[hidden] { display:none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }

.page-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 26px 0 48px; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom: 28px; }
.project-nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; align-items:stretch; margin:0 0 22px; padding:7px; border:1px solid #e5d7ca; border-radius:17px; background:rgba(255,253,249,.78); box-shadow:0 8px 22px rgba(99,54,32,.045); }
.project-tab { display:flex; align-items:center; gap:11px; min-height:61px; padding:0 15px; border:1px solid transparent; border-radius:12px; background:transparent; color:#81736c; text-align:left; transition:border .2s, background .2s, color .2s, box-shadow .2s; }
.project-tab:hover { background:#fff9f4; color:#6d5147; }
.project-tab.is-active { border-color:#c99f72; background:#fff4ec; color:var(--red); box-shadow:0 0 0 3px rgba(184,138,68,.08); }
.project-tab-index { display:grid; place-items:center; flex:0 0 32px; width:32px; height:32px; border:1px solid #e0c8ad; border-radius:10px; color:var(--gold); font-family:'Noto Serif SC',serif; font-size:12px; font-weight:700; }
.project-tab.is-active .project-tab-index { border-color:#bf8a53; color:var(--red); background:#fffaf3; }
.project-tab span:last-child { display:flex; flex-direction:column; gap:4px; min-width:0; }
.project-tab b { font-family:'Noto Serif SC',serif; font-size:14px; letter-spacing:.05em; white-space:nowrap; }
.project-tab small { overflow:hidden; color:#a59287; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.project-nav-note { display:flex; align-items:center; justify-content:center; min-width:85px; padding:0 10px; border-left:1px dashed #e4d4c5; color:#ad9a8d; font-size:10px; line-height:1.6; text-align:center; }
.temple-signature { display:flex; align-items:center; gap:8px; margin-left:auto; color:#806246; }
.temple-signature > span:last-child { display:flex; flex-direction:column; gap:2px; }
.temple-signature b { color:#8e2b2b; font-family:'Noto Serif SC',serif; font-size:12px; letter-spacing:.08em; }
.temple-signature small { color:#a38b73; font-size:9px; letter-spacing:.05em; }
.lantern-icon { position:relative; width:24px; height:29px; display:block; }
.lantern-icon::before { content:''; position:absolute; left:7px; top:1px; width:10px; height:4px; border-radius:3px 3px 1px 1px; background:#b88a44; }
.lantern-icon::after { content:''; position:absolute; left:4px; top:7px; width:16px; height:14px; border-radius:7px 7px 6px 6px; background:linear-gradient(180deg,#d77243,#8e2b2b); box-shadow:0 0 10px rgba(190,82,44,.24); }
.lantern-icon i { position:absolute; left:11px; top:21px; width:2px; height:8px; background:#b88a44; }
.brand-mark { display:flex; align-items:center; gap:13px; min-width:0; }
.brand-mark > div { min-width:0; }
.brand-seal, .empty-seal { width:45px; height:45px; display:grid; place-items:center; border:1px solid var(--gold); border-radius: 13px 13px 18px 13px; color:var(--red); font-family:'Noto Serif SC', serif; font-size:25px; box-shadow: inset 0 0 0 4px rgba(184,138,68,.08); }
.eyebrow, .section-index, .kicker { margin:0; letter-spacing:.14em; font-size:10px; font-weight:700; color:var(--gold); }
.brand-mark h1 { margin:2px 0 0; font-family:'Noto Serif SC', serif; font-size:20px; letter-spacing:.08em; font-weight:800; }

.hero-card { position:relative; overflow:hidden; display:flex; min-height:340px; padding:52px clamp(28px, 5vw, 70px); margin-bottom:22px; border-radius:26px; background: radial-gradient(circle at 80% 18%, rgba(255,255,255,.20), transparent 25%), linear-gradient(122deg, #751d27 0%, #8f2f32 54%, #a64e3c 100%); color:#fffaf3; box-shadow:var(--shadow); }
.hero-card::before { content:''; position:absolute; inset:12px; border:1px solid rgba(246,210,137,.26); border-radius:20px; pointer-events:none; }
.hero-lantern { position:absolute; z-index:2; right:clamp(205px, 25vw, 305px); top:32px; width:42px; height:76px; opacity:.86; transform:rotate(-3deg); }
.lantern-top { position:absolute; left:13px; top:0; width:16px; height:5px; border-radius:4px 4px 1px 1px; background:#f2ce84; }
.lantern-body { position:absolute; left:4px; top:9px; display:grid; place-items:center; width:34px; height:37px; border:1px solid rgba(250,225,166,.72); border-radius:48% 48% 42% 42%; background:linear-gradient(180deg,#d77945,#7d202c); color:#f8d58e; font-family:'Noto Serif SC',serif; font-size:17px; box-shadow:0 0 18px rgba(240,149,71,.32); }
.lantern-tassel { position:absolute; left:20px; top:46px; width:2px; height:25px; background:#f0c979; box-shadow:5px 8px 0 -1px #f0c979, -5px 8px 0 -1px #f0c979; }
.temple-band { display:flex; align-items:center; gap:11px; min-height:56px; margin:-4px 0 22px; padding:10px 18px; border:1px solid #e7d3bb; border-radius:14px; background:linear-gradient(90deg,#382523 0%,#5c2828 48%,#3d2827 100%); color:#f4d49a; box-shadow:0 8px 18px rgba(89,47,28,.08); }
.temple-band-mark { display:grid; place-items:center; width:29px; height:29px; border:1px solid #d7ad62; border-radius:50%; color:#f4d49a; font-size:14px; }
.temple-band div { display:flex; flex-direction:column; gap:2px; }
.temple-band strong { font-family:'Noto Serif SC',serif; font-size:13px; letter-spacing:.08em; }
.temple-band small { color:#d2ad79; font-size:9px; letter-spacing:.05em; }
.temple-band-rule { flex:1; height:1px; margin-left:8px; background:linear-gradient(90deg,rgba(236,192,112,.65),transparent); }
.hero-card::after { content:''; position:absolute; inset:0; background-image: radial-gradient(rgba(255,245,222,.14) .8px, transparent .8px); background-size:12px 12px; opacity:.18; pointer-events:none; }
.hero-copy { position:relative; z-index:1; max-width:520px; }
.hero-copy .kicker { color:#f0c87f; }
.hero-copy h2 { margin:15px 0 15px; font-family:'Noto Serif SC', serif; font-size:clamp(33px, 5vw, 53px); line-height:1.23; letter-spacing:.03em; font-weight:800; }
.hero-copy h2 span { color:#f1cd87; }
.hero-text { max-width:490px; margin:0; color:rgba(255,250,243,.76); line-height:1.9; font-size:14px; }
.hero-note { display:flex; align-items:center; gap:8px; margin-top:26px; color:#f9ddab; font-size:12px; }
.note-dot { width:7px; height:7px; border-radius:50%; background:#efc777; box-shadow:0 0 0 5px rgba(239,199,119,.15); }
.hero-orbit { position:absolute; z-index:1; right:clamp(18px, 6vw, 78px); top:50%; transform:translateY(-50%); width:250px; height:250px; border-radius:50%; opacity:.92; }
.orbit-ring { position:absolute; inset:0; border:1px solid rgba(242,211,155,.46); border-radius:50%; transform:rotate(22deg) scaleY(.74); }
.ring-two { inset:15px; transform:rotate(-54deg) scaleY(.74); border-color:rgba(242,211,155,.28); }
.orbit-core { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:88px; height:88px; display:grid; place-content:center; text-align:center; border:1px solid #f0cb7f; border-radius:50%; background:rgba(110,24,31,.52); font-family:'Noto Serif SC',serif; font-size:28px; line-height:.85; color:#ffe7b7; }
.orbit-core small { font-size:18px; }
.orbit-label { position:absolute; color:#f1d69f; font-size:11px; letter-spacing:.08em; }
.label-top { top:11px; left:50%; transform:translateX(-50%); }
.label-right { right:0; top:50%; transform:translateY(-50%); }
.label-bottom { bottom:11px; left:50%; transform:translateX(-50%); }
.label-left { left:0; top:50%; transform:translateY(-50%); }

.content-grid { display:grid; grid-template-columns:minmax(0, 1.03fr) minmax(0, .97fr); gap:22px; align-items:stretch; }
.panel { border:1px solid var(--line); border-radius:22px; background:rgba(255,253,249,.86); box-shadow:0 9px 24px rgba(99,54,32,.045); }
.form-panel { padding:30px clamp(22px, 3vw, 34px); }
.panel-heading { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:25px; }
.panel-heading h3, .empty-state h3, .year-guide h3 { margin:7px 0 0; font-family:'Noto Serif SC',serif; font-size:25px; letter-spacing:.04em; }
.heading-icon { color:var(--gold); font-size:23px; }
.field-group { display:flex; flex-direction:column; gap:8px; margin-bottom:17px; }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.field-group label { font-size:12px; font-weight:700; color:#594b45; }
.field-group label span { color:#a33a35; }
.field-group label small { color:#a8978c; font-weight:500; margin-left:4px; }
.field-group input, .field-group select { width:100%; height:46px; border:1px solid #e5d9ce; border-radius:11px; padding:0 13px; outline:none; color:var(--ink); background:#fffdf9; transition: border .2s, box-shadow .2s; }
.field-group input::placeholder { color:#b5aaa1; }
.field-group input:focus, .field-group select:focus { border-color:var(--gold); box-shadow:0 0 0 4px rgba(184,138,68,.12); }
.field-group small { margin-top:-2px; color:#a8978c; font-size:10px; }
.mode-switch { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin:0 0 19px; }
.mode-option { position:relative; display:flex; align-items:center; min-height:57px; padding:0 13px; border:1px solid #e5d9ce; border-radius:12px; background:#fffdf9; cursor:pointer; transition:border .2s, background .2s, box-shadow .2s; }
.mode-option input { position:absolute; opacity:0; pointer-events:none; }
.mode-option span { display:flex; flex-direction:column; gap:3px; }
.mode-option b { color:#66544b; font-size:12px; }
.mode-option small { color:#a8978c; font-size:10px; }
.mode-option:has(input:checked) { border-color:var(--red); background:#fff7f0; box-shadow:0 0 0 3px rgba(142,43,43,.08); }
.mode-option:has(input:checked) b { color:var(--red); }
.record-access { margin:0 0 20px; padding:14px; border:1px solid #eaded4; border-radius:14px; background:#fffaf5; }
.record-access-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.record-access-heading h4 { margin:5px 0 0; color:#594b45; font-family:'Noto Serif SC',serif; font-size:15px; }
.access-badge { padding:5px 8px; border-radius:99px; color:#9a6c38; background:#f8eadc; font-size:10px; font-weight:700; }
.record-access-tabs { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top:12px; }
.access-tab { min-height:38px; border:1px solid #e7d9cf; border-radius:9px; background:#fffdf9; color:#806e64; font-size:11px; font-weight:700; }
.access-tab.is-active { border-color:var(--red); color:var(--red); background:#fff3eb; box-shadow:0 0 0 2px rgba(142,43,43,.06); }
.existing-lookup { margin-top:12px; padding-top:12px; border-top:1px dashed #e5d6ca; }
.existing-lookup .field-row { gap:8px; }
.existing-lookup .field-group { margin-bottom:9px; }
.existing-lookup .field-group input { height:40px; font-size:12px; }
.lookup-button { width:100%; min-height:38px; border:1px solid #d9bda8; border-radius:9px; color:var(--red); background:#fff7f0; font-size:11px; font-weight:700; }
.lookup-button:hover { background:#f9e9de; }
.lookup-status { min-height:16px; margin:8px 0 0; color:#a33531; font-size:10px; line-height:1.6; }
.lookup-status.is-success { color:#4f6a4f; }
.members-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:5px 0 10px; }
.members-heading > div { display:flex; flex-direction:column; gap:3px; }
.members-heading label { color:#594b45; font-size:12px; font-weight:700; }
.members-heading label span { color:#a33a35; }
.members-heading small { color:#a8978c; font-size:10px; }
.add-member { border:0; padding:7px 9px; border-radius:8px; color:var(--red); background:#f7e9df; font-size:11px; font-weight:700; }
.add-member:hover { background:#f1ded1; }
.members-list { display:flex; flex-direction:column; gap:11px; margin-bottom:18px; }
.member-card { position:relative; padding:14px 13px 2px; border:1px solid #e9ded4; border-radius:14px; background:#fffaf5; }
.member-card-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.member-card-title { color:var(--red); font-family:'Noto Serif SC',serif; font-size:14px; font-weight:700; }
.remove-member { border:0; padding:4px 7px; border-radius:6px; color:#b49c91; background:transparent; font-size:11px; }
.remove-member:hover { color:var(--red); background:#f7e9df; }
.member-card .field-group { margin-bottom:12px; }
.member-card .field-row { gap:9px; }
.member-card .field-group input, .member-card .field-group select { height:42px; border-radius:9px; padding:0 10px; font-size:13px; }
.member-card .zodiac-field input[readonly] { color:var(--red); background:#f8eee6; font-weight:700; cursor:default; }
.member-card .zodiac-field label small { color:#b88a44; }
.member-card .field-group label { font-size:11px; }
.member-card .field-group small { font-size:9px; }
.birth-date-time-controls { display:grid; grid-template-columns:72px minmax(0,1fr) minmax(88px, .9fr); gap:6px; align-items:center; }
.birth-date-time-controls input, .birth-date-time-controls select { min-width:0; }
.birth-date-time-controls select { padding-left:9px; padding-right:8px; }
.birth-date-time-controls [data-field="lunarLeap"] { grid-column:1 / -1; max-width:100px; }
.birth-time-select { color:var(--red) !important; font-weight:700; }
.residence-label-line { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.same-address-option { display:flex; align-items:center; gap:5px; color:#9a6c38 !important; font-size:10px !important; font-weight:600 !important; cursor:pointer; }
.same-address-option input { width:14px; height:14px; margin:0; accent-color:var(--red); }
.current-residence-group input:disabled { color:#9a6c38; background:#f7eee7; cursor:not-allowed; }
.bazi-line { display:block; margin-top:5px; color:#9a6c38; font-size:10px; letter-spacing:.02em; }
.residence-line { display:block; margin-top:4px; color:#8d7e75; font-size:10px; }
.consent-row { display:flex; align-items:flex-start; gap:10px; margin:2px 0 20px; color:#8c7c73; font-size:11px; line-height:1.6; cursor:pointer; }
.consent-row input { position:absolute; opacity:0; pointer-events:none; }
.custom-checkbox { flex:0 0 16px; width:16px; height:16px; border:1px solid #d5c2ac; border-radius:5px; background:#fff; margin-top:1px; }
.consent-row input:checked + .custom-checkbox { border-color:var(--red); background:var(--red); box-shadow:inset 0 0 0 3px #fff; }
.primary-button { width:100%; display:flex; align-items:center; justify-content:space-between; min-height:51px; padding:0 17px 0 20px; border:0; border-radius:11px; background:var(--red); color:white; font-weight:700; box-shadow:0 10px 18px rgba(142,43,43,.18); transition:transform .2s, background .2s; }
.primary-button:hover { transform:translateY(-1px); background:var(--red-deep); }
.button-arrow { font-size:22px; font-weight:400; }
.form-error { min-height:15px; margin:10px 0 0; color:#a33531; font-size:11px; }

.result-panel { min-height:100%; padding:30px; background:linear-gradient(155deg, #fffdfa 0%, #f9eee9 100%); }
.empty-state { height:100%; min-height:430px; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; padding:28px; }
.empty-seal { width:72px; height:72px; border-radius:50%; font-size:35px; margin-bottom:20px; background:#fff7ec; }
.empty-state h3 { line-height:1.55; }
.empty-state > p:last-child { max-width:230px; margin:14px 0 0; color:var(--muted); font-size:12px; line-height:1.8; }
.result-content { height:100%; display:flex; flex-direction:column; }
.result-top { display:flex; justify-content:space-between; gap:15px; align-items:flex-start; }
.result-person { margin:7px 0 0; font-family:'Noto Serif SC',serif; font-size:29px; font-weight:800; }
.result-sub { margin:8px 0 0; color:var(--muted); font-size:11px; }
.result-status { flex:0 0 auto; padding:8px 10px; border-radius:99px; color:var(--red); background:#f5dfd5; font-size:11px; font-weight:700; }
.result-status.good { color:#49664b; background:#e8efe4; }
.result-divider { height:1px; margin:24px 0; background:#eadbce; }
.result-main { display:flex; align-items:stretch; gap:15px; }
.result-vertical { display:grid; place-items:center; flex:0 0 58px; border-radius:15px; background:var(--red); color:#f8dc9f; font-family:'Noto Serif SC',serif; font-size:20px; line-height:1.65; writing-mode:vertical-rl; letter-spacing:.18em; }
.result-body { flex:1; }
.result-body h4 { margin:0; font-size:23px; font-family:'Noto Serif SC',serif; }
.result-body p { margin:9px 0 0; color:#766760; font-size:12px; line-height:1.85; }
.relation-tags { display:flex; flex-wrap:wrap; gap:7px; margin-top:17px; }
.relation-tag { padding:7px 10px; border-radius:8px; background:#f5e3d6; color:#873131; font-size:11px; font-weight:700; }
.clear-tag { color:#49664b; background:#e8efe4; }
.member-result-list { margin-top:21px; padding:14px 15px 5px; border:1px solid #efdfd4; border-radius:14px; background:rgba(255,255,255,.57); }
.member-result-heading { color:#69524a; font-size:11px; font-weight:700; }
.member-result-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 0; border-bottom:1px solid #f1e5db; }
.member-result-row:last-child { border-bottom:0; }
.member-result-row > div:first-child { min-width:0; display:flex; flex-direction:column; gap:4px; }
.member-result-row strong { color:#4c3c37; font-size:13px; }
.member-result-row small { overflow:hidden; color:#998a82; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.member-result-row .relation-tags { justify-content:flex-end; margin-top:0; }
.member-result-row .relation-tag { padding:6px 8px; font-size:10px; white-space:nowrap; }
.member-result-references { display:grid; flex:0 1 auto; min-width:0; max-width:52%; gap:7px; justify-items:end; }
.member-reference-title { display:block; margin-bottom:4px; color:#68544b; font-size:11px; text-align:right; }
.member-ceremony-note { color:var(--red); font-size:11px; font-weight:700; }
.result-ceremony-link { width:100%; min-height:44px; margin-top:12px; }
.advice-card { margin-top:21px; padding:16px 17px; border-radius:14px; background:rgba(255,255,255,.7); border:1px solid #efdfd4; }
.advice-card strong { font-size:12px; color:#69524a; }
.advice-card p { margin:6px 0 0; color:#897a73; font-size:11px; line-height:1.75; }
.result-actions { display:flex; gap:9px; margin-top:auto; padding-top:20px; }
.secondary-button { flex:1; height:42px; border:1px solid #d9c1ad; border-radius:10px; background:transparent; color:var(--red); font-size:12px; font-weight:700; }
.secondary-button:hover { background:#fff7f0; }

.year-guide { display:flex; align-items:center; justify-content:space-between; gap:30px; margin-top:22px; padding:24px 28px; }
.year-guide-copy { max-width:340px; }
.year-guide-title { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:19px; }
.year-guide-picker { position:relative; flex:none; }
.year-guide-picker::after {
  content:'';
  position:absolute;
  top:50%;
  right:13px;
  width:7px;
  height:7px;
  border-right:2px solid var(--red);
  border-bottom:2px solid var(--red);
  transform:translateY(-70%) rotate(45deg);
  pointer-events:none;
}
.year-guide-select {
  display:block;
  -webkit-appearance:none;
  appearance:none;
  width:108px;
  min-height:44px;
  padding:0 30px 0 10px;
  border:1px solid #dfd1c1;
  border-radius:10px;
  color:var(--red);
  background:#fffdf9;
  font:700 22px 'Noto Serif SC',serif;
  box-shadow:0 2px 5px rgba(99,54,32,.08);
  cursor:pointer;
}
.year-guide-select:focus { border-color:var(--gold); box-shadow:0 0 0 4px rgba(184,138,68,.12); }
.year-guide-title span { color:var(--ink); }
.year-guide-copy > p:last-child { margin:10px 0 0; color:var(--muted); font-size:11px; line-height:1.7; }
.rule-chips { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; }
.rule-chip { min-width:90px; padding:10px 12px; border-radius:12px; background:#faf1e8; border:1px solid #eddfd1; }
.rule-chip b { display:block; color:var(--red); font-family:'Noto Serif SC',serif; font-size:16px; }
.rule-chip span { color:#917f74; font-size:10px; }
.taisui-chart { margin-top:12px; }
.taisui-chart > summary {
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  min-height:60px; padding:10px clamp(16px,3vw,28px); color:var(--red); cursor:pointer; list-style:none;
}
.taisui-chart > summary::-webkit-details-marker { display:none; }
.taisui-chart > summary strong { display:block; font-family:'Noto Serif SC',serif; font-size:clamp(14px,2vw,17px); }
.taisui-chart[open] .ceremony-chevron { transform:translateY(3px) rotate(225deg); }
.taisui-chart figure { margin:0; padding:12px clamp(16px,3vw,28px) 18px; border-top:1px solid #ead9c6; text-align:center; }
.taisui-chart figure a { display:block; width:min(100%,680px); margin:auto; }
.taisui-chart img { display:block; width:100%; height:auto; border-radius:8px; }
.taisui-chart figcaption { margin-top:8px; color:var(--muted); font-size:12px; }
.liuyao-section { padding:26px 28px 28px; background:linear-gradient(145deg,#fffdfa 0%,#f8eee8 100%); }
.liuyao-mode-switch { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:20px; }
.liuyao-mode-button { min-height:55px; border:1px solid #e5d9ce; border-radius:12px; background:#fffdf9; color:#76665e; font-size:13px; font-weight:700; cursor:pointer; }
.liuyao-mode-button small { display:block; margin-top:4px; color:#a8978c; font-size:10px; font-weight:500; }
.liuyao-mode-button.is-active { border-color:var(--red); color:var(--red); background:#fff4ed; box-shadow:0 0 0 3px rgba(142,43,43,.07); }
.liuyao-mode-panel { margin-top:18px; padding:17px; border:1px solid #eaded4; border-radius:15px; background:rgba(255,253,249,.78); }
.liuyao-panel-note { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:12px; }
.liuyao-panel-note strong { color:#5f4b43; font-size:12px; }
.liuyao-panel-note span { color:#a18f84; font-size:10px; }
.liuyao-lines { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; }
.liuyao-line-card { display:flex; flex-direction:column; align-items:center; gap:7px; min-width:0; padding:10px 6px 9px; border:1px solid #eaded4; border-radius:11px; background:#fffaf5; }
.liuyao-line-card strong { color:#8e2b2b; font-family:'Noto Serif SC',serif; font-size:12px; }
.liuyao-line-card select { width:100%; min-width:0; height:34px; padding:0 4px; border:1px solid #e6d9ce; border-radius:7px; background:#fff; color:#6e5b52; font-size:10px; }
.liuyao-line-mark { min-height:25px; color:#8e2b2b; font-family:Arial,sans-serif; font-size:24px; line-height:1; letter-spacing:-3px; }
.liuyao-line-mark.is-moving { color:#b88a44; }
.liuyao-line-card small { min-height:13px; color:#a18f84; font-size:9px; }
.liuyao-primary-button, .liuyao-secondary-button { border-radius:9px; font-size:11px; font-weight:700; cursor:pointer; }
.liuyao-primary-button { display:flex; align-items:center; justify-content:space-between; min-height:43px; margin-top:15px; padding:0 14px 0 17px; border:0; background:var(--red); color:#fffaf3; box-shadow:0 8px 15px rgba(142,43,43,.16); }
.liuyao-primary-button span { font-size:18px; font-weight:400; }
.liuyao-primary-button.compact { margin-top:0; padding:0 14px; }
.liuyao-secondary-button { min-height:40px; padding:0 12px; border:1px solid #d9c1ad; background:#fffdf9; color:var(--red); }
.liuyao-secondary-button:disabled, .liuyao-primary-button:disabled { opacity:.45; cursor:not-allowed; box-shadow:none; }
.liuyao-actions { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.liuyao-progress { height:6px; margin:0 0 14px; overflow:hidden; border-radius:99px; background:#eaded4; }
.liuyao-progress span { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#8e2b2b,#c59451); transition:width .25s ease; }
.liuyao-result { margin-top:18px; padding:18px; border:1px solid #eaded4; border-radius:15px; background:rgba(255,255,255,.58); }
.liuyao-result.is-empty { background:#fffaf5; }
.liuyao-empty { display:flex; flex-direction:column; align-items:center; gap:6px; padding:17px; text-align:center; color:#8c7a70; }
.liuyao-empty span { display:grid; place-items:center; width:44px; height:44px; border:1px solid #d5b47a; border-radius:50%; color:#a4773e; font-size:23px; }
.liuyao-empty strong { color:#68534a; font-size:12px; }
.liuyao-empty small { font-size:10px; }
.liuyao-result-content { display:grid; grid-template-columns:1.1fr .9fr; gap:16px; }
.liuyao-summary { padding:15px; border-radius:12px; background:#fffaf5; border:1px solid #efdfd4; }
.liuyao-result-kicker { margin:0; color:var(--gold); font-size:10px; font-weight:700; letter-spacing:.12em; }
.liuyao-summary h4 { margin:7px 0 0; color:#5d4038; font-family:'Noto Serif SC',serif; font-size:24px; }
.liuyao-summary p { margin:7px 0 0; color:#85746b; font-size:11px; line-height:1.7; }
.liuyao-badges { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.liuyao-badge { padding:6px 8px; border-radius:7px; background:#f5e3d6; color:#873131; font-size:10px; font-weight:700; }
.liuyao-interpretation { margin-top:14px; padding:12px 13px; border-left:3px solid var(--gold); background:#fbf5ec; color:#735f55; font-size:11px; line-height:1.8; }
.liuyao-result-lines { display:flex; flex-direction:column; gap:5px; padding:15px; border-radius:12px; background:#6d1d24; color:#f7d995; }
.liuyao-result-lines h5 { margin:0 0 3px; font-size:11px; }
.liuyao-result-line { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:5px 0; border-bottom:1px solid rgba(246,214,151,.15); font-size:10px; }
.liuyao-result-line:last-child { border-bottom:0; }
.liuyao-result-line .line-visual { min-width:48px; color:#fff1c8; font-size:20px; letter-spacing:-3px; }
.liuyao-result-line .moving { color:#f8c26c; }
.liuyao-result-note { grid-column:1 / -1; margin:0; color:#a18f84; font-size:10px; line-height:1.65; }
.liuyao-result-actions { display:flex; gap:8px; margin-top:12px; }
.liuyao-result-actions button { flex:1; }
/* 六爻：钱币与爻象记录 */
.liuyao-workbench { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:14px; margin-top:18px; }
.liuyao-workbench .liuyao-mode-panel { margin-top:0; }
.coin-tray { display:flex; justify-content:center; gap:clamp(12px,4vw,26px); padding:18px 0 6px; }
.coin { display:flex; flex-direction:column; align-items:center; gap:8px; padding:0; border:0; background:transparent; color:#8e6a3d; cursor:default; }
.coin-tray.is-editable .coin { cursor:pointer; }
.coin-face { position:relative; display:grid; place-items:center; width:74px; height:74px; border-radius:50%; background:radial-gradient(circle at 34% 30%, #f6dda0 0%, #d4a85c 46%, #a8773a 100%); box-shadow:inset 0 0 0 3px rgba(122,78,30,.45), inset 0 0 0 9px rgba(255,236,190,.28), 0 6px 14px rgba(110,62,24,.22); transition:transform .25s ease; }
.coin-face::before { content:''; position:absolute; inset:24px; border:2px solid rgba(110,62,24,.55); border-radius:3px; background:rgba(255,245,215,.32); }
.coin-face b { position:relative; color:#6a3a1c; font-family:'Noto Serif SC',serif; font-size:19px; font-weight:800; }
.coin.is-back .coin-face { background:radial-gradient(circle at 34% 30%, #e7c58a 0%, #b5803f 50%, #84541f 100%); }
.coin.is-back .coin-face b { color:#fff3d2; }
.coin small { color:#9a836f; font-size:10px; }
.coin.is-back small { color:#8e2b2b; font-weight:700; }
.coin-tray.is-editable .coin:hover .coin-face { transform:translateY(-2px); }
.coin-tray.is-editable .coin .coin-face { outline:2px dashed transparent; outline-offset:4px; }
.coin-tray.is-editable .coin:focus-visible .coin-face { outline-color:#b88a44; }
.coin.is-tossing .coin-face { animation:coinFlip .62s ease-in-out; }
.coin.is-tossing:nth-child(2) .coin-face { animation-delay:.05s; }
.coin.is-tossing:nth-child(3) .coin-face { animation-delay:.1s; }
@keyframes coinFlip { 0% { transform:translateY(0) rotateY(0); } 45% { transform:translateY(-26px) rotateY(540deg); } 100% { transform:translateY(0) rotateY(1080deg); } }
.coin-hint { margin:10px 0 14px; color:#9a8679; font-size:11px; line-height:1.7; text-align:center; }
.liuyao-text-button { display:block; margin:4px auto 0; padding:6px 10px; border:0; background:transparent; color:#a18f84; font-size:11px; text-decoration:underline; text-underline-offset:3px; }
.liuyao-text-button:hover { color:var(--red); }
.yao-stack { display:flex; flex-direction:column-reverse; gap:6px; }
.yao-row { display:grid; grid-template-columns:38px minmax(0,1fr) 70px 58px; align-items:center; gap:8px; min-height:40px; padding:6px 10px; border:1px solid #eee2d8; border-radius:10px; background:#fffaf5; font-size:11px; }
.yao-row.is-current { border-color:#c99f72; background:#fff4ec; box-shadow:0 0 0 3px rgba(184,138,68,.08); }
.yao-row-label { color:#8e2b2b; font-family:'Noto Serif SC',serif; font-weight:700; }
.yao-row-coins { overflow:hidden; color:#8f7b6e; letter-spacing:.12em; white-space:nowrap; text-overflow:ellipsis; }
.yao-row.is-empty .yao-row-coins { color:#c0b0a4; letter-spacing:0; }
.yao-row-type { color:#6f5a50; font-weight:700; text-align:right; white-space:nowrap; }
.yao-row-type.moving { color:#b0702e; }
.yao-bar { display:flex; justify-content:space-between; width:100%; height:9px; }
.yao-bar i { display:block; height:100%; border-radius:2px; background:#8e2b2b; }
.yao-bar.yang i:first-child { width:100%; }
.yao-bar.yang i:last-child { display:none; }
.yao-bar.yin i { width:43%; }
.yao-bar.moving i { background:#c58a3c; }
.yao-bar.is-empty { border-bottom:1px dashed #dccbbd; height:5px; }
.coin-rule { margin-top:14px; border:1px solid #e5d9ce; border-radius:13px; background:rgba(255,253,249,.72); }
.coin-rule summary { padding:11px 15px; color:#8e2b2b; font-size:11px; font-weight:700; cursor:pointer; }
.coin-rule-body { padding:0 15px 11px; border-top:1px dashed #e5d9ce; }
.coin-rule-body p { margin:8px 0 0; color:#897a73; font-size:11px; line-height:1.75; }
.coin-rule-body b { color:#69524a; }
.liuyao-summary h4 small { margin-left:8px; color:#a07546; font-size:14px; font-weight:700; }
.liuyao-coin-log { display:flex; flex-wrap:wrap; gap:5px 12px; margin-top:12px; color:#9a8679; font-size:10px; }
.hexagram-pair { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:16px; }
.hexagram-pair h5 { margin:0 0 9px; color:#f7d995; font-size:11px; }
.hexagram-figure { display:flex; flex-direction:column; gap:7px; }
.hexagram-line { display:grid; grid-template-columns:30px minmax(0,1fr) 14px; align-items:center; gap:8px; color:rgba(247,217,149,.75); font-size:10px; }
.hexagram-line .yao-bar { height:10px; }
.hexagram-line .yao-bar i { background:#fff1c8; }
.hexagram-line .yao-bar.moving i { background:#f8b85c; }
.hexagram-line em { color:#f8c26c; font-style:normal; font-weight:700; }
.liuyao-result-actions { grid-column:1 / -1; margin-top:0; }

/* 首页：业务选择 */
.home-link { display:inline-flex; align-items:center; gap:5px; margin-left:auto; padding:8px 13px; border:1px solid #dcc3ad; border-radius:99px; background:#fffaf4; color:var(--red); font-size:12px; font-weight:700; white-space:nowrap; transition:background .2s; }
.home-link:hover { background:#f9e9de; }
.home-link span { font-size:17px; line-height:1; }
.home-link + .temple-signature { margin-left:18px; }
body[data-active-project="home"] .home-link,
body[data-active-project="home"] .project-nav { display:none; }
body[data-active-project="home"] .temple-signature { margin-left:auto; }
.home-hero .orbit-core { font-size:30px; }
.home-services { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.service-card { position:relative; display:flex; flex-direction:column; gap:14px; min-height:290px; padding:26px 24px 22px; border:1px solid var(--line); border-radius:22px; background:rgba(255,253,249,.9); box-shadow:0 9px 24px rgba(99,54,32,.05); color:var(--ink); text-align:left; transition:transform .2s, border-color .2s, box-shadow .2s; }
.service-card:hover { transform:translateY(-3px); border-color:#d4ad84; box-shadow:0 16px 32px rgba(99,54,32,.1); }
.service-card:focus-visible { outline:3px solid rgba(184,138,68,.45); outline-offset:3px; }
.service-index { position:absolute; top:22px; right:22px; color:#d2b48f; font-family:'Noto Serif SC',serif; font-size:13px; font-weight:700; letter-spacing:.1em; }
.service-icon { display:grid; place-items:center; width:58px; height:58px; border:1px solid var(--gold); border-radius:16px 16px 22px 16px; background:#fff7ec; color:var(--red); font-family:'Noto Serif SC',serif; font-size:28px; font-weight:700; box-shadow:inset 0 0 0 4px rgba(184,138,68,.08); }
.service-card.is-partner .service-icon { border-color:#a33a35; background:linear-gradient(140deg,#8a1d24,#a3362d); color:#f6dfae; }
.service-body { display:flex; flex-direction:column; gap:8px; flex:1; }
.service-body b { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-family:'Noto Serif SC',serif; font-size:22px; letter-spacing:.04em; }
.service-body b sup { padding:4px 8px; border-radius:99px; background:#f8e3d8; color:#8e2b2b; font-family:'Noto Sans SC',sans-serif; font-size:10px; font-weight:700; letter-spacing:0; vertical-align:middle; }
.service-body > span { color:#7d6d65; font-size:12px; line-height:1.85; }
.service-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:2px; }
.service-tags i { padding:4px 8px; border-radius:7px; background:#f6ece2; color:#9a6c38; font-size:10px; font-style:normal; font-weight:700; }
.service-go { display:flex; align-items:center; justify-content:space-between; min-height:44px; padding:0 15px 0 17px; border-radius:11px; background:var(--red); color:#fffaf3; font-size:13px; font-weight:700; box-shadow:0 8px 15px rgba(142,43,43,.16); }
.service-go em { font-size:19px; font-style:normal; font-weight:400; transition:transform .2s; }
.service-card:hover .service-go em { transform:translateX(3px); }

.project-nav { grid-template-columns:repeat(4,minmax(0,1fr)); }
.home-services { grid-template-columns:repeat(2,minmax(0,1fr)); }
.service-card { min-height:250px; }
.service-card.is-temple .service-icon { border-color:#b88a44; background:linear-gradient(140deg,#3d2827,#5c2828); color:#f4d49a; }

/* 六爻：所问之事、卦意、时间 */
.liuyao-question { max-width:520px; margin:0; }
.liuyao-question-line, .liuyao-time-line { display:flex; gap:8px; margin:10px 0 0; color:#6b574d; font-size:12px; line-height:1.6; }
.liuyao-question-line small, .liuyao-time-line small { flex:0 0 auto; color:#a07546; font-weight:700; }
.hex-reading { grid-column:1 / -1; padding:16px 17px; border:1px solid #efdfd4; border-radius:13px; background:#fffaf5; }
.hex-reading-head { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 14px; }
.hex-reading-head b { color:#5d4038; font-family:'Noto Serif SC',serif; font-size:16px; }
.hex-reading-head span { color:#8e6a3d; font-family:'Noto Serif SC',serif; font-size:12px; line-height:1.7; }
.hex-reading-yi { margin:9px 0 0; color:#6b574d; font-size:12px; line-height:1.8; }
.hex-cats { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:8px; margin-top:12px; }
.hex-cats div { display:flex; flex-direction:column; gap:4px; padding:10px 11px; border-radius:10px; background:#fff; border:1px solid #f0e3d7; }
.hex-cats small { color:#8e2b2b; font-size:11px; font-weight:700; }
.hex-cats span { color:#6b574d; font-size:12px; line-height:1.6; }
.hex-changed { margin:12px 0 0; padding:10px 12px; border-left:3px solid var(--gold); background:#fbf5ec; color:#735f55; font-size:12px; line-height:1.75; }
.hex-changed b { margin-right:6px; color:#5d4038; }
.liuyao-result-actions { flex-wrap:wrap; }
.liuyao-result-actions button { min-width:120px; }

/* 03 华光大帝灵签 */
.qian-hero { position:relative; overflow:hidden; display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:22px; padding:40px clamp(26px,5vw,62px); border-radius:26px; background:radial-gradient(circle at 82% 30%, rgba(244,212,154,.22), transparent 32%), linear-gradient(125deg,#2f1f1e 0%,#4a2224 55%,#6d1d24 100%); color:#fff4e0; box-shadow:var(--shadow); }
.qian-hero::before { content:''; position:absolute; inset:12px; border:1px solid rgba(244,212,154,.3); border-radius:20px; pointer-events:none; }
.qian-hero-copy { position:relative; max-width:600px; }
.qian-hero-copy .kicker { color:#f0c87f; }
.qian-hero-copy h2 { margin:12px 0; font-family:'Noto Serif SC',serif; font-size:clamp(30px,4.6vw,46px); letter-spacing:.06em; }
.qian-hero-copy h2 span { margin-left:12px; color:#f1cd87; font-size:.62em; }
.qian-hero-copy p { margin:0; color:rgba(255,244,224,.78); font-size:13px; line-height:1.9; }
.qian-hero-mark { position:relative; display:grid; place-items:center; flex:0 0 auto; width:116px; height:116px; border:1px solid rgba(244,212,154,.6); border-radius:50%; background:radial-gradient(circle,#7b1a20 0%,#4a1518 100%); box-shadow:0 0 30px rgba(240,160,80,.25), inset 0 0 0 8px rgba(244,212,154,.08); text-align:center; line-height:1; }
.qian-hero-mark span { color:#f6dfae; font-family:'Noto Serif SC',serif; font-size:42px; font-weight:800; }
.qian-hero-mark small { position:absolute; bottom:22px; color:#e8c27f; font-size:13px; letter-spacing:.3em; }
.qian-section { padding:24px 28px 30px; background:linear-gradient(160deg,#fffdfa 0%,#f8eee8 100%); }
.qian-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin:0 0 22px; padding:0; list-style:none; counter-reset:none; }
.qian-steps li { position:relative; display:flex; flex-direction:column; align-items:center; gap:6px; color:#b3a197; font-size:11px; font-weight:700; }
.qian-steps li::after { content:''; position:absolute; top:15px; left:calc(50% + 20px); right:calc(-50% + 20px); height:1px; background:#e6d6c8; }
.qian-steps li:last-child::after { display:none; }
.qian-steps b { display:grid; place-items:center; width:30px; height:30px; border:1px solid #e0cdbb; border-radius:50%; background:#fffaf5; font-family:'Noto Serif SC',serif; font-size:13px; }
.qian-steps li.is-active { color:var(--red); }
.qian-steps li.is-active b { border-color:var(--red); background:var(--red); color:#f8dc9f; box-shadow:0 0 0 4px rgba(142,43,43,.1); }
.qian-steps li.is-done { color:#9a6c38; }
.qian-steps li.is-done b { border-color:#c99f72; background:#f8eadc; color:#9a6c38; }
.qian-stage { padding:22px; border:1px solid #eaded4; border-radius:18px; background:rgba(255,253,249,.82); text-align:center; }
.qian-stage h3 { margin:0; font-family:'Noto Serif SC',serif; font-size:22px; letter-spacing:.05em; }
.qian-stage-text { margin:9px auto 16px; max-width:520px; color:#85746b; font-size:12px; line-height:1.8; }
.qian-topics { justify-content:center; margin:0 auto 16px; max-width:620px; }
.qian-question { max-width:460px; margin:0 auto 16px; text-align:left; }
.qian-stage .primary-button { max-width:360px; margin:0 auto; }
.qian-stage-dark { padding:34px 22px 30px; border-color:#4a2a28; background:radial-gradient(circle at 50% 30%, #4d2422 0%, #241515 75%); color:#f6e2bd; }
.qian-meditate { display:flex; align-items:flex-end; justify-content:center; gap:34px; min-height:190px; }
.incense { position:relative; width:70px; height:170px; }
.incense i { position:absolute; bottom:22px; width:3px; height:110px; border-radius:2px; background:linear-gradient(180deg,#ff7a3d 0 6px,#8e3b2b 6px 100%); box-shadow:0 0 6px rgba(255,120,60,.6); }
.incense i:nth-child(1) { left:22px; transform:rotate(-6deg); }
.incense i:nth-child(2) { left:34px; height:120px; }
.incense i:nth-child(3) { left:46px; transform:rotate(6deg); }
.incense::after { content:''; position:absolute; left:6px; right:6px; bottom:0; height:26px; border-radius:6px 6px 14px 14px; background:linear-gradient(180deg,#c9a25b,#7a5a24); box-shadow:inset 0 3px 0 rgba(255,236,190,.4); }
.smoke { position:absolute; bottom:132px; width:14px; height:40px; border-radius:50%; background:rgba(255,240,220,.28); filter:blur(6px); animation:smokeRise 3.2s ease-in infinite; }
.smoke.s1 { left:18px; } .smoke.s2 { left:32px; animation-delay:1s; } .smoke.s3 { left:44px; animation-delay:2s; }
@keyframes smokeRise { 0% { transform:translateY(0) scale(.6); opacity:0; } 20% { opacity:.8; } 100% { transform:translateY(-90px) translateX(10px) scale(1.8); opacity:0; } }
.qian-countdown { position:relative; width:150px; height:150px; }
.qian-countdown svg { width:100%; height:100%; transform:rotate(-90deg); }
.qian-countdown circle { fill:none; stroke-width:5; }
.ring-bg { stroke:rgba(244,212,154,.18); }
.ring-fg { stroke:#f0c87f; stroke-linecap:round; transition:stroke-dashoffset 1s linear; }
.qian-countdown b { position:absolute; inset:0; display:grid; place-items:center; color:#f6dfae; font-family:'Noto Serif SC',serif; font-size:56px; font-weight:800; }
.qian-prayer { margin:22px auto 0; max-width:440px; color:#f6e2bd; font-family:'Noto Serif SC',serif; font-size:16px; line-height:2; }
.qian-prayer span { color:#f1cd87; }
.qian-prayer-sub { margin:8px 0 0; color:rgba(246,226,189,.55); font-size:11px; }
.qian-tube { position:relative; display:block; width:150px; height:250px; margin:8px auto 18px; padding:0; border:0; background:transparent; cursor:pointer; }
.qian-sticks { position:absolute; left:28px; right:28px; bottom:150px; height:80px; }
.qian-sticks i { position:absolute; bottom:0; width:9px; height:78px; border-radius:3px 3px 0 0; background:linear-gradient(90deg,#d9b06a,#b8873e); box-shadow:inset 0 6px 0 #a33a35; }
.qian-sticks i:nth-child(1) { left:2px; height:64px; transform:rotate(-8deg); } .qian-sticks i:nth-child(2) { left:12px; height:74px; transform:rotate(-5deg); } .qian-sticks i:nth-child(3) { left:22px; height:70px; transform:rotate(-2deg); } .qian-sticks i:nth-child(4) { left:32px; height:80px; } .qian-sticks i:nth-child(5) { left:42px; height:72px; transform:rotate(2deg); } .qian-sticks i:nth-child(6) { left:52px; height:77px; transform:rotate(4deg); } .qian-sticks i:nth-child(7) { left:62px; height:66px; transform:rotate(6deg); } .qian-sticks i:nth-child(8) { left:72px; height:73px; transform:rotate(8deg); } .qian-sticks i:nth-child(9) { left:80px; height:60px; transform:rotate(10deg); }
.qian-tube-body { position:absolute; left:20px; right:20px; bottom:0; height:160px; display:grid; place-items:center; border-radius:10px 10px 18px 18px; background:linear-gradient(90deg,#6d1d24 0%,#a33a35 45%,#7b1a20 100%); box-shadow:inset 0 0 0 3px rgba(240,203,127,.55), inset 0 10px 0 rgba(240,203,127,.25), 0 14px 24px rgba(80,20,20,.28); }
.qian-tube-body b { color:#f6dfae; font-family:'Noto Serif SC',serif; font-size:20px; line-height:1.5; letter-spacing:.2em; }
.qian-tube.is-shaking { animation:tubeShake .18s ease-in-out infinite alternate; transform-origin:50% 100%; }
@keyframes tubeShake { 0% { transform:rotate(-9deg) translateY(0); } 100% { transform:rotate(9deg) translateY(-6px); } }
.qian-tube.is-shaking .qian-sticks i { animation:stickJump .18s ease-in-out infinite alternate; }
@keyframes stickJump { to { margin-bottom:8px; } }
.qian-fallen { position:absolute; left:50%; bottom:-6px; z-index:2; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; width:44px; height:200px; margin-left:60px; padding:10px 0; border-radius:4px; background:linear-gradient(90deg,#e6c27e,#c8964b); box-shadow:0 10px 20px rgba(80,40,10,.25), inset 0 14px 0 #a33a35; transform:rotate(18deg); animation:stickFall .7s cubic-bezier(.3,1.4,.5,1); }
.qian-fallen b { color:#5d2a22; font-family:'Noto Serif SC',serif; font-size:15px; line-height:1.15; writing-mode:vertical-rl; letter-spacing:.1em; margin-top:16px; }
.qian-fallen small { color:#8e2b2b; font-size:11px; font-weight:700; writing-mode:vertical-rl; }
@keyframes stickFall { 0% { transform:translateY(-120px) rotate(0); opacity:0; } 100% { transform:translateY(0) rotate(18deg); opacity:1; } }
.qian-actions { justify-content:center; }
.bei-tray { display:flex; justify-content:center; gap:28px; margin:6px 0 14px; }
.bei-cast { display:flex; flex-direction:column; align-items:center; gap:10px; min-width:120px; padding:14px 12px; border:1px dashed #e0cdbb; border-radius:14px; background:#fffaf5; }
.bei-cast.is-cast { border-style:solid; border-color:#c99f72; }
.bei-label { color:#9a8679; font-size:11px; font-weight:700; }
.bei-pair { display:flex; gap:8px; }
.bei-pair i { width:40px; height:22px; border-radius:40px 40px 6px 6px; background:#e7d6c4; transition:transform .3s, background .3s; }
.bei-cast.is-tossing .bei-pair i { animation:beiToss .9s ease-in-out; }
@keyframes beiToss { 0% { transform:translateY(0) rotate(0); } 50% { transform:translateY(-36px) rotate(320deg); } 100% { transform:translateY(0) rotate(720deg); } }
.bei-cast.bei-sheng .bei-pair i:first-child, .bei-cast.bei-yang .bei-pair i { border-radius:6px 6px 40px 40px; background:linear-gradient(180deg,#f3d9a8,#d9b06a); box-shadow:inset 0 3px 0 rgba(255,255,255,.5); }
.bei-cast.bei-sheng .bei-pair i:last-child, .bei-cast.bei-yin .bei-pair i { border-radius:40px 40px 6px 6px; background:linear-gradient(180deg,#b13b33,#7b1a20); }
.bei-cast small { color:#8e2b2b; font-size:13px; font-weight:800; font-family:'Noto Serif SC',serif; }
.bei-result { min-height:22px; margin:0 auto 14px; max-width:480px; color:#6b574d; font-size:13px; line-height:1.8; }
.bei-result b { color:var(--red); font-family:'Noto Serif SC',serif; }
.bei-rule { max-width:520px; margin:14px auto 0; text-align:left; }
.qian-card { text-align:left; }
.qian-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.qian-card-head h3 { margin:6px 0 0; font-family:'Noto Serif SC',serif; font-size:30px; letter-spacing:.08em; }
.qian-grade { padding:8px 14px; border-radius:99px; font-family:'Noto Serif SC',serif; font-size:15px; font-weight:800; }
.qian-grade.grade-up { background:#8e2b2b; color:#f8dc9f; }
.qian-grade.grade-mid { background:#f3e1c4; color:#8e5a24; }
.qian-grade.grade-down { background:#e9e2dc; color:#5d4c45; }
.qian-meta { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.qian-meta span { display:flex; align-items:center; gap:6px; padding:7px 11px; border-radius:9px; background:#f8ece0; color:#5d4038; font-size:12px; font-weight:600; }
.qian-meta small { color:#a07546; font-size:10px; font-weight:700; }
.qian-poem { display:flex; flex-direction:row-reverse; justify-content:center; gap:clamp(14px,4vw,34px); margin:20px 0 4px; padding:26px 16px; border:2px solid #c99f72; border-radius:6px; background:repeating-linear-gradient(90deg, transparent 0 68px, rgba(201,159,114,.18) 68px 69px), #fffdf7; box-shadow:inset 0 0 0 6px #fffdf7, inset 0 0 0 7px rgba(142,43,43,.35); }
.qian-poem p { margin:0; color:#3b2320; font-family:'Noto Serif SC',serif; font-size:clamp(20px,3.6vw,28px); font-weight:800; line-height:1.4; letter-spacing:.18em; writing-mode:vertical-rl; }
.qian-jie, .qian-plain, .qian-asked { margin-top:14px; padding:13px 15px; border-radius:12px; }
.qian-jie { border-left:3px solid var(--red); background:#fbf1ea; }
.qian-jie b, .qian-plain b { color:var(--red); font-size:12px; }
.qian-jie p { margin:6px 0 0; color:#5d2a22; font-family:'Noto Serif SC',serif; font-size:17px; font-weight:700; letter-spacing:.06em; line-height:1.7; }
.qian-plain { border:1px solid #efdfd4; background:#fff; }
.qian-plain p { margin:6px 0 0; color:#6b574d; font-size:13px; line-height:1.85; }
.qian-asked { border:1px solid #c99f72; background:linear-gradient(135deg,#fff7ec,#fdeee2); }
.qian-asked small { color:#9a6c38; font-size:11px; font-weight:700; }
.qian-asked p { margin:6px 0 0; color:#8e2b2b; font-size:15px; font-weight:800; line-height:1.6; }
.qian-items { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:8px; margin-top:14px; }
.qian-items div { display:flex; flex-direction:column; gap:4px; padding:10px 12px; border:1px solid #f0e3d7; border-radius:10px; background:#fffaf5; }
.qian-items div.is-asked { border-color:#c99f72; background:#fff3e6; }
.qian-items small { color:#8e2b2b; font-size:11px; font-weight:700; }
.qian-items span { color:#6b574d; font-size:12px; line-height:1.6; }
.qian-notes { margin-top:14px; border:1px solid #e5d9ce; border-radius:12px; background:rgba(255,253,249,.8); }
.qian-notes summary { padding:11px 14px; color:var(--red); font-size:12px; font-weight:700; cursor:pointer; }
.qian-notes ul { margin:0; padding:0 14px 12px; list-style:none; border-top:1px dashed #e5d9ce; }
.qian-notes li { display:flex; flex-direction:column; gap:3px; padding-top:10px; }
.qian-notes li b { color:#5d4038; font-family:'Noto Serif SC',serif; font-size:13px; }
.qian-notes li span { color:#897a73; font-size:11px; line-height:1.7; }
.qian-bei-card { margin-top:14px; padding:13px 15px; border-radius:12px; background:#3d2827; color:#f4d49a; }
.qian-bei-card small { display:block; color:#d2ad79; font-size:11px; }
.qian-bei-card b { display:block; margin-top:4px; font-family:'Noto Serif SC',serif; font-size:17px; }
.qian-bei-card p { margin:4px 0 0; color:#f6e2bd; font-size:12px; line-height:1.7; }
.qian-card .liuyao-result-note { margin-top:14px; }
.qian-result-actions { flex-wrap:wrap; }

/* 华光大帝介绍：传说、同祀、地址 */
.huaguang-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.huaguang-tags span { padding:4px 9px; border:1px solid #e3cba9; border-radius:99px; background:#fffaf2; color:#8e5a24; font-size:11px; font-weight:600; }
.huaguang-more h4 { margin:14px 0 0; color:#8e2b2b; font-family:'Noto Serif SC',serif; font-size:14px; letter-spacing:.06em; }
.huaguang-more h4::before { content:'◆'; margin-right:6px; color:#c99f72; font-size:9px; vertical-align:2px; }
.huaguang-more p { margin:5px 0 0 !important; }
.huaguang-extra { grid-column:1 / -1; order:3; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:16px; padding-top:22px; border-top:1px dashed #e2cdb6; }
.huaguang-deities h4, .huaguang-address h4 { margin:0 0 10px; color:#5d4038; font-family:'Noto Serif SC',serif; font-size:16px; letter-spacing:.06em; }
.altar { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr); gap:8px; align-items:start; }
.altar-col { display:flex; flex-direction:column; gap:8px; }
.altar-head { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; min-height:52px; padding:8px 6px; border-radius:12px; background:linear-gradient(140deg,#8e2b2b,#a33a35); color:#f6dfae; font-family:'Noto Serif SC',serif; font-size:15px; font-weight:800; letter-spacing:.08em; text-align:center; box-shadow:inset 0 0 0 1px rgba(244,212,154,.35), 0 6px 14px rgba(110,30,25,.18); }
.altar-col.is-main .altar-head { min-height:60px; background:linear-gradient(140deg,#6d1d24,#a33a35); font-size:18px; box-shadow:inset 0 0 0 1px rgba(244,212,154,.55), 0 0 0 3px rgba(240,203,127,.25), 0 8px 18px rgba(110,30,25,.22); }
.altar-head small { color:rgba(246,223,174,.75); font-family:'Noto Sans SC',sans-serif; font-size:10px; font-weight:600; letter-spacing:.2em; }
.altar-subs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.altar-subs span { display:grid; place-items:center; min-height:38px; padding:4px 2px; border:1px solid #ead8c4; border-radius:10px; background:rgba(255,255,255,.75); color:#5d2a22; font-family:'Noto Serif SC',serif; font-size:13px; font-weight:700; letter-spacing:.04em; text-align:center; }
.altar-subs span small { display:block; margin-top:2px; color:#a08c7f; font-family:'Noto Sans SC',sans-serif; font-size:9px; font-weight:500; letter-spacing:0; line-height:1.3; }
.altar-subs span { line-height:1.25; padding:6px 2px; }
.altar-note { margin:10px 0 0; color:#9a8679; font-size:11px; line-height:1.7; }
.huaguang-address { padding:16px; border-radius:16px; background:linear-gradient(140deg,#3d2827,#5c2828); color:#f6e2bd; box-shadow:0 10px 22px rgba(70,25,15,.18); }
.huaguang-address h4 { color:#f4d49a; }
.address-line { display:flex; gap:6px; margin:0; color:#fff4e0; font-size:14px; font-weight:600; line-height:1.6; }
.address-map { display:block; width:100%; margin-top:12px; border-radius:12px; border:1px solid rgba(244,212,154,.35); }
.map-copy { display:flex; align-items:center; justify-content:center; width:100%; min-height:42px; margin-top:12px; border:0; border-radius:10px; background:#f0c87f; color:#5d2a22; font-size:13px; font-weight:800; }
.map-note { margin:10px 0 0; color:rgba(246,226,189,.6); font-size:10px; line-height:1.6; }
.huaguang-extra .huaguang-note { grid-column:1 / -1; margin:0; color:#a59287; font-size:11px; }

/* 出生日期选择器（公历/农历） */
.date-picker { display:grid; grid-template-columns:1.25fr 1fr 1fr; gap:6px; min-width:0; }
.date-picker select { min-width:0; padding-left:9px !important; padding-right:6px !important; }
.birth-date-time-controls.has-picker { grid-template-columns:72px minmax(0,1fr) !important; }
.birth-date-time-controls.has-picker .date-picker { grid-column:1 / -1; order:5; }
.birth-date-time-controls.has-picker .birth-time-select { grid-column:2 / -1 !important; }
.exact-time { display:grid; grid-template-columns:minmax(0,1fr) 128px; align-items:center; gap:8px; margin-top:2px; }
.exact-time > span { color:#6b574d; font-size:11px; font-weight:700; }
.exact-time > span small { display:block; margin:2px 0 0; color:#a8978c; font-size:9px; font-weight:500; }
.exact-time input { height:38px !important; padding:0 8px !important; font-size:13px !important; }
.bazi-note { display:block; margin-top:3px; color:#a33531; font-size:10px; line-height:1.5; }

/* 首页：华光大帝介绍 */
.hero-intro-link { display:inline-flex; margin-top:14px; color:#f1cd87; font-size:12px; font-weight:700; text-decoration:none; border-bottom:1px dashed rgba(241,205,135,.6); }
.hero-intro-link:hover { color:#fff1c8; }
.huaguang-intro { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:28px; align-items:center; margin-top:22px; padding:26px; border:1px solid #e7d3bb; border-radius:22px; background:linear-gradient(120deg,#fffaf3 0%,#f8ebdd 100%); box-shadow:0 9px 24px rgba(99,54,32,.05); scroll-margin-top:16px; }
.huaguang-gallery { order:2; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.huaguang-photo { position:relative; margin:0; overflow:hidden; aspect-ratio:3 / 4; border-radius:16px; background:#3d2827; box-shadow:0 0 0 1px rgba(184,138,68,.55), 0 0 0 5px #fff8ee, 0 0 0 6px rgba(184,138,68,.35), 0 14px 26px rgba(70,25,15,.22); }
.huaguang-photo:nth-child(2) { transform:translateY(18px); }
.huaguang-photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 40%; transition:transform .6s ease; }
.huaguang-photo:hover img { transform:scale(1.04); }
.huaguang-photo figcaption { position:absolute; left:0; right:0; bottom:0; display:flex; flex-direction:column; gap:3px; padding:34px 14px 12px; background:linear-gradient(180deg,transparent,rgba(30,10,8,.88)); color:#f6dfae; }
.huaguang-photo figcaption b { font-family:'Noto Serif SC',serif; font-size:16px; letter-spacing:.18em; }
.huaguang-photo figcaption span { color:rgba(246,223,174,.75); font-size:10px; letter-spacing:.08em; }
.huaguang-body { order:1; }
.huaguang-body h3 { margin:6px 0 10px; font-family:'Noto Serif SC',serif; font-size:23px; letter-spacing:.05em; }
.huaguang-body > p:not(.section-index) { margin:0; color:#6b574d; font-size:13px; line-height:1.95; }
.huaguang-more { margin-top:10px; }
.huaguang-more summary { color:var(--red); font-size:12px; font-weight:700; cursor:pointer; }
.huaguang-more p { margin:8px 0 0; color:#6b574d; font-size:13px; line-height:1.9; }
.huaguang-more .huaguang-note { color:#a59287; font-size:11px; }

/* 水晶定制：品牌、赠品、确认 */
.crystal-logo { position:relative; flex:0 0 auto; width:150px; height:150px; border-radius:50%; box-shadow:0 0 0 4px rgba(240,203,127,.35), 0 12px 26px rgba(40,6,10,.35); }
.gift-note { display:flex; align-items:center; gap:8px; margin:0 0 2px; color:#8e5a24; font-size:12px; font-weight:600; }
.gift-note b { display:grid; place-items:center; width:20px; height:20px; border-radius:6px; background:var(--red); color:#f8dc9f; font-size:11px; }
.prayer-guide { margin-top:6px; }
.prayer-guide summary { display:flex; align-items:center; gap:8px; list-style:none; }
.prayer-guide summary::-webkit-details-marker { display:none; }
.prayer-guide summary::before { content:''; flex:0 0 26px; width:26px; height:26px; border-radius:50%; background:#fbecd9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.6 3.2c-.9.9-.9 1.9 0 2.8M12 1.6c-.9.9-.9 1.9 0 2.8M15.4 3.2c-.9.9-.9 1.9 0 2.8' fill='none' stroke='%23c9a46a' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M9 7.5v6M12 6v7.5M15 7.5v6' stroke='%23b8873e' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='9' cy='7.4' r='.9' fill='%23e8572f'/%3E%3Ccircle cx='12' cy='5.9' r='.9' fill='%23e8572f'/%3E%3Ccircle cx='15' cy='7.4' r='.9' fill='%23e8572f'/%3E%3Cpath d='M5 13.5h14l-1.4 4.6A2 2 0 0 1 15.7 19.5H8.3a2 2 0 0 1-1.9-1.4z' fill='%238e2b2b'/%3E%3Cpath d='M4.5 13.5h15' stroke='%23b8873e' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M8.5 19.5l-1 2M15.5 19.5l1 2' stroke='%238e2b2b' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat; box-shadow:inset 0 0 0 1px rgba(184,138,68,.4); }
.prayer-guide summary::after { content:'展开'; margin-left:auto; color:#b49a83; font-size:10px; font-weight:600; }
.prayer-guide[open] summary::after { content:'收起'; }
.prayer-guide img { max-width:420px; }
.confirm-card { width:min(560px,100%); }
.confirm-list { flex:1; min-height:0; overflow:auto; display:flex; flex-direction:column; gap:1px; border:1px solid #eadbcf; border-radius:12px; background:#eadbcf; }
.confirm-list div { display:grid; grid-template-columns:96px minmax(0,1fr); gap:10px; padding:10px 12px; background:#fffdf9; }
.confirm-list small { color:#9a6c38; font-size:12px; font-weight:700; }
.confirm-list span { color:#4c3c37; font-size:13px; line-height:1.6; word-break:break-all; }
.confirm-submit { flex:1.4; min-height:42px; }
.crystal-receipt { display:block; width:100%; margin-top:14px; padding:0; border:1px solid #eadbcf; border-radius:12px; overflow:hidden; background:#fff; cursor:zoom-in; }
.crystal-receipt img { display:block; width:100%; height:auto; }
.crystal-done .result-actions { flex-wrap:wrap; }
.crystal-done .result-actions .secondary-button { min-width:130px; }

/* 图片预览弹窗 */
body.modal-open { overflow:hidden; }
.share-modal { position:fixed; inset:0; z-index:40; display:flex; align-items:center; justify-content:center; padding:18px; background:rgba(30,18,16,.62); }
.share-modal-card { display:flex; flex-direction:column; width:min(520px,100%); max-height:100%; padding:16px; border-radius:18px; background:#fffaf5; box-shadow:0 24px 60px rgba(0,0,0,.3); }
.share-modal-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.share-modal-head strong { color:#5d4038; font-family:'Noto Serif SC',serif; font-size:16px; }
.share-modal-close { width:32px; height:32px; border:0; border-radius:50%; background:#f3e6da; color:#8e2b2b; font-size:20px; line-height:1; }
.share-modal-tip { margin:8px 0 10px; color:#85746b; font-size:11px; line-height:1.7; }
.share-modal-tip b { color:var(--red); }
.share-modal-image { flex:1; min-height:0; overflow:auto; border:1px solid #eadbcf; border-radius:10px; background:#f3ede5; }
.share-modal-image img { display:block; width:100%; height:auto; }
.share-modal-actions { display:flex; gap:9px; margin-top:12px; }
.share-modal-actions .secondary-button { display:flex; align-items:center; justify-content:center; text-decoration:none; }

/* 04 宝俱徕水晶定制 */
.crystal-hero { position:relative; overflow:hidden; display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:22px; padding:38px clamp(26px,5vw,62px); border-radius:26px; background:radial-gradient(circle at 85% 20%, rgba(255,255,255,.16), transparent 30%), linear-gradient(122deg,#7b1a20 0%,#861b22 55%,#9b2f2a 100%); color:#fff6e8; box-shadow:var(--shadow); }
.crystal-hero::before { content:''; position:absolute; inset:12px; border:1px solid rgba(246,210,137,.26); border-radius:20px; pointer-events:none; }
.crystal-hero-copy { position:relative; max-width:560px; }
.crystal-hero-copy .kicker { color:#f0c87f; }
.crystal-hero-copy h2 { margin:12px 0 12px; font-family:'Noto Serif SC',serif; font-size:clamp(30px,4.6vw,46px); line-height:1.25; letter-spacing:.04em; }
.crystal-hero-copy h2 span { margin-left:12px; color:#f1cd87; font-size:.62em; }
.crystal-hero-copy p { margin:0; color:rgba(255,246,232,.78); font-size:13px; line-height:1.9; }
.crystal-brand { position:relative; display:flex; flex-direction:column; align-items:center; flex:0 0 auto; padding:18px 24px; border:1px solid rgba(240,203,127,.5); border-radius:16px; background:rgba(98,16,22,.35); }
.crystal-brand b { color:#f6e2bd; font-family:'Noto Serif SC',serif; font-size:30px; letter-spacing:.18em; }
.crystal-brand small { margin-top:2px; color:#f0d9ab; font-size:15px; letter-spacing:.12em; }
.crystal-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:22px; align-items:start; }
.crystal-aside { position:sticky; top:18px; }
.crystal-contact {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,248px); align-items:center;
  gap:24px clamp(24px,5vw,64px); margin-top:22px; padding:clamp(22px,4vw,48px);
  border-color:#e7d4bc; background:linear-gradient(125deg,#fff8ed,#fcf7f1);
}
.crystal-contact h3 {
  margin:0 0 10px; color:var(--red-deep); font-family:'Noto Serif SC',serif;
  font-size:clamp(21px,3vw,30px); line-height:1.4;
}
.crystal-contact p { margin:0; color:#644d41; font-size:14px; line-height:1.8; }
.crystal-contact .crystal-contact-tip { margin-top:10px; color:#765e51; font-size:13px; }
.crystal-contact-save {
  display:inline-flex; align-items:center; min-height:44px; margin-top:6px;
  color:var(--red); font-size:13px; font-weight:700; text-underline-offset:4px;
}
.crystal-contact-qr {
  display:block; justify-self:center; width:100%; max-width:248px; height:auto;
  border:1px solid #e9d9cb; border-radius:12px; background:#fff;
  -webkit-touch-callout:default; -webkit-user-select:auto; user-select:auto;
}
@media (max-width:540px) {
  .crystal-contact { grid-template-columns:minmax(0,1fr); gap:12px; }
}
.field-label { color:#594b45; font-size:12px; font-weight:700; }
.field-label > span { color:#a33a35; }
.field-label small { margin-left:4px; color:#a8978c; font-weight:500; }
.field-group textarea { width:100%; min-height:62px; padding:11px 13px; border:1px solid #e5d9ce; border-radius:11px; outline:none; resize:vertical; color:var(--ink); background:#fffdf9; font:inherit; font-size:13px; line-height:1.6; }
.field-group textarea::placeholder { color:#b5aaa1; }
.field-group textarea:focus { border-color:var(--gold); box-shadow:0 0 0 4px rgba(184,138,68,.12); }
.choice-chips { display:flex; flex-wrap:wrap; gap:8px; }
.choice-chips label { position:relative; cursor:pointer; }
.choice-chips input { position:absolute; opacity:0; pointer-events:none; }
.choice-chips span { display:inline-flex; align-items:center; min-height:38px; padding:0 14px; border:1px solid #e5d9ce; border-radius:10px; background:#fffdf9; color:#76665e; font-size:12px; font-weight:600; transition:border .2s, background .2s, color .2s; }
.choice-chips label:hover span { border-color:#d6bea8; }
.choice-chips input:checked + span { border-color:var(--red); background:#fff3eb; color:var(--red); box-shadow:0 0 0 3px rgba(142,43,43,.07); }
.choice-chips input:focus-visible + span { outline:2px solid var(--gold); outline-offset:2px; }
.choice-chips.is-multi input:checked + span::before { content:'✓'; margin-right:5px; font-size:11px; }
.sub-choice { display:flex; flex-direction:column; gap:8px; margin-top:6px; padding:12px; border:1px dashed #e2d1c2; border-radius:11px; background:#fffaf5; }
.crystal-block { margin:4px 0 17px; padding:15px 14px 2px; border:1px solid #e9ded4; border-radius:14px; background:#fffaf5; }
.crystal-block-title { margin:0 0 12px; color:var(--red); font-family:'Noto Serif SC',serif; font-size:13px; font-weight:700; }
.crystal-block .field-group { margin-bottom:13px; }
.crystal-block .field-group input, .crystal-block .field-group select { height:42px; border-radius:9px; padding:0 10px; font-size:13px; }
.crystal-block .birth-date-time-controls [id="crystalLunarLeap"] { grid-column:1 / -1; max-width:100px; }
.size-guide { margin-top:2px; border:1px solid #eadbcf; border-radius:11px; background:#fffaf5; }
.size-guide summary { padding:10px 13px; color:#9a6c38; font-size:11px; font-weight:700; cursor:pointer; }
.size-guide-body { padding:0 12px 12px; }
.size-guide-body img { display:block; width:100%; max-width:430px; margin:0 auto; border-radius:10px; border:1px solid #eee2d6; }
.size-ref { margin-top:12px; padding:12px; border-radius:10px; background:#fff; border:1px solid #efe3d8; }
.size-ref strong { color:#69524a; font-size:11px; }
.size-ref-controls { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:6px; margin-top:8px; }
.size-ref-controls select { height:38px !important; padding:0 8px !important; font-size:12px !important; }
.size-ref-controls button { min-width:58px; border:0; border-radius:9px; background:var(--red); color:#fff; font-size:12px; font-weight:700; }
.size-ref-controls button:disabled { opacity:.4; cursor:not-allowed; }
.size-ref-result { margin:8px 0 0; color:#9a6c38; font-size:11px; line-height:1.6; }
.crystal-result { padding:28px; background:linear-gradient(155deg,#fffdfa 0%,#f9eee9 100%); }
.crystal-steps h3 { margin:7px 0 18px; font-family:'Noto Serif SC',serif; font-size:23px; }
.crystal-steps ol { display:flex; flex-direction:column; gap:10px; margin:0; padding:0; list-style:none; counter-reset:step; }
.crystal-steps li { position:relative; display:flex; flex-direction:column; gap:3px; padding:12px 14px 12px 50px; border:1px solid #efdfd4; border-radius:13px; background:rgba(255,255,255,.65); counter-increment:step; }
.crystal-steps li::before { content:counter(step); position:absolute; left:14px; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:var(--red); color:#f8dc9f; font-family:'Noto Serif SC',serif; font-size:12px; font-weight:700; }
.crystal-steps li b { color:#4c3c37; font-size:13px; }
.crystal-steps li span { color:#968780; font-size:11px; }
.crystal-steps-note { margin:14px 0 0; color:#a18f84; font-size:11px; line-height:1.7; }
.crystal-done-head { display:flex; align-items:center; gap:13px; }
.crystal-done-seal { display:grid; place-items:center; flex:0 0 46px; width:46px; height:46px; border-radius:50%; background:var(--red); color:#f8dc9f; font-size:22px; }
.crystal-done-head h3 { margin:5px 0 0; font-family:'Noto Serif SC',serif; font-size:20px; line-height:1.4; }
.crystal-done-meta { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:18px; }
.crystal-done-meta > div { display:flex; flex-direction:column; gap:4px; padding:11px 12px; border:1px solid #efdfd4; border-radius:11px; background:rgba(255,255,255,.7); }
.crystal-done-meta .is-wide { grid-column:1 / -1; }
.crystal-done-meta small { color:#a18f84; font-size:10px; }
.crystal-done-meta b { color:#5d4038; font-size:13px; word-break:break-all; }
.crystal-done-meta b.is-ok { color:#49664b; }
.crystal-done-meta b.is-local { color:#a33531; }
.crystal-done-text { margin:14px 0 0; color:#7d6d65; font-size:12px; line-height:1.8; }
.crystal-copy-preview { max-height:280px; overflow:auto; margin:12px 0 0; padding:13px 14px; border-left:3px solid var(--gold); border-radius:4px 10px 10px 4px; background:#fbf5ec; color:#6b574d; font:12px/1.85 'Noto Sans SC',-apple-system,'PingFang SC',sans-serif; white-space:pre-wrap; word-break:break-all; }
.crystal-done .result-actions { margin-top:16px; padding-top:0; }

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.privacy-strip { display:flex; gap:12px; align-items:center; margin:20px 0 0; padding:15px 17px; border-radius:15px; background:#eee8df; color:#6f625a; }
.privacy-icon { display:grid; place-items:center; width:27px; height:27px; border-radius:50%; background:#fff9ed; color:var(--gold); font-size:17px; }
.privacy-strip strong { font-size:11px; }
.privacy-strip p { margin:3px 0 0; color:#96877f; font-size:10px; }
.privacy-details { margin-top:10px; border:1px solid #e5d9ce; border-radius:14px; background:rgba(255,253,249,.72); color:#6f625a; }
.privacy-details summary { padding:12px 15px; cursor:pointer; color:#8e2b2b; font-size:11px; font-weight:700; list-style-position:inside; }
.privacy-details summary::marker { color:#b88a44; }
.privacy-details-body { padding:0 15px 12px; border-top:1px dashed #e5d9ce; }
.privacy-details-body p { margin:9px 0 0; color:#897a73; font-size:10px; line-height:1.75; }
.privacy-details-body b { color:#69524a; }
footer { margin-top:28px; text-align:center; color:#a4958b; font-size:10px; letter-spacing:.08em; }
.toast { position:fixed; left:50%; bottom:25px; z-index:20; transform:translate(-50%, 20px); padding:10px 14px; border-radius:9px; background:#2d2725; color:white; font-size:11px; opacity:0; pointer-events:none; transition: opacity .2s, transform .2s; }
.toast.show { opacity:1; transform:translate(-50%, 0); }

@media (max-width: 780px) {
  .page-shell { width:min(100% - 22px, 600px); padding-top:16px; }
  .topbar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; margin-bottom:17px; }
  .brand-mark { flex:1 1 auto; }
  .brand-mark h1 { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .project-nav { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; padding:5px; }
  .project-tab { min-height:57px; gap:8px; padding:0 9px; }
  .project-tab-index { flex-basis:27px; width:27px; height:27px; font-size:10px; }
  .project-tab b { font-size:11px; }
  .project-tab small { font-size:9px; }
  .project-nav-note { grid-column:1 / -1; min-height:25px; border-top:1px dashed #e4d4c5; border-left:0; padding:5px 0 1px; }
  .temple-signature { display:none; }
  .hero-lantern { right:155px; top:24px; transform:scale(.84) rotate(-3deg); transform-origin:top right; }
  .temple-band { margin-top:-3px; }
  .brand-mark h1 { font-size:16px; letter-spacing:.04em; }
  .brand-seal { width:39px; height:39px; font-size:21px; }
  .hero-card { min-height:455px; padding:35px 24px; }
  .hero-copy h2 { font-size:35px; }
  .hero-orbit { width:190px; height:190px; right:12px; bottom:5px; top:auto; transform:none; opacity:.62; }
  .hero-text { max-width:330px; font-size:13px; }
  .content-grid { grid-template-columns:1fr; }
  .result-panel { min-height:460px; }
  .year-guide { align-items:flex-start; flex-direction:column; gap:18px; }
  .rule-chips { justify-content:flex-start; }
  .liuyao-section { padding:23px 18px; }
  .liuyao-lines { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .liuyao-result-content { grid-template-columns:1fr; }
  .liuyao-result-note { grid-column:auto; }
  .liuyao-result-actions { grid-column:auto; }
  .liuyao-workbench { grid-template-columns:1fr; }
  .crystal-hero { flex-direction:column; align-items:flex-start; padding:32px 24px; }
  .crystal-brand { flex-direction:row; align-items:baseline; gap:10px; padding:10px 16px; }
  .crystal-brand b { font-size:20px; }
  .crystal-brand small { font-size:12px; }
  .crystal-grid { grid-template-columns:1fr; }
  .crystal-aside { position:static; }
  .home-services { grid-template-columns:1fr; gap:12px; }
  .project-nav { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .qian-hero { flex-direction:column; align-items:flex-start; padding:32px 24px; }
  .qian-hero-mark { position:absolute; right:22px; top:22px; width:74px; height:74px; }
  .qian-hero-mark span { font-size:28px; }
  .qian-hero-mark small { bottom:12px; font-size:10px; }
  .qian-hero-copy { padding-right:70px; }
  .qian-section { padding:20px 14px 22px; }
  .crystal-logo { position:absolute; right:20px; top:20px; width:76px; height:76px; }
  .crystal-hero-copy { padding-right:76px; }
  .huaguang-intro { grid-template-columns:1fr; gap:22px; padding:18px 16px 22px; }
  .huaguang-gallery { order:0; gap:10px; }
  .huaguang-extra { grid-template-columns:1fr; padding-top:18px; }
  .altar { gap:6px; }
  .altar-head { font-size:13px; min-height:46px; letter-spacing:.02em; }
  .altar-col.is-main .altar-head { font-size:15px; }
  .altar-subs { gap:4px; }
  .altar-subs span { font-size:12px; min-height:34px; }
  .huaguang-photo { aspect-ratio:4 / 5; border-radius:14px; }
  .huaguang-photo:nth-child(2) { transform:none; }
  .huaguang-photo figcaption { padding:28px 10px 10px; }
  .huaguang-photo figcaption b { font-size:14px; letter-spacing:.12em; }
  .crystal-done .result-actions .secondary-button { flex:1 1 100%; }
  .qian-stage { padding:20px 14px; }
  .service-card { display:grid; grid-template-columns:52px minmax(0,1fr); gap:12px 14px; min-height:0; padding:20px 18px 18px; }
  .service-icon { width:52px; height:52px; font-size:24px; }
  .service-body b { font-size:19px; padding-right:26px; }
  .service-go { grid-column:1 / -1; }
  .service-index { top:18px; right:18px; }
  .home-hero { min-height:400px; }
}
@media (max-width: 560px) {
  .project-tab { flex-direction:column; justify-content:center; gap:5px; min-height:66px; padding:6px 4px; text-align:center; }
  .project-tab span:last-child { align-items:center; }
  .project-tab small { display:none; }
  .project-tab b { font-size:12px; letter-spacing:.02em; }
  .project-tab { min-height:62px; gap:4px; padding:6px 2px; }
  .project-tab-index { flex-basis:24px; width:24px; height:24px; font-size:9px; }
  .qian-steps li { font-size:10px; }
  .qian-steps b { width:26px; height:26px; font-size:12px; }
  .qian-steps li::after { top:13px; left:calc(50% + 16px); right:calc(-50% + 16px); }
  .bei-tray { gap:12px; }
  .bei-cast { min-width:0; flex:1; }
  .qian-meditate { gap:20px; }
  .qian-countdown { width:120px; height:120px; }
  .qian-countdown b { font-size:44px; }
  .liuyao-result-actions button { flex:1 1 100%; }
  .qian-result-actions .secondary-button { flex:1 1 100%; }
  .qian-actions { display:flex; flex-wrap:wrap; justify-content:center; }
  .qian-actions button { flex:1 1 40%; justify-content:center; }
}
@media (max-width: 440px) {
  .field-row { grid-template-columns:1fr; gap:0; }
  .mode-switch { gap:7px; }
  .mode-option { padding:0 10px; }
  .form-panel, .result-panel { padding:23px 18px; }
  .hero-card { border-radius:20px; }
  .hero-orbit { width:165px; height:165px; right:6px; }
  .member-result-row { align-items:flex-start; flex-direction:column; gap:8px; }
  .member-result-row .relation-tags { justify-content:flex-start; }
  .member-result-references { grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; max-width:none; justify-items:start; }
  .member-reference-title { text-align:left; }
  .member-ceremony-note { grid-column:1 / -1; }
  .birth-date-time-controls { grid-template-columns:64px minmax(0,1fr) 84px; gap:5px; }
  .birth-date-time-controls input, .birth-date-time-controls select { padding-left:7px; padding-right:6px; font-size:11px !important; }
  .liuyao-mode-switch { gap:7px; }
  .liuyao-mode-button { font-size:11px; }
  .liuyao-mode-button small { font-size:9px; }
  .liuyao-panel-note { align-items:flex-start; flex-direction:column; gap:3px; }
  .liuyao-lines { gap:5px; }
  .liuyao-line-card { padding-left:3px; padding-right:3px; }
  .liuyao-line-card select { font-size:9px; }
  .liuyao-actions { display:grid; grid-template-columns:1fr 1fr; }
  #systemActions .liuyao-primary-button { grid-column:1 / -1; justify-content:center; min-height:46px; font-size:13px; }
  .coin-face { width:64px; height:64px; }
  .coin-face::before { inset:21px; }
  .yao-row { grid-template-columns:34px minmax(0,1fr) 58px 54px; gap:6px; padding:6px 8px; }
  .crystal-result { padding:23px 18px; }
  .crystal-block .birth-date-time-controls { grid-template-columns:64px minmax(0,1fr); }
  .crystal-hero-copy h2 span { display:block; margin:4px 0 0; }
  .choice-chips span { min-height:36px; padding:0 12px; }
}

/* 图片保存：允许手机长按保存 / 转发 */
.share-modal-image img, .crystal-receipt img { -webkit-touch-callout:default; -webkit-user-select:auto; user-select:auto; pointer-events:auto; }
.share-modal-actions { flex-wrap:wrap; }
.share-modal-actions .share-primary { flex:1 1 100%; min-height:44px; justify-content:center; }
.crystal-receipt { cursor:default; }

/* 预算金额输入 */
.budget-input { display:flex; align-items:center; gap:8px; height:46px; padding:0 14px; border:1px solid #e5d9ce; border-radius:11px; background:#fffdf9; }
.budget-input:focus-within { border-color:var(--gold); box-shadow:0 0 0 4px rgba(184,138,68,.12); }
.budget-input span { color:var(--red); font-size:16px; font-weight:800; }
.budget-input input { flex:1; min-width:0; height:100% !important; padding:0 !important; border:0 !important; background:transparent !important; box-shadow:none !important; font-size:15px !important; font-weight:700; color:var(--ink); }
.budget-input input::placeholder { font-weight:400; font-size:13px; }
.budget-input em { color:#8e7b70; font-size:13px; font-style:normal; }
.budget-input input::-webkit-outer-spin-button, .budget-input input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.budget-input input[type=number] { -moz-appearance:textfield; appearance:textfield; }

/* 免责声明 */
.disclaimer { margin:28px 0 0; padding:20px 22px; border:1px solid #e5d6c8; border-radius:18px; background:rgba(255,252,247,.85); }
.disclaimer h3 { margin:0 0 8px; color:#5d4038; font-family:'Noto Serif SC',serif; font-size:16px; letter-spacing:.08em; }
.disclaimer-lead { margin:0; color:#6b574d; font-size:12px; line-height:1.85; }
.disclaimer-lead b, .disclaimer-full b { color:#8e2b2b; }
.disclaimer-full { margin-top:10px; }
.disclaimer-full summary { color:var(--red); font-size:12px; font-weight:700; cursor:pointer; }
.disclaimer-full ol { margin:10px 0 0; padding-left:20px; color:#6b574d; font-size:11px; line-height:1.85; }
.disclaimer-full li { margin-top:6px; }
@media (max-width: 560px) { .disclaimer { padding:16px 15px; } }

/* 平安太岁登记确认图 */
.taisui-receipt { margin-top:18px; }
.taisui-receipt p { margin:0 0 10px; color:#6b574d; font-size:12px; line-height:1.7; }
.taisui-receipt img { display:block; width:100%; border-radius:14px; border:1px solid #ead9c6; box-shadow:0 10px 26px rgba(91,40,30,.12); -webkit-touch-callout:default; }
.result-actions { flex-wrap:wrap; }
.result-actions .secondary-button { flex:1 1 auto; }

/* ===== 八字排盘 ===== */
.project-nav { grid-template-columns:repeat(5,minmax(0,1fr)); }
.project-tab .tab-short { display:none; font-style:normal; }
.service-card.is-bazi .service-icon { border-color:#3a6fa8; background:linear-gradient(140deg,#24344d,#3a4f6e); color:#f2dca8; }
.home-services .service-card.is-partner { grid-column:1 / -1; min-height:0; }
.bazi-hero { position:relative; display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:22px; padding:30px 32px; border-radius:24px; background:linear-gradient(135deg,#2b2020,#5a2424 60%,#7a2a2a); color:#fbecd0; overflow:hidden; }
.bazi-hero .kicker { color:#e9c88b; }
.bazi-hero h2 { margin:6px 0 10px; font-family:'Noto Serif SC',serif; font-size:30px; letter-spacing:.08em; }
.bazi-hero h2 span { display:block; margin-top:4px; color:#e9c88b; font-size:15px; letter-spacing:.12em; }
.bazi-hero p { max-width:560px; margin:0; color:rgba(251,236,208,.82); font-size:13px; line-height:1.8; }
.bazi-hero-mark { display:grid; grid-template-columns:repeat(2,44px); gap:8px; flex:0 0 auto; }
.bazi-hero-mark span { display:grid; place-items:center; width:44px; height:44px; border:1px solid rgba(233,200,139,.6); border-radius:10px; font-family:'Noto Serif SC',serif; font-size:20px; color:#f2dca8; background:rgba(255,255,255,.06); }
.bazi-grid { display:grid; grid-template-columns:minmax(300px,380px) minmax(0,1fr); gap:22px; align-items:start; }
.bazi-form .bazi-consent { margin-top:10px; }
.bazi-form-note { margin:12px 0 0; color:#a08f86; font-size:11px; line-height:1.7; }
.bazi-result.is-empty { display:grid; place-items:center; min-height:420px; }
.bazi-empty { max-width:380px; text-align:center; color:#7a6a62; }
.bazi-empty-mark { display:inline-grid; place-items:center; width:58px; height:58px; border-radius:16px; background:linear-gradient(140deg,#24344d,#3a4f6e); color:#f2dca8; font-family:'Noto Serif SC',serif; font-size:28px; }
.bazi-empty h3 { margin:14px 0 10px; font-family:'Noto Serif SC',serif; color:#4a3833; }
.bazi-empty ol { margin:0; padding:0 0 0 18px; text-align:left; font-size:12px; line-height:1.9; }
.bz h4 { margin:20px 0 10px; font-family:'Noto Serif SC',serif; font-size:15px; color:#5b2a24; letter-spacing:.06em; }
.bz-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.bz-head h3 { margin:2px 0 0; font-family:'Noto Serif SC',serif; font-size:22px; }
.bz-head h3 small { margin-left:10px; color:#9a8579; font-family:inherit; font-size:13px; font-weight:400; }
.bz-daymaster { display:flex; flex-direction:column; align-items:center; padding:8px 14px; border:1px solid var(--wx); border-radius:14px; color:var(--wx); }
.bz-daymaster b { font-family:'Noto Serif SC',serif; font-size:28px; line-height:1.1; }
.bz-daymaster small { font-size:11px; }
.bz-info { display:grid; grid-template-columns:52px 1fr; gap:4px 10px; margin:14px 0 0; font-size:13px; }
.bz-info dt { color:#9a6c38; font-weight:700; }
.bz-info dd { margin:0; color:#3d2f2b; }
.bz-note { margin:10px 0 0; padding:8px 12px; border-radius:10px; background:#fbf1ea; color:#8e2b2b; font-size:12px; line-height:1.7; }
.bz-table-wrap { overflow-x:auto; border:1px solid #ead9c6; border-radius:14px; background:#fffdf9; }
.bz-table { width:100%; min-width:300px; border-collapse:collapse; table-layout:fixed; font-size:12px; text-align:center; }
.bz-table th, .bz-table td { padding:7px 4px; border-bottom:1px solid #f1e6da; vertical-align:middle; }
.bz-table thead th { background:#f6ecdc; color:#9a6c38; font-size:12px; }
.bz-table tbody th { width:46px; color:#9a6c38; font-weight:700; background:#fbf6ef; }
.bz-table tr:last-child th, .bz-table tr:last-child td { border-bottom:0; }
.bz-table .bz-big td b { display:block; font-family:'Noto Serif SC',serif; font-size:26px; line-height:1.15; }
.bz-table .bz-big td small { color:#a08f86; font-size:10px; }
.bz-table .bz-shishen td { color:#5b2a24; font-weight:700; }
.bz-hide { display:block; line-height:1.6; white-space:nowrap; }
.bz-hide i { margin-right:2px; font-style:normal; font-weight:700; }
.bz-table .bz-shas td { vertical-align:top; }
.bz-sha-list { display:flex; flex-direction:column; align-items:center; gap:3px; padding:2px 0; }
.bz-sha { display:inline-block; padding:1px 5px; border-radius:6px; background:#f6ecdc; color:#7a5a3a; font-size:10px; line-height:1.5; white-space:nowrap; }
.bz-unknown { color:#c4b5aa; }
.bz-muted { color:#a08f86; font-size:11px; line-height:1.7; }

.place-field { display:flex; align-items:center; gap:12px; width:100%; min-height:44px; padding:10px 14px; border:1px solid #e7d8ca; border-radius:12px; background:#fffdf9; color:#4c3c37; font:inherit; text-align:left; overflow-wrap:anywhere; }
.place-field::after { content:'›'; margin-left:auto; color:#9a6c38; font-size:20px; line-height:1; }
.place-dialog { position:fixed; inset:auto 0 0; width:min(100%, 590px); max-width:100%; max-height:88vh; max-height:88dvh; margin:0 auto; padding:0; border:0; border-radius:22px 22px 0 0; background:#fffdf9; color:#4c3c37; box-shadow:0 -10px 50px rgba(48,27,18,.16); }
.place-dialog::backdrop { background:rgba(30,18,16,.55); }
.place-panel { padding:15px 16px max(16px, env(safe-area-inset-bottom)); }
.place-head { display:grid; grid-template-columns:64px 1fr 64px; align-items:center; gap:8px; }
.place-head h2 { margin:0; text-align:center; font-family:'Noto Serif SC',serif; font-size:20px; color:#5b2a24; }
.place-head button { min-height:39px; border:0; border-radius:11px; font:inherit; }
.place-cancel { background:transparent; color:#77635a; }
.place-confirm { background:#8e2b2b; color:#fff8ee; font-weight:700; }
.place-confirm:disabled { opacity:.55; }
.place-switch { display:grid; grid-template-columns:1fr 1fr; max-width:240px; margin:15px auto 12px; padding:3px; border-radius:11px; background:#f4eadf; }
.place-switch button { min-height:36px; padding:4px 8px; border:0; border-radius:8px; background:transparent; color:#6a5448; font:inherit; }
.place-switch button[aria-pressed="true"] { background:#fffdf9; color:#8e2b2b; font-weight:700; }
.place-panel input.place-search { width:100%; min-height:42px; font-size:16px; }
.place-columns { display:grid; grid-template-columns:repeat(var(--place-column-count, 3), minmax(0, 1fr)); gap:6px; margin-top:10px; }
.place-columns[hidden], .place-results[hidden] { display:none; }
.place-columns p { margin:0 0 4px; text-align:center; color:#785936; font-size:13px; font-weight:700; }
.place-wheel { position:relative; height:210px; box-sizing:border-box; padding:84px 0; overflow:auto; overscroll-behavior:contain; scroll-snap-type:y mandatory; scrollbar-width:none; touch-action:pan-y; }
.place-wheel::-webkit-scrollbar { display:none; }
.place-wheel button, .place-wheel-empty { display:block; width:100%; height:42px; box-sizing:border-box; padding:0 6px; border:0; border-radius:9px; background:transparent; color:#716158; font:inherit; font-size:14px; line-height:42px; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; scroll-snap-align:center; }
.place-wheel button[aria-pressed="true"] { color:#642d24; font-weight:700; background:#f2e6d7; }
.place-wheel button:focus-visible, .place-results button:focus-visible { outline:2px solid #9e6739; outline-offset:-2px; }
.place-results { height:210px; margin-top:10px; overflow:auto; overscroll-behavior:contain; font-size:14px; }
.place-results button { display:block; width:100%; padding:10px 6px; border:0; border-bottom:1px solid #f1e6da; background:transparent; color:#5b2a24; font:inherit; text-align:left; }
.place-status, .place-footer p { margin:8px 0; color:#715b50; font-size:12px; }
.place-footer button { border:0; background:transparent; color:#8e2b2b; padding:7px 0 0; font-size:13px; }
@media (min-width:700px) { .place-dialog { bottom:5vh; border-radius:22px; } }
.place-dialog.place-fallback[open] { display:flex; align-items:flex-end; justify-content:center; inset:0; width:100%; height:100%; max-height:none; z-index:50; border-radius:0; background:rgba(30,18,16,.55); }
.place-fallback .place-panel { width:min(100%, 590px); max-height:88vh; overflow:auto; border-radius:22px 22px 0 0; background:#fffdf9; }
.bz-extra { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 0; font-size:12px; color:#7a6a62; }
.bz-extra span { padding:4px 10px; border-radius:999px; background:#f6ecdc; }
.bz-extra b { color:#5b2a24; }
.bz-two { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.bz-card { margin-top:14px; padding:4px 16px 14px; border:1px solid #ead9c6; border-radius:16px; background:#fffdf9; }
.bz-two .bz-card { margin-top:14px; }
.bz-wx-row { display:grid; grid-template-columns:22px 1fr 64px; align-items:center; gap:8px; margin:7px 0; }
.bz-wx-name { font-family:'Noto Serif SC',serif; font-weight:800; font-size:15px; }
.bz-wx-track { height:10px; background:transparent; }
.bz-wx-fill { display:block; height:10px; border-radius:0 4px 4px 0; }
.bz-wx-val { font-size:12px; color:#4c3c37; text-align:right; }
.bz-wx-val small { margin-left:4px; color:#a08f86; font-size:10px; }
.bz-level { margin:4px 0 8px; }
.bz-level b { font-family:'Noto Serif SC',serif; font-size:22px; color:#5b2a24; }
.bz-level small { display:block; color:#8b7a72; font-size:12px; }
.bz-tags { display:flex; gap:8px; margin:0 0 6px; }
.bz-tags span { padding:3px 10px; border-radius:999px; background:#f1ece7; color:#9a8b82; font-size:12px; }
.bz-tags span.is-yes { background:#edf5ea; color:#3f7a4a; }
.bz-xy-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:6px; }
.bz-xy-grid > div { display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:8px 10px; border-radius:12px; background:#fbf6ef; }
.bz-xy-grid small { color:#9a6c38; font-weight:700; font-size:11px; }
.bz-chip { display:inline-block; padding:3px 10px; border-radius:999px; border:1px solid var(--wx); color:var(--wx); font-size:12px; font-weight:700; background:#fff; }
.bz-xiyong p { margin:8px 0 0; color:#4c3c37; font-size:13px; line-height:1.8; }
.bz-xiyong .bz-muted { font-size:11px; }
.bz-yun-start { margin:2px 0 10px; color:#6b574d; font-size:12px; }
.bz-yun-row, .bz-ln-row { display:flex; gap:6px; overflow-x:auto; padding-bottom:6px; scroll-snap-type:x proximity; }
.bz-yun, .bz-ln { flex:0 0 64px; display:flex; flex-direction:column; align-items:center; gap:2px; padding:8px 4px; border:1px solid #ead9c6; border-radius:12px; background:#fff; color:#4c3c37; scroll-snap-align:center; }
.bz-yun { cursor:pointer; }
.bz-yun b, .bz-ln b { font-family:'Noto Serif SC',serif; font-size:20px; line-height:1.2; }
.bz-yun b i, .bz-ln b i { font-style:normal; }
.bz-yun small, .bz-ln small { color:#8b7a72; font-size:10px; white-space:nowrap; }
.bz-yun em, .bz-ln em { font-style:normal; color:#9a6c38; font-size:10px; }
.bz-yun.is-on { border-color:#8e2b2b; box-shadow:0 0 0 2px rgba(142,43,43,.15); background:#fff8f4; }
.bz-yun.is-now::after, .bz-ln.is-now::after { content:'当前'; margin-top:2px; padding:0 6px; border-radius:999px; background:#8e2b2b; color:#fff; font-size:9px; }
.bz-ln.is-now { border-color:#8e2b2b; }
.bz-sub { margin:10px 0 6px; color:#5b2a24; font-weight:700; font-size:12px; }
.bz-foot { margin-top:14px; }
@media (max-width: 860px) { .bazi-grid { grid-template-columns:1fr; } }
@media (max-width: 780px) { .project-nav { grid-template-columns:repeat(5,minmax(0,1fr)); } }
@media (max-width: 560px) {
  .project-nav { grid-template-columns:repeat(5,minmax(0,1fr)); gap:3px; padding:4px; }
  .project-tab b { display:none; }
  .project-tab .tab-short { display:block; font-family:'Noto Serif SC',serif; font-size:12px; font-weight:700; letter-spacing:.02em; white-space:nowrap; }
  .project-tab { padding:6px 1px; }
  .bazi-hero { padding:22px 18px; }
  .bazi-hero h2 { font-size:24px; }
  .bazi-hero-mark { display:none; }
  .bz-two { grid-template-columns:1fr; }
  .bz-xy-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bz-table { font-size:11px; }
  .bz-table tbody th { width:38px; font-size:11px; }
  .bz-table .bz-big td b { font-size:22px; }
  .bz-head h3 small { display:block; margin:2px 0 0; }
}
.bazi-grid > * { min-width:0; }
.bz-card, .bz { min-width:0; }
.bz-table thead th:first-child { width:52px; }
@media (max-width: 560px) { .bz-table thead th:first-child { width:40px; } }

/* 神煞总览：沿用原有米白卡片 / 金棕标签配色 */
.bz-standard { margin:10px 0 0; line-height:1.8; }
.bz-shensha h4 { margin-bottom:8px; }
.bz-ss-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.bz-ss-group { padding:8px 10px 10px; border:1px solid #ead9c6; border-radius:12px; background:#fffdf9; }
.bz-ss-group .bz-sub { margin:0 0 8px; display:flex; align-items:center; justify-content:space-between; gap:6px; }
.bz-ss-group .bz-sub small { font-weight:400; color:#a08f86; font-size:10px; }
.bz-ss-group.is-ji .bz-sub { color:#3f7a4a; }
.bz-ss-group.is-xiong .bz-sub { color:#8e2b2b; }
.bz-ss-group.is-other .bz-sub { color:#9a6c38; }
.bz-ss-tags { display:flex; flex-wrap:wrap; gap:5px; }
.bz-ss-tag { display:inline-flex; align-items:center; gap:3px; padding:3px 8px; border-radius:999px; font-size:11px; line-height:1.5; white-space:nowrap; background:#f6ecdc; color:#7a5a3a; }
.bz-ss-group.is-ji .bz-ss-tag { background:#edf5ea; color:#3f7a4a; }
.bz-ss-group.is-xiong .bz-ss-tag { background:#fbf1ea; color:#8e2b2b; }
.bz-ss-tag i { font-style:normal; font-size:9px; padding:0 4px; border-radius:4px; background:rgba(0,0,0,.06); }
.bz-ss-tag.is-ref { border:1px dashed currentColor; }
.bz-ss-suiyun { margin-top:10px; padding:8px 10px 10px; border:1px dashed #ead9c6; border-radius:12px; background:#fffdf9; }
.bz-ss-suiyun .bz-sub { margin:0 0 8px; display:flex; align-items:center; justify-content:space-between; gap:6px; color:#9a6c38; }
.bz-ss-suiyun .bz-sub small { font-weight:400; color:#a08f86; font-size:10px; }
.bz-shensha .bz-muted { margin:10px 0 0; }
@media (max-width: 560px) {
  .bz-ss-groups { grid-template-columns:1fr; gap:8px; }
  .bz-sha { font-size:9px; padding:1px 4px; }
  .bz-shas td { padding:5px 2px; }
}

/* 六爻介绍、殿方联系与太岁法会 */
.liuyao-hero {
  background:radial-gradient(ellipse at 90% 20%,#eed6af 0%,transparent 50%),linear-gradient(125deg,#fffaf2,#f5e8d8);
  border:1px solid #e5d2b9;
  color:#532e25;
}
.liuyao-hero::before { border-color:rgba(145,96,52,.27); }
.liuyao-hero .qian-hero-copy { max-width:690px; }
.liuyao-hero .qian-hero-copy .kicker { color:#8a532c; }
.liuyao-hero .qian-hero-copy p { color:#6e5547; font-size:14px; }
.liuyao-hero-mark {
  flex:none; display:grid; place-items:center;
  width:112px; aspect-ratio:1; border:1px solid #c9a476; border-radius:50%;
  background:#fff5e5; color:#8b4733; box-shadow:inset 0 0 0 7px #f8e8d0;
}
.liuyao-hero-lines { display:grid; width:38%; gap:5px; }
.liuyao-hero-lines i { height:3px; background:currentColor; }
.liuyao-hero-lines i:nth-child(4) { margin-top:4px; }
.liuyao-hero-lines .is-yin { background:linear-gradient(90deg,currentColor 42%,transparent 42% 58%,currentColor 58%); }
.coin-guide { margin-top:14px; padding:15px 17px; border:1px solid #e7d6c1; border-radius:13px; background:#fff8ed; }
.coin-guide h3, .ceremony-body h3, .ceremony-plan h4, .temple-contact h4 {
  margin:0; color:#67352a; font-family:'Noto Serif SC',serif; font-weight:800;
}
.coin-guide h3 { font-size:15px; }
.coin-guide p { margin:6px 0 0; color:#6e5547; font-size:13px; line-height:1.8; }
.coin-guide summary { width:fit-content; padding:7px 0 2px; color:#812d2c; font-size:13px; font-weight:700; cursor:pointer; }
.coin-guide-history { margin-top:7px; border-top:1px solid #ead9c4; }
.coin-guide .coin-guide-sources { display:flex; flex-wrap:wrap; gap:5px 14px; font-size:11px; }
.coin-guide-sources a { color:#78522f; text-underline-offset:2px; }

.huaguang-visit { display:grid; align-content:start; gap:12px; min-width:0; }
.temple-contact {
  display:grid; grid-template-columns:minmax(0,1fr) clamp(96px,32vw,135px); gap:12px; align-items:center;
  padding:16px; border:1px solid #e5cdb4; border-radius:16px; background:#fffaf1;
}
.temple-contact h4 { font-size:16px; }
.contact-list { display:grid; gap:8px; margin:10px 0 0; color:#63382e; }
.contact-list dt { color:#775f52; font-size:11px; }
.contact-list dd { margin:2px 0 0; font-size:14px; font-weight:700; }
.contact-list a { color:inherit; text-underline-offset:3px; }
.copy-wechat {
  min-height:26px; padding:0 7px; border:1px solid currentColor; border-radius:6px;
  color:inherit; background:transparent; font-size:11px; line-height:1.4; vertical-align:middle;
}
.contact-qr { display:grid; gap:4px; width:100%; padding:0; border:0; background:transparent; color:#785745; text-align:center; font-size:11px; }
.contact-qr-preview { position:relative; display:block; width:100%; aspect-ratio:1; overflow:hidden; background:#fff; box-shadow:0 0 0 1px #e5d3bf; border-radius:10px; }
/* 预览仅框取原图的二维码和白边，弹窗与下载均使用原图。 */
.contact-qr-preview img { position:absolute; top:-41.3%; left:-4.4%; display:block; width:108.9%; max-width:none; height:auto; }
.wechat-qr-dialog {
  width:min(420px,calc(100% - 28px)); max-height:calc(100% - 28px); max-height:calc(100dvh - 28px);
  padding:16px; border:1px solid #e6d3bd; border-radius:18px; background:#fffaf5; color:var(--ink); box-shadow:var(--shadow);
}
.wechat-qr-dialog::backdrop { background:rgba(30,18,16,.65); }
.wechat-qr-original {
  display:block; width:100%; height:auto; max-height:530px; max-height:min(530px,62dvh); object-fit:contain;
  border:1px solid #e8dacc; border-radius:11px; background:#fff; -webkit-touch-callout:default;
}
.wechat-qr-dialog .share-modal-actions a { min-height:40px; padding:0 14px; }

.taisui-ceremony { margin-top:18px; }
.ceremony-details { overflow:hidden; border:1px solid #e0c8ac; border-radius:18px; background:#fffaf3; }
.ceremony-details > summary {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:16px clamp(15px,3vw,28px); background:linear-gradient(115deg,#f9ead3,#f6dfce);
  color:#742f28; cursor:pointer; list-style:none;
}
.ceremony-details > summary::-webkit-details-marker { display:none; }
.ceremony-details > summary:focus-visible { outline-offset:-4px; }
.ceremony-details > summary strong { display:block; font-family:'Noto Serif SC',serif; font-size:clamp(15px,2.1vw,21px); line-height:1.55; }
.ceremony-details > summary small { display:block; margin-top:3px; color:#755749; font-size:12px; }
.ceremony-chevron {
  flex:none; width:12px; height:12px; margin-right:4px;
  border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:translateY(-3px) rotate(45deg);
}
.ceremony-details[open] .ceremony-chevron { transform:translateY(3px) rotate(225deg); }
.ceremony-body { display:grid; gap:22px; padding:clamp(15px,3vw,28px); border-top:1px solid #e8d3bc; color:#634d41; font-size:14px; line-height:1.8; }
.ceremony-body h3 { font-size:clamp(17px,2.4vw,22px); }
.ceremony-body p { margin:8px 0 0; }
.ceremony-intro { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:20px; align-items:center; }
.ceremony-intro img { display:block; width:100%; height:auto; border-radius:12px; }
.ceremony-plans { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:9px; }
.ceremony-plan { padding:14px; border:1px solid #e8d5bf; border-radius:13px; background:#fffdf8; }
.ceremony-plan h4 { font-size:15px; }
.ceremony-plan p:not(.ceremony-price) { margin-top:2px; font-size:13px; }
.ceremony-plan .ceremony-price { display:flex; align-items:baseline; flex-wrap:wrap; gap:6px; margin-top:4px; color:#812d2c; }
.ceremony-price strong { font-family:'Noto Serif SC',serif; font-size:clamp(25px,4.1vw,33px); line-height:1.3; }
.ceremony-price span { font-size:12px; }
.ceremony-arrangements { padding:14px 17px; border-left:3px solid #bd8b4a; background:#f9efe1; }
.ceremony-arrangements ul { margin:6px 0 0; padding-left:1.28em; }
.ceremony-arrangements li + li { margin-top:6px; }
.ceremony-gallery { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:9px; }
.ceremony-gallery a { position:relative; display:block; overflow:hidden; border-radius:11px; background:#4e2826; }
.ceremony-gallery img { display:block; width:100%; height:auto; aspect-ratio:4 / 3; object-fit:cover; }
.ceremony-gallery span { position:absolute; inset:auto 0 0; padding:12px 8px 5px; background:linear-gradient(transparent,rgba(30,16,12,.88)); color:#fff6e9; font-size:12px; }
.ceremony-contact {
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:15px 17px; border-radius:14px; background:linear-gradient(130deg,#422826,#682d2c); color:#fff2df;
}
.ceremony-contact h3, .ceremony-contact a { color:#f5d49b; }
.ceremony-contact-line { display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-size:13px; }
.ceremony-contact-line a { margin-left:5px; text-underline-offset:3px; }
.ceremony-contact-button {
  flex:none; min-height:44px; padding:7px 14px; border:0; border-radius:9px;
  background:#f0c87f; color:#5d2a22; font-size:13px; font-weight:800;
}
.ceremony-video { min-width:0; }
.ceremony-video video { display:block; width:min(100%,800px); height:auto; aspect-ratio:16 / 9; margin:9px auto 0; border-radius:12px; background:#241815; }

@media (max-width: 780px) {
  .liuyao-hero .qian-hero-copy { padding-right:0; }
  .liuyao-hero .qian-hero-copy h2 { padding-right:68px; }
  .liuyao-hero-mark { position:absolute; top:22px; right:24px; width:62px; }
  .liuyao-hero-lines { gap:3px; }
  .liuyao-hero-lines i { height:2px; }
  .liuyao-hero-lines i:nth-child(4) { margin-top:2px; }
}
@media (max-width: 560px) {
  .ceremony-body { gap:17px; font-size:13px; }
  .ceremony-intro, .ceremony-plans { grid-template-columns:1fr; gap:8px; }
  .ceremony-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ceremony-contact { align-items:stretch; flex-direction:column; }
  .temple-contact { padding:13px; }
}
