:root {
  --bg: #eef3ec;
  --paper: #fffdf7;
  --ink: #20251f;
  --muted: #647064;
  --line: #d9dfd3;
  --brand: #d93636;
  --brand-2: #0b6fa4;
  --green: #2f9a48;
  --gold: #b9862e;
  --blue: #0b6fa4;
  --surface: rgba(255, 253, 247, 0.88);
  --surface-strong: rgba(255, 253, 247, 0.96);
  --shadow: 0 18px 42px rgba(29, 45, 35, 0.13);
  --shadow-soft: 0 10px 28px rgba(29, 45, 35, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(47, 154, 72, 0.14), transparent 30%),
    linear-gradient(225deg, rgba(11, 111, 164, 0.13), transparent 32%),
    linear-gradient(20deg, rgba(217, 54, 54, 0.09), transparent 38%),
    repeating-linear-gradient(90deg, rgba(32, 37, 31, 0.035) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(32, 37, 31, 0.025) 0 1px, transparent 1px 92px),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 247, 0.9);
  border-bottom: 1px solid rgba(217, 223, 211, 0.9);
  box-shadow: 0 8px 24px rgba(29, 45, 35, 0.06);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(29, 45, 35, 0.16);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
}

.nav a,
.nav-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid rgba(12, 116, 168, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--brand-2);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 5px 14px rgba(29, 45, 35, 0.06);
}

.nav a:hover,
.nav-button:hover {
  border-color: rgba(12, 116, 168, 0.34);
  background: rgba(12, 116, 168, 0.1);
  color: var(--ink);
}

.nav a[aria-current="page"],
.nav a.active {
  border-color: rgba(12, 116, 168, 0.34);
  background: rgba(12, 116, 168, 0.12);
  color: var(--ink);
}

.nav-menu-toggle {
  display: none;
}

main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
  padding: 58px 0 78px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 32px -4vw 24px;
  z-index: -1;
  border: 1px solid rgba(217, 223, 211, 0.72);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(255, 253, 247, 0.9), rgba(255, 253, 247, 0.45)),
    linear-gradient(90deg, rgba(47, 154, 72, 0.09), rgba(11, 111, 164, 0.08), rgba(217, 54, 54, 0.07));
  box-shadow: 0 24px 70px rgba(29, 45, 35, 0.08);
}

.hero-copy {
  padding-left: clamp(0px, 1.6vw, 18px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 7.6vw, 86px);
  line-height: 1.02;
}

#site-title {
  position: relative;
  z-index: 0;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 0.02em 0.2em 0.08em;
  margin-left: -0.1em;
}

#site-title::before {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.18em;
  top: 0.12em;
  bottom: 0.02em;
  z-index: -1;
  border-radius: 0.18em;
  background:
    linear-gradient(90deg, rgba(47, 154, 72, 0.2), rgba(47, 154, 72, 0.26), rgba(11, 111, 164, 0.12)),
    rgba(255, 253, 247, 0.42);
  box-shadow: 0 12px 28px rgba(47, 154, 72, 0.12);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

h3 {
  margin-bottom: 8px;
}

.hero-subtitle {
  max-width: 680px;
  margin-bottom: 14px;
  color: #4b4036;
  font-size: clamp(19px, 2.6vw, 30px);
  font-weight: 700;
}

.hero-text,
.intro-body {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-strong);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(58, 39, 25, 0.1);
}

.button.primary {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand), #b8222c);
  color: #fff;
}

.button.ghost {
  background: rgba(255, 253, 248, 0.74);
}

.button.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 14px;
}

.button.danger {
  border-color: rgba(140, 47, 57, 0.35);
  color: var(--brand);
}

.hero-panel {
  min-height: 500px;
  position: relative;
  display: grid;
  place-items: center;
}

.brand-panel {
  isolation: isolate;
}

.logo-card {
  position: relative;
  z-index: 2;
  width: min(390px, 76vw);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(29, 45, 35, 0.18));
}

.type-orbit {
  position: absolute;
  inset: -2% -3% 0;
  z-index: 3;
  pointer-events: none;
}

