:root {
  --canvas: #f6f0e8;
  --paper: rgba(255, 255, 255, 0.82);
  --paper-strong: rgba(255, 255, 255, 0.95);
  --ink: #14253d;
  --ink-soft: #41536c;
  --line: rgba(20, 37, 61, 0.12);
  --line-strong: rgba(20, 37, 61, 0.18);
  --accent: #f26f3a;
  --accent-deep: #ca4d1c;
  --accent-mint: #0a8f8f;
  --accent-sand: #f4c48b;
  --shadow-lg: 0 24px 60px rgba(20, 37, 61, 0.14);
  --shadow-md: 0 18px 36px rgba(20, 37, 61, 0.1);
  --shadow-sm: 0 10px 24px rgba(20, 37, 61, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: min(1180px, calc(100vw - 32px));
  --font-body: "Aptos", "Segoe UI Variable Text", "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", "Noto Sans TC", "Noto Sans SC", sans-serif;
  --font-display: "Aptos Display", "Segoe UI Variable Display", "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", "Noto Sans TC", "Noto Sans SC", sans-serif;
  --hero-image: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(242, 111, 58, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(10, 143, 143, 0.18), transparent 32%),
    linear-gradient(180deg, #f8f4ee 0%, #f2ede5 48%, #f8f4ee 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.35;
  z-index: -1;
}

.site-shell::before {
  top: -90px;
  right: -80px;
  background: rgba(242, 111, 58, 0.34);
}

.site-shell::after {
  bottom: -130px;
  left: -110px;
  background: rgba(10, 143, 143, 0.28);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(246, 240, 232, 0.82);
  border-bottom: 1px solid rgba(20, 37, 61, 0.08);
}

.header-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 196, 139, 0.7)),
    linear-gradient(135deg, rgba(242, 111, 58, 0.75), rgba(10, 143, 143, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}

.brand-copy span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.4;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.quick-pill,
.lang-link,
.menu-toggle {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.quick-pill strong {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.quick-pill span {
  font-weight: 700;
  font-size: 0.92rem;
}

.quick-pill:hover,
.lang-link:hover,
.menu-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 111, 58, 0.38);
  background: rgba(255, 255, 255, 0.92);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-link {
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.lang-link.is-active {
  background: linear-gradient(120deg, rgba(242, 111, 58, 0.92), rgba(202, 77, 28, 0.92));
  color: #fff;
  border-color: rgba(202, 77, 28, 0.68);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  cursor: pointer;
}

.main-nav-wrap {
  padding-bottom: 16px;
}

.main-nav,
.group-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar,
.group-nav::-webkit-scrollbar {
  display: none;
}

.nav-link,
.group-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 37, 61, 0.1);
  color: var(--ink-soft);
  white-space: nowrap;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.group-link:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 143, 143, 0.34);
  color: var(--ink);
}

.nav-link.is-active,
.group-link.is-active {
  background: linear-gradient(120deg, rgba(20, 37, 61, 0.95), rgba(48, 68, 92, 0.95));
  color: #fff;
  border-color: rgba(20, 37, 61, 0.88);
}

.hero {
  position: relative;
  padding: 42px 0 22px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 540px;
  background:
    linear-gradient(180deg, rgba(246, 240, 232, 0.22), rgba(246, 240, 232, 0.8)),
    linear-gradient(135deg, rgba(20, 37, 61, 0.16), rgba(20, 37, 61, 0)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.82;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 30px;
  align-items: end;
}

.hero-copy {
  padding: 18px 0 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(20, 37, 61, 0.1);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 13ch;
}

.hero-summary {
  max-width: 65ch;
  margin: 18px 0 0;
  font-size: 1.06rem;
  line-height: 1.86;
  color: var(--ink-soft);
}

.chip-row,
.hero-actions,
.section-cta-row,
.floating-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chip-row {
  margin-top: 22px;
}

.chip {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 37, 61, 0.1);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-actions {
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: saturate(1.05);
}

.button-primary {
  background: linear-gradient(130deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  border: 1px solid rgba(20, 37, 61, 0.12);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lg);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 37, 61, 0) 0%, rgba(20, 37, 61, 0.08) 100%),
    linear-gradient(120deg, rgba(242, 111, 58, 0.12), rgba(10, 143, 143, 0.08));
  pointer-events: none;
}

.hero-media {
  aspect-ratio: 5 / 4;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.stat-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(20, 37, 61, 0.08);
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.stat-card span {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.92rem;
}

.group-shell {
  padding: 8px 0 10px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-section {
  padding: 32px 0;
}

.section-shell {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 28px;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.section-shell.is-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 251, 247, 0.86));
}

