:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f7f4;
  --ink: #18221e;
  --muted: #65726c;
  --line: rgba(24, 34, 30, 0.14);
  --accent: #2f6c4f;
  --accent-dark: #1f4937;
  --accent-soft: #dfe9df;
  --warn: #a45124;
  --shadow: 0 18px 46px rgba(34, 43, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(140deg, rgba(47, 108, 79, 0.05), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #fbfbfa 45%, #f4f5f2 100%);
  font-family:
    "Avenir Next", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0;
}

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

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

button {
  color: inherit;
}

.phone-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 16px 16px 108px;
  background: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76));
  backdrop-filter: blur(16px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-seal {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fffefa;
  background: var(--ink);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
  white-space: nowrap;
}

.brand-lockup strong {
  font-size: 17px;
  line-height: 1.08;
}

.brand-lockup small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.ghost-link,
.dialog-head button {
  padding: 0;
  color: var(--accent-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.hero-section {
  padding: 18px 0 8px;
}

.hero-kicker {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: none;
}

.hero-kicker::-webkit-scrollbar {
  display: none;
}

.hero-kicker span,
.quick-nav a,
.fit-grid span {
  flex: 0 0 auto;
  padding: 8px 11px;
  color: var(--accent-dark);
  background: rgba(255, 254, 250, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.hero-layout {
  display: grid;
  gap: 18px;
}

.hero-banner {
  width: 100%;
}

.section-label {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 8.4em;
  margin-bottom: 12px;
  font-size: 38px;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 23px;
  line-height: 1.18;
}

h3 {
  margin-bottom: 5px;
  font-size: 16px;
  line-height: 1.35;
}

p {
  color: var(--muted);
}

.hero-text {
  margin-bottom: 0;
  font-size: 16px;
}

.hero-poster,
.content-image,
.image-stack img {
  overflow: hidden;
  margin-bottom: 0;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-poster img,
.content-image img,
.image-stack img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-banner {
  background: #fff;
  box-shadow: 0 20px 50px rgba(16, 25, 54, 0.16);
  padding: 0;
}

.hero-banner img {
  height: auto;
  object-fit: contain;
  object-position: center;
}

.hero-poster figcaption {
  padding: 11px 14px;
  color: var(--surface);
  background: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.primary-actions,
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.solid-button,
.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 15px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  text-align: center;
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1),
    background 180ms ease;
}

.solid-button {
  color: #fffefa;
  background: var(--accent-dark);
  border: 1px solid var(--accent-dark);
  box-shadow: 0 14px 28px rgba(31, 73, 55, 0.22);
}

.soft-button {
  color: var(--accent-dark);
  background: rgba(255, 254, 250, 0.7);
  border: 1px solid rgba(31, 73, 55, 0.2);
}

.solid-button:active,
.soft-button:active,
.bottom-dock button:active {
  transform: scale(0.98) translateY(1px);
}

.quick-nav {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 8px;
  overflow-x: auto;
  padding: 18px 0 12px;
  scrollbar-width: none;
}

.quick-nav::-webkit-scrollbar {
  display: none;
}

.section-block {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 18px;
}

.price-ledger {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.price-ledger article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 17px;
  border-top: 1px solid var(--line);
}

.price-ledger article:first-child {
  border-top: 0;
}

.price-ledger p {
  max-width: 18em;
  margin-bottom: 0;
  font-size: 13px;
}

.step-index,
.module-list span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.price-ledger strong {
  color: var(--warn);
  font-size: 24px;
  line-height: 1;
}

.offset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 17px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 900;
}

.offset-row strong {
  color: var(--accent-dark);
  font-size: 14px;
  white-space: nowrap;
}

.teacher-card,
.dialog-qr {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  align-items: center;
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.teacher-card img,
.dialog-qr img {
  display: block;
  width: 104px;
  height: 104px;
  padding: 7px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.teacher-card p:last-child,
.dialog-qr p {
  margin-bottom: 0;
  font-size: 13px;
}

.content-image {
  margin-bottom: 18px;
}

.module-list {
  display: grid;
}

.module-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.module-list article:first-child {
  border-top: 0;
}

.module-list p,
.policy-stack p {
  margin-bottom: 0;
}

.fit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
}

.image-stack {
  display: grid;
  gap: 12px;
}

.policy-stack {
  display: grid;
  gap: 0;
}

.policy-stack article {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.policy-stack article:first-child {
  border-top: 0;
}

.policy-stack ul {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.policy-stack li + li {
  margin-top: 6px;
}

.service-grid {
  margin-top: 0;
}

.info-table {
  overflow: hidden;
  margin-bottom: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.info-table div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.info-table div:first-child {
  border-top: 0;
}

.info-table dt {
  color: var(--muted);
}

.info-table dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
  text-align: right;
}

.page-footer {
  padding: 24px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
  text-align: center;
}

.bottom-dock {
  position: fixed;
  right: 50%;
  bottom: 14px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(calc(100% - 28px), 402px);
  gap: 6px;
  padding: 8px;
  background: rgba(24, 34, 30, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(24, 34, 30, 0.24);
  backdrop-filter: blur(18px);
  transform: translateX(50%);
}

.bottom-dock button {
  min-height: 40px;
  padding: 0;
  color: #fffefa;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.bottom-dock .dock-primary {
  color: var(--accent-dark);
  background: #fffefa;
}

.sheet-dialog {
  width: min(calc(100% - 28px), 430px);
  max-height: min(86dvh, 720px);
  margin: auto auto 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.sheet-dialog::backdrop {
  background: rgba(24, 34, 30, 0.5);
  backdrop-filter: blur(4px);
}

.dialog-card {
  max-height: 86dvh;
  overflow: auto;
  padding: 22px;
  background: var(--surface);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -22px 70px rgba(24, 34, 30, 0.24);
}

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

.dialog-head h2 {
  font-size: 22px;
}

.form-note {
  margin-bottom: 16px;
  font-size: 14px;
}

.dialog-qr {
  margin-top: 14px;
  box-shadow: none;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #f7f6ef;
  border: 1px solid rgba(24, 34, 30, 0.17);
  border-radius: 14px;
  outline: 0;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(47, 108, 79, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 108, 79, 0.13);
}

.support-note,
.empty-result,
.ticket-result,
.order-detail {
  padding: 14px;
  background: #f7f6ef;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.support-note {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.result-panel {
  margin-top: 16px;
}

.empty-result {
  color: var(--muted);
}

.ticket-result,
.order-detail {
  display: grid;
  gap: 12px;
}

.ticket-code {
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 18px;
  font-weight: 900;
}

.ticket-result dl,
.audit-details {
  display: grid;
  gap: 8px;
  margin: 0;
}

.ticket-result dt,
.audit-details dt {
  color: var(--muted);
  font-size: 12px;
}

.ticket-result dd,
.audit-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.order-detail h2 {
  overflow-wrap: anywhere;
  font-size: 17px;
}

.order-after-sale {
  padding: 13px;
  background: var(--accent-soft);
  border-radius: 14px;
}

.order-after-sale ul {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
}

.order-teacher-card {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 12px;
  align-items: center;
}

.order-teacher-card img {
  display: block;
  width: 94px;
  height: 94px;
  padding: 6px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.order-teacher-card p {
  margin-bottom: 0;
  font-size: 13px;
}

.full {
  width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-section,
  .section-block {
    animation: rise-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .section-block {
    animation-delay: 80ms;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