.type-orbit::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(560px, 102vw);
  aspect-ratio: 1;
  border: 1px dashed rgba(12, 116, 168, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.type-orbit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(660px, 116vw);
  aspect-ratio: 1;
  border: 1px dashed rgba(55, 163, 74, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.energy-dot {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 64px;
  min-height: 64px;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid rgba(217, 223, 211, 0.95);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(29, 45, 35, 0.14);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  transform: translate(-50%, -50%);
}

.energy-dot span {
  display: block;
  color: var(--brand-2);
  font-size: 20px;
}

.energy-dot[data-group="green"] span {
  color: var(--green);
}

.energy-dot[data-group="blue"] span {
  color: var(--brand-2);
}

.energy-dot[data-group="red"] span {
  color: var(--brand);
}

.energy-dot[data-group="green"] {
  border-color: rgba(55, 163, 74, 0.35);
}

.energy-dot[data-group="blue"] {
  border-color: rgba(12, 116, 168, 0.35);
}

.energy-dot[data-group="red"] {
  border-color: rgba(223, 46, 46, 0.35);
}

.section {
  position: relative;
  isolation: isolate;
  padding: 70px 0;
  border-top: 1px solid rgba(221, 211, 196, 0.72);
}

.section::before {
  content: "";
  position: absolute;
  inset: 18px -4vw;
  z-index: -1;
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.3);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.section-title-link {
  color: inherit;
  text-decoration: none;
}

.section-title-link:hover {
  color: var(--brand-2);
}

.teacher-section {
  padding-top: 34px;
}

.teacher-section::before {
  background:
    linear-gradient(120deg, rgba(47, 154, 72, 0.12), rgba(255, 253, 247, 0.46)),
    rgba(255, 253, 247, 0.52);
}

.teacher-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(217, 223, 211, 0.95);
  border-radius: 14px;
  background:
    linear-gradient(120deg, rgba(255, 253, 247, 0.98), rgba(255, 253, 247, 0.82)),
    linear-gradient(90deg, rgba(47, 154, 72, 0.12), rgba(11, 111, 164, 0.08));
  box-shadow: var(--shadow);
}

.teacher-card p {
  color: var(--muted);
  font-size: 18px;
}

.teacher-card .button {
  margin-top: 18px;
}

.teacher-profile-panel {
  display: grid;
  grid-template-columns: minmax(150px, 0.58fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.teacher-photo {
  width: 100%;
  max-width: 230px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  border: 1px solid rgba(217, 223, 211, 0.95);
  box-shadow: 0 18px 34px rgba(29, 45, 35, 0.16);
  background: var(--surface-strong);
}

.teacher-lineage-card {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(217, 223, 211, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.86);
  box-shadow: var(--shadow-soft);
}

.teacher-lineage-card.compact {
  grid-column: 1 / -1;
  width: min(100%, 260px);
  justify-self: start;
}

.teacher-lineage-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 7px;
  display: block;
}

.teacher-lineage-card figcaption {
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.teacher-card ul,
.course-card ul,
.enterprise-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

#courses::before {
  background:
    linear-gradient(130deg, rgba(47, 154, 72, 0.08), rgba(11, 111, 164, 0.09), rgba(255, 253, 247, 0.5)),
    rgba(255, 253, 247, 0.48);
}

.course-card {
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(217, 223, 211, 0.95);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.course-card:hover {
  border-color: rgba(11, 111, 164, 0.26);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(29, 45, 35, 0.12);
}

.course-card p {
  color: var(--muted);
}

.nine-intro-section .section-heading {
  max-width: 860px;
}

.nine-intro-section::before {
  background:
    linear-gradient(135deg, rgba(11, 111, 164, 0.1), rgba(255, 253, 247, 0.5)),
    rgba(255, 253, 247, 0.5);
}

.nine-intro-section .section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stage-card {
  display: grid;
  gap: 8px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(217, 223, 211, 0.95);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.stage-link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.stage-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(29, 45, 35, 0.12);
}

.stage-card span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.stage-card strong {
  color: var(--brand-2);
}

.stage-card p {
  color: var(--muted);
}

.intro-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(12, 116, 168, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(47, 154, 72, 0.1), rgba(11, 111, 164, 0.1), rgba(217, 54, 54, 0.08)),
    var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.intro-summary p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.intro-summary div {
  display: grid;
  gap: 6px;
}

.intro-summary-link {
  color: inherit;
  text-decoration: none;
}

.intro-summary-link:hover p {
  color: var(--brand-2);
}

.detail-main {
  padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 56px) 70px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: clamp(26px, 4vw, 54px);
  min-height: 420px;
  margin-bottom: 34px;
}

.detail-hero h1 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
}

.detail-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 20px;
}

