*{box-sizing:border-box}body{margin:0;font-family:"Noto Serif TC","Noto Sans TC","Microsoft JhengHei",serif;background:#fff7df;color:#2e2118;line-height:1.8}.container{width:min(1180px,92%);margin:0 auto}a{text-decoration:none;color:inherit}.top-line{background:#2b1a14;color:#f5ddb0;font-size:14px}.top-line-inner{display:flex;justify-content:space-between;padding:8px 0}.top-actions{display:flex;gap:16px}.top-actions a{color:#f7d88a}.brand-wrap{text-align:center;padding:22px 0;background:radial-gradient(circle,#fffef7,#fff4d8 58%,#f4dfad);border-bottom:1px solid rgba(181,135,40,.32)}.brand-symbol{display:block;color:#b98a24;font-size:34px}.brand-title{display:block;font-size:50px;letter-spacing:.16em;font-weight:900;color:#761414}.brand-subtitle{display:block;font-size:18px;letter-spacing:.08em;color:#5b311d}.nav-wrap{background:#fffaf0;border-bottom:1px solid rgba(118,20,20,.12);position:relative;z-index:50;box-shadow:0 8px 26px rgba(82,38,14,.08)}.menu-toggle{display:none;margin:10px auto;background:#761414;color:#fff;border:0;border-radius:999px;padding:10px 24px;font-size:16px}.main-nav>ul{list-style:none;margin:0;padding:0;display:flex;justify-content:center}.main-nav li{position:relative}.main-nav a{display:block;padding:16px 15px;font-weight:700;position:relative;overflow:hidden}.main-nav a span{color:#a4771f;margin-right:5px}.main-nav>ul>li>a:before{content:"";position:absolute;left:18%;right:18%;bottom:8px;height:2px;background:linear-gradient(90deg,transparent,#b98a24,#fff0ad,#b98a24,transparent);transform:scaleX(0);transform-origin:left;transition:.3s}.main-nav>ul>li>a:after{content:"☁";position:absolute;left:-22px;bottom:0;color:rgba(185,138,36,.68);opacity:0;transition:.5s}.main-nav>ul>li:hover>a{color:#761414}.main-nav>ul>li:hover>a:before{transform:scaleX(1)}.main-nav>ul>li:hover>a:after{left:72%;opacity:1}.sub-menu{display:none;position:absolute;top:100%;left:50%;transform:translateX(-50%);min-width:210px;list-style:none;margin:0;padding:10px;background:#fffdf4;border:1px solid rgba(185,138,36,.35);border-radius:16px;box-shadow:0 18px 38px rgba(54,28,14,.18)}.sub-menu a{padding:9px 14px;border-radius:10px;white-space:nowrap}.sub-menu a:hover{background:#fff3d2;color:#761414}.has-sub:hover .sub-menu{display:block}.hero-slider{height:520px;position:relative;overflow:hidden;background:#1c120d}.hero-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1.2s ease,transform 6s ease;transform:scale(1.04)}.hero-slide.active{opacity:1;transform:scale(1)}.hero-overlay{height:100%;display:flex;align-items:center;background:linear-gradient(90deg,rgba(25,10,5,.5),rgba(25,10,5,.08),rgba(25,10,5,.45))}.hero-content{width:min(1180px,92%);margin:0 auto;color:#fff;text-shadow:0 4px 18px rgba(0,0,0,.35)}.hero-kicker{letter-spacing:.24em;color:#f7d88a;font-weight:700}.hero-content h1{font-size:clamp(42px,6vw,78px);margin:10px 0;letter-spacing:.12em}.hero-content p{font-size:22px;max-width:660px}.page-hero{padding:58px 0;background:linear-gradient(135deg,#fffdf5,#fff1c9);border-bottom:1px solid rgba(185,138,36,.25)}.page-hero h1{font-size:44px;color:#761414;margin:0}.section{padding:56px 0}.section-head{text-align:center;margin-bottom:28px}.section-head .kicker{color:#a4771f;letter-spacing:.24em;font-weight:800}.section-head h2{font-size:36px;color:#761414;margin:6px 0}.deity-grid,.card-grid,.light-grid,.gallery-cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.deity-card,.article-card,.service-card,.light-card,.gallery-cat{background:rgba(255,255,255,.82);border:1px solid rgba(185,138,36,.25);border-radius:26px;overflow:hidden;box-shadow:0 16px 38px rgba(82,38,14,.08);transition:.25s}.deity-card:hover,.article-card:hover,.service-card:hover,.light-card:hover,.gallery-cat:hover{transform:translateY(-4px);box-shadow:0 22px 48px rgba(82,38,14,.13);border-color:#b98a24}.deity-card img,.article-card img,.light-card img,.gallery-cat img{width:100%;height:230px;object-fit:cover;background:#e8d6ac}.card-body{padding:22px}.card-body h3{font-size:24px;color:#761414;margin:0 0 8px}.article-list{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}.article-card{display:grid;grid-template-columns:210px 1fr}.article-card img{height:100%;min-height:170px}.date{color:#9b6a1d;font-size:14px}.cta-band{background:linear-gradient(135deg,#341d13,#761414);color:#fff;padding:54px 0}.cta-grid,.youtube-grid,.live-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}.cta-card{border:1px solid rgba(247,216,138,.35);border-radius:28px;padding:30px;background:rgba(255,255,255,.08)}.btn-gold{display:inline-block;margin-top:16px;background:linear-gradient(90deg,#b98a24,#f7d88a,#b98a24);color:#2b1a14;padding:10px 20px;border-radius:999px;font-weight:800}.youtube-card,.iframe-card{border-radius:24px;overflow:hidden;background:#fff;border:1px solid rgba(185,138,36,.25);box-shadow:0 16px 36px rgba(82,38,14,.08)}.youtube-card iframe,.iframe-card iframe,.playlist-frame{width:100%;aspect-ratio:16/9;border:0}.notice-box{padding:28px;border-radius:24px;background:#fff7df;border:1px solid #d8bd7a;text-align:center}.draw-box{max-width:760px;margin:0 auto;background:#fff;border:1px solid #d8bd7a;border-radius:28px;padding:30px;text-align:center}.draw-result{font-size:28px;color:#761414;font-weight:800}.site-footer{background:#2b1a14;color:#fff;margin-top:50px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:34px;padding:46px 0}.site-footer h2,.site-footer h3{color:#f7d88a}.site-footer a{display:block;color:#fff3d6;margin:4px 0}.footer-note{text-align:center;border-top:1px solid rgba(255,255,255,.14);padding:16px 20px;color:#f2e7d6}.copyright{text-align:center;color:#d8c5ad;padding-bottom:22px}.admin-layout{display:grid;grid-template-columns:260px 1fr;min-height:100vh}.admin-sidebar{background:#2b1a14;color:#fff;padding:24px}.admin-sidebar h1{color:#f7d88a;font-size:24px}.admin-sidebar a{display:block;color:#fff;padding:10px 12px;border-radius:10px}.admin-sidebar a:hover{background:rgba(255,255,255,.1)}.admin-main{padding:30px;background:#fff8e7}.admin-card{background:#fff;border:1px solid #ead7a8;border-radius:18px;padding:22px;margin-bottom:20px}.form-row{margin-bottom:14px}.form-row label{display:block;font-weight:700;color:#761414}.form-row input,.form-row textarea,.form-row select{width:100%;padding:10px;border:1px solid #d8bd7a;border-radius:10px}.form-row textarea{min-height:160px}.table{width:100%;border-collapse:collapse;background:#fff}.table th,.table td{padding:10px;border-bottom:1px solid #eee;text-align:left}.admin-btn{display:inline-block;background:#761414;color:#fff;border:0;border-radius:10px;padding:9px 14px}@media(max-width:920px){.top-line-inner{display:block;text-align:center}.top-actions{justify-content:center}.menu-toggle{display:block}.main-nav{display:none}.main-nav.open{display:block}.main-nav>ul{display:block;padding:10px 0}.sub-menu{position:static;display:block;transform:none;box-shadow:none;border:0;background:#fff7df}.hero-slider{height:360px}.deity-grid,.card-grid,.youtube-grid,.cta-grid,.footer-grid,.light-grid,.gallery-cat-grid,.live-grid{grid-template-columns:1fr}.article-list{grid-template-columns:1fr}.article-card{grid-template-columns:1fr}.article-card img{height:220px}.admin-layout{grid-template-columns:1fr}.brand-title{font-size:38px}.brand-subtitle{font-size:15px}}@media(max-width:520px){.hero-slider{height:280px}.hero-content h1{font-size:36px}.hero-content p{font-size:17px}.page-hero h1{font-size:34px}.section{padding:38px 0}}

/* Taihau official PNG logo configuration */
.brand-symbol.brand-logo-png{
  display:block;
  width:82px;
  height:82px;
  margin:0 auto 10px;
  line-height:1;
}
.brand-symbol.brand-logo-png img{
  display:block;
  width:82px;
  height:82px;
  margin:0 auto;
  object-fit:contain;
  image-rendering:auto;
  filter:drop-shadow(0 6px 16px rgba(185,138,36,.30));
}
.brand:hover .brand-symbol.brand-logo-png img{
  filter:drop-shadow(0 9px 22px rgba(185,138,36,.45));
}
@media(max-width:520px){
  .brand-symbol.brand-logo-png,
  .brand-symbol.brand-logo-png img{
    width:62px;
    height:62px;
  }
}


/* Ultimate AI LTS Pro v8 admin/frontend enhancements */
.admin-sidebar hr{border:0;border-top:1px solid rgba(255,255,255,.16);margin:12px 0}
.admin-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:12px 0 18px}
.admin-help{background:#fff8e7;border:1px solid #ead7a8;border-radius:14px;padding:12px;color:#6b4a2b;margin:10px 0}
.cover-picker{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}
.cover-preview{display:block;width:180px;height:120px;object-fit:cover;border-radius:12px;border:1px solid #ead7a8;background:#f7eed8;margin-top:8px}
.media-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.media-card{background:#fff;border:1px solid #ead7a8;border-radius:16px;padding:10px;word-break:break-all}
.media-card img{width:100%;height:130px;object-fit:cover;border-radius:10px;background:#f6ead0}
.ai-box{background:linear-gradient(135deg,#fffdf5,#fff0c4);border:1px solid #d8bd7a;border-radius:18px;padding:16px;margin:14px 0}
.pagination{display:flex;justify-content:center;gap:8px;margin:30px 0;flex-wrap:wrap}
.pagination a,.pagination span{padding:8px 13px;border-radius:999px;border:1px solid rgba(118,20,20,.18);background:#fff;color:#761414}
.pagination .current{background:#761414;color:#fff}
.placeholder-note{font-size:13px;color:#8a6331}
@media(max-width:920px){.media-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.media-grid{grid-template-columns:1fr}.cover-picker{grid-template-columns:1fr}.cover-preview{width:100%;height:180px}}


/* v9 About Taihau & homepage principal deities */
.admin-group-title{
  margin:12px 10px 4px;
  padding:8px 10px;
  color:#f3d58a;
  font-size:13px;
  letter-spacing:.12em;
  border-left:3px solid #c9a13c;
  background:rgba(255,255,255,.04);
}
.about-hub-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:16px;
}
.about-hub-card{
  display:block;
  min-height:190px;
  padding:22px;
  border-radius:20px;
  text-decoration:none;
  background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(255,247,220,.88));
  border:1px solid rgba(139,26,26,.14);
  box-shadow:0 12px 32px rgba(80,40,20,.08);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.about-hub-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(80,40,20,.13);
  border-color:rgba(201,161,60,.85);
}
.about-hub-card .number{
  display:block;
  color:#b98a24;
  font-size:13px;
  letter-spacing:.18em;
  margin-bottom:18px;
}
.about-hub-card h2{
  margin:0 0 10px;
  color:#7a1010;
  font-size:24px;
}
.about-hub-card p{
  margin:0;
  color:#4b3828;
  line-height:1.75;
}
.home-deity-note{
  text-align:center;
  margin:14px auto 0;
  color:#7a5b34;
  font-size:14px;
}
.deity-card.is-principal{
  position:relative;
  overflow:hidden;
}
.deity-card.is-principal:before{
  content:"主神聖德";
  position:absolute;
  left:14px;
  top:14px;
  z-index:2;
  padding:5px 11px;
  border-radius:999px;
  background:rgba(122,16,16,.92);
  color:#fff4d7;
  font-size:12px;
  letter-spacing:.08em;
}
@media(max-width:1100px){.about-hub-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.about-hub-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.about-hub-grid{grid-template-columns:1fr}}


/* ===============================================================
   v13.2 Front Article Stable
   列表閱讀更多按鈕、詳細頁內容與手機版排版修正
   =============================================================== */
.content-panel{
  padding:clamp(22px,4vw,46px);
  border-radius:26px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(185,138,36,.28);
  box-shadow:0 18px 48px rgba(82,38,14,.09);
}

.article-list-section{
  min-height:420px;
}

.article-card-grid{
  align-items:stretch;
}

.article-list-card{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.article-card-image-link{
  display:block;
  overflow:hidden;
  background:#ead8a7;
}

.article-card-image-link img{
  display:block;
  width:100%;
  height:260px;
  object-fit:cover;
  transition:transform .45s ease;
}

.article-list-card:hover .article-card-image-link img{
  transform:scale(1.035);
}

.article-list-card .card-body{
  display:flex;
  flex-direction:column;
  flex:1;
  min-width:0;
}

.article-list-card .card-body h3{
  line-height:1.45;
  overflow-wrap:anywhere;
}

.article-list-card .card-body h3 a{
  color:#761414;
}

.article-list-card .card-body h3 a:hover{
  color:#a4771f;
}

.article-card-summary{
  margin:5px 0 18px;
  color:#4a392c;
  line-height:1.9;
  flex:1;
}

.article-card-actions{
  margin-top:auto;
  padding-top:6px;
}

.read-more-btn,
.back-list-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:10px 20px;
  border-radius:999px;
  background:linear-gradient(135deg,#761414,#9a1c1c);
  color:#fff!important;
  font-weight:800;
  letter-spacing:.05em;
  box-shadow:0 8px 20px rgba(118,20,20,.17);
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}

.read-more-btn:hover,
.back-list-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 26px rgba(118,20,20,.25);
  background:linear-gradient(135deg,#8c1717,#b02727);
}

.read-more-btn span{
  font-size:24px;
  line-height:1;
}

.article-detail-hero{
  padding-bottom:46px;
}

.article-detail-hero h2{
  margin:10px 0 0;
  color:#5b311d;
  font-size:clamp(20px,3vw,30px);
  line-height:1.5;
}

.article-breadcrumb{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:18px;
  color:#8a632c;
  font-size:14px;
}

.article-breadcrumb a{
  color:#761414;
}

.article-detail-container{
  max-width:980px;
}

.article-detail-panel{
  overflow:hidden;
}

.article-cover-figure{
  margin:0 0 26px;
}

.article-main-image{
  display:block;
  width:100%;
  max-height:720px;
  object-fit:contain;
  border-radius:18px;
  background:#f5ead0;
}

.article-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 24px;
  margin:0 0 24px;
  padding-bottom:16px;
  border-bottom:1px solid rgba(185,138,36,.22);
  color:#8b672f;
  font-size:14px;
}

.article-content{
  color:#30231a;
  font-size:clamp(17px,2vw,19px);
  line-height:2;
  overflow-wrap:anywhere;
  min-height:120px;
}

.article-content > *:first-child{
  margin-top:0;
}

.article-content p{
  margin:0 0 1.25em;
}

.article-content h2,
.article-content h3,
.article-content h4{
  color:#761414;
  line-height:1.5;
  margin:1.6em 0 .7em;
}

.article-content img{
  display:block;
  max-width:100%!important;
  height:auto!important;
  margin:24px auto;
  border-radius:14px;
}

.article-content iframe{
  display:block;
  width:100%;
  max-width:100%;
  min-height:420px;
  border:0;
  margin:24px 0;
}

.article-content table{
  display:block;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  border-collapse:collapse;
  margin:24px 0;
}

.article-content th,
.article-content td{
  border:1px solid #dccb9f;
  padding:10px;
}

.article-content blockquote{
  margin:24px 0;
  padding:16px 20px;
  border-left:4px solid #c39a3d;
  background:#fff7df;
  color:#523b29;
}

.article-empty-fallback{
  padding:20px;
  border-radius:16px;
  background:#fff8e7;
  border:1px solid #ead7a8;
}

.article-detail-actions{
  margin-top:36px;
  padding-top:22px;
  border-top:1px solid rgba(185,138,36,.22);
}

.article-empty-state{
  text-align:center;
}

@media(max-width:920px){
  .article-card-image-link img{
    height:230px;
  }

  .article-content iframe{
    min-height:320px;
  }
}

@media(max-width:520px){
  .article-card-image-link img{
    height:auto;
    aspect-ratio:16/10;
  }

  .article-list-card .card-body{
    padding:20px;
  }

  .article-list-card .card-body h3{
    font-size:25px;
  }

  .read-more-btn,
  .back-list-btn{
    width:100%;
  }

  .article-detail-section{
    padding-top:28px;
  }

  .article-detail-panel{
    padding:20px 17px;
    border-radius:20px;
  }

  .article-content{
    font-size:17px;
    line-height:1.95;
  }

  .article-content iframe{
    min-height:220px;
  }

  .article-meta{
    display:block;
  }

  .article-meta span{
    display:block;
    margin-bottom:5px;
  }
}


/* v14 Historical Article Edition */
.article-date-help{
  margin:22px 0 16px;
  border-left:4px solid #c79b35;
}

.article-meta span{
  display:inline-flex;
  align-items:center;
}

.article-meta span:before{
  content:"";
  width:6px;
  height:6px;
  margin-right:8px;
  border-radius:50%;
  background:#c79b35;
}

@media(max-width:520px){
  .article-meta span{
    display:flex;
  }
}


/* v16.2 LTS Banner Manager — preserve existing homepage layout */
.hero-slide{
  background-image:var(--banner-desktop);
}
@media(max-width:920px){
  .hero-slide{
    background-image:var(--banner-mobile,var(--banner-desktop));
  }
}
.banner-admin-preview{
  width:220px;
  height:92px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid #e1cc98;
  background:#f4e8c8;
}
.banner-edit-preview{
  display:block;
  width:min(720px,100%);
  aspect-ratio:12/5;
  object-fit:cover;
  border-radius:14px;
  border:1px solid #dfc88f;
  background:#f4e8c8;
  margin-top:10px;
}
.banner-mobile-preview{
  aspect-ratio:6/5;
  max-width:360px;
}
.banner-size-note{
  padding:14px 16px;
  border-radius:14px;
  background:#fff8e7;
  border:1px solid #ead7a8;
  line-height:1.8;
}
.banner-size-note strong{
  color:#761414;
}


/* ===============================================================
   v16.2.1 Banner backend preview size fix
   Only affects admin Banner list/edit previews; frontend unchanged.
   =============================================================== */
.admin-main{
  min-width:0;
  overflow-x:hidden;
}

.admin-card{
  min-width:0;
  max-width:100%;
  overflow:hidden;
  box-sizing:border-box;
}

.admin-table-wrap{
  max-width:100%;
  overflow-x:auto;
}

.banner-edit-preview{
  display:block!important;
  width:100%!important;
  max-width:720px!important;
  height:auto!important;
  max-height:300px!important;
  aspect-ratio:12/5;
  object-fit:cover!important;
  object-position:center center;
  box-sizing:border-box;
  margin:12px auto 0 0!important;
}

.banner-mobile-preview{
  width:100%!important;
  max-width:320px!important;
  max-height:270px!important;
  aspect-ratio:6/5;
}

.banner-admin-preview{
  display:block!important;
  width:180px!important;
  max-width:180px!important;
  height:75px!important;
  object-fit:cover!important;
}

.banner-manage-table{
  width:100%;
  table-layout:fixed;
}

.banner-manage-table th,
.banner-manage-table td{
  vertical-align:middle;
  overflow-wrap:anywhere;
}

.banner-manage-table .banner-col-preview{
  width:200px;
}

.banner-manage-table .banner-col-sort{
  width:70px;
  text-align:center;
}

.banner-manage-table .banner-col-status{
  width:100px;
}

.banner-manage-table .banner-col-actions{
  width:100px;
}

@media(max-width:900px){
  .banner-edit-preview{
    max-width:100%!important;
    max-height:260px!important;
  }

  .banner-admin-preview{
    width:140px!important;
    max-width:140px!important;
    height:58px!important;
  }

  .banner-manage-table .banner-col-preview{
    width:160px;
  }
}

@media(max-width:620px){
  .banner-edit-preview{
    max-height:210px!important;
  }

  .banner-mobile-preview{
    max-width:260px!important;
    max-height:220px!important;
  }

  .banner-admin-preview{
    width:110px!important;
    max-width:110px!important;
    height:46px!important;
  }

  .banner-manage-table{
    min-width:760px;
  }
}


/* ===============================================================
   v17 LTS — Realistic DrawLots Experience
   Visual enhancement only. Jiaobei and lot selection logic unchanged.
   =============================================================== */
.drawlots-page-hero{
  position:relative;
  overflow:hidden;
  text-align:center;
  background:
    radial-gradient(circle at 50% 25%,rgba(255,255,255,.95),rgba(255,242,199,.88) 43%,rgba(234,207,139,.7)),
    linear-gradient(135deg,#fffdf5,#fff1c9);
}
.drawlots-page-hero:before,
.drawlots-page-hero:after{
  content:"";
  position:absolute;
  width:420px;
  height:420px;
  border-radius:50%;
  border:1px solid rgba(185,138,36,.16);
}
.drawlots-page-hero:before{left:-180px;top:-230px}
.drawlots-page-hero:after{right:-180px;bottom:-250px}
.drawlots-hero-symbol{
  width:66px;
  height:66px;
  margin:0 auto 12px;
  display:grid;
  place-items:center;
  border:1px solid rgba(185,138,36,.5);
  border-radius:50%;
  color:#9e741d;
  font-size:36px;
  background:rgba(255,255,255,.6);
  box-shadow:0 10px 30px rgba(118,20,20,.08);
}
.drawlots-intro-panel{margin-bottom:20px}
.drawlots-experience-section{
  position:relative;
  background:
    radial-gradient(circle at 50% 0,rgba(255,245,209,.9),transparent 42%),
    linear-gradient(180deg,#fff8e6,#f5e5bb);
}
.drawlots-stage{
  max-width:1040px;
  margin:0 auto;
}
.drawlots-progress{
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 28px;
  padding:18px 22px;
  border:1px solid rgba(185,138,36,.3);
  border-radius:22px;
  background:rgba(255,255,255,.78);
  box-shadow:0 14px 36px rgba(81,40,16,.08);
}
.drawlots-progress-item{
  display:flex;
  align-items:center;
  gap:9px;
  color:#927449;
  white-space:nowrap;
}
.drawlots-progress-item span{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:50%;
  border:1px solid #d1b36d;
  background:#fffaf0;
  font-weight:800;
}
.drawlots-progress-item strong{font-size:14px}
.drawlots-progress-item.is-active{color:#761414}
.drawlots-progress-item.is-active span{
  background:#761414;
  border-color:#761414;
  color:#fff;
  box-shadow:0 0 0 6px rgba(118,20,20,.08);
}
.drawlots-progress-item.is-complete{color:#8c6a24}
.drawlots-progress-item.is-complete span{
  background:#bd8e28;
  border-color:#bd8e28;
  color:#fff;
}
.drawlots-progress-line{
  width:54px;
  height:1px;
  margin:0 10px;
  background:linear-gradient(90deg,#d9c186,#b68b31,#d9c186);
}
.drawlots-step{display:none}
.drawlots-step.is-active{
  display:block;
  animation:drawlotsFadeIn .48s ease both;
}
@keyframes drawlotsFadeIn{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:translateY(0)}
}
.drawlots-temple-scene,
.drawlots-card{
  position:relative;
  min-height:580px;
  overflow:hidden;
  padding:clamp(28px,5vw,62px);
  border:1px solid rgba(185,138,36,.32);
  border-radius:34px;
  background:
    linear-gradient(180deg,rgba(53,24,13,.1),rgba(255,251,239,.96) 52%),
    radial-gradient(circle at 50% 10%,#ffe7a2,#fff9e7 55%,#ead2a0);
  box-shadow:0 26px 65px rgba(76,37,16,.14);
  text-align:center;
}
.drawlots-temple-scene{
  display:grid;
  grid-template-columns:minmax(270px,.82fr) minmax(320px,1.18fr);
  align-items:center;
  gap:48px;
  color:#3e2b1d;
}
.drawlots-light-rays{
  position:absolute;
  inset:-25% 0 auto;
  height:75%;
  background:
    repeating-conic-gradient(
      from -20deg at 50% 0,
      rgba(255,226,133,.14) 0deg 7deg,
      transparent 7deg 15deg
    );
  pointer-events:none;
}
.drawlots-incense{
  position:relative;
  min-height:370px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}
.incense-burner{
  position:relative;
  width:220px;
  height:130px;
  display:grid;
  place-items:center;
  border:8px solid #8c4b23;
  border-top-width:14px;
  border-radius:16px 16px 70px 70px;
  background:
    radial-gradient(circle at 50% 25%,#d39745,#8f471f 64%,#542913);
  color:#f7d88a;
  font-size:45px;
  font-weight:900;
  text-shadow:0 2px 3px rgba(0,0,0,.4);
  box-shadow:inset 0 8px 12px rgba(255,220,139,.3),0 20px 35px rgba(72,31,11,.2);
}
.incense-burner:before,
.incense-burner:after{
  content:"";
  position:absolute;
  top:10px;
  width:48px;
  height:36px;
  border:8px solid #75401f;
  border-radius:50%;
}
.incense-burner:before{left:-52px}
.incense-burner:after{right:-52px}
.incense-stick{
  position:absolute;
  bottom:120px;
  width:7px;
  height:180px;
  border-radius:8px;
  background:linear-gradient(90deg,#9b311f,#e87846,#8f2c1d);
  box-shadow:-34px 20px 0 -1px #b14a2d,34px 12px 0 -1px #9c3524;
}
.smoke{
  position:absolute;
  bottom:290px;
  width:28px;
  height:120px;
  border-left:5px solid rgba(119,105,91,.22);
  border-radius:50%;
  filter:blur(1px);
  animation:incenseSmoke 4.8s ease-in-out infinite;
}
.smoke-1{margin-left:-34px;animation-delay:-1.1s}
.smoke-2{height:150px;animation-delay:-2.8s}
.smoke-3{margin-left:34px;height:130px;animation-delay:-3.7s}
@keyframes incenseSmoke{
  0%{opacity:0;transform:translateY(10px) translateX(0) scale(.8)}
  25%{opacity:.7}
  65%{opacity:.38;transform:translateY(-58px) translateX(24px) scale(1.15)}
  100%{opacity:0;transform:translateY(-108px) translateX(-18px) scale(1.4)}
}
.drawlots-prayer-copy{position:relative;z-index:2;text-align:left}
.drawlots-kicker{
  display:inline-block;
  color:#a4771f;
  font-size:14px;
  font-weight:900;
  letter-spacing:.28em;
  text-transform:uppercase;
}
.drawlots-prayer-copy h2,
.drawlots-card h2{
  margin:10px 0 14px;
  color:#761414;
  font-size:clamp(30px,4.5vw,48px);
  line-height:1.4;
}
.drawlots-prayer-copy p,
.drawlots-card>p{
  max-width:680px;
  margin:0 auto 16px;
  color:#513a29;
  font-size:17px;
  line-height:1.95;
}
.drawlots-prayer-copy p{margin-left:0}
.drawlots-prayer-reminder{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:22px 0;
}
.drawlots-prayer-reminder span{
  padding:7px 15px;
  border:1px solid rgba(164,119,31,.32);
  border-radius:999px;
  background:rgba(255,255,255,.65);
  color:#714b1e;
  font-weight:800;
}
.drawlots-primary-btn,
.drawlots-secondary-btn{
  appearance:none;
  border:0;
  cursor:pointer;
  min-height:50px;
  padding:12px 25px;
  border-radius:999px;
  font-size:16px;
  font-weight:900;
  letter-spacing:.08em;
  transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease;
}
.drawlots-primary-btn{
  color:#2d1c11;
  background:linear-gradient(100deg,#aa771b,#f9dfa0 48%,#b57f20);
  box-shadow:0 12px 30px rgba(148,94,18,.22),inset 0 1px 0 rgba(255,255,255,.75);
}
.drawlots-secondary-btn{
  color:#761414;
  border:1px solid rgba(118,20,20,.32);
  background:#fffaf0;
}
.drawlots-primary-btn:hover:not(:disabled),
.drawlots-secondary-btn:hover:not(:disabled){
  transform:translateY(-2px);
  box-shadow:0 16px 36px rgba(100,50,19,.2);
}
.drawlots-primary-btn:disabled{
  cursor:not-allowed;
  opacity:.48;
}
.drawlots-secondary-btn[hidden]{display:none!important}
.jiaobei-floor{
  position:relative;
  width:min(560px,100%);
  height:260px;
  margin:26px auto 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  perspective:1000px;
  border-radius:50%;
  background:
    radial-gradient(ellipse at center,rgba(139,76,34,.22),transparent 65%);
}
.jiaobei-pair{
  position:relative;
  z-index:2;
  width:390px;
  height:210px;
}
.jiaobei{
  position:absolute;
  top:50px;
  width:145px;
  height:72px;
  transform-origin:center;
  transition:transform .35s ease;
}
.jiaobei-left{left:35px;transform:rotate(-14deg)}
.jiaobei-right{right:35px;transform:rotate(14deg)}
.jiaobei-flat,
.jiaobei-round{
  position:absolute;
  inset:0;
  display:block;
  border:3px solid #713117;
  box-shadow:0 12px 24px rgba(80,33,13,.24),inset 0 4px 9px rgba(255,224,174,.36);
}
.jiaobei-flat{
  border-radius:72px 12px 72px 12px;
  background:linear-gradient(135deg,#8b371c,#d27b42 48%,#6a2815);
}
.jiaobei-round{
  opacity:0;
  border-radius:72px 12px 72px 12px;
  background:
    radial-gradient(circle at 35% 32%,#e7a566,#a64723 55%,#6b2815);
}
.jiaobei-pair.is-throwing .jiaobei-left{
  animation:jiaobeiThrowLeft 1.42s cubic-bezier(.22,.8,.3,1);
}
.jiaobei-pair.is-throwing .jiaobei-right{
  animation:jiaobeiThrowRight 1.42s cubic-bezier(.22,.8,.3,1);
}
@keyframes jiaobeiThrowLeft{
  0%{transform:translateY(0) rotate(-14deg) rotateX(0)}
  28%{transform:translateY(-130px) translateX(42px) rotate(170deg) rotateX(220deg)}
  64%{transform:translateY(-45px) translateX(-18px) rotate(340deg) rotateX(390deg)}
  100%{transform:translateY(0) rotate(706deg) rotateX(540deg)}
}
@keyframes jiaobeiThrowRight{
  0%{transform:translateY(0) rotate(14deg) rotateX(0)}
  28%{transform:translateY(-145px) translateX(-34px) rotate(-190deg) rotateX(-230deg)}
  64%{transform:translateY(-54px) translateX(22px) rotate(-355deg) rotateX(-400deg)}
  100%{transform:translateY(0) rotate(-706deg) rotateX(-540deg)}
}
.jiaobei-pair.is-sacred .jiaobei-left{
  transform:rotate(-20deg) rotateY(0deg);
}
.jiaobei-pair.is-sacred .jiaobei-right{
  transform:rotate(18deg) rotateY(180deg);
}
.jiaobei-pair.is-sacred .jiaobei-right .jiaobei-flat{opacity:0}
.jiaobei-pair.is-sacred .jiaobei-right .jiaobei-round{opacity:1}
.jiaobei-pair.is-not-sacred .jiaobei-left{transform:rotate(-16deg)}
.jiaobei-pair.is-not-sacred .jiaobei-right{transform:rotate(16deg)}
.jiaobei-pair.is-not-sacred .jiaobei-round{opacity:0}
.jiaobei-shadow{
  position:absolute;
  bottom:50px;
  width:310px;
  height:34px;
  border-radius:50%;
  background:rgba(71,36,15,.17);
  filter:blur(9px);
}
.drawlots-result-panel{
  display:flex;
  align-items:center;
  gap:15px;
  width:min(530px,100%);
  margin:0 auto 18px;
  padding:14px 18px;
  border:1px solid #dfc98e;
  border-radius:18px;
  background:rgba(255,255,255,.7);
  text-align:left;
}
.drawlots-result-icon{
  flex:0 0 52px;
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#8c6424;
  color:#fff;
  font-weight:900;
}
.drawlots-result-panel strong{
  display:block;
  color:#761414;
  font-size:24px;
}
.drawlots-result-panel p{margin:2px 0 0;color:#685139}
.drawlots-result-panel.is-success{
  border-color:#bf9234;
  background:#fff5d5;
  box-shadow:0 0 34px rgba(224,180,68,.25);
}
.drawlots-result-panel.is-success .drawlots-result-icon{
  background:linear-gradient(135deg,#8b1616,#c0942f);
}
.drawlots-result-panel.is-wait{
  background:#f8f1e1;
}
.drawlots-card .drawlots-primary-btn,
.drawlots-card .drawlots-secondary-btn{
  margin:8px 5px 0;
}
.fortune-cylinder-scene{
  position:relative;
  width:min(520px,100%);
  height:350px;
  margin:18px auto 8px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}
.fortune-glow{
  position:absolute;
  inset:30px 40px 0;
  border-radius:50%;
  background:radial-gradient(circle,rgba(247,216,138,.56),transparent 67%);
}
.fortune-cylinder{
  position:relative;
  z-index:3;
  width:190px;
  height:230px;
  display:grid;
  place-items:center;
  border:9px solid #6b3219;
  border-top-width:18px;
  border-radius:24px 24px 58px 58px;
  background:
    linear-gradient(90deg,#713219,#c47a3d 22%,#8c431f 48%,#d38a46 72%,#6f3119);
  color:#f8d990;
  font-size:62px;
  font-weight:900;
  text-shadow:0 3px 3px rgba(0,0,0,.4);
  box-shadow:inset 0 8px 16px rgba(255,222,151,.25),0 24px 38px rgba(72,31,11,.25);
  transform-origin:50% 90%;
}
.fortune-cylinder:before{
  content:"";
  position:absolute;
  top:-28px;
  width:218px;
  height:38px;
  border:8px solid #6b3219;
  border-radius:50%;
  background:#4e2415;
}
.fortune-cylinder.is-shaking{
  animation:cylinderShake 1.65s ease-in-out infinite;
}
@keyframes cylinderShake{
  0%,100%{transform:rotate(0) translateY(0)}
  20%{transform:rotate(-9deg) translateY(-7px)}
  42%{transform:rotate(8deg) translateY(-12px)}
  65%{transform:rotate(-6deg) translateY(-5px)}
  82%{transform:rotate(5deg) translateY(-9px)}
}
.fortune-sticks{
  position:absolute;
  z-index:2;
  bottom:190px;
  width:180px;
  height:150px;
}
.fortune-sticks i{
  position:absolute;
  left:calc(50% - 7px);
  bottom:-20px;
  width:14px;
  height:180px;
  border-radius:7px 7px 3px 3px;
  background:linear-gradient(90deg,#a95c25,#e2a65a,#985020);
  border:1px solid #773813;
  transform-origin:50% 100%;
  transform:rotate(calc((var(--i) - 5) * 5deg)) translateY(calc(abs(var(--i) - 5) * 2px));
}
.fortune-sticks.is-shaking i{
  animation:sticksShake .48s ease-in-out infinite alternate;
}
@keyframes sticksShake{
  from{margin-left:-5px;transform:rotate(calc((var(--i) - 5) * 6deg)) translateY(-5px)}
  to{margin-left:5px;transform:rotate(calc((var(--i) - 5) * 4deg)) translateY(5px)}
}
.fortune-drawn-stick{
  position:absolute;
  z-index:5;
  left:calc(50% + 65px);
  bottom:110px;
  width:22px;
  height:230px;
  display:grid;
  align-items:flex-start;
  justify-content:center;
  padding-top:12px;
  border:2px solid #703318;
  border-radius:11px 11px 4px 4px;
  background:linear-gradient(90deg,#ae672f,#efd08d,#9a5021);
  color:#761414;
  font-weight:900;
  opacity:0;
  transform:translateY(110px) rotate(8deg);
}
.fortune-drawn-stick.is-rising{
  animation:drawnStickRise .85s cubic-bezier(.2,.85,.3,1.15) forwards;
}
@keyframes drawnStickRise{
  0%{opacity:0;transform:translateY(110px) rotate(8deg)}
  70%{opacity:1;transform:translateY(-65px) rotate(18deg)}
  100%{opacity:1;transform:translateY(-48px) rotate(14deg)}
}
.drawlots-drawing-status{
  color:#8a632b;
  font-weight:800;
  min-height:32px;
}
.drawlots-scroll-card{min-height:610px}
.fortune-scroll{
  width:min(650px,100%);
  margin:28px auto;
  transform:scaleY(.15);
  transform-origin:center;
  opacity:.4;
  transition:transform 1s cubic-bezier(.16,.8,.22,1),opacity .6s ease;
}
.fortune-scroll.is-open{
  transform:scaleY(1);
  opacity:1;
}
.fortune-scroll-top,
.fortune-scroll-bottom{
  position:relative;
  z-index:2;
  height:36px;
  border:5px solid #6e351c;
  border-radius:22px;
  background:linear-gradient(#b8753a,#72401f);
  box-shadow:0 8px 14px rgba(72,31,11,.24);
}
.fortune-scroll-paper{
  position:relative;
  min-height:310px;
  margin:-7px 18px;
  padding:38px 44px;
  border-left:1px solid #d7b96d;
  border-right:1px solid #d7b96d;
  background:
    linear-gradient(90deg,rgba(189,139,49,.11),transparent 7%,transparent 93%,rgba(189,139,49,.11)),
    repeating-linear-gradient(0deg,rgba(132,92,29,.03) 0 1px,transparent 1px 5px),
    #fff8dc;
  box-shadow:0 12px 30px rgba(81,39,15,.12);
}
.fortune-scroll-seal{
  position:absolute;
  right:30px;
  top:26px;
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border:3px double #9a1818;
  color:#9a1818;
  font-weight:900;
  transform:rotate(-8deg);
}
.fortune-scroll-title{
  color:#8e6a2c;
  font-size:15px;
  font-weight:900;
  letter-spacing:.35em;
}
.fortune-scroll-paper .draw-result{
  margin:34px auto;
  color:#761414;
  font-size:clamp(25px,4vw,38px);
  line-height:1.8;
  font-weight:900;
}
.fortune-scroll-blessing{
  padding-top:18px;
  border-top:1px solid rgba(154,104,31,.28);
  color:#7c613c;
  letter-spacing:.08em;
}
.drawlots-finish-actions{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
}
@media(max-width:800px){
  .drawlots-progress{overflow-x:auto;justify-content:flex-start}
  .drawlots-progress-line{width:28px;min-width:28px}
  .drawlots-temple-scene{
    grid-template-columns:1fr;
    gap:10px;
    text-align:center;
  }
  .drawlots-prayer-copy{text-align:center}
  .drawlots-prayer-copy p{margin-left:auto}
  .drawlots-prayer-reminder{justify-content:center}
  .drawlots-incense{min-height:300px}
  .incense-stick{height:130px}
  .smoke{bottom:245px}
}
@media(max-width:520px){
  .drawlots-experience-section{padding-top:28px}
  .drawlots-progress{
    padding:12px;
    border-radius:16px;
  }
  .drawlots-progress-item strong{display:none}
  .drawlots-progress-line{width:25px;min-width:25px;margin:0 5px}
  .drawlots-temple-scene,
  .drawlots-card{
    min-height:auto;
    padding:28px 17px;
    border-radius:24px;
  }
  .drawlots-incense{min-height:255px}
  .incense-burner{width:170px;height:105px;font-size:35px}
  .incense-stick{bottom:96px}
  .jiaobei-floor{height:230px}
  .jiaobei-pair{width:310px}
  .jiaobei{width:115px;height:59px}
  .jiaobei-left{left:28px}
  .jiaobei-right{right:28px}
  .drawlots-result-panel{align-items:flex-start}
  .fortune-cylinder-scene{height:315px}
  .fortune-cylinder{width:160px;height:205px}
  .fortune-sticks{bottom:170px}
  .fortune-drawn-stick{left:calc(50% + 48px)}
  .fortune-scroll-paper{padding:34px 20px}
  .fortune-scroll-seal{width:48px;height:48px;right:16px}
  .drawlots-primary-btn,
  .drawlots-secondary-btn{width:100%}
}
@media print{
  .top-line,.brand-wrap,.nav-wrap,.site-footer,
  .drawlots-progress,.drawlots-finish-actions,
  .drawlots-step:not([data-step="4"]),
  .drawlots-page-hero,.drawlots-intro-section{display:none!important}
  .drawlots-experience-section{background:#fff;padding:0}
  .drawlots-card{box-shadow:none;border:0}
  .fortune-scroll{transform:none!important;opacity:1!important}
}


/* v18 Enterprise DrawLots database module */
.drawlots-instruction-card{
  width:min(720px,100%);
  margin:22px auto;
  padding:20px 24px;
  border:1px solid rgba(185,138,36,.32);
  border-radius:18px;
  background:rgba(255,255,255,.72);
  text-align:left;
  line-height:1.9;
}
.drawlots-instruction-card p{margin:8px 0}
.drawlots-cylinder-button{
  appearance:none;
  cursor:pointer;
  padding:0;
  border-style:solid;
  font-family:inherit;
}
.drawlots-cylinder-button:hover{
  filter:brightness(1.06);
  transform:translateY(-3px);
}
.drawn-lot-number{
  display:inline-block;
  margin:18px auto 4px;
  padding:18px 34px;
  border:2px solid #b68b31;
  border-radius:18px;
  background:linear-gradient(135deg,#fff9df,#f4d887);
  color:#761414;
  font-size:clamp(32px,6vw,58px);
  font-weight:900;
  letter-spacing:.1em;
  box-shadow:0 14px 36px rgba(112,62,19,.15);
}
.drawlots-lot-fields{
  position:relative;
  z-index:1;
  text-align:left;
}
.drawlots-lot-field{
  padding:22px 0;
  border-bottom:1px solid rgba(154,104,31,.24);
}
.drawlots-lot-field:last-child{border-bottom:0}
.drawlots-lot-field h3{
  display:inline-block;
  margin:0 0 12px;
  color:#8f631f;
  font-size:15px;
  font-weight:900;
  letter-spacing:.18em;
}
.drawlots-lot-field>div{
  color:#4b3020;
  font-size:18px;
  line-height:1.9;
}
.drawlots-lot-field.is-poem{
  text-align:center;
}
.drawlots-lot-field.is-poem h3{
  display:block;
}
.drawlots-lot-field.is-poem>div{
  color:#761414;
  font-size:clamp(22px,4vw,32px);
  font-weight:800;
  line-height:2;
  letter-spacing:.08em;
}
@media(max-width:520px){
  .drawlots-instruction-card{padding:16px}
  .drawn-lot-number{width:100%;box-sizing:border-box}
}


/* ===============================================================
   v18.1 Enterprise LTS — Responsive Admin UI
   =============================================================== */
.admin-body{
  overflow-x:hidden;
}
.admin-mobile-bar{
  display:none;
}
.admin-sidebar-backdrop{
  display:none;
}
.admin-sidebar-head{
  display:none;
}
.admin-menu-search-wrap{
  position:sticky;
  top:0;
  z-index:3;
  padding:0 0 12px;
  background:#2b1a14;
}
.admin-menu-search{
  width:100%;
  min-height:44px;
  padding:9px 12px;
  border:1px solid rgba(247,216,138,.3);
  border-radius:12px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:15px;
}
.admin-menu-search::placeholder{
  color:rgba(255,255,255,.62);
}
.admin-sidebar{
  height:100vh;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#8d6c2a #2b1a14;
}
.admin-sidebar h1{
  margin-top:0;
}
.admin-group-title{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:12px 0 4px;
  padding:10px 12px;
  border:0;
  border-left:4px solid #c99a31;
  background:rgba(255,255,255,.055);
  color:#f3d58a;
  font-family:inherit;
  font-size:15px;
  font-weight:800;
  text-align:left;
  cursor:pointer;
}
.admin-group-title:after{
  content:"⌄";
  font-size:17px;
  transition:transform .2s ease;
}
.admin-group-title[aria-expanded="false"]:after{
  transform:rotate(-90deg);
}
.admin-group-links{
  display:block;
}
.admin-group-links.is-collapsed{
  display:none;
}
.admin-group-links a{
  padding-left:18px;
}
.admin-page-topbar{
  display:none;
}
.admin-toolbar{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin:14px 0;
}
.admin-toolbar input,
.admin-toolbar select{
  min-height:44px;
  flex:1 1 220px;
}
.admin-btn{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  line-height:1.3;
}
.admin-table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.admin-main h1{
  line-height:1.3;
}
.admin-main img{
  max-width:100%;
}
.admin-card{
  overflow:visible;
}
.admin-main .table td,
.admin-main .table th{
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* Tablet: off-canvas menu, content uses full width */
@media(max-width:1100px){
  .admin-mobile-bar{
    position:sticky;
    top:0;
    z-index:1002;
    height:64px;
    display:grid;
    grid-template-columns:48px 1fr 52px;
    align-items:center;
    gap:10px;
    padding:8px 14px;
    border-bottom:1px solid rgba(185,138,36,.28);
    background:#fff8e7;
    box-shadow:0 8px 22px rgba(52,29,18,.1);
  }
  .admin-menu-button{
    width:44px;
    height:44px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    border:0;
    border-radius:12px;
    background:#761414;
  }
  .admin-menu-button span{
    width:22px;
    height:2px;
    background:#fff;
  }
  .admin-mobile-title{
    min-width:0;
    text-align:center;
    line-height:1.2;
  }
  .admin-mobile-title strong{
    display:block;
    color:#761414;
    font-size:17px;
  }
  .admin-mobile-title small{
    display:block;
    margin-top:4px;
    color:#85672f;
    font-size:11px;
  }
  .admin-mobile-home{
    display:grid;
    place-items:center;
    min-height:40px;
    border:1px solid #d7bd7d;
    border-radius:11px;
    color:#761414;
    font-size:13px;
    font-weight:800;
    background:#fff;
  }
  .admin-layout{
    display:block;
    min-height:calc(100vh - 64px);
  }
  .admin-sidebar{
    position:fixed;
    z-index:1004;
    top:0;
    bottom:0;
    left:0;
    width:min(360px,88vw);
    height:100dvh;
    padding:18px 18px 36px;
    transform:translateX(-104%);
    transition:transform .25s ease;
    box-shadow:20px 0 50px rgba(0,0,0,.28);
  }
  .admin-menu-open .admin-sidebar{
    transform:translateX(0);
  }
  .admin-sidebar-backdrop{
    position:fixed;
    z-index:1003;
    inset:0;
    display:block;
    visibility:hidden;
    opacity:0;
    background:rgba(25,14,10,.55);
    transition:opacity .2s ease,visibility .2s ease;
  }
  .admin-menu-open .admin-sidebar-backdrop{
    visibility:visible;
    opacity:1;
  }
  .admin-menu-open{
    overflow:hidden;
  }
  .admin-sidebar-head{
    display:flex;
    justify-content:flex-end;
  }
  .admin-sidebar-close{
    width:42px;
    height:42px;
    border:1px solid rgba(255,255,255,.25);
    border-radius:50%;
    color:#fff;
    background:rgba(255,255,255,.08);
    font-size:28px;
    line-height:1;
  }
  .admin-main{
    width:100%;
    padding:20px;
  }
  .admin-page-topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:14px;
  }
  .admin-page-menu-button{
    min-height:42px;
    padding:9px 14px;
    border:0;
    border-radius:11px;
    background:#2b1a14;
    color:#fff;
    font-weight:800;
  }
  .admin-page-breadcrumb{
    min-width:0;
    color:#8a672c;
    font-size:13px;
    text-align:right;
  }
  .admin-card{
    padding:18px;
  }
}

/* Phone: tables become readable cards, no zooming needed */
@media(max-width:720px){
  .admin-mobile-bar{
    grid-template-columns:46px 1fr 48px;
    padding-left:10px;
    padding-right:10px;
  }
  .admin-main{
    padding:12px;
  }
  .admin-page-topbar{
    margin-bottom:10px;
  }
  .admin-card{
    padding:15px;
    border-radius:15px;
  }
  .admin-card h1{
    margin-top:0;
    font-size:28px;
  }
  .admin-toolbar{
    align-items:stretch;
  }
  .admin-toolbar .admin-btn,
  .admin-toolbar input,
  .admin-toolbar select{
    width:100%;
    flex-basis:100%;
  }
  .form-row input,
  .form-row textarea,
  .form-row select{
    min-height:46px;
    font-size:16px;
  }
  .form-row textarea{
    min-height:180px;
  }

  .admin-table-wrap{
    overflow:visible;
  }
  .admin-responsive-table{
    display:block;
    width:100%;
    background:transparent;
  }
  .admin-responsive-table thead,
  .admin-responsive-table > tbody > tr:first-child:has(th){
    display:none;
  }
  .admin-responsive-table tbody,
  .admin-responsive-table tr,
  .admin-responsive-table td{
    display:block;
    width:100%;
  }
  .admin-responsive-table tr{
    margin:0 0 14px;
    padding:12px 14px;
    border:1px solid #e3cd96;
    border-radius:15px;
    background:#fff;
    box-shadow:0 8px 22px rgba(80,42,19,.06);
  }
  .admin-responsive-table tr:has(th){
    display:none;
  }
  .admin-responsive-table td{
    min-height:40px;
    display:grid;
    grid-template-columns:minmax(92px,34%) minmax(0,1fr);
    gap:10px;
    align-items:start;
    padding:8px 0;
    border:0;
    border-bottom:1px dashed #eadfc4;
    text-align:left!important;
  }
  .admin-responsive-table td:last-child{
    border-bottom:0;
  }
  .admin-responsive-table td:before{
    content:attr(data-label);
    color:#815d22;
    font-weight:900;
    line-height:1.5;
  }
  .admin-responsive-table td a{
    display:inline-flex;
    min-height:38px;
    align-items:center;
    margin:2px 5px 2px 0;
    padding:6px 10px;
    border:1px solid #d8bd7a;
    border-radius:9px;
    background:#fff8e7;
    color:#761414;
    white-space:nowrap;
  }
  .admin-responsive-table td img{
    width:min(100%,260px)!important;
    max-width:260px!important;
    height:auto!important;
    max-height:150px!important;
    object-fit:cover;
  }
  .banner-manage-table{
    min-width:0!important;
    table-layout:auto!important;
  }
  .banner-admin-preview{
    width:100%!important;
    max-width:260px!important;
    height:auto!important;
    aspect-ratio:12/5;
  }
  .media-library-grid{
    grid-template-columns:1fr!important;
  }
}

/* Very small phones */
@media(max-width:420px){
  .admin-mobile-title strong{
    font-size:15px;
  }
  .admin-mobile-title small{
    font-size:10px;
  }
  .admin-main{
    padding:9px;
  }
  .admin-card{
    padding:13px;
  }
  .admin-responsive-table td{
    grid-template-columns:1fr;
    gap:3px;
  }
  .admin-responsive-table td:before{
    font-size:13px;
  }
}


/* v19 Enterprise LTS — System Health Center */
.health-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:18px 0 26px;
}
.health-card{
  padding:18px;
  border:1px solid #e2cc95;
  border-radius:16px;
  background:#fffdf7;
  box-shadow:0 8px 22px rgba(74,38,18,.06);
}
.health-card h2{
  margin:10px 0 5px;
  color:#761414;
  font-size:19px;
}
.health-card p{
  margin:0;
  color:#6d583e;
}
.health-badge{
  display:inline-flex;
  min-height:28px;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
}
.health-ok{
  color:#176a36;
  background:#e4f5e9;
  border:1px solid #a9d8b7;
}
.health-bad{
  color:#9a1717;
  background:#fff0ed;
  border:1px solid #e2afa7;
}
@media(max-width:900px){
  .health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .health-grid{grid-template-columns:1fr}
}
\n/* v20.1 Developer Edition */\n.developer-mode-box{margin:18px 0;padding:18px;border:1px solid #e1ca91;border-radius:16px;background:#fff9e9}.developer-toggle{display:flex;align-items:flex-start;gap:12px;margin-bottom:15px;cursor:pointer}.developer-toggle input{width:22px;height:22px;margin-top:3px}.developer-toggle strong{display:block;color:#761414;font-size:18px}.developer-toggle small{display:block;margin-top:4px;color:#745d3c;line-height:1.6}\n

/* v22 Layout Engine */
.layout-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 22px}
.layout-option{display:flex;align-items:center;gap:9px;padding:12px 14px;border:1px solid #dfc991;border-radius:12px;background:#fffaf0;cursor:pointer}
.layout-option input{width:20px;height:20px;margin:0}
.layout-engine-help{margin-top:18px}
.article-cover-compact{max-width:620px;margin-left:auto;margin-right:auto}
.article-cover-compact .article-main-image{max-height:380px;object-fit:contain}
.article-cover-banner .article-main-image{width:100%;aspect-ratio:16/6;object-fit:cover}
.article-cover-hero{margin-left:-28px;margin-right:-28px;margin-top:-28px}
.article-cover-hero .article-main-image{width:100%;max-height:720px;object-fit:cover;border-radius:18px 18px 0 0}
.layout-calendar .article-detail-panel,.layout-iframe .article-detail-panel,.layout-video .article-detail-panel{max-width:1200px}
.layout-iframe .article-content iframe,.layout-video .article-content iframe{display:block;width:100%;max-width:100%;min-height:420px;border:0}
@media(max-width:700px){
 .layout-option-grid{grid-template-columns:1fr}
 .article-cover-hero{margin-left:-16px;margin-right:-16px;margin-top:-16px}
 .article-cover-banner .article-main-image{aspect-ratio:16/9}
 .layout-iframe .article-content iframe,.layout-video .article-content iframe{min-height:260px}
}


/* ===============================================================
   v22.1 DrawLots Visual Asset Manager
   =============================================================== */
.jiaobei-visual-stage{
  position:relative;
  z-index:2;
  width:min(520px,100%);
  height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.jiaobei-result-image{
  display:block;
  width:min(470px,92%);
  max-height:215px;
  object-fit:contain;
  filter:drop-shadow(0 14px 14px rgba(68,31,12,.20));
}
.jiaobei-result-image[hidden]{
  display:none!important;
}
.jiaobei-pair.is-laugh .jiaobei-left,
.jiaobei-pair.is-laugh .jiaobei-right{
  transform:rotate(0deg);
}
.jiaobei-pair.is-laugh .jiaobei-round{
  opacity:0;
}
.jiaobei-pair.is-negative .jiaobei-left,
.jiaobei-pair.is-negative .jiaobei-right{
  transform:rotate(180deg);
}
.jiaobei-pair.is-negative .jiaobei-flat{
  opacity:0;
}
.jiaobei-pair.is-negative .jiaobei-round{
  opacity:1;
}
.drawlots-asset-admin-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin:20px 0;
}
.drawlots-asset-admin-card{
  min-width:0;
  padding:18px;
  border:1px solid #dfc98e;
  border-radius:18px;
  background:#fffdf7;
}
.drawlots-asset-admin-card h2{
  margin:0 0 8px;
  color:#761414;
  font-size:20px;
}
.drawlots-asset-admin-card>p{
  min-height:48px;
  color:#715b3f;
  line-height:1.6;
}
.drawlots-asset-preview{
  min-height:210px;
  margin:14px 0;
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px dashed #ccb170;
  border-radius:14px;
  background:#f8edce;
  overflow:hidden;
}
.drawlots-asset-preview img{
  display:block;
  width:100%;
  max-height:260px;
  object-fit:contain;
}
.drawlots-asset-preview span{
  color:#8a734e;
}
@media(max-width:760px){
  .drawlots-asset-admin-grid{
    grid-template-columns:1fr;
  }
  .jiaobei-visual-stage{
    height:190px;
  }
  .jiaobei-result-image{
    max-height:185px;
  }
}


/* ===============================================================
   v22.2 Realistic Online DrawLots Platform
   =============================================================== */

.drawlots-ritual-intro{
  position:relative;
  min-height:690px;
  margin-bottom:30px;
  padding:44px 28px 38px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:1px solid rgba(185,142,48,.42);
  border-radius:30px;
  background:
    radial-gradient(circle at 50% 30%,rgba(255,236,171,.92),rgba(249,239,210,.88) 42%,rgba(237,218,170,.88));
  box-shadow:0 24px 60px rgba(86,45,16,.12);
  text-align:center;
  transition:opacity .42s ease,transform .42s ease;
}

.drawlots-ritual-intro.is-hidden{
  opacity:0;
  transform:translateY(-18px);
}

.drawlots-ritual-background{
  position:absolute;
  inset:0;
  z-index:0;
  background-position:center;
  background-size:cover;
  opacity:.72;
}

.drawlots-incense-scene,
.drawlots-deity-scene,
.drawlots-ritual-copy,
.drawlots-ritual-intro button{
  position:relative;
  z-index:2;
}

.drawlots-incense-scene{
  width:220px;
  height:210px;
  margin-bottom:8px;
  opacity:.35;
  transition:opacity .8s ease;
}

.drawlots-incense-scene.is-active{
  opacity:1;
}

.drawlots-incense-burner{
  position:absolute;
  left:50%;
  bottom:10px;
  width:130px;
  height:56px;
  transform:translateX(-50%);
  border-radius:18px 18px 36px 36px;
  background:linear-gradient(180deg,#a86e25,#5c2d13);
  box-shadow:
    inset 0 5px 10px rgba(255,221,129,.32),
    0 16px 22px rgba(75,35,15,.18);
}

.drawlots-incense-stick{
  position:relative;
  display:inline-block;
  width:5px;
  height:88px;
  margin:0 5px;
  top:-76px;
  border-radius:5px;
  background:linear-gradient(#692611 0 74%,#d6a234 74%);
}

.drawlots-smoke{
  position:absolute;
  left:50%;
  bottom:105px;
  width:42px;
  height:100px;
  border-radius:50%;
  border-left:8px solid rgba(255,255,255,.46);
  filter:blur(4px);
  opacity:0;
}

.drawlots-incense-scene.is-active .drawlots-smoke{
  animation:drawlotsSmoke 2.9s ease-in-out infinite;
}

.drawlots-smoke.smoke-one{margin-left:-42px}
.drawlots-smoke.smoke-two{
  margin-left:-2px;
  animation-delay:.7s!important;
}
.drawlots-smoke.smoke-three{
  margin-left:30px;
  animation-delay:1.25s!important;
}

@keyframes drawlotsSmoke{
  0%{opacity:0;transform:translateY(25px) scale(.72) rotate(-8deg)}
  30%{opacity:.62}
  100%{opacity:0;transform:translateY(-120px) scale(1.55) rotate(24deg)}
}

.drawlots-deity-scene{
  width:min(760px,100%);
  min-height:330px;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transform:translateY(18px) scale(.97);
  transition:opacity 1.1s ease,transform 1.1s ease;
}

.drawlots-deity-scene.is-visible{
  opacity:1;
  transform:none;
}

.drawlots-deity-picture{
  display:block;
  width:100%;
}

.drawlots-deity-picture img{
  display:block;
  width:100%;
  max-height:420px;
  object-fit:contain;
  filter:drop-shadow(0 24px 24px rgba(66,33,12,.22));
}

.drawlots-deity-placeholder{
  width:min(470px,90%);
  min-height:285px;
  padding:34px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(181,137,44,.45);
  border-radius:28px;
  background:rgba(255,249,226,.78);
}

.drawlots-deity-placeholder[hidden]{
  display:none!important;
}

.drawlots-deity-emblem{
  width:118px;
  height:118px;
  margin-bottom:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:3px solid #b88724;
  border-radius:50%;
  color:#7c1717;
  font-size:31px;
  font-weight:800;
  box-shadow:0 0 38px rgba(203,154,47,.28);
}

.drawlots-deity-placeholder strong{
  color:#711818;
  font-size:25px;
}

.drawlots-deity-placeholder small{
  margin-top:10px;
  color:#826d48;
}

.drawlots-ritual-copy{
  width:min(760px,100%);
  margin:18px auto 22px;
}

.drawlots-ritual-copy h2{
  margin:8px 0 12px;
  color:#741818;
  font-size:clamp(28px,4vw,48px);
}

.drawlots-ritual-copy p{
  margin:0;
  color:#604a32;
  font-size:18px;
  line-height:1.8;
}

.drawlots-skip-btn{
  margin-top:12px;
  padding:8px 16px;
  border:0;
  background:transparent;
  color:#84683e;
  cursor:pointer;
  text-decoration:underline;
}

.jiaobei-motion-status{
  position:absolute;
  left:50%;
  bottom:2px;
  z-index:4;
  min-width:130px;
  transform:translateX(-50%);
  padding:7px 15px;
  border:1px solid rgba(168,122,28,.35);
  border-radius:999px;
  background:rgba(255,250,232,.9);
  color:#6f4b20;
  font-size:14px;
  font-weight:700;
}

.jiaobei-motion-status.is-rotating,
.jiaobei-motion-status.is-landing,
.jiaobei-motion-status.is-waiting{
  animation:drawlotsStatusPulse 1s ease-in-out infinite;
}

.jiaobei-motion-status.is-sacred{
  background:#fff0b8;
  color:#8b2a16;
}

.jiaobei-motion-status.is-laugh{
  background:#fff6d4;
  color:#8b6424;
}

.jiaobei-motion-status.is-negative{
  background:#eee7dd;
  color:#605448;
}

@keyframes drawlotsStatusPulse{
  50%{transform:translateX(-50%) scale(1.04)}
}

.jiaobei-pair.is-rotating{
  animation:drawlotsCupRotate .85s cubic-bezier(.2,.75,.25,1) forwards;
}

.jiaobei-pair.is-landing{
  animation:drawlotsCupLand .6s cubic-bezier(.22,.78,.25,1) forwards;
}

.jiaobei-pair.is-waiting{
  transform:translateY(8px);
}

@keyframes drawlotsCupRotate{
  0%{transform:translateY(10px) rotate(0deg) scale(.9)}
  35%{transform:translateY(-95px) rotate(240deg) scale(1.08)}
  70%{transform:translateY(-55px) rotate(590deg) scale(1)}
  100%{transform:translateY(0) rotate(720deg) scale(1)}
}

@keyframes drawlotsCupLand{
  0%{transform:translateY(-35px) scale(1.06)}
  55%{transform:translateY(14px) scale(.96)}
  78%{transform:translateY(-7px) scale(1.02)}
  100%{transform:translateY(0) scale(1)}
}

.fortune-cylinder-custom-image,
.fortune-cylinder-shake-image{
  position:absolute;
  left:50%;
  bottom:0;
  z-index:3;
  width:min(280px,65%);
  max-height:360px;
  transform:translateX(-50%);
  object-fit:contain;
  filter:drop-shadow(0 18px 18px rgba(64,28,8,.25));
}

.fortune-cylinder-shake-image{
  z-index:6;
}

.fortune-cylinder-custom-image.is-shaking{
  animation:drawlotsCylinderRealShake .16s linear infinite;
}

@keyframes drawlotsCylinderRealShake{
  0%,100%{transform:translateX(-50%) rotate(-3deg)}
  50%{transform:translateX(-50%) rotate(4deg)}
}

.fortune-custom-stick-image{
  position:absolute;
  left:50%;
  bottom:92px;
  z-index:8;
  width:70px;
  max-height:320px;
  transform:translate(-50%,150px);
  object-fit:contain;
  opacity:0;
  filter:drop-shadow(0 14px 10px rgba(60,27,9,.24));
}

.fortune-custom-stick-image.is-rising{
  animation:drawlotsCustomStickRise .82s ease-out forwards;
}

@keyframes drawlotsCustomStickRise{
  0%{opacity:0;transform:translate(-50%,150px) rotate(-5deg)}
  65%{opacity:1;transform:translate(-50%,-50px) rotate(3deg)}
  100%{opacity:1;transform:translate(-50%,-30px) rotate(0)}
}

.drawlots-admin-group-title{
  grid-column:1/-1;
  margin:18px 0 0;
  padding:12px 16px;
  border-left:5px solid #b98a2a;
  background:#f7e9be;
  color:#6e1717;
  border-radius:0 12px 12px 0;
}

.drawlots-asset-admin-card h3{
  margin:0 0 8px;
  color:#761414;
  font-size:20px;
}

@media(max-width:700px){
  .drawlots-ritual-intro{
    min-height:680px;
    padding:30px 18px;
    border-radius:22px;
  }

  .drawlots-incense-scene{
    height:170px;
  }

  .drawlots-deity-scene{
    min-height:360px;
  }

  .drawlots-deity-picture img{
    max-height:410px;
  }

  .drawlots-ritual-copy p{
    font-size:16px;
  }
}


/* ===============================================================
   v22.3 Correct Online DrawLots Flow
   =============================================================== */

.drawlots-fixed-deity-panel{
  position:relative;
  margin-bottom:28px;
  padding:28px;
  overflow:hidden;
  border:1px solid rgba(183,137,42,.42);
  border-radius:28px;
  background:
    radial-gradient(circle at 50% 25%,rgba(255,242,196,.96),rgba(247,232,190,.88));
  box-shadow:0 20px 48px rgba(82,42,15,.11);
}

.drawlots-fixed-deity-inner{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.drawlots-fixed-deity-panel .drawlots-deity-picture{
  width:min(920px,100%);
}

.drawlots-fixed-deity-panel .drawlots-deity-picture img{
  width:100%;
  max-height:620px;
  object-fit:contain;
  object-position:center;
  border-radius:18px;
  filter:drop-shadow(0 22px 24px rgba(61,31,11,.20));
}

.drawlots-fixed-deity-panel .drawlots-deity-placeholder{
  min-height:360px;
}

.drawlots-fixed-deity-copy{
  width:min(850px,100%);
  margin-top:20px;
}

.drawlots-fixed-deity-copy h2{
  margin:8px 0 12px;
  color:#731717;
  font-size:clamp(28px,4vw,46px);
}

.drawlots-fixed-deity-copy p{
  margin:0;
  color:#604b34;
  font-size:18px;
  line-height:1.9;
}

.drawlots-prayer-instruction,
.drawlots-confirm-instruction{
  margin:18px 0 20px;
  padding:18px 20px;
  border:1px solid #dfc98e;
  border-radius:16px;
  background:#fffaf0;
  color:#5f4a32;
  line-height:1.85;
}

.drawlots-prayer-instruction blockquote{
  margin:14px 0;
  padding:16px 18px;
  border-left:5px solid #b8892b;
  background:#f8edce;
  color:#663d24;
  font-style:normal;
  line-height:1.9;
}

.drawlots-prayer-example{
  margin:16px 0;
  padding:16px 18px;
  border:1px dashed #c9a85b;
  border-radius:14px;
  background:#fffdf6;
}

.drawlots-prayer-example>strong{
  display:block;
  margin-bottom:8px;
  color:#761414;
  font-size:18px;
}

.jiaobei-visual-stage.is-clickable,
.drawlots-cylinder-button{
  cursor:pointer;
}

.jiaobei-visual-stage.is-clickable{
  border-radius:22px;
  transition:transform .2s ease,box-shadow .2s ease;
}

.jiaobei-visual-stage.is-clickable:hover,
.jiaobei-visual-stage.is-clickable:focus{
  transform:translateY(-3px);
  outline:none;
  box-shadow:0 12px 28px rgba(105,54,19,.14);
}

.drawlots-start-draw-btn{
  display:block;
  margin:14px auto 0;
}

@media(max-width:700px){
  .drawlots-fixed-deity-panel{
    padding:16px;
    border-radius:20px;
  }

  .drawlots-fixed-deity-panel .drawlots-deity-picture img{
    max-height:520px;
  }

  .drawlots-fixed-deity-copy p{
    font-size:16px;
  }

  .drawlots-prayer-instruction,
  .drawlots-confirm-instruction{
    padding:15px;
  }
}


/* v22.5.4 先天道文庫／太昊專欄統一 */
.article-top-badge{
  display:inline-block;
  margin:0 0 8px;
  padding:5px 10px;
  border:1px solid #c59a3b;
  border-radius:999px;
  background:#fff2c8;
  color:#761414;
  font-size:13px;
  font-weight:800;
}

/*css 文章編輯器表格自適應*/
/* ==========================================
   Responsive Table (Taihau CMS Enterprise)
   ========================================== */

.article-content table,
.editor-content table{
    width:100%;
    border-collapse:collapse;
}

.article-content td,
.editor-content td{
    padding:8px;
    vertical-align:top;
}

.article-content td img,
.editor-content td img{
    width:100%;
    height:auto;
    display:block;
    border-radius:8px;
}

/* 平板 */

@media (max-width:992px){

.article-content td,
.editor-content td{

    display:block;
    width:100% !important;

}

.article-content tr,
.editor-content tr{

    display:block;

}

.article-content tbody,
.editor-content tbody{

    display:block;

}

.article-content table,
.editor-content table{

    display:block;

}

}
/*css 文章編輯器表格自適應 end*/