:root {
  --ink: #151311;
  --ink-2: #26201a;
  --night: #0c0b0a;
  --paper: #f7efe0;
  --paper-2: #efe3d1;
  --line: rgba(21, 19, 17, 0.16);
  --line-dark: rgba(247, 239, 224, 0.18);
  --muted: #6e6459;
  --red: #d84a2a;
  --red-dark: #a9341c;
  --cyan: #27b6d5;
  --gold: #d7b46b;
  --jade: #2f7d6d;
  --white: #fffaf0;
  --shadow: 0 22px 60px rgba(12, 11, 10, 0.22);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
}

body::selection {
  background: var(--gold);
  color: var(--ink);
}

a {
  color: inherit;
}

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  margin-bottom: 0;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid rgba(247, 239, 224, 0.14);
  background: rgba(21, 19, 17, 0.9);
  color: var(--paper);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  border: 1px solid rgba(247, 239, 224, 0.2);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 1rem;
  font-weight: 800;
}

.brand small {
  margin-top: 3px;
  color: rgba(247, 239, 224, 0.66);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 6px;
  color: rgba(247, 239, 224, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(247, 239, 224, 0.1);
  color: var(--white);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(760px, calc(100svh - 72px));
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-media,
.article-cover {
  background-image: linear-gradient(90deg, rgba(12, 11, 10, 0.9), rgba(12, 11, 10, 0.6) 38%, rgba(12, 11, 10, 0.16) 72%), url("assets/hero-training.webp");
  background-position: center;
  background-size: cover;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 26%, rgba(216, 74, 42, 0.18), transparent 28%),
    linear-gradient(0deg, rgba(12, 11, 10, 0.28), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 64px;
}

.hero-mark {
  width: 112px;
  height: 112px;
  margin-bottom: 28px;
  border-radius: 50%;
  border: 1px solid rgba(247, 239, 224, 0.22);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero .eyebrow,
.dark-band .eyebrow,
.contact-band .eyebrow {
  color: var(--gold);
}

h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: 5.4rem;
  line-height: 0.95;
  font-weight: 950;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.3rem;
  line-height: 1.14;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.28;
}

.lead {
  max-width: 710px;
  color: rgba(255, 250, 240, 0.86);
  font-size: 1.2rem;
  line-height: 1.75;
}

.compact {
  max-width: 520px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--red);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--red-dark);
}

.button-secondary {
  border-color: rgba(247, 239, 224, 0.44);
  background: rgba(21, 19, 17, 0.2);
  color: var(--white);
}

.contact-band .button-secondary {
  border-color: rgba(247, 239, 224, 0.36);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(820px, 100%);
  margin: 48px 0 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.hero-facts div {
  min-height: 82px;
  padding: 18px 18px 18px 0;
  border-right: 1px solid var(--line-dark);
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts dt {
  color: rgba(247, 239, 224, 0.62);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 5px 0 0;
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.35;
}

.section {
  padding: 88px 0;
}

.intro-band {
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.split,
.feature-layout,
.contact-layout,
.instructor-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: start;
}

.text-stack {
  display: grid;
  gap: 18px;
  color: var(--ink-2);
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head p:last-child {
  color: var(--muted);
}

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

.training-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 10px 24px rgba(12, 11, 10, 0.05);
}

.training-card:hover {
  border-color: rgba(216, 74, 42, 0.34);
}

.training-card p {
  color: var(--muted);
}

.card-index {
  display: block;
  margin-bottom: 46px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 950;
}

.dark-band {
  background: var(--ink);
  color: var(--paper);
}

.dark-band p {
  color: rgba(247, 239, 224, 0.76);
}

.instructor-copy {
  display: grid;
  gap: 18px;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 420px);
  margin-top: 28px;
  padding: 12px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(247, 239, 224, 0.06);
  color: var(--paper);
  font-weight: 850;
  line-height: 1.35;
}

.profile-chip img {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
}

.qualification-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.qualification-list li {
  padding: 7px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--paper);
  font-size: 0.86rem;
  font-weight: 750;
}

.proof-band {
  background: var(--night);
  color: var(--paper);
}

.proof-band .section-head p:last-child {
  color: rgba(247, 239, 224, 0.72);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr 0.82fr;
  grid-auto-rows: 248px;
  gap: 14px;
}

.photo-tile {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #050504;
}

.photo-tile-large {
  grid-row: span 2;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.photo-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent);
}

.photo-tile figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fma-band {
  background: #f2eadb;
}

