:root {
  --purple: #5e2a84;
  --purple-dark: #3c145d;
  --gold: #f2a900;
  --green: #13a66b;
  --ink: #182033;
  --muted: #667085;
  --line: #dce5ef;
  --soft: #f5f8fc;
  --white: #ffffff;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #e8edf3;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

.gzh-shell {
  width: min(100% - 32px, 920px);
  min-width: 0;
  margin: 40px auto;
  background: var(--white);
  box-shadow: 0 20px 70px rgba(24, 32, 51, 0.12);
  overflow-x: hidden;
  border-radius: 12px;
}

.gzh-hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  color: #fff;
  background: var(--purple-dark);
}
.gzh-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(60, 20, 93, 0.92), rgba(94, 42, 132, 0.72), rgba(5, 55, 76, 0.45)),
    url("/site/hero_banner.png") center/cover;
}
.gzh-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 420px;
  padding: max(32px, env(safe-area-inset-top)) 24px 112px;
}
.gzh-logo {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(44%, 200px);
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 18px 48px rgba(0,0,0,0.22);
}
.eyebrow {
  margin: 28px 0 10px;
  color: #ffd871;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 8vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
  color: #ffffff;
}
.gzh-hero p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255,255,255,0.9);
  font-size: 17px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}
.primary-action { background: var(--gold); color: #28123b; }
.secondary-action { border: 1px solid rgba(255,255,255,0.48); color: #fff; }

.quick-nav {
  position: sticky;
  top: 90px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.quick-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 8px;
  color: var(--purple);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
}
.quick-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--purple);
  border-radius: 2px;
  transition: all 0.2s ease;
}
.quick-nav a:hover {
  background: rgba(94, 42, 132, 0.04);
}
.quick-nav a:hover::after {
  width: 48px;
}

.section {
  padding: 34px 20px;
}
.section.muted {
  background: var(--soft);
}
.section-head {
  margin-bottom: 18px;
}
.section-head p {
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.section-head h2,
.follow-card h2 {
  margin-bottom: 0;
  color: var(--purple-dark);
  font-size: 26px;
}

.article-list,
.event-list {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}
.article-card,
.event-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(24, 32, 51, 0.06);
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.article-card {
  border-left: 4px solid var(--purple);
}
details.article-card { display: block; }
.article-card summary { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; list-style: none; }
.article-card summary::-webkit-details-marker { display: none; }
.article-card .article-cover { flex: none; width: 120px; height: 90px; border-radius: 6px; object-fit: cover; }
.article-card .article-text { display: grid; gap: 6px; flex: 1; min-width: 0; }
.article-card .article-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.75;
  white-space: pre-wrap;
}
.event-card {
  border-left: 4px solid var(--gold);
}
.article-card h3,
.event-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
  white-space: normal;
}
.article-card p,
.event-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
  white-space: normal;
}
.meta {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-all;
  white-space: normal;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.service-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover,
.article-card:hover,
.event-card:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 42, 132, 0.32);
  box-shadow: 0 14px 30px rgba(24, 32, 51, 0.1);
}
.service-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}
.service-card strong {
  color: var(--purple-dark);
  font-size: 18px;
}
.service-card small {
  color: var(--muted);
  line-height: 1.6;
}

.follow-card {
  display: grid;
  grid-template-columns: 1fr 164px;
  gap: 22px;
  align-items: center;
  margin: 0 20px 30px;
  padding: 24px;
  border-radius: 8px;
  color: #46235e;
  background: linear-gradient(135deg, #f2e9fa, #ddc6ee);
}
.follow-card .eyebrow { color: #694281; }
.follow-card p:not(.eyebrow) {
  margin-bottom: 0;
  color: #5c3b73;
  line-height: 1.7;
}
.follow-card h2 { color: #46235e; }
.qr-box {
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}
.qr-box img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}
.empty button {
  display: inline-block;
  margin: 10px 0 0 8px;
  padding: 7px 14px;
  border: 1px solid var(--purple);
  border-radius: 7px;
  background: var(--white);
  color: var(--purple);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.empty button:hover,.empty button:focus-visible { background: #f5eff9; }

@media (max-width: 560px) {
  body { background: #fff; }
  .qrcode-widget { display: none !important; }
  .article-card .article-cover { width: 84px; height: 84px; }
  .gzh-shell { width: 100%; box-shadow: none; margin: 0 auto; border-radius: 0; }
  .gzh-hero { min-height: 390px; }
  .gzh-hero-inner { padding-left: 18px; padding-right: 18px; }
  .quick-nav {
    top: 0;
    grid-template-columns: repeat(4, 1fr);
  }
  .section { padding: 30px 16px; }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: auto;
  }
  .follow-card {
    grid-template-columns: 1fr;
    margin: 0 16px 24px;
  }
  .qr-box {
    width: min(220px, 100%);
  }
}

.events-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 12px;
}
.events-pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--purple);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.events-pagination button:hover:not(:disabled) {
  border-color: var(--purple);
  background: rgba(94, 42, 132, 0.05);
}
.events-pagination button.active {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}
.events-pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: var(--muted);
  border-color: var(--line);
}
