@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800&family=Noto+Serif+TC:wght@500;600;700&display=swap');

:root {
  --tp-ink: #3d291e;
  --tp-muted: #77665a;
  --tp-brown: #4a2f24;
  --tp-gold: #b67828;
  --tp-cream: #f7ecd8;
  --tp-paper: #fffaf1;
  --tp-sage: #e9eee4;
  --tp-line: rgba(125, 82, 42, .22);
  --tp-serif: "Noto Serif TC", "Songti TC", serif;
  --tp-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--tp-cream); color: var(--tp-ink); font-family: var(--tp-sans); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.temple-page { min-height: 100vh; overflow: hidden; }

.mh-header {
  position: relative; z-index: 50; min-height: 92px; display: flex; align-items: center;
  justify-content: space-between; gap: 28px; padding: 0 max(28px, calc((100vw - 1320px) / 2));
  background: var(--tp-brown); color: #fff8e9; border-bottom: 1px solid rgba(230,190,121,.22);
}
.mh-brand-area, .mh-brand, .mh-actions { display: flex; align-items: center; }
.mh-brand-area { gap: 16px; }
.mh-brand { gap: 12px; }
.mh-brand img { width: 55px; height: 55px; object-fit: contain; }
.mh-brand span { display: grid; gap: 2px; }
.mh-brand b { font: 700 25px/1.25 var(--tp-serif); letter-spacing: .09em; }
.mh-brand small { color: #ead9bd; font-size: 12px; letter-spacing: .2em; }
.mh-header-quick { position: relative; }
.mh-header-quick > summary {
  min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 13px;
  border: 1px solid rgba(232,198,139,.45); border-radius: 999px; color: #f5ead7;
  cursor: pointer; list-style: none;
}
.mh-header-quick > summary::-webkit-details-marker, .mh-search > summary::-webkit-details-marker { display: none; }
.mh-header-quick > summary em { font: normal 500 14px/1 var(--tp-serif); }
.mh-quick-bars { width: 16px; display: grid; gap: 4px; }
.mh-quick-bars i { height: 1px; background: currentColor; }
.mh-header-quick nav {
  position: absolute; top: 49px; left: 0; width: 225px; display: grid; padding: 9px;
  border: 1px solid var(--tp-line); border-radius: 12px; background: #fffdf8; color: #4a382d;
  box-shadow: 0 16px 34px rgba(38,23,14,.18);
}
.mh-header-quick:not([open]) nav { display: none; }
.mh-header-quick nav a { padding: 8px 11px; border-radius: 8px; font-size: 14px; }
.mh-header-quick nav a:hover { background: #f4ead0; color: #86571f; }
.mh-actions { gap: 12px; }
.mh-search { position: relative; }
.mh-search > summary { width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; }
.mh-search svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.mh-search form {
  position: absolute; top: 48px; right: 0; display: flex; width: 310px; padding: 9px;
  border-radius: 12px; background: #fffdf8; box-shadow: 0 16px 34px rgba(38,23,14,.18);
}
.mh-search:not([open]) form { display: none; }
.mh-search input { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid var(--tp-line); border-radius: 8px 0 0 8px; font: inherit; }
.mh-search button { border: 0; border-radius: 0 8px 8px 0; padding: 0 14px; background: var(--tp-gold); color: white; }
.zen-member { padding: 11px 18px; border: 1px solid rgba(232,198,139,.45); border-radius: 999px; font-size: 14px; }

.temple-hero { background: linear-gradient(115deg, #f8edd9 0 52%, #eaf0e4 100%); }
.temple-hero-inner {
  width: min(1240px, calc(100% - 52px)); min-height: 560px; margin: auto; display: grid;
  grid-template-columns: 1.02fr .98fr; align-items: center; gap: 38px; padding: 58px 0 50px;
}
.temple-back { display: inline-block; margin-bottom: 34px; color: #8d5b2e; font-size: 14px; font-weight: 700; }
.temple-eyebrow { margin: 0 0 11px; color: #a96625; font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.temple-hero h1 { margin: 0; font: 800 clamp(50px, 5.3vw, 76px)/1.15 var(--tp-sans); letter-spacing: .06em; }
.temple-lead { max-width: 620px; margin: 21px 0 27px; color: #625044; font-size: 18px; font-weight: 500; line-height: 1.9; }
.temple-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.temple-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border-radius: 999px; font-weight: 700; }
.temple-button.primary { background: #b86f1a; color: #fffaf0; box-shadow: 0 9px 20px rgba(164,93,18,.2); }
.temple-button.secondary { border: 1px solid #bd8c52; background: rgba(255,255,255,.5); color: #76502d; }
.temple-hero-note { display: block; margin-top: 20px; color: #887162; font-size: 13px; }
.temple-hero-art { margin: 0; }
.temple-hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 16px;
  filter: none;
  mix-blend-mode: normal;
  box-shadow: 0 16px 36px rgba(60, 40, 25, .14);
}

.temple-quick-links {
  width: min(1180px, calc(100% - 52px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid #d8bc91;
  border-radius: 16px;
  background: #fcf5e9;
  box-shadow: 0 6px 20px rgba(81, 51, 28, .07);
}
.temple-quick-links a {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 15px;
  border-bottom: 4px solid #9c6a3b;
  color: var(--tp-ink);
  font-size: 19px;
  font-weight: 700;
  text-align: center;
}
.temple-quick-links a + a { border-left: 1px solid var(--tp-line); }
.temple-quick-links a:hover, .temple-quick-links a:focus-visible { background: #f1dfc3; }
.temple-quick-icon { display: inline-flex; color: #b87d32; }
.temple-quick-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.temple-main { background: linear-gradient(180deg, #fffaf0, #f7ead3); }
.temple-section { width: min(1180px, calc(100% - 52px)); margin: auto; padding: 68px 0; }
.temple-section + .temple-section { border-top: 1px solid var(--tp-line); }
.section-heading { margin: 0 auto 32px; text-align: center; }
.section-heading small { color: #a5682b; font-weight: 800; letter-spacing: .18em; }
.section-heading h2 { margin: 8px 0 10px; font: 800 clamp(30px,3.2vw,43px)/1.25 var(--tp-sans); letter-spacing: .05em; }
.section-heading p { max-width: 780px; margin: auto; color: var(--tp-muted); font-size: 16px; line-height: 1.85; }

.purpose-panel { display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; border: 1px solid var(--tp-line); border-radius: 18px; background: rgba(255,255,255,.72); box-shadow: 0 12px 28px rgba(77,48,25,.07); }
.purpose-illustration { min-height: 320px; margin: 0; overflow: hidden; background: #ddc7a3; }
.purpose-illustration img { width: 100%; height: 100%; min-height: 320px; display: block; object-fit: cover; object-position: center; }
.purpose-copy { padding: 40px 44px; }
.purpose-copy h3 { margin: 0 0 17px; font-size: 27px; }
.purpose-copy h4 { margin: 20px 0 9px; color: #69432a; font-size: 20px; }
.purpose-copy p { margin: 0 0 14px; color: #654f42; font-size: 16px; line-height: 1.9; }
.purpose-copy a { display: inline-block; margin-top: 5px; color: #955e26; font-weight: 700; border-bottom: 1px solid #b98a56; }

.service-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.service-card { min-height: 272px; display: flex; flex-direction: column; padding: 29px; border: 1px solid var(--tp-line); border-radius: 17px; background: #fffdf8; box-shadow: 0 10px 24px rgba(75,46,24,.06); }
.service-card.primary-card { background: linear-gradient(135deg, #5a3729, #4a2f24); color: #fff9ed; }
.service-card > span { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 23px; border-radius: 50%; background: #efe2cb; color: #895528; font-weight: 800; }
.primary-card > span { background: #e4b863; color: #503022; }
.service-card h3 { margin: 0 0 9px; font-size: 24px; }
.service-card p { margin: 0 0 22px; color: var(--tp-muted); font-size: 15px; line-height: 1.75; }
.primary-card p { color: #eadbc8; }
.service-card a { margin-top: auto; align-self: flex-start; color: #915a25; font-weight: 700; }
.primary-card a { padding: 11px 17px; border-radius: 999px; background: #e3b65f; color: #4a2f24; }

.hall-strip { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border: 1px solid var(--tp-line); border-radius: 17px; background: #fffdf8; }
.hall-strip article { padding: 28px; text-align: center; }
.hall-strip article { padding: 18px 12px; }
.hall-strip article + article { border-left: 1px solid var(--tp-line); }
.hall-strip small { color: #a5682b; font-weight: 800; letter-spacing: .14em; }
.hall-strip h3 { margin: 8px 0; font-size: 24px; }
.hall-strip h3 { margin: 0 0 5px; font-size: 20px; }
.hall-strip p { margin: 0; color: var(--tp-muted); font-size: 14px; line-height: 1.7; }
.hall-strip small { display: block; margin-top: 5px; font-size: 12px; letter-spacing: 0; }
.hall-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 3px 9px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.hall-contact:first-of-type { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--tp-line); }
.hall-contact span { width: 100%; color: #8e6c4d; font-weight: 700; }
.hall-contact a, .hall-contact b { color: #5b3927; font-weight: 700; white-space: nowrap; }
.hall-contact a:hover, .hall-contact a:focus-visible { text-decoration: underline; }
.hall-link { display: block; width: max-content; margin: 23px auto 0; color: #8f5924; font-weight: 700; border-bottom: 1px solid #b98a56; }

.social-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: 32px 38px; border: 1px solid #d5a15c; border-radius: 18px; background: linear-gradient(110deg, #fff8e7, #f3d6a2); }
.social-panel h2 { margin: 0 0 7px; font-size: 30px; }
.social-panel p { margin: 0; color: #705849; }
.temple-socials { display: flex; gap: 12px; }
.temple-socials a { min-width: 130px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 18px; border-radius: 999px; background: #fffaf0; border: 1px solid rgba(106,69,32,.22); font-weight: 700; }
.temple-socials img { width: 28px; height: 28px; }

.mh-footer { padding: 12px max(28px, calc((100vw - 1320px)/2)); background: var(--tp-brown); color: #f3ede2; }
.mh-footer-main { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mh-footer-brand { min-width: 245px; display: flex; align-items: center; gap: 12px; }
.mh-footer-brand img { width: 66px; height: 66px; object-fit: contain; }
.mh-footer-brand span { display: grid; gap: 2px; }
.mh-footer-brand b { font: 700 22px/1.25 var(--tp-serif); letter-spacing: .06em; }
.mh-footer-brand small { font-size: 14px; }
.mh-footer-legal, .mh-social { display: flex; align-items: center; gap: 22px; }
.mh-footer-legal a, .mh-footer-copyright { white-space: nowrap; font-size: 15px; font-weight: 600; }
.mh-social { gap: 16px; }
.mh-social a { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 15px; }
.mh-social img { width: 34px; height: 34px; }

@media (max-width: 980px) {
  .temple-quick-links { grid-template-columns: repeat(2, 1fr); }
  .temple-quick-links a:nth-child(3) { border-left: 0; }
  .temple-quick-links a:nth-child(n + 3) { border-top: 1px solid var(--tp-line); }
  .temple-hero-inner { min-height: 0; grid-template-columns: 1fr; padding-top: 48px; }
  .temple-hero-copy { text-align: center; }
  .temple-back { margin-bottom: 25px; }
  .temple-lead { margin-left: auto; margin-right: auto; }
  .temple-actions { justify-content: center; }
  .temple-hero-art { width: min(620px,88%); margin: -22px auto 0; }
  .purpose-panel { grid-template-columns: 1fr; }
  .purpose-illustration, .purpose-illustration img { min-height: 260px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .mh-footer-main { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 680px) {
  .temple-quick-links { width: calc(100% - 32px); }
  .temple-quick-links a { min-height: 78px; gap: 6px; flex-direction: column; font-size: 15px; }
  .temple-quick-icon svg { width: 25px; height: 25px; }
  .mh-header { min-height: 78px; padding: 8px 18px; }
  .mh-header-quick > summary em { display: none; }
  .mh-header-quick > summary { width: 38px; padding: 0 10px; }
  .mh-brand img { width: 46px; height: 46px; }
  .mh-brand b { font-size: 20px; }
  .mh-brand small, .mh-actions .zen-member { display: none; }
  .mh-search form { right: -2px; width: min(310px,calc(100vw - 36px)); }
  .temple-hero-inner, .temple-section { width: min(100% - 32px,1180px); }
  .temple-hero-inner { padding: 38px 0; }
  .temple-hero h1 { font-size: 42px; }
  .temple-lead { font-size: 16px; }
  .temple-section { padding: 52px 0; }
  .purpose-copy { padding: 28px 23px; }
  .hall-strip { grid-template-columns: 1fr; }
  .hall-strip article + article { border-left: 0; border-top: 1px solid var(--tp-line); }
  .social-panel { grid-template-columns: 1fr; padding: 27px 23px; text-align: center; }
  .temple-socials { justify-content: center; flex-wrap: wrap; }
  .mh-footer { padding: 18px; }
  .mh-footer-main { flex-direction: column; gap: 13px; }
  .mh-footer-brand { min-width: 0; }
  .mh-footer-legal { gap: 14px; flex-wrap: wrap; justify-content: center; }
  .mh-footer-legal a, .mh-footer-copyright { font-size: 13px; }
  .mh-social span { display: none; }
}
