:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #5b6862;
  --paper: #f7f4ec;
  --surface: #fffaf0;
  --line: #d9d1c1;
  --red: #b73935;
  --indigo: #253f6e;
  --green: #2f6b53;
  --gold: #d59b2b;
  --shadow: 0 18px 42px rgba(23, 32, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #f2eee4 0, var(--paper) 360px, #f5f1e7 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

html[lang="zh-Hans"],
html[lang="ja"] {
  line-break: strict;
}

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

button {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 62px;
  padding: 10px clamp(16px, 4vw, 52px);
  background: rgba(247, 244, 236, 0.92);
  border-bottom: 1px solid rgba(217, 209, 193, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 5px solid var(--ink);
  border-left-color: var(--red);
  border-radius: 50%;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--ink);
}

.language-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  min-width: 196px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.85);
}

.language-switcher button {
  min-height: 34px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
}

.language-switcher button:first-child {
  border-left: 0;
}

.language-switcher button.active {
  background: var(--ink);
  color: var(--surface);
}

.hero {
  position: relative;
  min-height: min(700px, calc(84svh - 62px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.9) contrast(1.06);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 17, 16, 0.82), rgba(15, 17, 16, 0.5) 42%, rgba(15, 17, 16, 0.16)),
    linear-gradient(0deg, rgba(23, 32, 28, 0.45), transparent 48%);
}

.hero-content {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 clamp(56px, 9vh, 86px);
  color: #fffaf0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.visual-band .eyebrow {
  color: #f0ba52;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] .hero-copy,
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] .hero-copy {
  word-break: keep-all;
  overflow-wrap: normal;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.45rem);
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

html[lang="zh-Hans"] h1,
html[lang="ja"] h1 {
  max-width: 820px;
  font-size: clamp(2.35rem, 4.7vw, 4.25rem);
  line-height: 1.08;
}

.hero-copy {
  max-width: 650px;
  margin: 16px 0 0;
  color: rgba(255, 250, 240, 0.9);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.72;
}

html[lang="zh-Hans"] .hero-copy,
html[lang="ja"] .hero-copy {
  max-width: 610px;
  font-size: clamp(1rem, 1.22vw, 1.08rem);
}

.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: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 250, 240, 0.75);
  border-radius: 999px;
  font-weight: 750;
}

.primary-action {
  background: #fffaf0;
  color: var(--ink);
}

.secondary-action {
  color: #fffaf0;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(30px, 4.4vw, 56px) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 2;
  margin-top: -34px;
  padding-top: 0;
}

.stat-card,
.panel,
.founder-card,
.explain-card,
.city-card,
.global-card,
.technique-total,
.technique-card,
.exam-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(23, 32, 28, 0.07);
}

.stat-card {
  min-height: 142px;
  padding: 18px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  color: var(--indigo);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.stat-card p,
.section-heading p:not(.eyebrow),
.photo-intro p:not(.eyebrow),
.timeline-item p,
.founder-card p,
.explain-card p,
.global-card p,
.city-card p,
.technique-card > p,
.technique-subgroup p,
.exam-copy p:not(.eyebrow) {
  color: var(--muted);
}

.stat-card p {
  margin: 12px 0 0;
}

.photo-story {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(420px, 1.3fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: end;
  padding-top: clamp(30px, 5vw, 52px);
}

.photo-intro {
  max-width: 430px;
}

.photo-intro h2,
.section-heading h2,
.visual-band-copy h2 {
  margin: 0;
  letter-spacing: 0;
}

.photo-intro h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
}

.photo-intro p:not(.eyebrow) {
  margin: 14px 0 0;
  font-size: 1.04rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
  grid-template-rows: repeat(2, minmax(145px, 1fr));
  gap: 12px;
}

.photo-card {
  position: relative;
  min-height: 165px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.photo-card-large {
  grid-row: 1 / span 2;
  min-height: 340px;
}

.photo-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 32, 28, 0.68), rgba(23, 32, 28, 0.05) 56%);
}

.photo-card figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  color: #fffaf0;
  font-weight: 850;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.66fr) minmax(420px, 1.34fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.section-heading {
  max-width: 560px;
}

.section-heading.compact {
  max-width: 760px;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3.55vw, 3.15rem);
  line-height: 1.08;
  text-wrap: balance;
}