.feature-copy p {
  margin-bottom: 16px;
  color: var(--ink-2);
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--red-dark);
  font-weight: 900;
  text-underline-offset: 4px;
}

.source-panel {
  overflow: hidden;
  padding: 0 0 26px;
  border-left: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.source-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.source-panel h3,
.source-panel ul {
  padding-right: 26px;
  padding-left: 26px;
}

.source-panel h3 {
  margin-top: 24px;
}

.source-panel ul,
.article-sources ul {
  padding-left: 20px;
  margin: 0;
}

.source-panel li + li,
.article-sources li + li {
  margin-top: 10px;
}

.info-table {
  border-top: 1px solid var(--line);
}

.info-table div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.info-table strong {
  color: var(--red-dark);
}

.info-table span {
  color: var(--ink-2);
}

.contact-band {
  background:
    linear-gradient(90deg, rgba(12, 11, 10, 0.94), rgba(12, 11, 10, 0.72)),
    url("assets/article-equipment.webp");
  background-position: center;
  background-size: cover;
  color: var(--paper);
}

.contact-band p {
  color: rgba(247, 239, 224, 0.78);
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  padding: 28px 0;
  background: #070706;
  color: rgba(247, 239, 224, 0.68);
  font-size: 0.92rem;
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer a {
  color: var(--paper);
  text-underline-offset: 4px;
}

.article-page {
  background: var(--paper);
}

.article-shell {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 88px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--red-dark);
  font-weight: 850;
}

.article-header h1 {
  max-width: 860px;
  color: var(--ink);
  font-size: 3.6rem;
  line-height: 1.05;
}

.article-intro {
  color: var(--ink-2);
  font-size: 1.12rem;
}

.article-cover {
  min-height: 360px;
  margin: 36px 0 44px;
  border-radius: 8px;
}

.article-cover-equipment {
  background-image: linear-gradient(90deg, rgba(12, 11, 10, 0.2), rgba(12, 11, 10, 0.06)), url("assets/article-equipment.webp");
}

.article-shell section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.article-shell section p + p {
  margin-top: 16px;
}

.article-shell h2 {
  font-size: 1.7rem;
}

.faq-section details {
  border-top: 1px solid var(--line);
}

.faq-section details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-section summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 900;
}

.faq-section details p {
  padding: 0 0 18px;
  color: var(--muted);
}

.article-cta {
  margin-top: 42px;
  padding: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
}

.article-cta p {
  margin-bottom: 22px;
  color: rgba(247, 239, 224, 0.78);
}

.offline-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
}

.offline-shell {
  width: min(480px, calc(100% - 40px));
  text-align: center;
}

.offline-shell img {
  margin: 0 auto 22px;
}

.offline-shell p {
  margin-bottom: 24px;
  color: rgba(247, 239, 224, 0.78);
}

@media (max-width: 900px) {
  .site-header {
    min-height: 68px;
  }

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

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--line-dark);
    background: rgba(21, 19, 17, 0.98);
  }

  .site-nav[data-open] {
    display: flex;
  }

  .site-nav a {
    min-height: 46px;
    padding: 12px 4px;
  }

  .hero {
    min-height: 76svh;
  }

  .hero-content {
    padding: 56px 0 46px;
  }

  .hero-mark {
    width: 90px;
    height: 90px;
    margin-bottom: 22px;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 1.95rem;
  }

  .lead {
    font-size: 1.08rem;
  }

  .split,
  .feature-layout,
  .contact-layout,
  .instructor-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 260px;
  }

  .photo-tile-large {
    grid-row: span 1;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .article-header h1 {
    font-size: 2.6rem;
  }
}

@media (max-width: 640px) {
  .wrap,
  .hero-content,
  .article-shell {
    width: min(100% - 28px, 1120px);
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 0;
  }

  .hero-media {
    background-position: 66% center;
  }

  h1 {
    font-size: 2.78rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .hero-facts div {
    min-height: 0;
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .hero-facts div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 62px 0;
  }

  .training-grid {
    grid-template-columns: 1fr;
  }

  .training-card {
    min-height: auto;
  }

  .card-index {
    margin-bottom: 26px;
  }

  .info-table div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .photo-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .photo-tile,
  .photo-tile-large {
    aspect-ratio: 4 / 5;
  }

  .source-panel h3,
  .source-panel ul {
    padding-right: 20px;
    padding-left: 20px;
  }

  .footer-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-cover {
    min-height: 230px;
  }

  .article-header h1 {
    font-size: 2.15rem;
  }

  .article-cta {
    padding: 22px;
  }
}
