
:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --line: #d9e0ea;
  --text: #172033;
  --muted: #6c7890;
  --primary: #123c69;
  --primary-2: #0f5f9f;
  --danger: #b42318;
  --ok: #067647;
  --warn: #b54708;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
}
a { color: var(--primary-2); text-decoration: none; }
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: #102b4c;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand { font-weight: 700; letter-spacing: 0; }
.container { width: min(1080px, calc(100% - 32px)); margin: 32px auto; }
.customer-card {
  width: min(520px, calc(100% - 32px));
  margin: 56px auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(16, 43, 76, .08);
}
.card-head { padding: 28px 30px 12px; }
.card-head h1 { margin: 0 0 8px; font-size: 24px; color: var(--primary); }
.card-head p { margin: 0; color: var(--muted); line-height: 1.6; }
.card-body { padding: 18px 30px 30px; }
.form-row { margin-bottom: 18px; }
label { display: block; margin-bottom: 7px; font-weight: 650; }
input, select, textarea {
  width: 100%;
  border: 1px solid #c7d1de;
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 15px;
  background: #fff;
  color: var(--text);
}
textarea { min-height: 86px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(15,95,159,.18);
  border-color: var(--primary-2);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  padding: 9px 16px;
  font-weight: 650;
  cursor: pointer;
}
.btn.secondary { background: #fff; color: var(--primary); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.small { min-height: 30px; padding: 5px 10px; font-size: 13px; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.6; }
.alert {
  border-radius: 6px;
  padding: 11px 12px;
  margin-bottom: 16px;
  border: 1px solid #f0c2bd;
  color: var(--danger);
  background: #fff2f0;
}
.success {
  border-color: #a9dbc4;
  color: var(--ok);
  background: #effaf4;
}
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 58px); }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 18px; }
.sidebar a, .sidebar form button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 6px;
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 15px;
  cursor: pointer;
}
.sidebar a.active { background: #eef5fb; color: var(--primary); font-weight: 700; }
.main { padding: 24px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.stat .num { display: block; font-size: 26px; color: var(--primary); font-weight: 800; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-bottom: 18px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
th { color: #3d4a5f; background: #f8fafc; font-size: 13px; }
.status { display: inline-block; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 700; }
.waiting { background: #fff7ed; color: var(--warn); }
.called { background: #eff6ff; color: #175cd3; }
.completed { background: #effaf4; color: var(--ok); }
.cancelled { background: #f2f4f7; color: #475467; }
.toolbar { display: grid; grid-template-columns: 160px 180px 180px 1fr auto; gap: 10px; align-items: end; }
.codes-toolbar { grid-template-columns: 180px 150px 150px 150px 180px auto; }
.note-form { display: grid; grid-template-columns: minmax(160px, 1fr) auto; gap: 8px; }
.customer-shell {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(6, 18, 36, .86), rgba(17, 34, 55, .72)),
    url('/assets/ppt-bg-dark.jpg') center / cover fixed no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
}
.customer-shell.light {
  background:
    radial-gradient(circle at 18% 12%, rgba(199, 168, 103, .18), transparent 30%),
    linear-gradient(135deg, #f7f3ea 0%, #eef4f8 48%, #ffffff 100%);
  color: var(--text);
}
.ppt-frame {
  width: min(1120px, 100%);
  min-height: min(680px, calc(100vh - 64px));
  border: 1px solid rgba(221, 197, 145, .72);
  background: linear-gradient(180deg, rgba(8, 23, 45, .32), rgba(8, 23, 45, .58));
  box-shadow: 0 30px 90px rgba(0,0,0,.32), inset 0 0 0 1px rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  position: relative;
}
.ppt-frame:before, .ppt-frame:after {
  content: "";
  display: none;
  position: absolute;
  left: 50%;
  width: min(360px, 50vw);
  height: 120px;
  transform: translateX(-50%);
  background: url('/assets/ppt-ornament.png') center / contain no-repeat;
  opacity: .9;
  pointer-events: none;
}
.ppt-frame:before { top: 24px; }
.ppt-frame:after { bottom: 24px; transform: translateX(-50%) rotate(180deg); }
.ppt-form {
  width: min(760px, 100%);
  position: relative;
  z-index: 1;
}
.customer-kicker {
  margin: 0 0 14px;
  color: #d7bd7a;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
}
.customer-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  text-align: center;
  font-weight: 850;
}
.customer-title-image {
  display: block;
  width: min(620px, 92vw);
  height: auto;
  margin: 0 auto 18px;
}
.customer-subtitle {
  margin: 0 auto 34px;
  max-width: none;
  color: rgba(255,255,255,.86);
  line-height: 1.75;
  text-align: center;
  white-space: nowrap;
}
.ppt-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}
.ppt-row label { color: #fff; font-size: 18px; font-weight: 800; text-align: right; }
.ppt-row input {
  min-height: 48px;
  border: 1px solid rgba(221,197,145,.72);
  border-radius: 4px;
  background: rgba(255,255,255,.94);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.ppt-note { margin-left: 148px; color: rgba(255,255,255,.78); font-weight: 650; }
.customer-panel {
  width: min(880px, 100%);
  background: rgba(255,255,255,.96);
  color: var(--text);
  border-radius: 8px;
  border: 1px solid rgba(199,168,103,.48);
  box-shadow: 0 28px 70px rgba(16, 43, 76, .16);
  padding: clamp(24px, 4vw, 38px);
}
.customer-panel h1 { margin: 0 0 12px; color: #0d2c4b; font-size: clamp(28px, 4vw, 40px); }
.panel-kicker {
  margin: 0 0 8px;
  color: #9a7631;
  font-size: 13px;
  font-weight: 850;
}
.service-grid { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 22px; }
.remaining-badge {
  display: inline-block;
  margin: 8px 0 18px;
  padding: 7px 13px;
  background: #f7efe0;
  color: #7d5c20;
  border: 1px solid #e1c886;
  border-radius: 999px;
  font-weight: 850;
}
.product-desc {
  min-height: 260px;
  max-height: 52vh;
  overflow: auto;
  white-space: pre-wrap;
  border-left: 5px solid #c7a867;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(247,243,234,.84));
  padding: 18px;
  line-height: 1.75;
}
.service-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}
.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 34px;
  max-width: 1040px;
  margin: 20px auto 6px;
}
.service-card {
  min-height: 86px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 94px 12px 22px;
  border: 1px solid rgba(16,35,61,.10);
  background: linear-gradient(90deg, rgba(255,255,255,.88), rgba(255,255,255,.70));
  box-shadow: 0 14px 24px rgba(16,35,61,.13);
}
.service-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg) center / cover no-repeat;
  opacity: .34;
  filter: grayscale(10%);
}
.service-card:after {
  content: "兑换权益 ❯❯";
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: #111;
  font-weight: 900;
  font-size: 13px;
}
.service-card strong {
  position: relative;
  z-index: 1;
  color: #07090d;
  font-size: 18px;
  line-height: 1.28;
  text-align: center;
  font-weight: 900;
}
.benefit-shell {
  width: min(1120px, 100%);
  border: 1px solid rgba(199,168,103,.48);
  border-radius: 8px;
  background: #fffefa;
  box-shadow: 0 28px 70px rgba(16,43,76,.16);
}
.benefit-hero {
  min-height: 96px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 22px 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #fbfaf6, #eef5f7);
  border-bottom: 1px solid rgba(199,168,103,.22);
}
.benefit-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero) center / cover no-repeat;
  opacity: .16;
  filter: grayscale(8%);
}
.benefit-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,254,250,.96), rgba(255,254,250,.82), rgba(255,254,250,.55));
}
.benefit-hero > div { position: relative; z-index: 1; }
.benefit-hero h1 {
  margin: 0;
  color: #3f2f19;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 850;
}
.benefit-body { padding: 22px 34px 28px; }
.benefit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: start;
}
.benefit-main { min-width: 0; }
.benefit-slide {
  width: 100%;
  display: block;
  margin-bottom: 16px;
  border: 1px solid rgba(16,35,61,.10);
  background: #fff;
  box-shadow: 0 10px 26px rgba(16,35,61,.08);
}
.ppt-like {
  margin-bottom: 16px;
  border: 1px solid rgba(204,177,122,.25);
  border-left: 5px solid #bd8f3e;
  background: linear-gradient(180deg, rgba(255,253,247,.96), rgba(250,247,239,.92));
  padding: 34px 44px;
  box-shadow: 0 12px 26px rgba(16,35,61,.05);
}
.ppt-like-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: #10243f;
  font-size: 20px;
  font-weight: 760;
}
.ppt-like-title .icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #10243f;
}
.ppt-like ul { margin: 0; padding-left: 20px; }
.ppt-like li {
  color: #2e4058;
  font-size: 14px;
  line-height: 1.78;
  margin-bottom: 13px;
  font-weight: 500;
}
.teacher-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  margin-top: 36px;
  padding-left: 26px;
}
.teacher-photo-block { text-align: center; }
.teacher-photo {
  width: 170px;
  height: 170px;
  margin: 0 auto;
  border: 2px solid #17284a;
  border-radius: 50%;
  background: #fff url('/assets/teacher-child.png') center / cover no-repeat;
}
.teacher-name {
  margin-top: 10px;
  color: #10243f;
  font-size: 14px;
  font-weight: 650;
}
.teacher-row li { margin-bottom: 4px; line-height: 1.65; }
.ppt-like.process li { margin-bottom: 16px; line-height: 1.86; }
.ppt-like .note {
  margin: 4px 0 0 20px;
  color: #2e4058;
  font-size: 12px;
  line-height: 1.75;
  font-weight: 500;
}
.benefit-text {
  margin-bottom: 16px;
  border: 1px solid rgba(204,177,122,.25);
  border-left: 5px solid #bd8f3e;
  background: linear-gradient(180deg, rgba(255,253,247,.96), rgba(250,247,239,.92));
  padding: 30px 40px;
  box-shadow: 0 12px 26px rgba(16,35,61,.05);
}
.benefit-text-title {
  margin: 0 0 18px;
  color: #10243f;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 820;
}
.benefit-text-section {
  margin: 18px 0 8px;
  color: #10243f;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 760;
}
.benefit-text p,
.benefit-text li {
  color: #2e4058;
  font-size: 14px;
  line-height: 1.85;
  font-weight: 560;
}
.benefit-text p { margin: 0 0 10px; }
.benefit-text ol,
.benefit-text ul { margin: 8px 0 14px; padding-left: 22px; }
.benefit-gallery {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 16px;
}
.benefit-gallery-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(189,143,62,.28);
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 24px rgba(16,35,61,.08);
}
.benefit-gallery-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #f5f0e5;
}
.benefit-gallery-caption {
  padding: 12px 14px 13px;
  color: #10243f;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 760;
  text-align: center;
}
.flow-scroll {
  overflow-x: hidden;
  padding: 8px 2px 10px;
}
.flow-steps {
  display: grid;
  grid-template-columns: minmax(82px, 1fr) 20px minmax(82px, 1fr) 20px minmax(82px, 1fr) 20px minmax(82px, 1fr) 20px minmax(82px, 1fr);
  align-items: center;
  gap: 0;
}
.flow-node {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2c99a;
  background: rgba(255,255,255,.64);
  color: #2e4058;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 760;
  text-align: center;
  padding: 6px 8px;
}
.flow-node.first {
  border-radius: 999px;
  background: #fff7e8;
  color: #9a6718;
}
.flow-arrow {
  color: #bd8f3e;
  font-size: 18px;
  text-align: center;
  font-weight: 300;
}
.benefit-actions {
  position: sticky;
  top: 22px;
  border: 1px solid rgba(199,168,103,.34);
  background: linear-gradient(180deg, #fffefd, #fbf7ee);
  padding: 22px;
  text-align: left;
  box-shadow: 0 18px 42px rgba(16,35,61,.10);
}
.benefit-actions p { margin: 0 0 18px; color: #65738a; line-height: 1.75; font-size: 14px; font-weight: 620; }
.benefit-actions .actions { display: grid; gap: 12px; }
.benefit-actions .btn { width: 100%; min-height: 46px; font-size: 16px; }
.benefit-actions .btn:first-child {
  border-color: #bd8f3e;
  background: linear-gradient(135deg, #be111c, #8e0710);
}
.benefit-actions .btn.secondary {
  background: #fffefa;
  color: #9b1419;
  border-color: #bd8f3e;
}
.customer-panel .btn,
.ppt-form .btn {
  min-height: 44px;
  border-color: #c7a867;
  background: linear-gradient(135deg, #123c69, #071d34);
  box-shadow: 0 12px 24px rgba(18,60,105,.22);
}
.ppt-form .btn.secondary {
  background: rgba(255,255,255,.96);
  color: #123c69;
}
.teacher-img {
  max-width: 100%;
  border-radius: 6px;
  margin-top: 12px;
  border: 1px solid #d9e0ea;
}
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats, .toolbar { grid-template-columns: 1fr; }
  .topbar { padding: 0 16px; }
  .main { padding: 16px; }
  .ppt-frame { min-height: calc(100vh - 36px); padding: 22px; }
  .ppt-frame:before, .ppt-frame:after { width: 220px; height: 72px; }
  .ppt-row { grid-template-columns: 1fr; gap: 8px; }
  .ppt-row label { text-align: left; font-size: 18px; }
  .ppt-note { margin-left: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-head { display: block; }
  .service-list { grid-template-columns: 1fr; }
  .benefit-shell { max-height: none; }
  .benefit-layout { grid-template-columns: 1fr; }
  .benefit-actions { position: static; }
  .benefit-body { padding: 22px 16px; }
  .ppt-like { padding: 28px 18px; }
  .benefit-text { padding: 26px 18px; }
  .benefit-gallery { grid-template-columns: 1fr !important; }
  .flow-scroll { overflow-x: auto; }
  .flow-steps { min-width: 680px; }
  .teacher-row { grid-template-columns: 1fr; padding-left: 0; gap: 18px; }
  .customer-kicker { font-size: 18px; }
  .customer-subtitle { margin-bottom: 24px; white-space: normal; }
}