html[lang="ja"] .section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.72rem);
  line-height: 1.14;
}

.split-section .section-heading h2 {
  max-width: 8.8em;
  font-size: clamp(1.85rem, 2.85vw, 2.58rem);
}

html[lang="ja"] .split-section .section-heading h2 {
  max-width: 9.4em;
  font-size: clamp(1.72rem, 2.35vw, 2.18rem);
}

.section-heading p:not(.eyebrow) {
  margin: 12px 0 0;
  font-size: 1.04rem;
}

.timeline {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  color: var(--red);
  font-weight: 900;
}

.timeline-item h3 {
  margin: 0;
  font-size: 1.18rem;
}

.timeline-item p {
  margin: 8px 0 0;
}

.founder-section {
  padding-top: 18px;
}

.founder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.42fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 12px;
}

.founder-photo {
  position: relative;
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.18) saturate(0.82) contrast(1.03);
}

.founder-photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23, 32, 28, 0.78);
  color: #fffaf0;
  font-size: 0.8rem;
  font-weight: 800;
}

.founder-quote {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--red);
  background: rgba(255, 250, 240, 0.76);
}

.founder-quote span,
.founder-quote strong {
  display: block;
}

.founder-quote span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.founder-quote strong {
  margin-top: 4px;
  font-size: 1.2rem;
}

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

.founder-card {
  padding: 18px;
  min-height: 190px;
}

.founder-card h3,
.explain-card strong,
.global-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.founder-card p,
.explain-card p,
.global-card p,
.city-card p {
  margin: 12px 0 0;
}

.visual-band {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin: clamp(16px, 4vw, 36px) 0;
  isolation: isolate;
}

.visual-band img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.05);
}

.visual-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(23, 32, 28, 0.76), rgba(23, 32, 28, 0.22));
}

.visual-band-copy {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 clamp(36px, 7vw, 62px);
  color: #fffaf0;
}

.visual-band-copy h2 {
  max-width: 760px;
  font-size: clamp(1.9rem, 4.3vw, 3.85rem);
  line-height: 1.05;
  text-wrap: balance;
}

.technique-section {
  padding-top: clamp(34px, 5vw, 62px);
}

.technique-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.32fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.technique-total {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100%;
  padding: clamp(18px, 3vw, 26px);
  background:
    linear-gradient(155deg, rgba(183, 57, 53, 0.14), rgba(47, 107, 83, 0.06)),
    var(--surface);
}

.technique-total span {
  color: var(--muted);
  font-weight: 850;
}

.technique-total strong {
  color: var(--red);
  font-size: clamp(3.4rem, 8vw, 5.8rem);
  line-height: 0.86;
}

.technique-total p {
  margin: 0;
  color: var(--muted);
}

.technique-total a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 46px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--indigo);
  font-weight: 850;
}

.technique-total a::after,
.link-list a::after {
  content: "↗";
}

.technique-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.technique-card {
  padding: clamp(18px, 3vw, 24px);
}

.technique-card header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.technique-card header span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.technique-card h3 {
  margin: 4px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1;
}

.technique-card header strong {
  color: var(--green);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.9;
}

.technique-card > p {
  margin: 12px 0 0;
}

.technique-subgroups {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.technique-subgroup {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 42px minmax(140px, 1.2fr);
  gap: 12px;
  align-items: start;
  padding: 9px 0;
  border-top: 1px solid rgba(217, 209, 193, 0.72);
}

.technique-subgroup:first-child {
  border-top: 0;
  padding-top: 0;
}

.technique-subgroup strong,
.technique-subgroup span {
  display: block;
}

.technique-subgroup span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.technique-subgroup b {
  color: var(--red);
  font-size: 1.18rem;
}

.technique-subgroup p {
  margin: 0;
  font-size: 0.94rem;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.panel {
  padding: clamp(18px, 3vw, 24px);
}

.panel h3 {
  margin: 0 0 14px;
  font-size: 1.42rem;
}

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

.belt-row {
  display: grid;
  grid-template-columns: 34px minmax(110px, 0.8fr) 1fr;
  gap: 14px;
  align-items: center;
  min-height: 44px;
}

.belt-swatch {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(23, 32, 28, 0.2);
  border-radius: 50%;
}

.belt-name {
  font-weight: 800;
}

.belt-note {
  color: var(--muted);
  font-size: 0.94rem;
}

.rank-explainers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.explain-card {
  padding: 16px;
  border-top: 4px solid var(--red);
}

.weight-grid {
  display: grid;
  gap: 18px;
}

.weight-grid h4 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  min-width: 68px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  text-align: center;
  font-weight: 800;
}

.exam-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.1fr);
  gap: 14px;
  margin-top: 12px;
  padding: clamp(18px, 3vw, 24px);
}