.detail-visual {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.detail-visual img {
  width: min(100%, 320px);
  border-radius: 50%;
  filter: drop-shadow(0 18px 30px rgba(29, 45, 35, 0.14));
}

.detail-visual span {
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.detail-layout {
  display: grid;
  gap: 28px;
}

.detail-block {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
}

.detail-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(217, 223, 211, 0.95);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(47, 154, 72, 0.08), rgba(255, 253, 247, 0.66)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.detail-block h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
}

.detail-block > p {
  max-width: 960px;
  color: var(--muted);
  font-size: 18px;
}

.detail-stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.detail-stage {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(217, 223, 211, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.82);
}

.stage-detail-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stage-detail-link:hover {
  border-color: rgba(11, 111, 164, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(29, 45, 35, 0.12);
}

.detail-stage span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.detail-stage h3 {
  margin: 0;
  font-size: 22px;
}

.detail-stage strong {
  color: var(--brand-2);
}

.detail-stage img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 7px;
  border: 1px solid rgba(217, 223, 211, 0.92);
  background: var(--surface-strong);
}

.detail-stage small {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.detail-stage em {
  color: var(--brand-2);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.detail-stage p,
.detail-list li {
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
  font-size: 18px;
}

.intro-definition-grid,
.intro-essence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.intro-definition-grid article,
.intro-essence-grid article {
  min-height: 100%;
  padding: 20px;
  border: 1px solid rgba(221, 211, 196, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.86);
  box-shadow: var(--shadow-soft);
}

.intro-definition-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--brand-2);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.intro-definition-grid h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.intro-definition-grid p,
.intro-essence-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.intro-compare-table {
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid rgba(221, 211, 196, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow-soft);
}

.intro-compare-head,
.intro-compare-table article {
  display: grid;
  grid-template-columns: 0.95fr 1.2fr 1.2fr 1.3fr;
}

.intro-compare-head span,
.intro-compare-table article > * {
  padding: 16px;
  border-right: 1px solid rgba(221, 211, 196, 0.85);
}

.intro-compare-head span:last-child,
.intro-compare-table article > *:last-child {
  border-right: 0;
}

.intro-compare-head {
  background: rgba(238, 243, 236, 0.95);
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 900;
}

.intro-compare-table article {
  border-top: 1px solid rgba(221, 211, 196, 0.85);
}

.intro-compare-table strong {
  color: var(--ink);
  font-size: 16px;
}

.intro-compare-table p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.intro-essence-block::before {
  background:
    linear-gradient(135deg, rgba(11, 111, 164, 0.1), rgba(47, 154, 72, 0.08), rgba(255, 253, 247, 0.68)),
    var(--surface);
}

.intro-essence-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intro-essence-grid article {
  border-color: rgba(12, 116, 168, 0.16);
  background: rgba(255, 255, 255, 0.78);
}

.stage-hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
}

.stage-tagline {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--brand-2);
  font-size: 18px;
}

.stage-count {
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
}

.stage-visual {
  display: grid;
  gap: 10px;
  margin: 0;
}

.stage-visual img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid rgba(217, 223, 211, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.86);
  box-shadow: var(--shadow);
}

.stage-visual figcaption {
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.stage-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.stage-gallery figure {
  display: grid;
  gap: 8px;
  align-content: start;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(217, 223, 211, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.86);
  box-shadow: var(--shadow-soft);
}

.stage-gallery img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
}

.stage-gallery figcaption {
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.stage-detail-list {
  font-size: 19px;
}

.start-hero {
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
}

.video-placeholder {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 28px;
  border: 1px solid rgba(217, 223, 211, 0.95);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(11, 111, 164, 0.12), rgba(47, 154, 72, 0.1)),
    rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow);
  text-align: center;
}

