:root {
  --ink: #2f2027;
  --muted: #725f68;
  --plum: #642b46;
  --plum-dark: #45182f;
  --rose: #c66f84;
  --blush: #f6e7e9;
  --ivory: #fffaf5;
  --paper: #fffefd;
  --gold: #b8894d;
  --line: #eadbd9;
  --shadow: 0 18px 50px rgba(69, 24, 47, 0.1);
  --radius: 24px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  z-index: -1;
  background-image: radial-gradient(circle at 15% 8%, rgba(198,111,132,.14), transparent 26%), radial-gradient(circle at 88% 35%, rgba(184,137,77,.11), transparent 24%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.25; letter-spacing: .015em; }
h1 { font-size: clamp(2.35rem, 6vw, 5.2rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); }
h3 { font-size: 1.2rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: .65rem 1rem;
  color: #fff;
  background: var(--plum-dark);
  border-radius: 10px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(100,43,70,.1);
  background: rgba(255,250,245,.92);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(calc(100% - 40px), var(--content));
  min-height: 84px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--plum);
  border-radius: 50% 50% 46% 54%;
  font-family: "DFKai-SB", "BiauKai", serif;
  font-size: 1.35rem;
  box-shadow: 0 8px 20px rgba(100,43,70,.2);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.05rem; letter-spacing: .08em; }
.brand small { color: var(--muted); font-size: .72rem; letter-spacing: .12em; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { padding: .55rem .7rem; color: var(--muted); border-radius: 999px; font-size: .92rem; white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1200px) { .site-header .site-nav { gap: 2px; } .site-header .site-nav a { padding: .55rem .42rem; font-size: .875rem; } }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--plum); background: var(--blush); }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 11px; border: 0; background: transparent; }
.nav-toggle > span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--plum); transition: .2s ease; }

main { overflow: clip; }
.section {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) 0;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--rose);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.3rem;
  color: #fff;
  background: var(--plum);
  border: 1px solid var(--plum);
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(100,43,70,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(100,43,70,.22); }
.button--ghost { color: var(--plum); background: transparent; box-shadow: none; }
.button--light { color: var(--plum); background: var(--paper); border-color: var(--paper); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--plum); font-weight: 800; }
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }

.hero {
  width: min(calc(100% - 40px), 1280px);
  min-height: calc(100vh - 84px);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 100px) 0;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(36px, 6vw, 90px);
}
.hero h1 { margin-bottom: 24px; color: var(--plum-dark); font-family: "Noto Serif TC", "PMingLiU", serif; }
.hero p { max-width: 610px; color: var(--muted); font-size: 1.08rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .9rem; }
.trust-list li::before { content: "✓"; margin-right: 7px; color: var(--gold); font-weight: 900; }
.hero__visual { position: relative; padding: 22px; }
.hero__visual::before { content: ""; position: absolute; inset: 0 12% 10% 0; z-index: -1; background: var(--blush); border-radius: 44% 56% 50% 50%; transform: rotate(-4deg); }
.hero__visual img { width: 100%; border-radius: 42% 58% 48% 52% / 44% 40% 60% 56%; box-shadow: var(--shadow); }
.hero__visual span { position: absolute; right: 0; bottom: 0; max-width: 270px; padding: 14px 18px; color: #fff; background: var(--plum); border-radius: 16px; font-size: .9rem; box-shadow: var(--shadow); }

.section-heading { max-width: 720px; margin-bottom: 38px; }
.section-heading h2 { margin-bottom: 14px; color: var(--plum-dark); font-family: "Noto Serif TC", "PMingLiU", serif; }
.section-heading p { color: var(--muted); }
.section-heading--split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-grid a { min-height: 230px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease; }
.feature-grid a:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-grid span { color: var(--gold); font-family: Georgia, serif; font-size: 1.4rem; }
.feature-grid h3 { margin: 56px 0 8px; color: var(--plum); }
.feature-grid p { margin: 0; color: var(--muted); font-size: .92rem; }
.section--profiles { padding-top: 30px; }

.profile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.profile-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgba(69,24,47,.06); }
.profile-card a { display: block; }
.profile-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; background: var(--blush); transition: transform .35s ease; }
.profile-card:hover img { transform: scale(1.025); }
.profile-card span { display: block; padding: 15px 17px; color: var(--plum-dark); font-weight: 800; }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-card { min-height: 230px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.news-card a { height: 100%; padding: 26px; display: flex; flex-direction: column; }
.news-card__eyebrow { color: var(--rose); font-size: .76rem; font-weight: 800; letter-spacing: .14em; }
.news-card h3 { margin: 24px 0; color: var(--plum-dark); }
.news-card .text-link { margin-top: auto; }

.page-hero { padding: clamp(58px, 8vw, 110px) 20px; background: linear-gradient(130deg, var(--blush), rgba(255,250,245,.25)); border-bottom: 1px solid var(--line); }
.page-hero > div { width: min(100%, 960px); margin: auto; }
.page-hero h1 { max-width: 900px; margin: 8px 0 18px; color: var(--plum-dark); font-family: "Noto Serif TC", "PMingLiU", serif; font-size: clamp(2.35rem, 5vw, 4.3rem); }
.page-hero p { max-width: 720px; color: var(--muted); font-size: 1.05rem; }
.page-hero--compact { padding-block: clamp(48px, 6vw, 78px); }
.page-hero--article h1 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; color: var(--muted); font-size: .86rem; }
.breadcrumb a:hover { color: var(--plum); }

