:root {
  --ink: #221d35;
  --indigo: #292142;
  --indigo-soft: #40335f;
  --lotus: #b7657d;
  --lotus-soft: #eed9df;
  --ivory: #fbf7ef;
  --paper: #fffdf8;
  --gold: #b89455;
  --line: rgba(41, 33, 66, 0.14);
  --muted: #595464;
  --shadow: 0 24px 70px rgba(34, 29, 53, 0.1);
  --radius: 24px;
  --shell: min(1500px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(238, 217, 223, 0.7), transparent 28rem),
    var(--ivory);
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-150%);
  padding: 10px 16px;
  color: white;
  background: var(--indigo);
  border-radius: 10px;
}
.skip-link:focus { transform: none; }
.section-shell { width: var(--shell); margin-inline: auto; }
.narrow-shell { max-width: 850px; }
.site-main { overflow: hidden; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(41, 33, 66, 0.08);
  background: rgba(251, 247, 239, 0.91);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: var(--shell);
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: 228px; height: 58px; object-fit: contain; object-position: center; }
.primary-navigation { display: flex; align-items: center; gap: 28px; }
.primary-navigation a { text-decoration: none; font-size: 16px; font-weight: 650; }
.primary-navigation a:not(.nav-cta):hover { color: var(--lotus); }
.nav-categories { position: relative; }
.nav-categories summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
  list-style: none;
}
.nav-categories summary::-webkit-details-marker { display: none; }
.nav-categories summary::after { content: "⌄"; color: var(--lotus); font-size: 13px; line-height: 1; }
.nav-categories[open] summary { color: var(--lotus); }
.nav-category-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  width: 250px;
  padding: 12px;
  display: grid;
  gap: 2px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.nav-category-menu::before { content: ""; position: absolute; inset: -18px 0 auto; height: 18px; }
.nav-category-menu a { padding: 8px 12px; border-radius: 10px; }
.nav-category-menu a:hover { color: var(--lotus); background: var(--lotus-soft); }
.nav-category-menu .nav-category-all { margin-bottom: 4px; border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.nav-cta { padding: 10px 19px; color: white; background: var(--indigo); border-radius: 999px; }
.nav-toggle { display: none; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--lotus);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-family: "Songti TC", "STSong", serif; line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(44px, 6vw, 76px); letter-spacing: 0.015em; }
h2 { font-size: clamp(32px, 4vw, 50px); }
h3 { font-size: 25px; }
h1 span, h2 span { color: var(--lotus); }
p { margin: 0 0 1em; }
.hero {
  min-height: 710px;
  padding-block: 104px 120px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 72px;
}
.hero-copy { max-width: 720px; }
.hero-lead { max-width: 650px; margin: 28px 0; color: var(--muted); font-size: 20px; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--indigo); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,0.45); }
.button-light { color: var(--indigo); background: var(--paper); }
.microcopy { margin-top: 18px; color: var(--muted); font-size: 14px; }
.hero-visual { margin: 0; position: relative; }
.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(184,148,85,0.28);
  border-radius: 50% 50% 46% 46%;
  box-shadow: var(--shadow);
}
.intro-grid { padding-block: 110px; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; border-top: 1px solid var(--line); }
.prose { color: var(--muted); font-size: 17px; }
.prose h2 { margin: 0 0 24px; color: var(--ink); font-size: clamp(28px, 3vw, 40px); }
.prose p + h2 { margin-top: 42px; }
.services-section { padding-block: 100px 120px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.text-link, .card-link { color: var(--lotus); text-decoration: none; font-weight: 750; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 92px; }
.category-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.category-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.category-card > div { padding: 20px; }
.category-card h3 { font-size: 20px; }
.brand-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-bottom: 84px; }
.brand-category-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.brand-category-card > a { display: flex; height: 100%; flex-direction: column; text-decoration: none; }
.brand-category-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.brand-category-copy { display: flex; height: 100%; padding: 25px; flex-direction: column; }
.brand-category-copy h3 { margin: 7px 0 10px; font-size: 28px; }
.brand-category-copy > p:not(.service-number) { color: var(--muted); }
.brand-category-copy .card-link { margin-top: auto; padding-top: 12px; }
.featured-heading { margin-top: 20px; }
.legacy-section-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: -62px 0 88px;
  color: var(--muted);
  font-size: 14px;
}
.legacy-section-nav span { margin-right: 5px; font-weight: 750; }
.legacy-section-nav a {
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  text-decoration: none;
  font-weight: 700;
}
.legacy-section-nav a:hover { color: var(--lotus); border-color: var(--lotus); }
.service-card, .content-panel, .service-feature {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,253,248,0.84);
  box-shadow: var(--shadow);
}
.service-card { position: relative; overflow: hidden; padding: 0; }
.service-card-image { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-card-copy { display: flex; min-height: 100%; flex-direction: column; padding: clamp(24px, 3vw, 38px); }
.service-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -80px; top: -85px; border: 1px solid var(--lotus-soft); border-radius: 50%; }
.service-number { color: var(--gold); font-family: serif; font-size: 13px; letter-spacing: 0.2em; }
.service-card h3 { margin: 14px 0 18px; }
.service-card > p:not(.service-number) { color: var(--muted); }
.service-card dl, .service-meta { display: flex; flex-wrap: wrap; gap: 16px 34px; margin: 28px 0; }
.service-card dl div, .service-meta div { display: grid; gap: 2px; }
dt { color: var(--muted); font-size: 12px; letter-spacing: 0.16em; }
dd { margin: 0; font-weight: 750; }
.process-section { padding-block: 110px; }
.process-section > h2 { max-width: 760px; margin-bottom: 50px; }
.process-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.process-list li { display: flex; gap: 22px; padding: 32px 28px 20px 0; }
.process-list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.process-list span { color: var(--lotus); font-size: 12px; font-weight: 800; }
.process-list h3 { margin-bottom: 10px; font-size: 21px; }
.process-list p { color: var(--muted); }
.cta-section {
  margin-block: 70px 120px;
  padding: clamp(34px, 6vw, 70px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: white;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-soft));
  border-radius: calc(var(--radius) + 8px);
}
.cta-section h2 { max-width: 720px; }
.cta-section .eyebrow { color: var(--lotus-soft); }