.video-placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--brand-2);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.video-placeholder p {
  max-width: 360px;
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.teacher-detail-hero {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
}

.teacher-portrait {
  margin: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.teacher-portrait img {
  width: min(100%, 360px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  border: 1px solid rgba(217, 223, 211, 0.95);
  box-shadow: 0 22px 46px rgba(29, 45, 35, 0.18);
  background: var(--surface-strong);
}

.teacher-portrait figcaption {
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.teacher-portrait .teacher-lineage-card {
  width: min(100%, 300px);
  margin-top: 8px;
}

.teacher-portrait .teacher-lineage-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.teacher-portrait .teacher-lineage-card img,
.teacher-lineage-card.compact img {
  max-width: 100%;
  height: auto;
}

.teacher-portrait .teacher-lineage-card figcaption {
  letter-spacing: 0;
  text-align: center;
}

.teacher-credential-grid,
.teacher-focus-grid,
.teacher-client-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.teacher-credential-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teacher-credential-grid span,
.teacher-client-grid span {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(217, 223, 211, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.75);
  color: var(--ink);
  font-weight: 800;
}

.teacher-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.teacher-timeline article,
.teacher-focus-grid article {
  padding: 18px;
  border: 1px solid rgba(217, 223, 211, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.78);
}

.teacher-timeline span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.teacher-timeline p,
.teacher-focus-grid p {
  margin: 8px 0 0;
  color: var(--muted);
}

.teacher-focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teacher-focus-grid h3 {
  margin: 0;
  font-size: 22px;
}

.teacher-client-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.enterprise-section,
.interaction-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 28px;
  align-items: stretch;
}

.enterprise-section::before {
  background:
    linear-gradient(125deg, rgba(217, 54, 54, 0.1), rgba(255, 253, 247, 0.56)),
    rgba(255, 253, 247, 0.48);
}

.quotes-section::before {
  background:
    linear-gradient(135deg, rgba(185, 134, 46, 0.12), rgba(217, 54, 54, 0.07), rgba(255, 253, 247, 0.5)),
    rgba(255, 253, 247, 0.5);
}

.interaction-section::before {
  background:
    linear-gradient(135deg, rgba(11, 111, 164, 0.12), rgba(47, 154, 72, 0.08), rgba(255, 253, 247, 0.52)),
    rgba(255, 253, 247, 0.5);
}

.enterprise-section > div:first-child,
.interaction-section > div:first-child {
  align-self: center;
}

.enterprise-section p,
.interaction-section p,
.quotes-section p {
  color: var(--muted);
  font-size: 17px;
}

.enterprise-panel {
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(12, 116, 168, 0.18);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quote-interactive {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 20px;
  align-items: stretch;
}

.quote-picker {
  display: grid;
  gap: 14px;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.quote-card {
  appearance: none;
  text-align: left;
  margin: 0;
  min-height: 160px;
  padding: 20px;
  border: 1px solid rgba(217, 223, 211, 0.95);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(255, 253, 247, 0.84)),
    var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: 0.18s ease;
}

.quote-card:hover,
.quote-card:focus-visible,
.quote-card.active {
  border-color: rgba(223, 46, 46, 0.42);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(29, 45, 35, 0.12);
}

.quote-card.active {
  outline: 3px solid rgba(223, 46, 46, 0.12);
}

.quote-card span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.quote-card p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.quote-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.quote-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quote-response-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  position: sticky;
  top: 88px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(12, 116, 168, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(255, 253, 247, 0.88)),
    var(--surface);
  box-shadow: var(--shadow);
}

.quote-response-panel h3,
.quote-response-panel p {
  margin: 0;
}

.quote-response-panel h3 {
  font-size: 22px;
}

#selected-quote-text {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.quote-reaction-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reaction-chip {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(12, 116, 168, 0.2);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--brand-2);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.reaction-chip:hover,
.reaction-chip.active {
  border-color: var(--brand-2);
  background: rgba(12, 116, 168, 0.1);
  color: var(--ink);
}

.quote-name,
.quote-reflection {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.quote-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.quote-feedback {
  min-height: 20px;
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 800;
}

.quote-community {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(217, 223, 211, 0.95);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(255, 253, 247, 0.78)),
    var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.quote-community h3 {
  margin: 4px 0 0;
  font-size: 24px;
}

.quote-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quote-filter {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(47, 154, 72, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-3);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.quote-filter:hover,
.quote-filter.active {
  border-color: var(--brand-3);
  background: rgba(47, 154, 72, 0.1);
  color: var(--ink);
}

.quote-response-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.quote-response-card,
.quote-empty {
  border: 1px solid rgba(217, 223, 211, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.quote-response-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 220px;
  padding: 18px;
}

.quote-response-meta,
.quote-response-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quote-response-meta strong {
  color: var(--ink);
  font-size: 15px;
}

.quote-response-meta span,
.quote-response-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quote-response-card blockquote {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid rgba(223, 46, 46, 0.45);
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.55;
}

.quote-response-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.quote-response-actions button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(12, 116, 168, 0.2);
  border-radius: 999px;
  background: rgba(12, 116, 168, 0.08);
  color: var(--brand-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.quote-response-actions button:hover {
  border-color: var(--brand-2);
  background: rgba(12, 116, 168, 0.14);
}

.quote-empty {
  padding: 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.interaction-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.interaction-actions a,
.interaction-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(12, 116, 168, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.78);
  color: var(--brand-2);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.interaction-actions a:hover,
.interaction-actions button:hover {
  border-color: rgba(12, 116, 168, 0.36);
  background: rgba(12, 116, 168, 0.1);
  color: var(--ink);
}

.registered-panel {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(47, 154, 72, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.registered-panel[hidden] {
  display: none;
}

.registered-panel strong {
  color: var(--ink);
  font-size: 22px;
}

.registered-panel span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.registered-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(217, 223, 211, 0.95);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.lead-form .wide,
.lead-form button,
.form-hint {
  grid-column: 1 / -1;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

#types::before {
  background:
    linear-gradient(135deg, rgba(47, 154, 72, 0.1), rgba(217, 54, 54, 0.07), rgba(255, 253, 247, 0.52)),
    rgba(255, 253, 247, 0.46);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid rgba(221, 211, 196, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 12px 30px rgba(58, 39, 25, 0.08);
}

.feature-card p {
  color: var(--muted);
}

.feature-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.type-card,
.module-card,
.admin-card {
  border: 1px solid rgba(221, 211, 196, 0.9);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.type-card {
  min-height: 100%;
  padding: 22px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.type-card:hover {
  border-color: rgba(11, 111, 164, 0.24);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(29, 45, 35, 0.12);
}

.type-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: #fff;
  background: var(--brand-2);
  border-radius: 50%;
  font-weight: 800;
}

.type-core {
  color: var(--brand);
  font-weight: 800;
}

.type-card p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.game-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1.22fr);
  gap: 26px;
  align-items: stretch;
}

.game-section::before {
  background:
    linear-gradient(135deg, rgba(32, 37, 31, 0.08), rgba(11, 111, 164, 0.1), rgba(255, 253, 247, 0.52)),
    rgba(255, 253, 247, 0.48);
}

.game-copy {
  align-self: center;
}

.game-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.game-frame-wrap {
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(221, 211, 196, 0.9);
  border-radius: var(--radius);
  background: #101020;
  box-shadow: var(--shadow);
}

.game-frame-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 560px;
  border: 0;
}

#library::before {
  background:
    linear-gradient(135deg, rgba(11, 111, 164, 0.11), rgba(185, 134, 46, 0.08), rgba(255, 253, 247, 0.54)),
    rgba(255, 253, 247, 0.46);
}

.library-heading {
  max-width: 860px;
}

.library-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.35fr);
  gap: 22px;
  align-items: stretch;
}

.library-browser,
.library-viewer {
  border: 1px solid rgba(221, 211, 196, 0.9);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.library-browser {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.library-browser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
}

.library-browser-head strong {
  color: var(--brand-2);
  font-size: 13px;
}

.image-head {
  margin-top: 4px;
}

.gallery-strip,
.library-grid {
  display: grid;
  gap: 10px;
}

.library-card {
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid rgba(221, 211, 196, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.82);
  box-shadow: 0 8px 18px rgba(29, 45, 35, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.library-card:hover,
.library-card.active {
  border-color: rgba(11, 111, 164, 0.34);
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(29, 45, 35, 0.12);
}

.library-card p {
  color: var(--muted);
}

.library-type {
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 800;
}

.library-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(221, 211, 196, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.82);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 18px rgba(29, 45, 35, 0.06);
}

.gallery-item:hover,
.gallery-item.active {
  border-color: rgba(217, 54, 54, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(29, 45, 35, 0.12);
}

.gallery-item img {
  width: 74px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.gallery-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.library-viewer {
  min-height: 620px;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(420px, 1fr) auto;
}

.library-preview-media {
  min-height: 420px;
  background: rgba(238, 243, 236, 0.9);
}

.library-preview-media.image-preview {
  display: grid;
  place-items: center;
  padding: 18px;
}

.library-preview-media img {
  max-width: 100%;
  max-height: 560px;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: var(--shadow-soft);
}

.library-frame {
  width: 100%;
  height: 100%;
  min-height: 560px;
  border: 0;
  background: #fff;
}

.library-preview-meta,
.library-document-preview,
.library-empty {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.library-preview-meta {
  border-top: 1px solid rgba(221, 211, 196, 0.9);
}

.library-preview-meta span,
.library-document-preview span,
.library-empty span {
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 900;
}

.library-preview-meta h3,
.library-document-preview h3,
.library-empty h3 {
  margin: 0;
}

.library-preview-meta p,
.library-document-preview p,
.library-empty p {
  margin: 0;
  color: var(--muted);
}

.library-document-preview,
.library-empty {
  min-height: 620px;
  align-content: center;
  justify-items: start;
  background:
    linear-gradient(135deg, rgba(11, 111, 164, 0.08), rgba(47, 154, 72, 0.07)),
    var(--surface-strong);
}

.section-list {
  display: grid;
  gap: 14px;
}

#path::before {
  background:
    linear-gradient(135deg, rgba(32, 37, 31, 0.05), rgba(47, 154, 72, 0.08), rgba(255, 253, 247, 0.55)),
    rgba(255, 253, 247, 0.44);
}

.module-card {
  padding: 22px;
}

.module-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.footer {
  width: min(1200px, calc(100% - 32px));
  margin: 20px auto 0;
  padding: 26px 0 40px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid rgba(221, 211, 196, 0.8);
}

.mini-tabbar {
  display: none;
}

.mobile-home-quick {
  display: none;
}

.admin-layout {
  padding-bottom: 60px;
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0 28px;
}

.admin-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(36px, 5vw, 60px);
}

.admin-card {
  margin-bottom: 18px;
  padding: 22px;
}

.admin-locked .admin-layout,
.admin-locked .nav {
  display: none;
}

.admin-login-screen {
  width: min(520px, calc(100% - 32px));
  margin: 80px auto;
}

.admin-login-card {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(221, 211, 196, 0.9);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(255, 253, 247, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
}

.admin-login-card h1 {
  margin: 0;
  font-size: 34px;
}

.user-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.user-stat-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(221, 211, 196, 0.9);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.user-stat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.user-stat-card strong {
  color: var(--brand-2);
  font-size: 30px;
}

.user-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mini-admin-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.mini-admin-menu {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.92);
  box-shadow: var(--shadow-soft);
}

.mini-admin-menu a {
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 900;
}

.mini-admin-menu a:hover {
  background: rgba(31, 107, 103, 0.08);
  color: var(--brand-2);
}

.mini-admin-content {
  min-width: 0;
}

.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mini-game-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mini-game-type-head {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.mini-game-type-head h3 {
  margin: 0 0 4px;
}

.mini-thumb {
  width: 86px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #f4eee5;
}

.mini-thumb.empty {
  display: block;
}

.card-image-manager {
  display: grid;
  gap: 14px;
}

.card-image-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf2;
}

.card-image-item h3 {
  margin: 0 0 4px;
}

.card-image-preview {
  width: 180px;
  height: 132px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4eadb;
}

.card-image-preview.empty {
  display: block;
}

.card-image-body {
  min-width: 0;
}

.quote-user-row {
  background: rgba(47, 154, 72, 0.05);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

label.wide {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(31, 107, 103, 0.22);
  border-color: var(--brand-2);
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.type-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-editor-list,
.library-editor-list,
.visual-editor,
.visual-editor-list {
  display: grid;
  gap: 14px;
}

.visual-editor > h3,
.sub-row {
  margin-top: 8px;
}

.visual-editor h3,
.visual-editor h4 {
  margin-bottom: 0;
}

.wide-editor-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.compact-card {
  padding: 14px;
}

.type-editor {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.type-editor h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  font-size: 17px;
}

.user-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.user-table {
  width: 100%;
  min-width: 1420px;
  border-collapse: collapse;
}

.user-table th,
.user-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(221, 211, 196, 0.75);
  text-align: left;
  vertical-align: top;
}

.user-table th {
  color: var(--muted);
  font-size: 13px;
  background: rgba(247, 244, 238, 0.8);
}

.user-table input,
.user-table textarea,
.user-table select {
  min-width: 120px;
  padding: 8px;
}

.hint {
  color: var(--muted);
}

.advanced-backup summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.advanced-backup textarea {
  margin-top: 14px;
}

.json-editor {
  min-height: 320px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.image-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 54px;
  align-items: center;
  gap: 8px;
}

.image-upload-row input {
  min-width: 0;
}

.image-upload-button {
  white-space: nowrap;
}

.image-upload-preview {
  display: none;
  width: 54px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
}

.image-upload-preview.show {
  display: block;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.has-ambient-player {
  padding-bottom: 86px;
}

.ambient-player {
  position: fixed;
  right: 18px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(12, 116, 168, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 14px 34px rgba(29, 45, 35, 0.16);
  backdrop-filter: blur(14px);
}

.ambient-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  min-width: 106px;
  padding: 8px 12px;
  border: 1px solid rgba(12, 116, 168, 0.2);
  border-radius: 7px;
  background: #fff;
  color: var(--brand-2);
  cursor: pointer;
  font-weight: 900;
}

.ambient-toggle:hover {
  border-color: rgba(12, 116, 168, 0.42);
  background: rgba(12, 116, 168, 0.08);
  color: var(--ink);
}

.ambient-mark {
  display: inline-flex;
  align-items: end;
  gap: 2px;
  height: 16px;
}

.ambient-mark span {
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-2);
}

.ambient-mark span:nth-child(2) {
  height: 13px;
  background: var(--green);
}

.ambient-mark span:nth-child(3) {
  height: 10px;
  background: var(--brand);
}

.ambient-player.is-playing .ambient-mark span {
  animation: ambientPulse 1.2s ease-in-out infinite;
}

.ambient-player.is-playing .ambient-mark span:nth-child(2) {
  animation-delay: 0.16s;
}

.ambient-player.is-playing .ambient-mark span:nth-child(3) {
  animation-delay: 0.32s;
}

.ambient-volume {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.ambient-volume input {
  width: 92px;
  padding: 0;
  accent-color: var(--brand-2);
}

.ambient-status {
  max-width: 96px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes ambientPulse {
  0%,
  100% {
    transform: scaleY(0.72);
  }

  50% {
    transform: scaleY(1.15);
  }
}

@media (max-width: 920px) {
  .hero,
  .detail-hero,
  .stage-hero,
  .split,
  .game-section,
  .teacher-card,
  .enterprise-section,
  .interaction-section,
  .quote-interactive,
  .library-showcase,
  .admin-hero {
    grid-template-columns: 1fr;
  }

  .admin-hero {
    display: grid;
  }

  .mini-admin-shell {
    grid-template-columns: 1fr;
  }

  .mini-admin-menu {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .mini-admin-menu a {
    white-space: nowrap;
  }

  .hero::before,
  .section::before {
    left: -18px;
    right: -18px;
    border-radius: 18px;
  }

  .quote-response-panel {
    position: static;
  }

  .type-grid,
  .type-editor-grid,
  .feature-grid,
  .course-grid,
  .stage-grid,
  .detail-stage-grid,
  .teacher-credential-grid,
  .teacher-focus-grid,
  .teacher-client-grid,
  .teacher-timeline,
  .quote-grid,
  .quote-response-list,
  .intro-definition-grid,
  .intro-essence-grid,
  .stage-gallery,
  .user-stat-grid,
  .user-filter-grid,
  .mini-stat-grid,
  .mini-game-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-compare-head {
    display: none;
  }

  .intro-compare-table article {
    grid-template-columns: 1fr;
  }

  .intro-compare-table article > * {
    border-right: 0;
    border-bottom: 1px solid rgba(221, 211, 196, 0.72);
  }

  .intro-compare-table article > *:last-child {
    border-bottom: 0;
  }

  .library-grid {
    grid-template-columns: 1fr;
  }

  .library-viewer {
    min-height: 520px;
  }
}

@media (max-width: 640px) {
  :root {
    --shadow: 0 10px 24px rgba(29, 45, 35, 0.1);
    --shadow-soft: 0 7px 18px rgba(29, 45, 35, 0.08);
  }

  body {
    background: #f4f6f1;
  }

  body::before {
    background:
      linear-gradient(180deg, rgba(47, 154, 72, 0.12), transparent 220px),
      linear-gradient(135deg, rgba(11, 111, 164, 0.1), transparent 240px),
      #f4f6f1;
  }

  main,
  .footer {
    width: min(100% - 24px, 430px);
  }

  .topbar,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar {
    position: sticky;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-bottom-color: rgba(217, 223, 211, 0.65);
    box-shadow: 0 6px 18px rgba(29, 45, 35, 0.05);
  }

  .brand {
    width: 100%;
    justify-content: flex-start;
    font-size: 15px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .nav-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid rgba(12, 116, 168, 0.22);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-2);
    box-shadow: 0 8px 18px rgba(29, 45, 35, 0.08);
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
  }

  .nav-menu-lines {
    display: grid;
    gap: 3px;
  }

  .nav-menu-lines span {
    display: block;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .nav {
    grid-column: 1 / -1;
    width: 100%;
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding-top: 6px;
  }

  .topbar.nav-open .nav {
    display: grid;
  }

  .nav a {
    min-height: 42px;
    padding: 8px 6px;
    border-radius: 10px;
    font-size: 12px;
    box-shadow: none;
    white-space: normal;
    word-break: keep-all;
    background: rgba(255, 255, 255, 0.86);
  }

  .hero {
    min-height: auto;
    gap: 10px;
    padding: 14px 0 10px;
  }

  .hero::before,
  .section::before,
  .detail-block::before {
    border-radius: 14px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 48px);
    line-height: 1.03;
    margin-bottom: 10px;
  }

  #site-title {
    padding: 0;
    margin-left: 0;
  }

  #site-title::before {
    display: none;
  }

  h2 {
    font-size: clamp(24px, 8vw, 32px);
    line-height: 1.14;
  }

  .hero-copy,
  .hero-subtitle,
  .hero-text {
    width: 100%;
    max-width: none;
  }

  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .hero-text,
  .section-heading p:not(.eyebrow),
  .nine-intro-section .section-heading p:not(.eyebrow),
  .teacher-card p,
  .game-copy p:not(.eyebrow),
  .enterprise-section p,
  .interaction-section p,
  .quotes-section p {
    font-size: 15px;
    line-height: 1.75;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .hero-actions,
  .detail-actions,
  .registered-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .button {
    width: 100%;
    min-height: 46px;
    border-radius: 9px;
  }

  .hero-panel {
    width: min(320px, calc(100vw - 72px));
    min-height: 0;
    aspect-ratio: 1;
    margin: 6px auto 4px;
    overflow: visible;
    align-content: center;
    padding: 0;
  }

  .logo-card {
    width: min(156px, 46vw);
    max-width: 156px;
  }

  .section {
    padding: 42px 0;
  }

  .mobile-home-quick {
    display: grid;
    gap: 16px;
    margin: 4px 0 18px;
    padding: 18px;
    border: 1px solid rgba(217, 223, 211, 0.86);
    border-radius: 16px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 253, 247, 0.88)),
      #fff;
    box-shadow: var(--shadow);
  }

  .mobile-home-head h2 {
    font-size: 25px;
    margin-bottom: 8px;
  }

  .mobile-home-head p:not(.eyebrow) {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
  }

  .mobile-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .mobile-quick-card {
    display: grid;
    gap: 5px;
    min-height: 104px;
    align-content: start;
    padding: 13px;
    border: 1px solid rgba(217, 223, 211, 0.95);
    border-radius: 12px;
    background: rgba(255, 253, 247, 0.94);
    box-shadow: var(--shadow-soft);
  }

  .mobile-quick-card span {
    color: var(--brand-2);
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-quick-card strong {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.25;
  }

  .mobile-quick-card small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
  }

  .mobile-quick-card.primary {
    border-color: rgba(217, 54, 54, 0.28);
    background:
      linear-gradient(135deg, rgba(217, 54, 54, 0.1), rgba(255, 253, 247, 0.94)),
      #fff;
  }

  .mobile-quick-card.primary span,
  .mobile-quick-card.primary strong {
    color: var(--brand);
  }

  .mobile-scenario-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -2px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .mobile-scenario-row::-webkit-scrollbar {
    display: none;
  }

  .mobile-scenario-row a {
    flex: 0 0 auto;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid rgba(12, 116, 168, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--brand-2);
    font-size: 13px;
    font-weight: 900;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .teacher-card,
  .course-card,
  .stage-card,
  .type-card,
  .module-card,
  .enterprise-panel,
  .quote-picker,
  .quote-response-panel,
  .quote-community,
  .registered-panel,
  .lead-form,
  .detail-block {
    border-radius: 12px;
  }

  .teacher-card,
  .lead-form {
    padding: 18px;
  }

  .type-orbit {
    position: absolute;
    inset: 0;
    width: auto;
    display: block;
    margin: 0;
    padding: 0;
    pointer-events: none;
  }

  .type-orbit::before,
  .type-orbit::after {
    display: block;
  }

  .type-orbit::before {
    width: calc(100% - 44px);
  }

  .type-orbit::after {
    width: calc(100% - 4px);
  }

  .energy-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    min-height: 48px;
    display: grid;
    place-items: center;
    padding: 4px;
    border-radius: 50%;
    font-size: 10px;
    line-height: 1.08;
    text-align: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 7px 16px rgba(29, 45, 35, 0.12);
  }

  .energy-dot span {
    display: block;
    font-size: 15px;
    line-height: 1;
  }

  .type-grid,
  .type-editor-grid,
  .feature-grid,
  .course-grid,
  .stage-grid,
  .detail-stage-grid,
  .teacher-profile-panel,
  .teacher-credential-grid,
  .teacher-focus-grid,
  .teacher-client-grid,
  .teacher-timeline,
  .quote-grid,
  .quote-response-list,
  .quote-action-row,
  .intro-definition-grid,
  .intro-essence-grid,
  .stage-gallery,
  .user-stat-grid,
  .user-filter-grid,
  .lead-form,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .teacher-profile-panel {
    justify-items: start;
  }

  .teacher-photo {
    width: 100%;
    max-width: 220px;
  }

  .library-browser,
  .library-preview-meta,
  .library-document-preview,
  .library-empty {
    padding: 16px;
  }

  .library-viewer,
  .library-document-preview,
  .library-empty {
    min-height: 420px;
  }

  .library-preview-media,
  .library-frame {
    min-height: 340px;
  }

  .quote-tools {
    flex-direction: column;
  }

  .quote-tools .button,
  .quote-response-panel .button {
    width: 100%;
  }

  .quote-card,
  .reaction-chip,
  .quote-filter,
  .interaction-actions a,
  .interaction-actions button {
    min-height: 42px;
  }

  .interaction-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .intro-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-hero {
    min-height: auto;
  }

  .stage-visual img {
    max-height: none;
  }

  .detail-hero p:not(.eyebrow),
  .detail-block > p,
  .detail-list {
    font-size: 16px;
  }

  .game-frame-wrap,
  .game-frame-wrap iframe {
    min-height: 700px;
    border-radius: 12px;
  }

  .has-ambient-player {
    padding-bottom: 128px;
  }

  .ambient-player {
    left: auto;
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
  }

  .ambient-toggle {
    min-width: auto;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 999px;
  }

  .ambient-text {
    display: inline;
    font-size: 12px;
  }

  .ambient-volume {
    display: none;
  }

  .ambient-volume input {
    width: min(96px, 24vw);
  }

  .ambient-status {
    display: none;
  }

  .mini-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(217, 223, 211, 0.95);
    background: rgba(255, 253, 247, 0.96);
    box-shadow: 0 -10px 24px rgba(29, 45, 35, 0.1);
    backdrop-filter: blur(16px);
  }

  .mini-tabbar a {
    display: grid;
    place-items: center;
    min-height: 48px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .mini-tabbar a::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-bottom: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.58;
  }

  .mini-tabbar a.active,
  .mini-tabbar a:hover {
    background: rgba(12, 116, 168, 0.1);
    color: var(--brand-2);
  }

  .footer {
    padding-bottom: 118px;
  }
}


.front-feature-callout {
  display: grid;
  gap: 8px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(157, 62, 54, 0.24);
  border-radius: 12px;
  background: #fff4e4;
}

.front-feature-callout strong {
  color: #2d221c;
  font-size: 17px;
}

.front-feature-callout span {
  color: var(--muted);
  line-height: 1.65;
}

.mini-admin-menu .important-link {
  color: #fff;
  background: #9d3e36;
  border-color: #9d3e36;
}

.nine-circle-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.nine-circle-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf2;
}

.nine-circle-card .card-image-preview {
  width: 100%;
  height: 180px;
}

.nine-circle-card h3 {
  margin: 0;
  font-size: 16px;
}

.nine-circle-number {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: #9d3e36;
  color: #fff;
  font-weight: 900;
  line-height: 30px;
  text-align: center;
}

.compact-form-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (max-width: 960px) {
  .nine-circle-admin-grid {
    grid-template-columns: 1fr;
  }
}

.type-editor > .mini-thumb {
  width: 100%;
  height: 132px;
  object-fit: contain;
  background: #f4eadb;
}


.type-image-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.type-image-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.type-image-card .card-image-preview {
  width: 100%;
  height: 188px;
}

.type-image-card h3 {
  margin: 0;
  font-size: 16px;
}

.type-image-upload-button {
  justify-self: start;
}

@media (max-width: 960px) {
  .type-image-admin-grid {
    grid-template-columns: 1fr;
  }
}


.stage-image-admin-list {
  display: grid;
  gap: 16px;
}

.stage-image-admin-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.stage-image-admin-head h3,
.stage-image-admin-head p {
  margin: 0;
}

.stage-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stage-image-tile {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(217, 223, 211, 0.95);
  border-radius: 12px;
  background: #fffaf2;
}

.stage-image-tile .card-image-preview {
  width: 100%;
  height: 180px;
}

.stage-image-number {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #0b6fa4;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 20px;
}

.stage-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-image-empty {
  padding: 16px;
  border: 1px dashed rgba(11, 111, 164, 0.28);
  border-radius: 10px;
  background: rgba(11, 111, 164, 0.06);
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 960px) {
  .stage-image-grid {
    grid-template-columns: 1fr;
  }
}

.stage-image-editor-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px dashed rgba(11, 111, 164, 0.28);
  border-radius: 10px;
  background: rgba(11, 111, 164, 0.06);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.stage-image-editor-link.wide {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .stage-image-editor-link {
    align-items: stretch;
    flex-direction: column;
  }
}