.exam-panel[hidden] {
  display: none !important;
}

.exam-copy h3 {
  margin: 0;
  font-size: 1.42rem;
}

.exam-copy p:not(.eyebrow) {
  margin: 12px 0 0;
}

.exam-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.exam-level {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.exam-swatch {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(23, 32, 28, 0.18);
  border-radius: 50%;
}

.exam-level span:last-child {
  color: var(--muted);
  font-weight: 800;
}

.city-section {
  padding-top: 18px;
}

.map-controls {
  display: inline-grid;
  grid-template-columns: repeat(6, minmax(72px, 1fr));
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.map-controls button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.map-controls button:first-child {
  border-left: 0;
}

.map-controls button.active {
  background: var(--green);
  color: #fffaf0;
}

.city-map-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(360px, 1.28fr);
  gap: 12px;
  align-items: stretch;
}

.map-visual {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 63, 110, 0.08), rgba(213, 155, 43, 0.12)),
    radial-gradient(circle at top left, rgba(183, 57, 53, 0.12), transparent 34%),
    var(--surface);
  overflow: hidden;
}

.map-visual::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(217, 209, 193, 0.72);
  border-radius: 6px;
  pointer-events: none;
}

.city-node {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 66px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.86);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.city-node.active {
  border-color: rgba(47, 107, 83, 0.55);
  background: #fffaf0;
  box-shadow: 0 12px 28px rgba(23, 32, 28, 0.12);
}

.node-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: #fffaf0;
  font-weight: 900;
}

.city-node.china .node-number {
  background: var(--green);
}

.city-node.usa .node-number {
  background: var(--indigo);
}

.city-node.france .node-number {
  background: #596d8f;
}

.city-node.brazil .node-number {
  background: #2d7d47;
}

.city-node strong {
  display: block;
  font-size: 1.2rem;
}

.city-node div span {
  color: var(--muted);
  font-weight: 800;
}

.city-list {
  display: grid;
  gap: 14px;
}

.city-card {
  min-height: 100%;
  padding: clamp(20px, 3vw, 28px);
}

.city-card h3 {
  margin: 12px 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
}

.country-pill {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.link-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--indigo);
  font-weight: 800;
}

.global-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.global-card {
  padding: 18px;
  border-top: 4px solid var(--gold);
}

.global-card span {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
}

.site-footer {
  padding: 28px clamp(16px, 4vw, 56px) 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  width: min(1160px, 100%);
  margin: 0 auto 8px;
}

.site-footer a {
  color: var(--indigo);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 12px;
  }

  .brand {
    justify-content: center;
  }

  .main-nav {
    order: 3;
  }

  .language-switcher {
    justify-self: center;
    width: min(360px, 100%);
  }

  .hero {
    min-height: 620px;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .photo-story,
  .founder-layout,
  .founder-grid,
  .technique-layout,
  .technique-groups,
  .rank-layout,
  .rank-explainers,
  .city-map-layout,
  .global-grid {
    grid-template-columns: 1fr;
  }

  .map-visual {
    position: relative;
    top: auto;
  }

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

  .photo-card-large {
    grid-row: auto;
    min-height: 320px;
  }

  .map-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    width: 100%;
    border-radius: 8px;
  }

  .exam-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .main-nav {
    justify-content: space-between;
    gap: 8px;
    font-size: 0.88rem;
  }

  .hero-content {
    padding-bottom: 58px;
  }

  .hero-actions {
    display: grid;
  }

  .intro-grid {
    margin-top: -28px;
  }

  .photo-card,
  .photo-card-large {
    min-height: 250px;
  }

  .timeline-item,
  .belt-row,
  .technique-subgroup {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .belt-row {
    position: relative;
    padding-left: 44px;
  }

  .belt-swatch {
    position: absolute;
    left: 0;
    top: 4px;
  }
}