.category-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.category-nav a { padding: .55rem 1rem; color: var(--plum); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-weight: 700; }
.category-nav a:hover { color: #fff; background: var(--plum); }
.profile-grid--all { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.profile-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .65fr); gap: clamp(32px, 6vw, 82px); align-items: start; }
.profile-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.profile-gallery figure { margin: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.profile-gallery img { width: 100%; max-height: 780px; object-fit: contain; background: #f8eff0; }
.profile-detail__aside { position: sticky; top: 116px; padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.profile-detail__aside h2 { color: var(--plum-dark); }
.profile-detail__aside p { color: var(--muted); }
.profile-detail__aside .button, .profile-detail__aside .text-link { margin-top: 12px; }
.profile-detail__aside .text-link { display: flex; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 54px; align-items: start; }
.article, .content-card { min-width: 0; padding: clamp(24px, 4vw, 48px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 42px rgba(69,24,47,.06); }
.article { font-family: "Noto Serif TC", "PMingLiU", serif; font-size: 1.04rem; line-height: 1.95; }
.article p { margin-bottom: 1.45em; }
.article-notice { margin-bottom: 32px; padding: 16px 18px; color: #704f3d; background: #fff3d9; border-left: 4px solid var(--gold); border-radius: 10px; font-family: "Noto Sans TC", sans-serif; font-size: .9rem; }
.article-aside { position: sticky; top: 116px; padding: 26px; background: var(--blush); border-radius: var(--radius); }
.article-aside h2 { color: var(--plum-dark); }
.article-aside p { color: var(--muted); }
.article-aside .button, .article-aside .text-link { margin-top: 10px; }
.article-aside .text-link { display: flex; }

.content-layout { max-width: 980px; }
.legacy-content { min-width: 0; }
.legacy-content p { margin-bottom: 1.25em; color: #493942; }
.legacy-content strong, .legacy-content b { color: var(--plum-dark); }
.legacy-content a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
.legacy-content img { margin: 14px auto; border-radius: 16px; }
.content-table, .content-group { display: block; }
.content-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; margin-bottom: 20px; }
.content-cell { min-width: 0; }
.content-cell:empty { display: none; }
.text-center { text-align: center; }
.notice-strip { padding: 14px 18px; background: var(--blush); border-radius: 12px; }
.gallery-page .content-row { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.gallery-page .legacy-content img { width: 100%; }

.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.contact-card, .contact-guidance { padding: clamp(28px, 5vw, 52px); border-radius: var(--radius); }
.contact-card { color: #fff; background: var(--plum); box-shadow: var(--shadow); }
.contact-card .eyebrow { color: #edb6c3; }
.contact-card h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.contact-card p { color: #f3dce3; }
.contact-card .button { color: var(--plum); background: #fff; border-color: #fff; }
.contact-guidance { background: var(--paper); border: 1px solid var(--line); }
.contact-guidance li { margin-bottom: 10px; }
.contact-guidance p { margin-top: 28px; color: var(--muted); }

.contact-band { width: min(calc(100% - 40px), var(--content)); margin: 40px auto 0; padding: 30px clamp(24px, 5vw, 52px); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; background: var(--plum); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-band span, .contact-band strong { display: block; }
.contact-band span { color: #e8bec9; font-size: .9rem; }
.contact-band strong { font-size: clamp(1.25rem, 2.5vw, 1.8rem); }
.site-footer { margin-top: 70px; padding: 64px 20px 30px; color: #eadce2; background: var(--plum-dark); }
.footer-inner { width: min(100%, var(--content)); margin: auto; display: grid; grid-template-columns: 1fr 2fr; gap: 26px 50px; }
.footer-inner strong { color: #fff; font-size: 1.12rem; }
.footer-inner p { margin: 6px 0 0; color: #cdbbc3; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.footer-inner nav a:hover { color: #fff; }
.footer-note { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }
.copyright { grid-column: 1 / -1; font-size: .78rem; }

@media (max-width: 980px) {
  .site-nav { max-height: calc(100dvh - 100px); overflow-y: auto; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 76px; right: 20px; width: min(320px, calc(100% - 40px)); padding: 14px; display: none; flex-direction: column; align-items: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .75rem 1rem; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero__visual { max-width: 760px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid, .profile-grid--all { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout, .profile-detail { grid-template-columns: 1fr; }
  .article-aside, .profile-detail__aside { position: static; }
}

@media (max-width: 680px) {
  .site-nav { max-height: calc(100dvh - 90px); }
  .header-inner { width: min(calc(100% - 28px), var(--content)); min-height: 74px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand strong { font-size: .94rem; }
  .brand small { font-size: .66rem; }
  .site-nav { top: 68px; right: 14px; }
  .section { width: min(calc(100% - 28px), var(--content)); padding-block: 58px; }
  .hero { width: min(calc(100% - 28px), 1280px); padding-block: 52px 70px; }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 4rem); }
  .hero__visual { padding: 6px 4px 26px; }
  .hero__visual span { right: 4px; max-width: 230px; font-size: .78rem; }
  .section-heading--split { align-items: start; flex-direction: column; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid a { min-height: 190px; }
  .feature-grid h3 { margin-top: 34px; }
  .profile-grid, .profile-grid--all { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .profile-card { border-radius: 14px; }
  .profile-card span { padding: 11px 12px; font-size: .86rem; }
  .news-grid { grid-template-columns: 1fr; }
  .profile-gallery { grid-template-columns: 1fr; }
  .article, .content-card { padding: 22px 18px; border-radius: 18px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-band { width: min(calc(100% - 28px), var(--content)); flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner nav { justify-content: flex-start; }
  .footer-note, .copyright { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