.page-hero { padding-block: 112px 76px; }
.page-hero > p:not(.eyebrow) { max-width: 760px; margin-top: 28px; color: var(--muted); font-size: 19px; }
.compact-hero { padding-bottom: 54px; }
.service-list { display: grid; gap: 28px; padding-bottom: 120px; }
.service-catalogue { padding-bottom: 120px; }
.brand-categories-section { padding-bottom: 20px; }
.brand-categories-section .section-heading { align-items: start; }
.section-note { max-width: 540px; color: var(--muted); }
.catalogue-intro { max-width: 760px; padding: 36px 0 40px; }
.catalogue-intro h2 { margin-bottom: 18px; }
.catalogue-intro > p:last-child { color: var(--muted); font-size: 17px; }
.legacy-page-hero h1 { max-width: 1020px; font-size: clamp(36px, 5vw, 60px); }
.legacy-page-hero h1 span { display: block; margin-top: 10px; font-size: 0.7em; }
.legacy-intro { max-width: 900px; }
.legacy-services { padding-block: 90px 50px; }
.legacy-services > p:not(.eyebrow) { max-width: 720px; margin: 22px 0; color: var(--muted); font-size: 18px; }
.legacy-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.legacy-service-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.legacy-service-card > a { display: flex; height: 100%; flex-direction: column; text-decoration: none; }
.legacy-service-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.legacy-service-card-copy { display: flex; height: 100%; flex-direction: column; padding: 24px; }
.legacy-service-card h3 { margin-bottom: 12px; font-size: 23px; }
.legacy-service-card p { color: var(--muted); }
.legacy-service-card small { display: block; margin-bottom: 15px; color: var(--muted); font-size: 12px; }
.legacy-service-card .card-link { display: block; margin-top: auto; }
.legacy-article { padding-bottom: 110px; }
.legacy-article .prose h2 { margin-top: 28px; }
.legacy-back-link { margin-top: 30px; }
.catalog-group { padding: 58px 0; border-top: 1px solid var(--line); }
.category-heading { display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 34px; margin-bottom: 34px; }
.category-heading img { display: block; width: 210px; height: 150px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.catalog-card { display: flex; min-width: 0; overflow: hidden; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,248,0.84); }
.catalog-card-image { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.catalog-card-copy { display: flex; height: 100%; flex-direction: column; padding: 24px; }
.catalog-card h3 { margin-bottom: 14px; font-size: 22px; text-wrap: balance; }
.catalog-card > p { flex: 1; color: var(--muted); font-size: 16px; }
.catalog-card dl { display: flex; gap: 24px; margin: 18px 0; }
.catalog-card .card-link { margin-top: auto; }
.service-feature { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: center; gap: 44px; }
.service-feature h2 { margin-bottom: 18px; font-size: 38px; }
.service-feature p:not(.eyebrow) { color: var(--muted); }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 8px 0 8px 28px; }
.check-list li::before { content: "◇"; position: absolute; left: 0; color: var(--lotus); font-weight: 800; }
.service-hero { padding-bottom: 62px; }
.service-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 54px; }
.service-hero-grid > div > p { margin-top: 24px; }
.service-detail-image { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.service-meta { margin-top: 34px; }
.service-meta div { min-width: 120px; padding-right: 34px; border-right: 1px solid var(--line); }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.process-section.compact .process-list { grid-template-columns: repeat(4, 1fr); }
.process-section.compact .process-list li { display: block; }
.notice { margin-top: 28px; padding: 18px 20px; color: var(--indigo); background: var(--lotus-soft); border-radius: 14px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.contact-card {
  display: flex;
  min-width: 0;
  min-height: 180px;
  padding: 28px;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,253,248,0.84);
  box-shadow: var(--shadow);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform 180ms ease, border-color 180ms ease;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--lotus); }
