:root{
  --temple-red:#8b1e22;--temple-red-dark:#5f1115;--temple-red-light:#b33a3f;
  --gold:#d5a62e;--gold-deep:#a87510;--gold-pale:#f7e7ad;
  --ink:#2c211b;--muted:#75685d;--cream:#fff9ec;--paper:#fffdf7;--line:#ead8b7;
  --jade:#2f735b;--jade-light:#e8f3ed;--white:#fff;--shadow:0 18px 46px rgba(84,47,18,.12);
  --radius:22px;--max:1180px
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0!important;background:
radial-gradient(circle at 12% 5%,rgba(213,166,46,.10),transparent 24rem),
linear-gradient(180deg,#fbf1dd 0,#fffaf1 240px,#f7f2e9 100%);color:var(--ink);font-family:"Noto Sans TC","Microsoft JhengHei",system-ui,-apple-system,sans-serif;font-size:16px;line-height:1.78;-webkit-text-size-adjust:100%}
a{color:var(--temple-red);text-decoration:none}a:hover{text-decoration:none}img,video,iframe{max-width:100%;height:auto}table{max-width:100%!important}input,select,textarea,button{font:inherit}.site-shell{min-height:100vh}.inner{width:min(var(--max),calc(100% - 36px));margin:auto}
.site-topbar{background:linear-gradient(90deg,var(--temple-red-dark),#3f0a0d);color:#fff;font-size:.9rem;border-bottom:1px solid rgba(255,255,255,.1)}.site-topbar .inner{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:7px 0}.site-topbar a{color:#ffe49a}.site-header{background:rgba(255,250,239,.96);backdrop-filter:blur(14px);border-bottom:1px solid #e6cf9f;position:sticky;top:0;z-index:1100;box-shadow:0 5px 20px rgba(76,42,12,.07)}.site-header .inner{display:flex;align-items:center;gap:18px;min-height:86px}.brand{display:flex;align-items:center;gap:12px;flex:0 0 auto}.brand-logo{width:62px;height:62px;object-fit:cover;border-radius:50%;border:2px solid #e9c860;box-shadow:0 4px 14px rgba(85,45,12,.16)}.brand-text strong{display:block;color:var(--temple-red);font-family:"Noto Serif TC","DFKai-SB",serif;font-size:1.35rem;letter-spacing:.08em;line-height:1.3}.brand-text span{display:block;color:#816a4d;font-size:.8rem}.nav-toggle{display:none;margin-left:auto;background:var(--temple-red);color:#fff;border:0;border-radius:12px;padding:10px 14px;font-weight:700;cursor:pointer}.site-nav{margin-left:auto}.site-nav ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:2px}.site-nav a{display:block;padding:10px 10px;color:#4c3827;font-weight:700;border-radius:10px;white-space:nowrap;font-size:.93rem}.site-nav a:hover,.site-nav a[aria-current="page"]{background:#f0dfb8;color:var(--temple-red)}.nav-highlight{background:var(--temple-red)!important;color:#fff!important}.nav-highlight:hover{background:var(--temple-red-dark)!important}
.site-main{width:min(var(--max),calc(100% - 36px));margin:30px auto;background:rgba(255,255,255,.88);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.content-pad{padding:clamp(20px,4vw,48px)}.legacy-content{padding:clamp(18px,3vw,38px);width:100%;overflow-x:auto}.legacy-content table{width:100%!important;border-collapse:collapse}.legacy-content td,.legacy-content th{max-width:100%;overflow-wrap:anywhere}.legacy-content font[size="7"],.legacy-content font[size="6"]{font-size:clamp(1.7rem,4vw,2.55rem)!important}.legacy-content font[size="5"]{font-size:clamp(1.3rem,3vw,1.85rem)!important}.legacy-content iframe{width:100%!important}
.hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(250px,.75fr);align-items:center;gap:28px;background:
radial-gradient(circle at 84% 18%,rgba(255,218,107,.25),transparent 15rem),linear-gradient(135deg,#6d1116 0,#9d2328 58%,#b33a2d 100%);color:#fff;padding:clamp(32px,6vw,72px);position:relative;overflow:hidden}.hero:before{content:"";position:absolute;inset:auto -6rem -10rem auto;width:26rem;height:26rem;border:2px solid rgba(255,225,142,.14);border-radius:50%;box-shadow:0 0 0 36px rgba(255,225,142,.05),0 0 0 74px rgba(255,225,142,.035)}.hero-copy{position:relative;z-index:1}.eyebrow{display:inline-flex;gap:8px;align-items:center;padding:5px 12px;border-radius:999px;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.16);font-size:.88rem;color:#ffe8a7}.hero h1{font-family:"Noto Serif TC","DFKai-SB",serif;font-size:clamp(2.25rem,5vw,4.15rem);line-height:1.13;margin:16px 0 14px;letter-spacing:.04em}.hero h1 span{color:#ffdc74}.hero p{max-width:760px;font-size:clamp(1rem,2vw,1.16rem);margin:0;color:#fff6e8}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:10px 18px;border-radius:12px;font-weight:800;border:1px solid transparent;cursor:pointer}.btn-primary{background:linear-gradient(180deg,#f4cf68,#d9a832);color:#4a2a05;box-shadow:0 7px 18px rgba(65,35,4,.18)}.btn-light{background:#fff;color:var(--temple-red)}.btn-outline{border-color:#d2b36e;background:transparent;color:var(--temple-red)}.btn-red{background:var(--temple-red);color:#fff}.btn-jade{background:var(--jade);color:#fff}.hero-mascot{position:relative;z-index:1;text-align:center;filter:drop-shadow(0 18px 18px rgba(29,8,8,.28))}.hero-mascot img{max-height:420px;width:auto;animation:gentleFloat 4.8s ease-in-out infinite}@keyframes gentleFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.section{padding:clamp(28px,5vw,58px)}.section.alt{background:linear-gradient(180deg,#fff8e9,#fffcf6)}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.section-title{font-family:"Noto Serif TC","DFKai-SB",serif;color:var(--temple-red);font-size:clamp(1.55rem,3vw,2.25rem);margin:0;line-height:1.35}.section-title small{display:block;font-family:"Noto Sans TC";font-size:.88rem;color:var(--gold-deep);letter-spacing:.12em;margin-bottom:4px}.section-lead{color:var(--muted);max-width:680px;margin:7px 0 0}.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.service-card,.feature-card{position:relative;border:1px solid var(--line);border-radius:18px;padding:22px;background:linear-gradient(160deg,#fff,#fff9ec);transition:.2s;overflow:hidden}.service-card:after{content:"";position:absolute;right:-32px;bottom:-32px;width:95px;height:95px;border-radius:50%;background:rgba(213,166,46,.08)}.service-card:hover,.feature-card:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(84,47,18,.10);border-color:#d9bc7f}.service-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#f6e8bd;color:var(--temple-red);font-size:1.42rem;margin-bottom:13px}.service-card h3,.feature-card h3{margin:0 0 8px;color:var(--temple-red);font-size:1.12rem}.service-card p,.feature-card p{margin:0;color:var(--muted)}.feature-card strong{color:var(--ink)}
.notice{background:#fff3d8;border:1px solid #e5c06c;border-left:5px solid var(--gold);border-radius:14px;padding:17px 18px;margin:18px 0}.notice.red{background:#fff0ef;border-color:#e2a6a6;border-left-color:var(--temple-red)}.notice.jade{background:var(--jade-light);border-color:#b8d5c8;border-left-color:var(--jade)}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.info-card{background:#fffaf0;border:1px solid var(--line);border-radius:16px;padding:20px}.info-card h3{margin-top:0;color:var(--temple-red)}.gold-rule{width:64px;height:4px;background:linear-gradient(90deg,var(--gold),#f2d67f);border-radius:999px;margin:14px 0 22px}.pill{display:inline-flex;padding:4px 10px;border-radius:999px;background:#f4e5bc;color:#764f05;font-size:.82rem;font-weight:700}.tag-row{display:flex;gap:8px;flex-wrap:wrap}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stat{padding:18px;border-radius:16px;background:#6f1519;color:#fff;text-align:center}.stat strong{display:block;font-family:"Noto Serif TC";font-size:1.55rem;color:#ffdf82}.stat span{font-size:.88rem;color:#f8e9db}
.video-wrap{aspect-ratio:16/9;background:#140a0a;border-radius:18px;overflow:hidden;box-shadow:0 14px 30px rgba(20,8,8,.18)}.video-wrap iframe{width:100%;height:100%;border:0}.steps{counter-reset:step;display:grid;gap:14px}.step{counter-increment:step;display:grid;grid-template-columns:48px 1fr;gap:14px;align-items:start;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff}.step:before{content:counter(step);width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:var(--temple-red);color:#fff;font-weight:800}.step h3{margin:2px 0 3px;color:var(--temple-red)}.step p{margin:0;color:var(--muted)}
.form-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:clamp(18px,3vw,28px);box-shadow:0 10px 26px rgba(82,46,19,.07)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:grid;gap:7px}.field.full{grid-column:1/-1}.field label{font-weight:800;color:#513b2b}.field input,.field select,.field textarea{width:100%;border:1px solid #d9c8aa;border-radius:11px;padding:11px 12px;background:#fffdf8;color:var(--ink);outline:none}.field textarea{min-height:120px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--gold-deep);box-shadow:0 0 0 3px rgba(213,166,46,.14)}.helper{font-size:.83rem;color:var(--muted)}.alert{padding:13px 15px;border-radius:12px;margin:0 0 16px}.alert.success{background:#e9f5ee;color:#205b42;border:1px solid #b8dbc9}.alert.error{background:#fff0ef;color:#882228;border:1px solid #efb3b3}
.prayer-board{position:relative;min-height:330px}.prayer-page{display:none;grid-template-columns:repeat(2,1fr);gap:14px}.prayer-page.active{display:grid}.prayer-card{border:1px solid #e5d6bc;background:linear-gradient(145deg,#fff,#fff8e9);border-radius:15px;padding:17px;box-shadow:0 8px 20px rgba(83,47,20,.06)}.prayer-card dl{margin:0;display:grid;grid-template-columns:96px 1fr;gap:5px 8px}.prayer-card dt{font-weight:800;color:#7b322f}.prayer-card dd{margin:0;overflow-wrap:anywhere}.carousel-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;color:var(--muted);font-size:.9rem}.carousel-dots{display:flex;gap:6px}.carousel-dot{width:9px;height:9px;border:0;border-radius:999px;background:#d9c8ab;padding:0}.carousel-dot.active{background:var(--temple-red);width:23px}
.search-bar{display:flex;gap:10px}.search-bar input,.search-bar select{border:1px solid #dbc8a7;border-radius:12px;padding:11px 13px;min-height:46px;background:#fff;min-width:0}.search-bar input{flex:1}.date-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.date-link{display:block;padding:11px 7px;border:1px solid var(--line);border-radius:11px;text-align:center;background:#fff;color:#5c4431;font-weight:700}.date-link:hover{background:#f8e7bd;color:var(--temple-red)}.results{display:grid;gap:12px}.result-card{padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:#fff}.result-card h3{margin:0 0 5px;color:var(--temple-red)}.result-card p{margin:0;color:var(--muted)}
.hex-cast{display:grid;grid-template-columns:minmax(220px,.55fr) minmax(0,1.45fr);gap:28px}.hexagram-display{padding:24px;border-radius:18px;background:linear-gradient(160deg,#6c1419,#3e0d10);color:#fff;text-align:center;min-height:370px}.hex-symbol{font-size:8rem;line-height:1;margin:18px 0;color:#f5d56e;font-family:serif}.hexagram-display h2{margin:0;font-family:"Noto Serif TC"}.hex-lines{display:flex;flex-direction:column-reverse;gap:9px;margin:24px auto;width:170px}.hex-line{height:12px;display:flex;gap:14px}.hex-line.yang{background:#f5d56e}.hex-line.yin:before,.hex-line.yin:after{content:"";flex:1;background:#f5d56e}.cast-log{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.coin{padding:10px;border-radius:10px;background:#f7ebc8;border:1px solid #e3c77d;text-align:center;font-weight:700}.gua-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.gua-card{padding:14px;border:1px solid var(--line);border-radius:13px;background:#fff}.gua-card strong{color:var(--temple-red)}
.mascot-widget{position:fixed;right:18px;bottom:18px;z-index:1600;display:grid;justify-items:end;pointer-events:none}.mascot-bubble{max-width:280px;background:#fff;color:#3b2c22;border:2px solid #e8c766;border-radius:16px 16px 4px 16px;padding:11px 13px;box-shadow:0 12px 30px rgba(35,18,6,.2);margin-bottom:8px;opacity:0;transform:translateY(8px);transition:.25s;pointer-events:auto}.mascot-bubble.show{opacity:1;transform:none}.mascot-character{width:116px;max-height:172px;object-fit:contain;filter:drop-shadow(0 9px 12px rgba(34,16,4,.28));cursor:pointer;animation:mascotBob 3.6s ease-in-out infinite;pointer-events:auto;user-select:none;-webkit-user-drag:none}.mascot-label{font-size:.72rem;background:rgba(88,19,22,.92);color:#fff;padding:3px 9px;border-radius:999px;margin:0 10px 5px 0;pointer-events:auto}.pwa-add{margin-top:5px;margin-right:2px;border:0;border-radius:999px;padding:7px 11px;background:#fff3c7;color:#6b4110;font-size:.78rem;font-weight:800;box-shadow:0 6px 18px rgba(40,20,8,.16);cursor:pointer;pointer-events:auto}@keyframes mascotBob{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-8px) rotate(1deg)}}
.site-footer{background:linear-gradient(120deg,#2f201a,#4a1d1d);color:#f3e8d8;margin-top:30px}.site-footer .inner{padding:34px 0}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:28px}.site-footer a{color:#f7d789}.site-footer h3{color:#fff;margin-top:0}.copyright{border-top:1px solid rgba(255,255,255,.15);padding-top:16px;margin-top:22px;font-size:.88rem;color:#d1c3b5}.external-site-note{font-size:.9rem;color:#d0c2b7}
.admin-shell{width:min(1100px,calc(100% - 30px));margin:30px auto}.admin-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.admin-nav a{padding:8px 12px;border-radius:9px;background:#f2e4bd;color:#612127;font-weight:700}.admin-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}.admin-table{width:100%;border-collapse:collapse;min-width:900px}.admin-table th,.admin-table td{padding:10px;border-bottom:1px solid #eee0c7;text-align:left;vertical-align:top}.admin-table th{background:#7e1a1f;color:#fff}.admin-actions{display:flex;gap:6px;flex-wrap:wrap}.mini-btn{border:0;border-radius:8px;padding:6px 9px;cursor:pointer;font-size:.85rem}.mini-btn.red{background:#8b1e22;color:#fff}.mini-btn.gray{background:#e9e1d5;color:#4a4038}.mini-btn.jade{background:#2f735b;color:#fff}
@media(max-width:980px){.site-header .inner{min-height:74px}.nav-toggle{display:block}.site-nav{display:none;position:absolute;left:0;right:0;top:74px;background:#fffaf0;border-bottom:1px solid var(--line);padding:12px 18px;box-shadow:0 12px 28px rgba(0,0,0,.1)}.site-nav.open{display:block}.site-nav ul{display:grid;grid-template-columns:repeat(2,1fr)}.brand-logo{width:52px;height:52px}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-grid{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1fr .55fr}.hero-mascot img{max-height:320px}.footer-grid{grid-template-columns:1fr 1fr}.footer-grid>div:first-child{grid-column:1/-1}.date-grid{grid-template-columns:repeat(5,1fr)}.gua-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){body{font-size:15px}.inner{width:min(100% - 24px,var(--max))}.site-topbar .inner{display:block;text-align:center}.site-topbar .inner span:last-child{display:none}.brand-text strong{font-size:1.08rem}.brand-text span{font-size:.72rem}.site-nav ul{grid-template-columns:1fr}.site-main{width:100%;margin:0;border-radius:0;border-left:0;border-right:0}.hero{grid-template-columns:1fr;padding:30px 20px}.hero-mascot{order:-1}.hero-mascot img{max-height:230px}.hero-copy{text-align:center}.hero-actions{display:grid}.btn{width:100%}.section{padding:30px 16px}.section-heading{display:block}.card-grid,.info-grid,.footer-grid,.form-grid,.prayer-page,.hex-cast{grid-template-columns:1fr}.field.full{grid-column:auto}.footer-grid>div:first-child{grid-column:auto}.stat-grid{grid-template-columns:1fr 1fr}.date-grid{grid-template-columns:repeat(3,1fr)}.gua-grid{grid-template-columns:repeat(2,1fr)}.search-bar{display:grid}.search-bar input,.search-bar select,.search-bar .btn{width:100%}.prayer-card dl{grid-template-columns:84px 1fr}.mascot-widget{right:9px;bottom:10px}.mascot-character{width:88px;max-height:130px}.mascot-bubble{max-width:min(260px,calc(100vw - 32px));font-size:.9rem}.legacy-content{padding:16px}.legacy-content table[width]{width:100%!important}.legacy-content td[width]{width:auto!important}.legacy-content img[width]{max-width:100%!important;height:auto!important}}
@media(max-width:420px){.brand-logo{width:46px;height:46px}.brand-text span{display:none}.stat-grid{grid-template-columns:1fr}.date-grid{grid-template-columns:repeat(2,1fr)}.gua-grid{grid-template-columns:1fr}}

/* v2.2 */
.brand-svg{min-width:190px}.brand-logo-wide{width:196px;height:auto;display:block}.site-header .inner{min-height:78px}.site-nav a{font-size:.88rem;padding:9px 8px}
.compact-hero{grid-template-columns:1fr .42fr}.birthday-picker{display:grid;grid-template-columns:repeat(4,minmax(90px,1fr)) auto;gap:8px;margin-top:7px}.birthday-picker select{min-width:0}.admin-prayer-preview{margin-bottom:24px}.admin-prayer-preview h2{color:var(--temple-red)}.admin-full .prayer-card{background:#fff7dc}.admin-full .prayer-card dd{font-weight:600}
.mascot-widget{touch-action:none}.mascot-widget.dragging{opacity:.95}.mascot-character{animation:none!important;will-change:transform;transform-origin:50% 85%}.motion-float{animation:mascotFloat 3.2s ease-in-out infinite!important}.motion-sway{animation:mascotSway 2.8s ease-in-out infinite!important}.motion-bounce{animation:mascotBounce 1.8s ease-in-out 2!important}.motion-bow{animation:mascotBow 2.4s ease-in-out 2!important}.motion-wiggle{animation:mascotWiggle 1.3s ease-in-out 3!important}.motion-peek{animation:mascotPeek 2.6s ease-in-out 2!important}@keyframes mascotFloat{50%{transform:translateY(-10px)}}@keyframes mascotSway{25%{transform:rotate(-4deg)}75%{transform:rotate(4deg)}}@keyframes mascotBounce{50%{transform:translateY(-17px) scale(1.03)}}@keyframes mascotBow{45%{transform:rotate(7deg) translateY(7px) scaleY(.96)}}@keyframes mascotWiggle{25%{transform:translateX(-5px) rotate(-2deg)}75%{transform:translateX(5px) rotate(2deg)}}@keyframes mascotPeek{0%,100%{transform:translateX(0)}45%{transform:translateX(18px) rotate(3deg)}}
.footer-title{margin:0 0 20px;color:#ffe09a;font-family:"Noto Serif TC",serif}.footer-detail{grid-template-columns:1.1fr .7fr 1.6fr}.footer-detail section{padding:18px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:rgba(255,255,255,.035)}.footer-detail p{margin:.5em 0}.footer-warning{color:#ffd4b0;font-weight:700}.load-more-wrap{text-align:center;margin-top:22px}.load-more-wrap .btn{min-width:180px}
.seal-original-intro{padding:26px 30px;background:linear-gradient(135deg,#701318,#9b2828);color:#fff}.seal-original-intro h1{margin:0 0 8px;font-family:"Noto Serif TC"}.seal-original-intro p{margin:0;color:#f8e7d9}.seal-legacy{background:#fff}.seal-legacy table{display:table!important;min-width:720px}.seal-legacy img{height:auto!important}
@media(max-width:980px){.brand-logo-wide{width:170px}.site-nav a{font-size:.95rem}.footer-detail{grid-template-columns:1fr 1fr}.footer-detail section:last-child{grid-column:1/-1}.birthday-picker{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.brand-svg{min-width:145px}.brand-logo-wide{width:155px}.footer-detail{grid-template-columns:1fr}.footer-detail section:last-child{grid-column:auto}.birthday-picker{grid-template-columns:1fr 1fr}.birthday-picker .mini-btn{grid-column:1/-1}.mascot-character{width:82px;height:auto}.seal-original-intro{padding:24px 18px}}

/* v2.3 knowledge pages, seal and fright */
.month-panel{margin:0 0 12px;border:1px solid var(--line);border-radius:14px;background:#fff;padding:12px 14px}.month-panel summary{font-weight:800;color:var(--temple-red);cursor:pointer}.month-panel .date-grid{margin-top:12px}.date-link{position:relative}.date-link.has-event{border-color:#d9bd70;background:linear-gradient(180deg,#fffef9,#fff4cf)}.date-link.has-event small{color:var(--temple-red);font-size:.58rem;margin-left:4px}.result-topline{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:7px}.mini-date{display:inline-flex;padding:3px 9px;border-radius:999px;background:#f3e4bc;color:#7d5412;font-size:.8rem;font-weight:800}.event-count{font-size:.78rem;color:var(--jade);font-weight:800}.event-chip-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}.event-chip{display:inline-flex;padding:4px 9px;border-radius:999px;font-size:.76rem;font-weight:800;background:#f7e7bd;color:#6d4c10;border:1px solid #ead29b}.event-chip.ascension{background:#eaf0fb;color:#38537c;border-color:#cddaf0}.event-chip.cultivation{background:#e7f4ed;color:#25604a;border-color:#c7e1d5}.event-chip.buddhist{background:#f0e9f8;color:#624381;border-color:#ddcfec}.culture-result,.deity-result{transition:.2s}.culture-result:hover,.deity-result:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(84,47,18,.08)}
.knowledge-page{overflow:hidden}.knowledge-hero,.deity-hero{padding:clamp(32px,5vw,62px);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:30px;align-items:center;background:linear-gradient(135deg,#fff9ed,#f9e8bf);border-bottom:1px solid var(--line)}.knowledge-hero h1,.deity-hero h1{font-family:"Noto Serif TC",serif;color:var(--temple-red);font-size:clamp(2rem,4.8vw,3.7rem);line-height:1.2;margin:12px 0}.knowledge-hero p,.deity-lead{max-width:780px;color:#5c4b3d;font-size:1.06rem}.back-link{display:inline-block;font-weight:800;color:#805923;margin-bottom:12px}.date-kicker{display:block;color:var(--gold-deep);font-weight:900;letter-spacing:.1em}.lunar-date-medallion{width:170px;height:170px;border-radius:50%;display:grid;grid-template-columns:1fr auto 1fr auto;align-items:center;justify-content:center;gap:3px;padding:28px;background:radial-gradient(circle at 35% 30%,#b8393f,#711419);color:#fff;box-shadow:0 18px 34px rgba(96,27,24,.22);border:8px solid #f0d781}.lunar-date-medallion small{grid-column:1/-1;text-align:center;color:#ffe9a8;font-weight:800;letter-spacing:.18em}.lunar-date-medallion strong{font-family:"Noto Serif TC";font-size:2.5rem;line-height:1}.lunar-date-medallion span{font-size:.9rem;color:#ffe8c0}.holy-day-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.holy-day-card{display:flex;gap:14px;padding:18px;border-radius:16px;background:#fff;border:1px solid var(--line);box-shadow:0 7px 20px rgba(75,42,19,.06)}.holy-day-card.birthday{border-top:4px solid var(--temple-red)}.holy-day-card.ascension{border-top:4px solid #627da7}.holy-day-card.cultivation{border-top:4px solid var(--jade)}.holy-day-card.buddhist{border-top:4px solid #795b98}.holy-icon{width:45px;height:45px;border-radius:13px;display:grid;place-items:center;background:#fff4d6;font-size:1.35rem;flex:0 0 auto}.holy-day-card h3{margin:2px 0 4px;color:var(--temple-red)}.holy-day-card a{font-size:.88rem;font-weight:800}.holy-type{font-size:.76rem;font-weight:900;color:var(--gold-deep);letter-spacing:.08em}.article-body{max-width:920px;margin:auto;font-size:1.03rem;line-height:2}.article-body p{margin:0 0 1.1em}.article-subhead{font-family:"Noto Serif TC";font-size:1.4rem;color:var(--temple-red);margin:2em 0 .7em;padding-left:12px;border-left:4px solid var(--gold)}.related-deity-grid .feature-card{display:block}.deity-mini .pill{margin-bottom:9px}.source-section{padding-top:0}.source-note{border:1px solid #d8caa9;border-radius:16px;padding:18px;background:#fffdf8;color:#64564a}.source-note strong{color:var(--temple-red)}.source-note p{margin:.55em 0}.source-links{display:flex;gap:10px;flex-wrap:wrap}.source-links a{font-weight:800;font-size:.9rem}.date-nav{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.deity-hero{background:radial-gradient(circle at 90% 20%,rgba(213,166,46,.22),transparent 14rem),linear-gradient(135deg,#6e1418,#a1282d);color:#fff}.deity-hero h1{color:#fff}.deity-hero .back-link{color:#ffe391}.deity-hero .deity-lead,.deity-hero .aliases{color:#fff0e4}.eyebrow.solid{background:#f3dfaa;color:#6b4210;border-color:#e6c66e}.deity-symbol{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;border:3px solid #f2d36f;box-shadow:0 0 0 9px rgba(242,211,111,.12);font-family:"Noto Serif TC";font-size:4.4rem;color:#f7da7e}.deity-overview .info-card{max-width:900px;margin:auto}.soft-note{color:var(--muted);font-size:.9rem;border-top:1px dashed #dbc9a7;padding-top:12px}.deity-date-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.deity-date-card{display:flex;gap:15px;align-items:center;padding:17px;border-radius:16px;background:#fff;border:1px solid var(--line);transition:.2s}.deity-date-card:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(65,38,18,.09)}.deity-date-card.birthday{border-left:5px solid var(--temple-red)}.deity-date-card.ascension{border-left:5px solid #627da7}.deity-date-card.cultivation{border-left:5px solid var(--jade)}.deity-date-card.buddhist{border-left:5px solid #795b98}.date-badge{width:70px;height:70px;border-radius:14px;background:#f8edce;display:grid;place-items:center;align-content:center;flex:0 0 auto}.date-badge strong{font-size:1.25rem;color:var(--temple-red)}.date-badge span{font-size:.73rem;color:var(--muted)}.deity-date-card h3{margin:2px 0 3px;color:var(--temple-red);font-size:1.05rem}.deity-date-card p{margin:0;color:var(--muted);font-size:.87rem}.result-with-date .mini-date{margin-bottom:7px}

.seal-page{background:#fff}.seal-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(220px,.6fr);gap:28px;align-items:center;padding:clamp(36px,6vw,72px);background:radial-gradient(circle at 80% 25%,rgba(247,216,121,.19),transparent 14rem),linear-gradient(135deg,#5d1014,#951e24);color:#fff}.seal-hero h1{font-family:"Noto Serif TC";font-size:clamp(2.2rem,5vw,4rem);line-height:1.15;margin:14px 0}.seal-hero h1 span{color:#f7d978}.seal-hero p{max-width:740px;color:#f9eade}.seal-stamp-art{display:grid;place-items:center}.stamp-square{width:210px;height:210px;border:10px double #f1cf69;color:#f3d373;display:grid;place-items:center;text-align:center;grid-template-columns:1fr 1fr;font-family:"DFKai-SB","Noto Serif TC",serif;font-weight:900;font-size:3.2rem;line-height:1.2;padding:18px;transform:rotate(-3deg);box-shadow:0 16px 30px rgba(0,0,0,.2)}.seal-feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.seal-feature{background:#fff;border:1px solid var(--line);border-radius:16px;padding:19px}.seal-feature>strong{font-family:"Noto Serif TC";font-size:1.7rem;color:#d8b247}.seal-feature h3{margin:5px 0;color:var(--temple-red)}.seal-feature p{margin:0;color:var(--muted)}.seal-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.seal-plan{border:1px solid #ddcbaa;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 8px 22px rgba(84,47,18,.06)}.seal-plan header{padding:18px 20px;background:#f8edce;border-bottom:1px solid #e6d2a7}.seal-plan.featured header{background:#f7e2ed}.seal-plan.wealth header{background:#fde5d2}.seal-plan header span{font-size:.8rem;color:#786142;font-weight:800}.seal-plan h3{margin:3px 0 0;color:var(--temple-red);font-family:"Noto Serif TC";font-size:1.5rem}.seal-plan ul{margin:0;padding:18px 38px 8px}.seal-plan li{margin-bottom:7px}.price-list{display:grid;gap:7px;padding:12px 20px 20px;border-top:1px dashed #ddcbaa}.price-list b{font-size:1.3rem;color:#b12028}.price-list span{color:#49382b}.price-list em{font-style:normal;color:var(--jade);font-weight:800;margin-top:4px}.seal-legacy{background:#fffdfa;border-radius:16px;border:1px solid var(--line);overflow-x:hidden}.seal-legacy>iframe:first-child{display:none}.seal-legacy iframe[src*="facebook.com/plugins"]{display:none!important}.seal-legacy table{min-width:0!important;width:100%!important;border-collapse:separate!important;border-spacing:0!important;margin:14px 0!important;border:1px solid #ead8b7!important;border-radius:12px!important;overflow:hidden!important;background:#fff!important}.seal-legacy table table{margin:5px 0!important;border-radius:8px!important}.seal-legacy td,.seal-legacy th{width:auto!important;height:auto!important;padding:10px 12px!important;border-color:#ead8b7!important;background:#fff!important;color:#342920!important;vertical-align:top!important}.seal-legacy td[bgcolor="#800000"],.seal-legacy td[bgcolor="#FF0000"]{background:linear-gradient(135deg,#76151a,#9c262b)!important;color:#fff!important;font-weight:800}.seal-legacy td[bgcolor="#800000"] *,.seal-legacy td[bgcolor="#FF0000"] *{color:#fff!important}.seal-legacy td[bgcolor="#FFFF00"],.seal-legacy td[bgcolor="#FFFFCC"],.seal-legacy td[bgcolor="#FFCC00"],.seal-legacy td[bgcolor="#FFFF99"]{background:#fff5d8!important}.seal-legacy td[bgcolor="#FFCCFF"]{background:#fff3fa!important}.seal-legacy td[bgcolor="#CCFFFF"]{background:#f0fbfb!important}.seal-legacy td[bgcolor="#FFCC99"]{background:#fff2e8!important}.seal-legacy font{font-family:inherit!important}.seal-legacy font[size="7"],.seal-legacy font[size="6"]{font-size:1.55rem!important}.seal-legacy font[size="5"]{font-size:1.25rem!important}.seal-legacy img{border-radius:10px;max-width:100%!important}.seal-legacy #table23,.seal-legacy #table28{display:none!important}.seal-legacy a{font-weight:700}.seal-legacy p{max-width:100%}.seal-legacy br+br{line-height:1.4}

.fright-hero{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center;padding:clamp(36px,6vw,68px);background:linear-gradient(135deg,#681318,#9d2429);color:#fff}.fright-hero h1{font-family:"Noto Serif TC";font-size:clamp(2.5rem,6vw,4.5rem);margin:12px 0}.fright-hero p{max-width:700px;color:#f8e9dc}.fright-symbol{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;border:3px solid #f1d177;color:#f5d77a;font-family:"Noto Serif TC";font-size:4rem;box-shadow:0 0 0 10px rgba(241,209,119,.12)}.fright-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.fright-steps article{display:flex;gap:13px;padding:20px;border:1px solid var(--line);border-radius:16px;background:#fff}.fright-steps article>span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--temple-red);color:#fff;font-weight:900;flex:0 0 auto}.fright-steps h3{margin:0 0 5px;color:var(--temple-red)}.fright-steps p{margin:0;color:var(--muted)}.fright-location{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px;border:1px solid var(--line);border-radius:16px;background:#fffaf0}.fright-location h3{margin:0;color:var(--temple-red)}.fright-location p{margin:.35em 0}.free-service{text-align:center;max-width:740px;margin:auto}.free-service span{display:inline-flex;padding:5px 12px;border-radius:999px;background:#f3dfaa;color:#755016;font-weight:800}.free-service h2{font-family:"Noto Serif TC";color:var(--temple-red);font-size:2.3rem;margin:12px 0}.free-service p{font-size:1.08rem;color:var(--muted)}

@media(max-width:980px){.holy-day-grid{grid-template-columns:repeat(2,1fr)}.seal-feature-grid{grid-template-columns:repeat(2,1fr)}.seal-plan-grid{grid-template-columns:1fr}.deity-date-list{grid-template-columns:1fr}}
@media(max-width:700px){.knowledge-hero,.deity-hero,.seal-hero,.fright-hero{grid-template-columns:1fr;text-align:left}.lunar-date-medallion,.deity-symbol,.fright-symbol{display:none}.holy-day-grid{grid-template-columns:1fr}.date-nav{display:grid}.seal-stamp-art{display:none}.seal-feature-grid,.fright-steps{grid-template-columns:1fr}.seal-legacy{padding:10px!important}.seal-legacy table{display:block!important;overflow-x:auto!important}.seal-legacy table table{display:table!important;overflow:visible!important}.seal-legacy td,.seal-legacy th{min-width:140px}.seal-legacy table tr{max-width:100%}.fright-location{display:grid}.result-topline{align-items:flex-start}.event-count{white-space:nowrap}.deity-date-card{align-items:flex-start}}

/* V2.3 - 神明聖誕／重要日月曆 */
.holy-overview{background:linear-gradient(180deg,#fffaf0 0%,#fff 100%)}
.holy-month-tabs{display:grid;grid-template-columns:repeat(12,minmax(48px,1fr));gap:8px;margin:18px 0 24px}
.holy-month-tabs a{display:flex;align-items:center;justify-content:center;min-height:42px;padding:7px 5px;border:1px solid rgba(139,30,34,.18);border-radius:999px;background:#fff;color:#6d2526;font-weight:800;text-decoration:none;box-shadow:0 4px 14px rgba(67,35,17,.05)}
.holy-month-tabs a:hover,.holy-month-tabs a.active{background:#8b1e22;color:#fff;border-color:#8b1e22;transform:translateY(-1px)}
.holy-timeline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.holy-timeline-item{display:grid;grid-template-columns:86px 1fr;gap:15px;align-items:stretch;background:#fff;border:1px solid rgba(116,72,28,.12);border-left:5px solid #c89d39;border-radius:18px;padding:14px;box-shadow:0 8px 26px rgba(73,44,15,.06)}
.holy-timeline-item.ascension{border-left-color:#5a7c96}.holy-timeline-item.cultivation{border-left-color:#59795c}.holy-timeline-item.buddhist{border-left-color:#9d6a98}
.holy-timeline-date{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:78px;border-radius:14px;background:#f8f1df;color:#75282a;text-decoration:none}
.holy-timeline-date strong{font:800 1.25rem/1.1 "Noto Serif TC",serif}.holy-timeline-date span{margin-top:4px;font-size:.76rem;color:#8c765e}
.holy-timeline-body{min-width:0}.holy-timeline-body h3{margin:4px 0 8px;font-size:1.05rem;color:#3a2818}.holy-timeline-actions{display:flex;flex-wrap:wrap;gap:12px}.holy-timeline-actions a{font-size:.88rem;font-weight:800;color:#8b1e22;text-decoration:none}.holy-timeline-actions a:hover{text-decoration:underline}
@media(max-width:900px){.holy-month-tabs{grid-template-columns:repeat(6,1fr)}.holy-timeline{grid-template-columns:1fr}}
@media(max-width:560px){.holy-month-tabs{grid-template-columns:repeat(4,1fr)}.holy-timeline-item{grid-template-columns:72px 1fr;padding:11px;gap:11px}.holy-timeline-date{min-height:70px}.holy-timeline-actions{gap:8px 14px}}

/* V2.4 - 宮廟服務、行程、地理位置、靈修、網路問事 */
.page-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center;padding:clamp(34px,6vw,68px);background:radial-gradient(circle at 85% 18%,rgba(255,222,120,.22),transparent 14rem),linear-gradient(135deg,#641116,#941f25 62%,#a8322d);color:#fff}.page-hero h1{font:900 clamp(2.4rem,5vw,4.2rem)/1.12 "Noto Serif TC",serif;margin:12px 0}.page-hero p{max-width:760px;color:#faece1;font-size:1.06rem}.page-hero .eyebrow.solid{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.18);color:#ffe6a0}.hero-emblem{width:148px;height:148px;border-radius:50%;display:grid;place-items:center;border:3px solid #f2d173;box-shadow:0 0 0 10px rgba(242,209,115,.12);color:#f5d77a;font:900 3.7rem/1 "Noto Serif TC",serif}.calendar-frame{position:relative;width:100%;min-height:640px;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 12px 28px rgba(73,42,17,.08)}.calendar-frame iframe{display:block;width:100%!important;height:640px!important}.location-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.location-card{border:1px solid var(--line);border-radius:18px;background:linear-gradient(155deg,#fff,#fff8e9);padding:24px}.location-card h2{margin:10px 0 8px;color:var(--temple-red);font-family:"Noto Serif TC",serif}.location-card p{margin:.5em 0}.location-address{font-size:1.12rem;font-weight:800}.route-map-image{display:block;border:1px solid var(--line);border-radius:18px;background:#fff;padding:12px;box-shadow:0 12px 28px rgba(72,39,15,.08)}.route-map-image img{display:block;width:100%;height:auto;border-radius:12px}.poem-card{max-width:900px;margin:auto;text-align:center;border:1px solid #dfc78e;border-radius:22px;padding:clamp(24px,5vw,46px);background:radial-gradient(circle at 50% 0,rgba(225,186,80,.15),transparent 16rem),#fffaf0;box-shadow:0 14px 34px rgba(75,43,16,.08)}.poem-card>span{display:inline-flex;padding:5px 12px;border-radius:999px;background:#f2dfac;color:#755018;font-weight:800}.poem-card blockquote{margin:18px 0 0;color:#6e171c;font:700 clamp(1.2rem,2.8vw,1.7rem)/2 "Noto Serif TC",serif}.practice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.practice-grid article{display:grid;gap:6px;padding:20px;border:1px solid var(--line);border-radius:16px;background:#fff;text-align:center}.practice-grid strong{font-size:1.2rem;color:var(--temple-red)}.practice-grid span{font-weight:800}.practice-grid em{font-style:normal;color:#765d3d;background:#f6e9c5;border-radius:999px;padding:4px 8px}.practice-grid article.beginner{background:#f1f8f4;border-color:#bed9cb}.practice-grid article.beginner em{background:#dcefe4;color:#2d694f}.service-focus-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.inquiry-rule{display:grid;grid-template-columns:minmax(260px,.65fr) 1fr;gap:26px;align-items:center;padding:24px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(135deg,#fff8e5,#fff)}.rule-months{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.rule-months span{display:grid;place-items:center;aspect-ratio:1;border-radius:50%;background:var(--temple-red);color:#fff;font:900 1.4rem/1 "Noto Serif TC",serif;box-shadow:inset 0 0 0 4px rgba(255,224,127,.25)}.inquiry-rule h2{margin:0 0 8px;color:var(--temple-red);font-family:"Noto Serif TC",serif}.inquiry-rule p{margin:0;color:var(--muted)}.admin-shell .stat-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
@media(max-width:980px){.practice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.service-focus-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.inquiry-rule{grid-template-columns:1fr}.rule-months{grid-template-columns:repeat(6,1fr)}}
@media(max-width:700px){.page-hero{grid-template-columns:1fr}.hero-emblem{display:none}.location-grid{grid-template-columns:1fr}.calendar-frame{min-height:560px}.calendar-frame iframe{height:560px!important}.practice-grid,.service-focus-grid{grid-template-columns:1fr}.rule-months{grid-template-columns:repeat(3,1fr)}.poem-card blockquote{line-height:1.8}}
@media(max-width:460px){.calendar-frame{min-height:520px}.calendar-frame iframe{height:520px!important}.rule-months{grid-template-columns:repeat(3,1fr)}}

/* V2.5 - 民俗／神明查核補強 + 開運印章手機版修正 */
.research-section{background:linear-gradient(180deg,#fffdf8 0%,#fff8ea 100%)}
.research-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.research-card{position:relative;padding:20px 20px 18px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(78,43,14,.06);overflow:hidden}
.research-card:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:var(--gold)}
.research-card.research-festival:before{background:var(--temple-red)}
.research-card.research-sacred:before{background:#8b5795}
.research-card.research-guide:before{background:var(--jade)}
.research-card.research-note:before{background:#8b7450}
.research-card.research-month:before{background:#507a9a}
.research-card.research-research:before{background:#6d6d6d}
.research-card h3{margin:0 0 9px;padding-left:2px;color:var(--temple-red);font:800 1.16rem/1.45 "Noto Serif TC","Microsoft JhengHei",serif}
.research-card p{margin:.45em 0 0;color:#4d4036;line-height:1.9}
.deity-research-note{margin-top:18px}
.source-list{margin:12px 0 0;padding-left:1.25rem;display:grid;gap:6px}
.source-list a{font-weight:700}

/* Legacy seal content originally contains desktop-era fixed widths.
   On phones flatten the old tables into readable cards instead of horizontal overflow. */
@media(max-width:700px){
  html,body{max-width:100%;overflow-x:hidden}
  .seal-page{width:calc(100% - 16px)!important;margin:12px auto!important;border-radius:16px}
  .seal-page .section{padding:24px 14px}
  .seal-hero{padding:30px 18px}
  .seal-hero h1{font-size:clamp(2rem,10vw,2.7rem)}
  .seal-hero .hero-actions{display:grid;grid-template-columns:1fr;width:100%}
  .seal-hero .btn{width:100%}
  .seal-feature-grid,.seal-plan-grid{grid-template-columns:1fr!important}
  .seal-plan{min-width:0}
  .seal-plan header,.seal-plan ul,.seal-plan .price-list{padding-left:16px;padding-right:16px}

  .seal-legacy{padding:0!important;overflow:visible!important;border:0;background:transparent}
  .seal-legacy *{max-width:100%!important;box-sizing:border-box!important}
  .seal-legacy table,
  .seal-legacy table table,
  .seal-legacy tbody,
  .seal-legacy thead,
  .seal-legacy tfoot,
  .seal-legacy tr,
  .seal-legacy td,
  .seal-legacy th{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important}
  .seal-legacy table{overflow:visible!important;margin:12px 0!important;border-spacing:0!important;border-collapse:separate!important}
  .seal-legacy tr{margin:0!important}
  .seal-legacy td,.seal-legacy th{padding:11px 12px!important;overflow-wrap:anywhere!important;word-break:break-word!important;white-space:normal!important;text-align:left!important}
  .seal-legacy td[width],.seal-legacy th[width]{width:100%!important;min-width:0!important}
  .seal-legacy p,.seal-legacy div,.seal-legacy span,.seal-legacy b,.seal-legacy strong,.seal-legacy font{max-width:100%!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  .seal-legacy p[align="right"],.seal-legacy p[align="center"]{text-align:left!important}
  .seal-legacy img[width],.seal-legacy img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;margin:8px auto!important;object-fit:contain}
  .seal-legacy iframe{max-width:100%!important}
  .seal-legacy iframe[src*="youtube"]{width:100%!important;aspect-ratio:16/9!important;height:auto!important}
  .seal-legacy font[size="7"],.seal-legacy font[size="6"]{font-size:1.35rem!important;line-height:1.45!important}
  .seal-legacy font[size="5"]{font-size:1.15rem!important;line-height:1.5!important}
  .seal-legacy font[size="4"]{font-size:1rem!important}
  .seal-legacy [style*="WIDTH"],.seal-legacy [style*="width"]{max-width:100%!important}
  .seal-legacy br+br{line-height:1.15}
  .research-grid{grid-template-columns:1fr}
}
@media(max-width:420px){
  .seal-page .section{padding:20px 11px}
  .seal-legacy td,.seal-legacy th{padding:10px!important}
  .seal-plan h3{font-size:1.3rem}
  .price-list b{font-size:1.16rem}
}


/* V2.6 - 線上服務分類、銅錢起卦儀式、三聖筊抽籤詩 */
.site-nav>ul>li{position:relative}.nav-group{display:flex;align-items:center}.nav-group-link{padding-right:4px!important}.nav-sub-toggle{border:0;background:transparent;color:#6a4b31;padding:9px 7px 9px 3px;font-size:1rem;cursor:pointer;border-radius:8px}.nav-group.active>.nav-group-link,.nav-group:focus-within>.nav-group-link{background:#f0dfb8;color:var(--temple-red)}.subnav{position:absolute!important;top:calc(100% + 10px);left:0;display:none!important;min-width:220px;padding:8px!important;background:#fffaf0;border:1px solid #e0c895;border-radius:14px;box-shadow:0 16px 34px rgba(60,30,10,.16);z-index:1500}.nav-group:hover>.subnav,.nav-group:focus-within>.subnav,.nav-group.sub-open>.subnav{display:grid!important;gap:3px}.subnav:before{content:"";position:absolute;top:-9px;left:28px;width:16px;height:16px;background:#fffaf0;border-left:1px solid #e0c895;border-top:1px solid #e0c895;transform:rotate(45deg)}.site-nav .subnav a{display:flex;align-items:center;gap:10px;padding:11px 12px!important;border-radius:10px;font-size:.92rem}.site-nav .subnav a[aria-current="page"]{background:var(--temple-red);color:#fff}.subnav-icon{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:#f2e4bd;color:#7a1d21;font-weight:900;flex:0 0 auto}.subnav a[aria-current="page"] .subnav-icon{background:rgba(255,255,255,.17);color:#fff}
.online-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.online-service-card{position:relative;display:block;padding:28px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 10px 28px rgba(78,43,14,.07);overflow:hidden;transition:.25s}.online-service-card:before{content:"";position:absolute;inset:0 0 auto;height:5px;background:var(--gold)}.online-service-card.prayer:before{background:#b53a45}.online-service-card.divination:before{background:#bc8e27}.online-service-card.inquiry:before{background:#4f806e}.online-service-card.lottery:before{background:#7c4c83}.online-service-card:hover{transform:translateY(-4px);box-shadow:0 18px 38px rgba(78,43,14,.12)}.ritual-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:#f6e8bd;color:var(--temple-red);font:900 1.8rem/1 "Noto Serif TC",serif;margin-bottom:15px}.service-kicker{display:block;color:#9a6d19;font-size:.78rem;font-weight:800;letter-spacing:.08em}.online-service-card h2{margin:5px 0 9px;color:var(--temple-red);font-family:"Noto Serif TC",serif}.online-service-card p{margin:0;color:var(--muted);line-height:1.8}.service-enter{display:inline-flex;margin-top:18px;font-weight:800;color:var(--temple-red)}.online-home-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.ritual-compare{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ritual-compare article{display:grid;grid-template-columns:58px 1fr;gap:15px;align-items:center;padding:18px;border:1px solid var(--line);border-radius:18px;background:#fff}.ritual-compare article.active{border-color:#d4ac4a;background:#fff9e8;box-shadow:inset 0 0 0 1px #ebd294}.ritual-compare h3{margin:0 0 4px;color:var(--temple-red)}.ritual-compare p{margin:0;color:var(--muted)}.compare-symbol{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#f5e5b6;font-size:1.55rem}.compare-symbol.jiao{background:#8f1f24;color:#ffe8a2;font:900 1.3rem/1 "Noto Serif TC",serif}.ritual-compare.compact{margin:0}
/* Coin ritual */
.ritual-cast .form-card{overflow:hidden}.coin-ritual{display:flex;justify-content:center;gap:clamp(14px,4vw,32px);padding:20px 0 24px;perspective:900px}.ritual-coin{width:88px;height:88px;border-radius:50%;display:grid;place-items:center;position:relative;background:radial-gradient(circle at 35% 30%,#f9df83,#c59425 62%,#8b5d10);border:5px double #6f4610;box-shadow:inset 0 0 0 7px rgba(255,229,147,.25),0 8px 18px rgba(68,40,7,.16);transform-style:preserve-3d}.ritual-coin:before{content:"";position:absolute;width:24px;height:24px;border-radius:4px;background:#fff9e8;border:4px solid #855a19;box-shadow:inset 0 0 4px rgba(61,36,4,.35)}.coin-face{position:absolute;bottom:8px;font-size:.72rem;font-weight:900;color:#5a3507}.ritual-coin.tossing{animation:coinToss .75s cubic-bezier(.2,.8,.2,1)}@keyframes coinToss{0%{transform:translateY(0) rotateX(0) rotateY(0)}45%{transform:translateY(-45px) rotateX(540deg) rotateY(240deg)}100%{transform:translateY(0) rotateX(900deg) rotateY(360deg)}}.cast-instruction{text-align:center;font-weight:800;color:#76531c;margin:0 0 12px}.cast-step-count{display:inline-flex;margin-top:6px;padding:4px 11px;border-radius:999px;background:rgba(255,255,255,.12);color:#ffe69b;font-weight:800}.cast-record{display:grid!important;gap:3px}.cast-record span{font-size:.84rem}.cast-record small{color:#806d54}.hex-line.moving{box-shadow:0 0 0 2px rgba(255,255,255,.34),0 0 16px rgba(245,213,110,.6)}.gua-card.selected{outline:3px solid rgba(213,166,46,.45);background:#fff8df}
/* Lottery ritual */
.lottery-ritual{max-width:900px;margin:auto}.ritual-stage{position:relative;border:1px solid #dfc78d;border-radius:24px;background:radial-gradient(circle at 50% 0,rgba(216,168,47,.16),transparent 19rem),#fffdf7;padding:clamp(20px,4vw,38px);box-shadow:0 18px 42px rgba(66,36,11,.09)}.ritual-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:28px}.ritual-progress span{position:relative;text-align:center;padding:8px 6px;border-radius:999px;background:#eee6d8;color:#8a7a68;font-size:.82rem;font-weight:800}.ritual-progress span.active{background:var(--temple-red);color:#fff}.ritual-progress span.done{background:#e9d39a;color:#6c4d0a}.lot-step{display:none;text-align:center;animation:ritualFade .35s ease}.lot-step.active{display:block}@keyframes ritualFade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.lot-step h2{font-family:"Noto Serif TC",serif;color:var(--temple-red);margin:10px 0}.lot-step>p{max-width:680px;margin:0 auto 20px;color:var(--muted);line-height:1.85}.lot-step .field{text-align:left;max-width:650px;margin:20px auto}.altar-mark{width:120px;height:120px;border-radius:50%;margin:auto;display:grid;place-items:center;background:radial-gradient(circle,#a9262d,#671116);color:#ffe49b;border:4px double #e0b64e;box-shadow:0 0 0 10px rgba(197,151,39,.1);font:900 1.25rem/1.4 "Noto Serif TC",serif}.lot-tube{position:relative;width:190px;height:250px;margin:10px auto 20px;border:0;background:transparent;cursor:pointer;display:block}.lot-tube:after{content:"";position:absolute;left:28px;right:28px;bottom:4px;height:188px;border-radius:15px 15px 42px 42px;background:linear-gradient(90deg,#6c1116,#a92b2f 45%,#79161a);border:5px double #dbae42;box-shadow:0 14px 26px rgba(61,25,8,.2)}.lot-tube strong{position:absolute;z-index:3;left:0;right:0;bottom:84px;color:#ffdf82;font:900 1.7rem/1 "Noto Serif TC",serif}.lot-tube small{position:absolute;z-index:3;left:0;right:0;bottom:58px;color:#fff1c5}.tube-sticks{position:absolute;z-index:1;left:43px;right:43px;top:0;height:95px;display:flex;justify-content:center;gap:4px}.tube-sticks i{width:10px;height:100px;border-radius:4px 4px 0 0;background:linear-gradient(90deg,#e3ba59,#fff0ad,#b78325);border:1px solid #8f6317;transform-origin:bottom}.tube-sticks i:nth-child(1){transform:rotate(-9deg)}.tube-sticks i:nth-child(2){transform:rotate(-4deg) translateY(-10px)}.tube-sticks i:nth-child(4){transform:rotate(5deg) translateY(-7px)}.tube-sticks i:nth-child(5){transform:rotate(10deg)}.lot-tube.shaking{animation:tubeShake .16s linear 6}@keyframes tubeShake{0%,100%{transform:rotate(0)}25%{transform:rotate(-4deg)}75%{transform:rotate(4deg)}}.candidate-lot{max-width:520px;margin:0 auto;padding:16px;border:1px solid #dcc078;border-radius:15px;background:#fff8df}.candidate-lot span,.candidate-lot small{display:block;color:#7c6a55}.candidate-lot strong{display:block;margin:4px 0;color:var(--temple-red);font:900 1.35rem/1.4 "Noto Serif TC",serif}.sheng-count{display:flex;justify-content:center;gap:10px;margin:22px 0}.sheng-count span{padding:8px 13px;border-radius:999px;background:#eee6d8;color:#8a7966;font-weight:800}.sheng-count span.ok{background:#2f7257;color:#fff}.jiaobei-stage{display:flex;justify-content:center;gap:34px;min-height:160px;align-items:center;perspective:800px}.jiaobei{position:relative;width:72px;height:122px;border-radius:72px 18px 72px 18px;background:linear-gradient(145deg,#b72e34,#7b151a);border:3px solid #671014;box-shadow:0 10px 20px rgba(63,19,8,.16);transform:rotate(-15deg)}.jiaobei.right{transform:scaleX(-1) rotate(-15deg)}.jiaobei span{position:absolute;inset:9px;border-radius:60px 13px 60px 13px;background:linear-gradient(140deg,#e9b649,#8d6115);opacity:.2}.jiaobei.flat span{opacity:1}.jiaobei.round span{opacity:.08}.jiaobei.flat{box-shadow:inset 0 0 0 3px #f0c75d,0 10px 20px rgba(63,19,8,.16)}.jiaobei.tossing{animation:jiaoToss .72s cubic-bezier(.2,.75,.25,1)}.jiaobei.right.tossing{animation-name:jiaoTossRight}@keyframes jiaoToss{0%{transform:rotate(-15deg) translateY(0)}45%{transform:rotate(500deg) translateY(-55px)}100%{transform:rotate(705deg) translateY(0)}}@keyframes jiaoTossRight{0%{transform:scaleX(-1) rotate(-15deg) translateY(0)}45%{transform:scaleX(-1) rotate(480deg) translateY(-55px)}100%{transform:scaleX(-1) rotate(705deg) translateY(0)}}.jiao-status{min-height:34px;margin:4px 0 14px;font-size:1.05rem;color:#6a5844}.jiao-status strong{color:var(--temple-red)}.three-sheng{display:inline-flex;padding:7px 16px;border-radius:999px;background:#e2f1e9;color:#256247;font-weight:900}.lot-result{max-width:560px;margin:20px auto;padding:26px;border-radius:20px;border:2px solid #d7b45a;background:linear-gradient(180deg,#fffdf6,#fff4d4);box-shadow:0 13px 30px rgba(79,45,13,.1)}.lot-number{font-weight:900;color:#9b7220}.lot-result h3{margin:5px 0 16px;font:900 1.6rem/1.3 "Noto Serif TC",serif;color:var(--temple-red)}.lot-poem{padding:18px 8px;border-top:1px solid #ead49a;border-bottom:1px solid #ead49a}.lot-poem p{margin:.45rem 0;font:700 clamp(1.15rem,3vw,1.45rem)/1.7 "Noto Serif TC",serif;color:#3f2c1e}.lot-source-note{font-size:.82rem;color:#82715c;margin:14px 0 0}
@media(max-width:1100px){.online-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.nav-group{display:grid;grid-template-columns:1fr auto}.nav-group-link{padding:10px!important}.nav-sub-toggle{display:block}.subnav{position:static!important;grid-column:1/-1;min-width:0;margin:0 0 4px;padding:5px 0 5px 16px!important;border:0;border-radius:0;background:transparent;box-shadow:none}.subnav:before{display:none}.nav-group:hover>.subnav,.nav-group:focus-within>.subnav{display:none!important}.nav-group.sub-open>.subnav{display:grid!important}.site-nav .subnav a{background:#f7ecd0}.site-nav .subnav a[aria-current="page"]{background:var(--temple-red)}.online-service-grid{grid-template-columns:1fr 1fr}}
@media(min-width:981px){.nav-sub-toggle{display:none}}
@media(max-width:700px){.online-service-grid,.online-home-grid,.ritual-compare{grid-template-columns:1fr}.online-service-card{padding:22px}.ritual-compare article{grid-template-columns:52px 1fr}.coin-ritual{gap:12px}.ritual-coin{width:72px;height:72px}.ritual-progress{grid-template-columns:repeat(2,1fr)}.jiaobei-stage{gap:24px}.jiaobei{width:62px;height:105px}.lot-result{padding:20px 14px}.cast-log{grid-template-columns:1fr 1fr}}
@media(max-width:420px){.coin-ritual{gap:8px}.ritual-coin{width:64px;height:64px;border-width:4px}.ritual-coin:before{width:19px;height:19px}.cast-log{grid-template-columns:1fr}.sheng-count{gap:5px}.sheng-count span{padding:7px 9px;font-size:.78rem}.ritual-stage{padding:18px 12px}.ritual-progress span{font-size:.75rem}}

/* ===== V2.7 Lottery selection + category fortune ===== */
.lot-choice-block{max-width:760px;margin:24px auto;text-align:left;padding:20px;border:1px solid #ead8aa;border-radius:18px;background:#fffaf0}.lot-choice-block h3{margin:0 0 14px;color:#6f4215;font-size:1rem}.lot-system-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.lot-system-card{position:relative;display:flex;flex-direction:column;gap:5px;padding:16px 18px;border:2px solid #e3d4b3;border-radius:16px;background:#fff;cursor:pointer;transition:.2s}.lot-system-card:hover{border-color:#c99b34;transform:translateY(-1px)}.lot-system-card.selected{border-color:var(--temple-red);background:#fff5e9;box-shadow:0 0 0 3px rgba(142,29,35,.08)}.lot-system-card input{position:absolute;opacity:0;pointer-events:none}.lot-system-card strong{font:900 1.08rem/1.3 "Noto Serif TC",serif;color:var(--temple-red)}.lot-system-card span{font-size:.84rem;color:var(--muted)}.lot-category-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.lot-category-grid label{cursor:pointer}.lot-category-grid input{position:absolute;opacity:0;pointer-events:none}.lot-category-grid span{display:block;text-align:center;padding:10px 6px;border:1px solid #ddceb1;border-radius:999px;background:#fff;color:#654f39;font-weight:800;transition:.18s}.lot-category-grid input:checked+span{background:var(--temple-red);border-color:var(--temple-red);color:#fff;box-shadow:0 5px 14px rgba(119,25,29,.18)}.lot-load-status{min-height:1.25em;margin:10px 2px 0;font-size:.84rem;color:#765e45}.lot-load-status.loading{color:#8b681d}.lot-load-status.ok{color:#2d7256}.lot-load-status.error{color:#a12429}.selected-query-chip{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 auto 10px;padding:7px 12px;border-radius:999px;background:#f4e6bf;color:#6b4a13;font-size:.82rem}.selected-query-chip strong{color:var(--temple-red)}.lot-result{max-width:680px}.lot-result-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;text-align:left}.lot-result-head h3{text-align:left;margin:5px 0}.lot-grade{display:inline-block;font-size:.8rem;color:#74624e}.lot-overall{flex:0 0 94px;min-height:82px;border-radius:18px;display:grid;place-items:center;align-content:center;text-align:center;border:1px solid #d6c8a7;background:#fff}.lot-overall small{display:block;color:#7e6f5c;font-size:.72rem}.lot-overall strong{font:900 1.3rem/1.2 "Noto Serif TC",serif}.lot-overall.great,.category-fortune.great{background:#8a1e24;color:#fff;border-color:#8a1e24}.lot-overall.good,.category-fortune.good{background:#eaf5ee;color:#276b4d;border-color:#a9d3bb}.lot-overall.neutral,.category-fortune.neutral{background:#fff7dc;color:#7b5b13;border-color:#e0c675}.lot-overall.caution,.category-fortune.caution{background:#fff0dd;color:#9a5b13;border-color:#e4b16c}.lot-overall.bad,.category-fortune.bad{background:#f9e8e8;color:#912c32;border-color:#dda5a8}.lot-overall.great small{color:#ffe5a1}.category-fortune{margin:18px 0;padding:18px;border-radius:17px;border:1px solid}.category-fortune>span{display:block;font-size:.76rem;font-weight:800;letter-spacing:.08em;opacity:.8}.category-fortune>strong{display:block;margin:3px 0 6px;font:900 clamp(1.35rem,4vw,1.75rem)/1.35 "Noto Serif TC",serif}.category-fortune p{margin:0;line-height:1.7}.lot-interpret{text-align:left;margin-top:18px;padding:18px;border-radius:16px;background:#fff;border:1px solid #ead49a}.lot-interpret h4{margin:0 0 10px;color:var(--temple-red);font-family:"Noto Serif TC",serif}.lot-interpret p{margin:8px 0;line-height:1.8;color:#574636}.asked-question{padding-top:10px;border-top:1px dashed #dccca5}

/* ===== V2.7 Divination modal ===== */
.center-action{text-align:center;margin-top:28px}.btn-large{padding:14px 24px;font-size:1.02rem}.divination-intro-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.divination-intro-grid .info-card{position:relative}.step-badge{display:inline-grid;place-items:center;width:40px;height:40px;margin-bottom:10px;border-radius:50%;background:#8a1e24;color:#ffe6a0;font-weight:900}.modal-open{overflow:hidden}.divination-modal{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;padding:24px}.divination-modal.open{display:flex}.divination-backdrop{position:absolute;inset:0;background:rgba(28,18,10,.72);backdrop-filter:blur(4px)}.divination-dialog{position:relative;z-index:1;width:min(980px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;border:1px solid #d6b96b;border-radius:26px;background:radial-gradient(circle at 50% 0,rgba(211,166,47,.13),transparent 28rem),#fffdf8;box-shadow:0 28px 80px rgba(0,0,0,.32);padding:clamp(22px,4vw,40px);overscroll-behavior:contain}.divination-close{position:absolute;right:16px;top:14px;width:42px;height:42px;border:0;border-radius:50%;background:#f1e8d8;color:#704b27;font-size:1.7rem;line-height:1;cursor:pointer}.divination-dialog-head{text-align:center;padding:0 44px 18px}.divination-dialog-head h2{margin:4px 0 8px;color:var(--temple-red);font:900 clamp(1.55rem,4vw,2.05rem)/1.3 "Noto Serif TC",serif}.divination-dialog-head p{margin:0;color:var(--muted)}.div-modal-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:620px;margin:0 auto 28px}.div-modal-progress span{text-align:center;padding:8px;border-radius:999px;background:#eee6d8;color:#887765;font-size:.82rem;font-weight:800}.div-modal-progress span.active{background:var(--temple-red);color:#fff}.div-modal-progress span.done{background:#e5d092;color:#644811}.div-modal-step{display:none;animation:ritualFade .35s ease}.div-modal-step.active{display:block}.div-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.div-modal-step .field{margin:0 0 16px}.div-modal-step .field input,.div-modal-step .field select,.div-modal-step .field textarea{width:100%;box-sizing:border-box}.divination-oath{margin:4px 0 20px;padding:16px 18px;border-left:4px solid #ba8a23;border-radius:0 14px 14px 0;background:#fff7df}.divination-oath strong{color:var(--temple-red)}.divination-oath p{margin:4px 0 0;color:#64523e}.casting-focus{text-align:center}.cast-round{display:inline-block;padding:6px 13px;border-radius:999px;background:#f3e4ba;color:#775514;font-weight:900}.casting-focus h3{margin:10px 0 4px;color:var(--temple-red);font-family:"Noto Serif TC",serif}.casting-focus p{margin:0;color:var(--muted)}.divination-coins{padding:32px 0}.six-line-progress{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:4px 0 18px}.six-line-progress span{display:grid;gap:6px;justify-items:center;color:#958675;font-size:.73rem;font-weight:800}.six-line-progress i{display:block;width:100%;height:6px;border-radius:999px;background:#e6ddd0}.six-line-progress span.done{color:#6a4b13}.six-line-progress span.done i{background:#c8a03c}.six-line-progress span.moving i{background:#8a1e24;box-shadow:0 0 0 3px rgba(138,30,36,.12)}.divination-cast-log{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.casting-wait{display:flex;justify-content:center;align-items:center;gap:9px;margin-top:18px;color:#765d3d;font-weight:800}.pulse-dot{width:10px;height:10px;border-radius:50%;background:#a72329;animation:pulseCast 1s infinite}@keyframes pulseCast{50%{transform:scale(1.7);opacity:.35}}.divination-result{scroll-margin-top:12px}.hex-result-hero{display:flex;align-items:center;gap:20px;padding:20px;border-radius:20px;background:linear-gradient(135deg,#701419,#a7282e);color:#fff}.hex-big-symbol{font-size:4.4rem;line-height:1;color:#ffe399}.hex-result-hero span{font-size:.76rem;color:#ffe7a6;font-weight:800;letter-spacing:.08em}.hex-result-hero h2{margin:2px 0;font:900 clamp(1.55rem,4vw,2.1rem)/1.25 "Noto Serif TC",serif}.hex-result-hero p{margin:0;color:#f4dfc9}.result-hex-lines{max-width:620px;margin:22px auto;padding:18px;border:1px solid #e2d1a7;border-radius:18px;background:#fff}.result-line-row{display:grid;grid-template-columns:52px 1fr 90px;align-items:center;gap:12px;margin:8px 0;font-size:.8rem;color:#75634d}.result-line-row i{height:9px;position:relative;background:#33291e;border-radius:3px}.result-line-row i.yin{background:linear-gradient(90deg,#33291e 0 43%,transparent 43% 57%,#33291e 57%)}.result-line-row i.moving{box-shadow:0 0 0 3px rgba(176,36,43,.18)}.result-line-row i.moving:after{content:"動";position:absolute;right:-28px;top:-6px;color:#a4262c;font-size:.68rem;font-weight:900}.asked-panel{margin:18px 0;padding:16px 18px;border-radius:16px;background:#fff6dc;border:1px solid #e6ca82}.asked-panel span{display:inline-block;margin-right:8px;padding:4px 9px;border-radius:999px;background:#8a1e24;color:#fff;font-size:.72rem;font-weight:800}.asked-panel strong{color:#6e4618}.asked-panel p{margin:8px 0 0;color:#544331;line-height:1.7}.reading-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.reading-grid article,.moving-panel,.changed-panel,.reading-summary{padding:18px;border:1px solid #e1d4b8;border-radius:17px;background:#fff}.reading-grid h3,.moving-panel h3,.reading-summary h3{margin:0 0 9px;color:var(--temple-red);font-family:"Noto Serif TC",serif}.reading-grid p,.moving-panel p,.changed-panel p,.reading-summary li{line-height:1.82;color:#574839}.moving-panel{margin-top:14px;background:#fffaf0}.moving-list{margin:10px 0 0;padding-left:1.25rem}.moving-list li{margin:8px 0;line-height:1.7}.changed-panel{margin-top:14px;border-color:#b8d4c4;background:#f3faf6}.changed-panel.stable{border-color:#ded1b8;background:#faf7f0}.changed-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:10px}.changed-head span{font-size:.75rem;font-weight:900;color:#4c7863}.changed-head strong{font:900 1.15rem/1.35 "Noto Serif TC",serif;color:#265b45}.changed-head small{color:#6c786f}.transition-note{padding-top:10px;border-top:1px dashed #bad0c3}.reading-summary{margin-top:14px;background:#fff9e8}.reading-summary ol{margin:0;padding-left:1.25rem}.reading-summary li{margin:9px 0}.result-actions{display:flex;justify-content:center;gap:10px;margin-top:22px}
@media(max-width:900px){.divination-intro-grid{grid-template-columns:1fr 1fr}.lot-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.lot-system-grid,.div-form-grid,.reading-grid{grid-template-columns:1fr}.lot-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.lot-result-head{flex-direction:column}.lot-overall{width:100%;min-height:64px;grid-template-columns:auto auto;gap:8px;justify-content:center}.divination-modal{padding:0;align-items:stretch}.divination-dialog{width:100%;max-height:100vh;height:100vh;border-radius:0;border:0;padding:22px 14px 36px}.divination-dialog-head{padding:0 38px 16px}.divination-intro-grid{grid-template-columns:1fr}.divination-cast-log{grid-template-columns:1fr 1fr}.six-line-progress{gap:4px}.six-line-progress span{font-size:.66rem}.result-line-row{grid-template-columns:42px 1fr 82px;gap:8px}.hex-result-hero{gap:12px}.hex-big-symbol{font-size:3.5rem}.result-actions{flex-direction:column}.result-actions .btn{width:100%}}
@media(max-width:430px){.lot-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.divination-cast-log{grid-template-columns:1fr}.six-line-progress span{font-size:.6rem}.six-line-progress i{height:5px}.result-line-row{grid-template-columns:38px 1fr 74px;font-size:.72rem}.result-line-row i.moving:after{display:none}}

/* ===== V2.9 首頁公告、日期提醒、印章主視覺與手機固定導覽 ===== */
.section-heading.compact{margin-bottom:16px}
.home-announcement-zone{display:grid;gap:34px;background:linear-gradient(180deg,#fffdf8 0%,#fff7e8 100%)}
.date-alert-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.date-alert-card{position:relative;display:grid;grid-template-columns:auto auto 1fr;gap:16px;align-items:start;padding:22px;border-radius:20px;border:1px solid #d8bd73;background:radial-gradient(circle at 100% 0,rgba(255,226,133,.22),transparent 12rem),linear-gradient(135deg,#fff9e7,#fff);box-shadow:0 12px 28px rgba(80,43,12,.08);overflow:hidden}
.date-alert-card.today{border-color:#a72b31;background:radial-gradient(circle at 100% 0,rgba(255,217,109,.18),transparent 13rem),linear-gradient(135deg,#74151a,#a7282e);color:#fff}
.date-alert-badge{display:grid;place-items:center;min-width:58px;min-height:58px;padding:8px;border-radius:50%;background:#8b1e22;color:#fff;font-weight:900;box-shadow:0 0 0 5px rgba(139,30,34,.10)}
.date-alert-card.today .date-alert-badge{background:#f3d16d;color:#5a3308;box-shadow:0 0 0 5px rgba(255,232,159,.12)}
.date-alert-date{display:grid;gap:2px;padding-top:5px;min-width:108px}.date-alert-date strong{font:900 1.02rem/1.3 "Noto Serif TC",serif;color:#7d1b20}.date-alert-date span{font-size:.76rem;color:#8b765d}.date-alert-card.today .date-alert-date strong{color:#ffe293}.date-alert-card.today .date-alert-date span{color:#f4d9cf}
.date-alert-copy{min-width:0}.date-alert-copy h3{margin:0 0 10px;color:#7e1b20;font:900 1.2rem/1.4 "Noto Serif TC",serif}.date-alert-card.today .date-alert-copy h3{color:#ffe7a0}.holy-phrases{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:11px}.holy-phrases span{display:inline-flex;padding:5px 10px;border-radius:999px;background:#f4e4b5;color:#6b4410;font-size:.82rem;font-weight:900}.date-alert-card.today .holy-phrases span{background:rgba(255,232,158,.14);border:1px solid rgba(255,232,158,.26);color:#fff2c7}
.festival-reminder{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap;margin:7px 0}.festival-reminder b{color:#8b1e22}.festival-reminder span{color:#5e4a38}.date-alert-card.today .festival-reminder b{color:#ffe293}.date-alert-card.today .festival-reminder span{color:#fff3ea}.date-alert-link{display:inline-flex;margin-top:10px;font-weight:900;color:#8b1e22}.date-alert-card.today .date-alert-link{color:#ffe293}
.manual-announcement-grid{display:grid;gap:14px}.manual-announcement-card{display:grid;grid-template-columns:auto 1fr;gap:16px;padding:21px;border:1px solid #e0c88f;border-radius:18px;background:#fff;box-shadow:0 8px 22px rgba(77,43,14,.06)}.announcement-pin{display:grid;place-items:center;align-self:start;min-width:54px;height:54px;border-radius:14px;background:var(--temple-red);color:#fff3ca;font-weight:900}.manual-announcement-card h3{margin:0 0 7px;color:var(--temple-red);font:900 1.18rem/1.45 "Noto Serif TC",serif}.manual-announcement-card p{margin:0;color:#564537;line-height:1.85}.announcement-link{margin-top:12px;width:auto!important}.announcement-admin-card{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.announcement-admin-copy{min-width:0}.announcement-admin-copy h3{margin:10px 0 5px;color:var(--temple-red)}.announcement-admin-copy p{margin:0;color:#5e4d3d}.announcement-admin-actions{flex:0 0 auto}.check-line{display:flex!important;align-items:center;gap:8px;min-height:46px;padding:8px 0}.check-line input{width:auto!important}

/* 印面四字改為真正四格，不再使用 BR 造成文字溢出 */
.stamp-square{position:relative;display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-rows:1fr 1fr!important;place-items:stretch!important;width:clamp(158px,20vw,210px)!important;height:auto!important;aspect-ratio:1/1;padding:14px!important;line-height:1!important;overflow:hidden}
.stamp-square:before,.stamp-square:after{content:"";position:absolute;background:#f1cf69;opacity:.72}.stamp-square:before{width:2px;top:14px;bottom:14px;left:50%;transform:translateX(-1px)}.stamp-square:after{height:2px;left:14px;right:14px;top:50%;transform:translateY(-1px)}
.stamp-char{display:grid;place-items:center;position:relative;z-index:1;font-size:clamp(2.15rem,5vw,3.15rem);line-height:1}.stamp-1{grid-column:2;grid-row:1}.stamp-2{grid-column:2;grid-row:2}.stamp-3{grid-column:1;grid-row:1}.stamp-4{grid-column:1;grid-row:2}
@media(max-width:1100px) and (min-width:701px){.seal-hero{grid-template-columns:minmax(0,1fr) minmax(160px,190px);gap:18px;padding:42px 34px}.seal-hero h1{font-size:clamp(2.15rem,4.5vw,3.15rem)}.stamp-square{width:172px!important;padding:12px!important}.stamp-square:before{top:12px;bottom:12px}.stamp-square:after{left:12px;right:12px}.stamp-char{font-size:2.55rem}}

/* 手機／平板導覽：捲過頂端資訊後固定於畫面頂端。 */
.site-header-spacer{display:none;height:0}
@media(max-width:980px){
  .site-header{position:relative;top:auto;-webkit-position:relative}
  .site-header.mobile-fixed{position:fixed!important;top:0!important;left:0;right:0;width:100%;z-index:1800;box-shadow:0 8px 26px rgba(55,29,8,.18)}
  .site-header-spacer.active{display:block}
}
@media(max-width:760px){.date-alert-grid{grid-template-columns:1fr}.date-alert-card{grid-template-columns:auto 1fr}.date-alert-copy{grid-column:1/-1}.date-alert-card.today .date-alert-copy{grid-column:1/-1}.manual-announcement-card{grid-template-columns:1fr}.announcement-pin{width:54px}.announcement-admin-card{display:grid}.announcement-admin-actions{width:100%}.announcement-admin-actions form{display:flex;gap:7px;flex-wrap:wrap}}
@media(max-width:460px){.date-alert-card{padding:17px;gap:11px}.date-alert-badge{min-width:50px;min-height:50px}.date-alert-date{min-width:0}.home-announcement-zone{gap:28px}}
.seal-hero h1>span{display:block;font-size:.82em;line-height:1.25;letter-spacing:.025em}

/* V2.10 - 頁尾相關網站與社群連結 */
.footer-social{margin-top:26px;padding:22px;border:1px solid rgba(255,255,255,.13);border-radius:18px;background:rgba(255,255,255,.045)}
.footer-social-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:15px}
.footer-social-heading h3{margin:0;color:#ffe09a;font:800 1.25rem/1.3 "Noto Serif TC",serif}
.footer-social-heading p{margin:.35rem 0 0;color:#dfd2c6;font-size:.92rem}
.social-link-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.social-link-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0;padding:13px 12px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.055);color:#fff!important;text-decoration:none;transition:transform .18s ease,background .18s ease,border-color .18s ease}
.social-link-card:hover,.social-link-card:focus-visible{transform:translateY(-2px);background:rgba(255,224,154,.12);border-color:rgba(255,224,154,.45);outline:none}
.social-link-mark{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#f4d576,#c99522);color:#552116;font-weight:900;font-size:.86rem;box-shadow:inset 0 0 0 1px rgba(255,255,255,.28)}
.social-link-card strong{display:block;color:#fff;line-height:1.3;font-size:.92rem;overflow-wrap:anywhere}
.social-link-card small{display:block;margin-top:3px;color:#d7c8bb;font-size:.76rem;line-height:1.35;overflow-wrap:anywhere}
.social-link-arrow{color:#f4d576;font-size:1rem;font-weight:900}
@media(max-width:1100px){.social-link-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.footer-social{padding:16px}.social-link-grid{grid-template-columns:1fr}.social-link-card{padding:14px}.social-link-card strong{font-size:1rem}.social-link-card small{font-size:.82rem}}

/* ===== V2.11 平板／手機：資訊頁主視覺隱藏九天玄女圖片 =====
   僅套用使用 .hero.compact-hero + .hero-mascot 的頁面：
   線上祈福、民俗百科、神明介紹。首頁 .hero 不受影響。 */
@media (max-width:1100px){
  .hero.compact-hero{
    grid-template-columns:minmax(0,1fr)!important;
    gap:0!important;
    padding:clamp(28px,5vw,48px)!important;
  }
  .hero.compact-hero .hero-mascot{
    display:none!important;
  }
  .hero.compact-hero .hero-copy{
    width:100%;
    max-width:820px;
  }
  .hero.compact-hero h1{
    max-width:none;
  }
  .hero.compact-hero p{
    max-width:820px;
  }
}
@media (max-width:700px){
  .hero.compact-hero{
    padding:28px 22px 30px!important;
  }
  .hero.compact-hero h1{
    font-size:clamp(2.05rem,11vw,3rem);
    margin-top:12px;
  }
  .hero.compact-hero p{
    font-size:1rem;
    line-height:1.85;
  }
}


/* V2.13 — mobile seal page: keep the long original content collapsed by default,
   but when expanded, fit complete tables inside the phone width. No horizontal swipe. */
.seal-mobile-read-control{display:none}
.seal-table-scroll{max-width:100%}
@media(max-width:820px){
  .seal-mobile-read-control{display:grid;gap:10px;margin:0 0 16px;padding:16px;border:1px solid #e2c98e;border-radius:16px;background:#fff8e5}
  .seal-mobile-read-control .btn{width:100%;justify-content:center}
  .seal-mobile-read-control p{margin:0;color:#6f5e4b;font-size:.9rem;line-height:1.75}
  .seal-legacy.seal-mobile-collapsed{display:none!important}
  .seal-legacy:not(.seal-mobile-collapsed){display:block!important;padding:0!important;overflow:visible!important;border:0!important;background:transparent!important}
  .seal-legacy:not(.seal-mobile-collapsed) .seal-table-scroll{display:block;width:100%;max-width:100%;overflow:visible!important;margin:12px 0;border-radius:12px}
  .seal-legacy:not(.seal-mobile-collapsed) .seal-table-scroll>table,
  .seal-legacy:not(.seal-mobile-collapsed) table table{display:table!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:visible!important;margin:0!important;border-collapse:separate!important;table-layout:auto!important}
  .seal-legacy:not(.seal-mobile-collapsed) tbody{display:table-row-group!important;width:auto!important}
  .seal-legacy:not(.seal-mobile-collapsed) thead{display:table-header-group!important;width:auto!important}
  .seal-legacy:not(.seal-mobile-collapsed) tfoot{display:table-footer-group!important;width:auto!important}
  .seal-legacy:not(.seal-mobile-collapsed) tr{display:table-row!important;width:auto!important;max-width:none!important}
  .seal-legacy:not(.seal-mobile-collapsed) td,
  .seal-legacy:not(.seal-mobile-collapsed) th{display:table-cell!important;width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;padding:7px 6px!important;vertical-align:top!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important}
  .seal-legacy:not(.seal-mobile-collapsed) td[width],
  .seal-legacy:not(.seal-mobile-collapsed) th[width]{min-width:0!important}
  .seal-legacy:not(.seal-mobile-collapsed) table.seal-table-medium{table-layout:fixed!important}
  .seal-legacy:not(.seal-mobile-collapsed) table.seal-table-medium td,
  .seal-legacy:not(.seal-mobile-collapsed) table.seal-table-medium th{padding:5px 4px!important;font-size:clamp(.68rem,2.35vw,.86rem)!important;line-height:1.4!important}
  .seal-legacy:not(.seal-mobile-collapsed) table.seal-table-wide{table-layout:fixed!important;width:100%!important}
  .seal-legacy:not(.seal-mobile-collapsed) table.seal-table-wide td,
  .seal-legacy:not(.seal-mobile-collapsed) table.seal-table-wide th{width:auto!important;min-width:0!important;max-width:none!important;padding:4px 1px!important;font-size:clamp(6.8px,2vw,9px)!important;line-height:1.35!important;text-align:center!important;vertical-align:middle!important;white-space:nowrap!important;overflow:visible!important;overflow-wrap:normal!important;word-break:normal!important;letter-spacing:-.03em}
  .seal-legacy:not(.seal-mobile-collapsed) table.seal-table-wide font,
  .seal-legacy:not(.seal-mobile-collapsed) table.seal-table-wide b,
  .seal-legacy:not(.seal-mobile-collapsed) table.seal-table-wide strong,
  .seal-legacy:not(.seal-mobile-collapsed) table.seal-table-wide span{font-size:inherit!important;line-height:inherit!important;white-space:inherit!important}
  .seal-legacy:not(.seal-mobile-collapsed) table.seal-table-wide td[width],
  .seal-legacy:not(.seal-mobile-collapsed) table.seal-table-wide th[width]{width:auto!important;min-width:0!important}
  .seal-legacy:not(.seal-mobile-collapsed) img{max-width:min(100%,520px)!important;height:auto!important}
}
@media(max-width:390px){
  .seal-legacy:not(.seal-mobile-collapsed) table.seal-table-wide td,
  .seal-legacy:not(.seal-mobile-collapsed) table.seal-table-wide th{font-size:6.8px!important;padding:3px 0!important;letter-spacing:-.06em}
}
