:root {
  --ink: #1d2a2b;
  --muted: #66706e;
  --line: #dfe6e2;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --teal: #0d6b68;
  --teal-dark: #084b49;
  --coral: #c96f5b;
  --gold: #d6a94f;
  --mist: #eef5f1;
  --shadow: 0 18px 50px rgba(23, 53, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.6;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--coral), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.12s ease-out;
}

.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(18px, 4vw, 36px);
  z-index: 70;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(13, 107, 104, 0.2);
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 14px 34px rgba(23, 53, 51, 0.22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.back-to-top:hover {
  background: var(--teal-dark);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal-item,
.section-head,
.detail-strip > div,
.detail-hero-copy,
.detail-hero-panel {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.reveal-item.is-visible,
.section-head.is-visible,
.detail-strip > div.is-visible,
.detail-hero-copy.is-visible,
.detail-hero-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.9);
  border-bottom: 1px solid rgba(223, 230, 226, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px) 28px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.25;
}

.hero-text {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.admin-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.7);
}

.button.danger {
  border-color: #ead6d1;
  color: #a84f40;
  background: #fff7f5;
}

.button.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.hero-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--mist);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.filter.active,
.filter:hover {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.showcase-controls {
  display: inline-flex;
  gap: 8px;
}

.showcase-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--teal);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.showcase-controls button:hover,
.showcase-controls button:focus {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  outline: 0;
  transform: translateY(-1px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.product-grid.is-refreshing {
  opacity: 0.42;
  transform: translateY(6px);
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-card:focus-within {
  border-color: rgba(13, 107, 104, 0.45);
  box-shadow: 0 0 0 4px rgba(13, 107, 104, 0.08);
}

.product-click-area {
  display: block;
}

.product-art {
  display: grid;
  align-content: space-between;
  min-height: 150px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #7f9b87);
}

.product-art.adult {
  background: linear-gradient(135deg, #42536b, #c96f5b);
}

.product-art.coaching {
  background: linear-gradient(135deg, #765b42, #d6a94f);
}

.product-art.partner {
  background: linear-gradient(135deg, #324d45, #7f8f7a);
}

.product-art img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
}

.tag {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.art-title {
  margin: 34px 0 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.meta span {
  display: block;
  color: var(--ink);
  font-weight: 800;
}

.product-body p {
  margin-bottom: 0;
  color: var(--muted);
}

.highlights {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.highlights li {
  position: relative;
  padding-left: 16px;
  color: var(--ink);
  font-size: 14px;
}

.highlights li::before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  margin-top: auto;
  padding: 0 13px;
  border: 1px solid rgba(13, 107, 104, 0.2);
  border-radius: 8px;
  color: var(--teal);
  background: var(--mist);
  font-size: 14px;
  font-weight: 800;
}

.detail-link:hover {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.band {
  background: #eef5f1;
}

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

.logic-grid article {
  padding: 24px;
  border: 1px solid rgba(13, 107, 104, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.logic-grid span {
  color: var(--coral);
  font-weight: 900;
}

.admin-body {
  min-height: 100vh;
  background: #f4f6f3;
}

.admin-topbar {
  background: rgba(255, 255, 255, 0.94);
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 72px);
}

.admin-sidebar {
  position: sticky;
  top: 71px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: calc(100vh - 72px);
  padding: 24px;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.admin-sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-sidebar h1 {
  margin-bottom: 0;
  font-size: 26px;
}

.admin-search {
  color: var(--ink);
}

.admin-search.is-hidden {
  display: none;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.admin-tabs button.active,
.admin-tabs button:hover,
.admin-tabs button:focus {
  background: var(--teal);
  color: #fff;
  outline: 0;
}

.admin-sidebar .admin-list {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-product-row {
  display: grid;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  overflow: hidden;
}

.admin-product-row.active {
  border-color: rgba(13, 107, 104, 0.42);
  background: var(--mist);
  box-shadow: 0 10px 24px rgba(23, 53, 51, 0.08);
}

.admin-product-row > button:first-child {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 14px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-product-row strong {
  line-height: 1.35;
}

.admin-product-row span,
.admin-product-row small {
  color: var(--muted);
  font-size: 13px;
}

.admin-product-row .product-row-kicker {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.admin-tools {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-tools .button {
  justify-content: center;
  width: 100%;
}

.admin-editor-panel {
  padding: 24px clamp(20px, 4vw, 48px) 56px;
}

.editor-card {
  max-width: 1040px;
  margin: 0 auto;
}

.admin-panel-view {
  display: none;
}

.admin-panel-view.active {
  display: block;
}

.site-editor {
  margin-bottom: 0;
}

.editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.editor-head h2 {
  margin-bottom: 6px;
  font-size: 28px;
}

.editor-head p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

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

.save-status {
  min-width: 92px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.save-status[data-state="dirty"] {
  background: #fff3de;
  color: #916221;
}

.save-status[data-state="saved"] {
  background: #e8f5ed;
  color: var(--teal);
}

.save-status[data-state="error"] {
  background: #fde9e3;
  color: var(--coral);
}

.library-head {
  display: grid;
  gap: 4px;
}

.library-head h3,
.library-head p {
  margin-bottom: 0;
}

.library-head p {
  color: var(--muted);
}

.relation-grid,
.library-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.relation-grid > section,
.library-list {
  min-height: 180px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.relation-picker {
  display: grid;
  gap: 8px;
}

.relation-option {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.relation-option:hover {
  border-color: rgba(13, 107, 104, 0.36);
}

.relation-option input {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
}

.relation-option span,
.relation-option strong,
.relation-option small {
  display: block;
}

.relation-option small {
  color: var(--muted);
  font-weight: 700;
}

.library-layout {
  align-items: start;
}

.library-list {
  display: grid;
  gap: 10px;
}

.library-row {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.library-row.active,
.library-row:hover,
.library-row:focus {
  border-color: rgba(13, 107, 104, 0.42);
  background: var(--mist);
  outline: 0;
}

.library-row span {
  color: var(--muted);
  font-size: 13px;
}

.library-form {
  align-self: start;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--mist);
  color: var(--teal-dark);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.detail-loading {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px) 28px;
}

.detail-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-hero-copy h1 {
  max-width: 860px;
}

.detail-hero-copy p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: 19px;
}

.back-link {
  width: fit-content;
  margin-bottom: 26px;
  color: var(--teal);
  font-weight: 800;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-tags span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.detail-hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  padding: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), #7f9b87);
  color: #fff;
  box-shadow: var(--shadow);
}

.detail-hero-panel.adult {
  background: linear-gradient(135deg, #42536b, #c96f5b);
}

.detail-hero-panel.coaching {
  background: linear-gradient(135deg, #765b42, #d6a94f);
}

.detail-hero-panel.partner {
  background: linear-gradient(135deg, #324d45, #7f8f7a);
}

.detail-hero-panel span {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
}

.detail-hero-panel strong {
  display: block;
  margin: auto 0 18px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}

.detail-hero-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.detail-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 72px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.detail-strip div {
  min-height: 118px;
  padding: 20px;
  background: var(--surface);
}

.detail-strip strong,
.detail-strip span {
  display: block;
}

.detail-strip strong {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.25;
}

.detail-strip span {
  color: var(--muted);
  font-size: 13px;
}

.detail-value-grid,
.detail-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-value-grid article,
.detail-two-column > div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-value-grid p,
.detail-two-column p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.detail-module-grid article {
  position: relative;
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(13, 107, 104, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.detail-module-grid span {
  color: var(--coral);
  font-weight: 900;
}

.detail-module-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.detail-process-grid article {
  position: relative;
  padding: 20px;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 53, 51, 0.08);
}

.detail-process-grid span,
.detail-process-grid strong {
  display: block;
}

.detail-process-grid span {
  margin-bottom: 18px;
  color: var(--coral);
  font-weight: 900;
}

.detail-process-grid strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.detail-process-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.brand-showcase,
.teacher-showcase,
.course-shot-grid {
  display: grid;
  gap: 18px;
}

.brand-showcase,
.teacher-showcase {
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, 32vw);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: clamp(18px, 5vw, 72px);
  scroll-snap-type: inline mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.course-shot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brand-card,
.teacher-card {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.brand-card:hover,
.teacher-card:hover,
.brand-card:focus,
.teacher-card:focus {
  border-color: rgba(13, 107, 104, 0.38);
  box-shadow: var(--shadow);
  outline: 0;
  transform: translateY(-3px);
}

.brand-card > span,
.brand-card img {
  flex: 0 0 auto;
  width: 128px;
  height: 82px;
  border-radius: 8px;
}

.teacher-avatar {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  border-radius: 8px;
}

.brand-card > span,
.teacher-avatar {
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.brand-card img,
.teacher-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #fff;
}

.teacher-avatar img {
  object-fit: cover;
}

.teacher-avatar,
.teacher-avatar img {
  border-radius: 50%;
}

.brand-card h3,
.teacher-card h3 {
  margin-bottom: 4px;
}

.teacher-card strong,
.brand-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 14px;
}

.brand-card p,
.teacher-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-more {
  display: inline-flex;
  margin-top: 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.card-more::after {
  content: " →";
}

.modal-open {
  overflow: hidden;
}

.showcase-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.showcase-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 29, 28, 0.42);
  cursor: pointer;
}

.modal-panel {
  position: relative;
  width: min(620px, 100%);
  padding: 30px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(10, 29, 28, 0.28);
  transform: translateY(12px);
  transition: transform 0.18s ease;
}

.showcase-modal.is-open .modal-panel {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
}

.modal-close:hover,
.modal-close:focus {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
  outline: 0;
}

.modal-panel h2 {
  margin-right: 42px;
  margin-bottom: 6px;
  font-size: 34px;
}

.modal-panel strong {
  display: block;
  margin-bottom: 16px;
  color: var(--teal);
}

.modal-panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.course-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(13, 107, 104, 0.16);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 53, 51, 0.08);
}

.course-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.course-shot figcaption {
  padding: 12px 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

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

.course-topic-card {
  position: relative;
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(13, 107, 104, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.course-topic-card h3 {
  margin-bottom: 12px;
  color: var(--teal-dark);
}

.course-topic-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.interactive-card {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.interactive-card::after {
  content: "展开";
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 2px 8px;
  border: 1px solid rgba(13, 107, 104, 0.18);
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.88);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.interactive-card:hover,
.interactive-card:focus {
  border-color: rgba(13, 107, 104, 0.42);
  box-shadow: 0 16px 36px rgba(23, 53, 51, 0.12);
  outline: 0;
  transform: translateY(-2px);
}

.interactive-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  padding-bottom: 22px;
}

.interactive-card.is-expanded {
  border-color: rgba(13, 107, 104, 0.5);
  background: #fff;
  box-shadow: var(--shadow);
}

.interactive-card.is-expanded::after {
  content: "收起";
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.interactive-card.is-expanded p {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  padding-bottom: 24px;
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.editor {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.form-section {
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.form-section h3 {
  margin-bottom: 0;
  font-size: 18px;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

.full {
  grid-column: 1 / -1;
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(13, 107, 104, 0.08), rgba(201, 111, 91, 0.08)),
    var(--paper);
}

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

.login-card {
  width: min(100%, 420px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-card .brand-mark {
  margin-bottom: 24px;
}

.login-card h1 {
  margin-bottom: 10px;
  font-size: 32px;
}

.login-card p:not(.eyebrow):not(.login-message) {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.login-message {
  min-height: 22px;
  margin-bottom: 0;
  color: var(--coral);
  font-size: 14px;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(42px, 6vw, 64px) clamp(18px, 5vw, 72px);
  background: var(--teal-dark);
  color: #fff;
}

.contact p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 980px) {
  .hero,
  .admin-layout,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .relation-grid,
  .library-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .product-grid,
  .logic-grid,
  .detail-strip,
  .detail-module-grid,
  .detail-process-grid,
  .brand-showcase,
  .teacher-showcase,
  .course-shot-grid,
  .course-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .filters {
    justify-content: start;
  }

  .brand-showcase,
  .teacher-showcase {
    grid-template-columns: none;
    grid-auto-columns: minmax(320px, 62vw);
  }

  .editor-head {
    flex-direction: column;
  }

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

@media (max-width: 680px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 40px;
  }

  .summary,
  .product-grid,
  .logic-grid,
  .detail-strip,
  .detail-value-grid,
  .detail-two-column,
  .detail-module-grid,
  .detail-process-grid,
  .brand-showcase,
  .teacher-showcase,
  .course-shot-grid,
  .course-topic-grid,
  .editor,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-editor-panel,
  .admin-sidebar {
    padding: 18px;
  }

  .admin-tools {
    grid-template-columns: 1fr;
  }

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

  .brand-showcase,
  .teacher-showcase {
    grid-template-columns: none;
    grid-auto-columns: minmax(280px, 86vw);
  }

  .brand-card,
  .teacher-card {
    min-height: auto;
  }

  .detail-hero-panel {
    min-height: 280px;
  }

  .hero-visual {
    aspect-ratio: 1 / 1;
  }

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