.contact-card-primary { color: white; background: linear-gradient(135deg, #275e47, #34765a); }
.contact-card strong { font-family: "Songti TC", "STSong", serif; font-size: clamp(22px, 3vw, 30px); line-height: 1.25; }
.contact-card > span:last-child { font-size: 14px; opacity: 0.78; }
.contact-label { color: var(--lotus); font-size: 12px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.contact-card-primary .contact-label { color: #ddf3e7; }
.contact-grid + .content-panel { margin-bottom: 110px; }
.not-found { min-height: 520px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.not-found .button { margin-top: 18px; }

.site-footer { padding: 70px 0 28px; color: rgba(255,255,255,0.76); background: #1e192e; }
.footer-inner { width: var(--shell); margin-inline: auto; display: flex; justify-content: space-between; gap: 50px; }
.footer-inner > div { max-width: 530px; }
.footer-brand { color: white; font-family: "Songti TC", "STSong", serif; font-size: 25px; }
.footer-brand span { margin-left: 8px; color: var(--lotus-soft); font-family: system-ui, sans-serif; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.footer-inner nav { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 16px 26px; }
.footer-inner a { text-decoration: none; }
.copyright { width: var(--shell); margin: 42px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 12px; }

@media (max-width: 1200px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 36px, 720px); }
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); }
  .nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after { width: 18px; height: 1px; display: block; background: currentColor; }
  .nav-toggle-lines { position: relative; }
  .nav-toggle-lines::before, .nav-toggle-lines::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-lines::before { top: -5px; }
  .nav-toggle-lines::after { top: 5px; }
  .primary-navigation { position: absolute; inset: 82px 18px auto; display: none; padding: 18px; flex-direction: column; align-items: stretch; gap: 4px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
  .primary-navigation.is-open { display: flex; }
  .primary-navigation a { padding: 12px 14px; }
  .nav-categories { width: 100%; }
  .nav-categories summary { padding: 12px 14px; justify-content: space-between; }
  .nav-category-menu { position: static; width: 100%; padding: 4px 8px 10px 22px; transform: none; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .nav-category-menu::before { display: none; }
  .nav-category-menu a { padding: 9px 12px; }
  .nav-cta { text-align: center; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 76px 92px; }
  .hero-visual { width: min(520px, 84vw); margin-inline: auto; }
  .intro-grid { grid-template-columns: 1fr; gap: 34px; }
  .service-feature { grid-template-columns: 1fr; gap: 24px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legacy-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-hero-grid { grid-template-columns: 1fr; }
  .process-list, .process-section.compact .process-list { grid-template-columns: 1fr 1fr; }
  .process-list li:nth-child(3) { border-left: 0; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 28px); --radius: 18px; }
  .header-inner { min-height: 72px; }
  .brand-logo { width: 178px; height: 50px; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .primary-navigation { inset: 72px 14px auto; }
  h1 { font-size: clamp(34px, 10.5vw, 42px); text-wrap: balance; }
  h2 { font-size: 32px; }
  .hero { padding-top: 60px; gap: 46px; }
  .hero-lead { font-size: 18px; }
  .button-row, .button-row .button { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .category-grid, .catalog-grid { grid-template-columns: 1fr; }
  .brand-category-grid { grid-template-columns: 1fr; }
  .legacy-section-nav { margin-top: -50px; }
  .legacy-service-grid { grid-template-columns: 1fr; }
  .category-heading { grid-template-columns: 96px 1fr; gap: 18px; }
  .category-heading img { width: 96px; height: 96px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .process-list, .process-section.compact .process-list { grid-template-columns: 1fr; }
  .process-list li, .process-list li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .cta-section { align-items: flex-start; flex-direction: column; }
  .cta-section .button { width: 100%; }
  .page-hero { padding-block: 76px 48px; }
  .service-meta { gap: 20px; }
  .service-meta div { min-width: 42%; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