.section-shell.is-alert {
  background:
    linear-gradient(135deg, rgba(242, 111, 58, 0.15), rgba(255, 255, 255, 0.92)),
    rgba(255, 255, 255, 0.9);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 72ch;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.86fr);
  gap: 24px;
}

.story-body {
  display: grid;
  gap: 14px;
}

.story-body p,
.story-body li,
.card-text,
.step-card p,
.office-card p,
.member-card p,
.related-card p,
.faq-item p,
.footer-note,
.cta-panel p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.85;
}

.story-body ul,
.card-points,
.footer-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-body li,
.card-points li {
  position: relative;
  padding-left: 22px;
}

.story-body li::before,
.card-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-deep) 100%);
}

.story-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.side-chip {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(20, 37, 61, 0.08);
  font-weight: 700;
  color: var(--ink);
}

.card-grid,
.related-grid,
.office-grid,
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card,
.related-card,
.office-card,
.member-card,
.quote-card {
  height: 100%;
  border-radius: var(--radius-lg);
  padding: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 37, 61, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.card-tag,
.member-badge,
.office-badge,
.quote-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(20, 37, 61, 0.07);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.card-meta,
.related-meta,
.office-meta,
.member-meta {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card h3,
.related-card h3,
.office-card h3,
.member-card h3,
.step-card h3,
.quote-card h3,
.cta-panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.card-text,
.step-card p,
.related-card p {
  margin-bottom: 14px;
}

.card-points {
  display: grid;
  gap: 10px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  position: relative;
  height: 100%;
  padding: 22px 18px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 37, 61, 0.08);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(242, 111, 58, 0.95), rgba(202, 77, 28, 0.95));
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.step-tag {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(20, 37, 61, 0.08);
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
  line-height: 1.5;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  border-bottom: 1px solid rgba(20, 37, 61, 0.08);
}

.faq-answer {
  padding: 0 20px 18px;
}

.related-card,
.office-card,
.member-card {
  display: flex;
  flex-direction: column;
}

.related-card {
  justify-content: space-between;
}

.related-card .button,
.cta-panel .button,
.floating-actions .button {
  width: fit-content;
}

.member-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.member-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(20, 37, 61, 0.92), rgba(48, 68, 92, 0.92));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.member-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.2;
}

.member-langs,
.office-hours {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(20, 37, 61, 0.08);
  font-size: 0.92rem;
}

.cta-block {
  padding: 18px 0 42px;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(20, 37, 61, 0.96), rgba(36, 54, 74, 0.96)),
    linear-gradient(135deg, rgba(242, 111, 58, 0.2), rgba(10, 143, 143, 0.15));
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-panel::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  right: -120px;
  bottom: -140px;
  background: rgba(242, 111, 58, 0.32);
  filter: blur(30px);
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 70ch;
}

.cta-panel .button-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.site-footer {
  padding: 12px 0 48px;
}

.footer-shell {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(20, 37, 61, 0.08);
  box-shadow: var(--shadow-sm);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footer-brand strong,
.footer-column h3 {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.2;
}

.footer-column {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-link-list {
  display: grid;
  gap: 8px;
}

.footer-link-list a {
  color: var(--ink-soft);
}

.footer-link-list a:hover {
  color: var(--accent-deep);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(20, 37, 61, 0.08);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
}

.floating-actions .button {
  min-height: 46px;
  padding: 0 18px;
  box-shadow: var(--shadow-md);
}

.floating-actions .button-secondary {
  background: rgba(255, 255, 255, 0.94);
}

.page-intro-note {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.root-redirect {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.root-card {
  width: min(760px, 100%);
  padding: 32px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(20, 37, 61, 0.08);
  box-shadow: var(--shadow-lg);
}

.root-card h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.root-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.82;
}

.root-card .hero-actions {
  margin-top: 24px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .story-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .related-grid,
  .office-grid,
  .step-grid,
  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav-wrap {
    display: none;
    padding: 0 0 18px;
  }

  .site-header[data-menu-open="true"] .main-nav-wrap {
    display: block;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 28px;
  }

  .hero::before {
    height: 420px;
  }

  .section-shell,
  .cta-panel,
  .footer-shell,
  .root-card {
    padding: 22px;
  }

  .card-grid,
  .related-grid,
  .office-grid,
  .step-grid,
  .member-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .brand-copy span {
    display: none;
  }

  .hero h1 {
    max-width: none;
  }

  .floating-actions {
    left: 16px;
    right: 16px;
    bottom: 14px;
  }

  .floating-actions .button {
    flex: 1 1 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
