:root {
  --bg: #050505;
  --panel: #111;
  --panel-2: #181818;
  --line: #2a2a2a;
  --muted: #8a8a8a;
  --text: #f6f6f6;
  --gold: #79c8ff;
  --gold-2: #d8f2ff;
  --red: #f14141;
  --blue: #4aaeff;
  --green: #15b866;
  --cyan: #7ce9ff;
  --radius: 8px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(100%, 600px);
  min-height: 100vh;
  margin: 0 auto;
  background: #080808;
  border-left: 1px solid #161616;
  border-right: 1px solid #161616;
  position: relative;
}

.home-shell {
  width: min(100%, 600px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 56px 20px 150px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 4%, rgba(93, 177, 255, 0.18), transparent 34%),
    radial-gradient(circle at 16% 92%, rgba(124, 233, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #050b12 0%, #020407 44%, #000 100%);
}

.brand {
  margin-top: clamp(40px, 9vh, 86px);
  margin-bottom: 44px;
}

.brand h1 {
  margin: 0;
  color: #f2f8ff;
  font-size: clamp(42px, 11vw, 66px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 2px;
  text-shadow: 0 0 28px rgba(121, 200, 255, 0.12);
}

.brand p {
  margin: 16px 0 0;
  color: #7a8fa4;
  font-size: clamp(14px, 3.4vw, 18px);
  font-weight: 800;
  letter-spacing: 0.16em;
}

.home-actions {
  display: grid;
  gap: 12px;
}

.home-btn {
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px 1fr 20px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  text-align: left;
  font-size: clamp(17px, 4.1vw, 22px);
  font-weight: 950;
  border: 1px solid rgba(142, 194, 236, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, filter 0.18s ease,
    background 0.18s ease;
}

.home-btn:active {
  transform: scale(0.985);
}

.home-btn .mark,
.home-btn .arrow {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: 21px;
  font-weight: 950;
}

.home-btn .mark {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-btn .arrow {
  color: currentColor;
  opacity: 0.55;
  font-size: 20px;
}

.home-btn small {
  display: block;
  margin-top: 2px;
  color: rgba(213, 231, 247, 0.58);
  font-size: 12px;
  font-weight: 750;
}

.home-btn.gold {
  background: linear-gradient(135deg, rgba(54, 137, 205, 0.52), rgba(12, 26, 42, 0.92));
  color: #f4fbff;
  border-color: rgba(121, 200, 255, 0.46);
  box-shadow: 0 16px 34px rgba(53, 148, 224, 0.14);
}

.home-btn.gold small {
  color: rgba(225, 242, 255, 0.68);
}

.home-btn.light {
  background: rgba(229, 239, 249, 0.95);
  color: #07111c;
  border-color: rgba(255, 255, 255, 0.48);
}

.home-btn.light small {
  color: rgba(7, 17, 28, 0.56);
}

.home-btn.light .mark {
  background: rgba(4, 12, 21, 0.08);
  border-color: rgba(4, 12, 21, 0.08);
}

.home-btn.dark {
  background: rgba(16, 23, 31, 0.92);
  color: #e6eef7;
  border-color: rgba(130, 168, 202, 0.2);
}

.home-btn.dark .mark {
  background: rgba(255, 255, 255, 0.05);
}

.home-btn.outline {
  background: rgba(2, 6, 10, 0.68);
  color: var(--gold-2);
  border: 1px solid rgba(121, 200, 255, 0.48);
}

.home-btn.outline .mark {
  border-color: rgba(121, 200, 255, 0.28);
}

.home-footer {
  margin-top: auto;
  color: #405061;
  font-size: 13px;
  padding-top: 64px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 64px;
  display: grid;
  grid-template-columns: 112px 1fr 112px;
  align-items: center;
  padding: 12px 16px;
  background: rgba(8, 8, 8, 0.96);
  border-bottom: 1px solid #222;
  backdrop-filter: blur(12px);
}

.back-link,
.text-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 900;
}

.topbar-title {
  text-align: center;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.hero-band {
  padding: 32px 20px 28px;
  background: linear-gradient(135deg, #bfe9ff, #78c8ff 56%, #4c95d8);
  color: #03101b;
  text-align: center;
}

.hero-band h1 {
  margin: 0;
  font-size: clamp(32px, 8vw, 50px);
  line-height: 1.05;
  font-weight: 950;
}

.hero-band p {
  margin: 12px 0 0;
  font-weight: 900;
  opacity: 0.78;
}

.content {
  padding: 18px 14px 140px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px -14px 12px;
  padding: 14px 18px;
  color: #fff;
  background: linear-gradient(90deg, #151515, #080808);
  border-left: 5px solid var(--red);
  font-size: 20px;
  font-weight: 950;
}

.section-title.gold-line {
  border-left-color: var(--gold);
}

.section-title.green-line {
  border-left-color: var(--green);
}

.toolbar {
  position: sticky;
  top: 64px;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px 0;
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(10px);
}

.search,
.select {
  width: 100%;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid #2f2f2f;
  background: #111;
  color: #fff;
  padding: 0 12px;
  outline: none;
}

.select {
  color: #ddd;
}

.catalog-intro,
.empty-result {
  margin: 4px 0 12px;
  color: #777;
  font-size: 13px;
}

.empty-result {
  padding: 20px 12px;
  text-align: center;
  background: #111;
  border: 1px solid #252525;
  border-radius: var(--radius);
}

.tier-block {
  margin-bottom: 18px;
}

.tier-heading {
  position: sticky;
  top: 132px;
  z-index: 30;
  margin: 20px -14px 10px;
  padding: 12px 16px;
  background: linear-gradient(90deg, #161616, #080808);
  border-left: 5px solid var(--gold);
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.teacher-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 112px;
  min-height: 132px;
  margin: 10px 0;
  background: var(--panel);
  border: 1px solid #262626;
  border-radius: var(--radius);
  overflow: hidden;
}

.teacher-main {
  padding: 16px 14px;
  min-width: 0;
}

.teacher-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-no,
.tag-mini {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 4px;
  padding: 2px 7px;
  color: #050505;
  background: var(--gold);
  font-size: 12px;
  font-weight: 950;
}

.tag-no.cyan {
  background: var(--cyan);
}

.tag-mini {
  color: #d9d9d9;
  background: #161616;
  border: 1px solid #484848;
}

.teacher-name {
  color: #fff;
  font-size: clamp(21px, 5.5vw, 30px);
  line-height: 1.15;
  font-weight: 950;
}

.teacher-desc {
  margin: 10px 0 0;
  color: #858585;
  font-size: 13px;
}

.teacher-desc span {
  display: block;
  padding-left: 12px;
  position: relative;
}

.teacher-desc span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #555;
}

.teacher-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 12px 8px;
  background: #171717;
  border-left: 1px dashed #343434;
}

.price-origin {
  color: #595959;
  font-size: 12px;
  line-height: 1;
  text-decoration: line-through;
  font-weight: 800;
}

.price-current {
  color: var(--red);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 34px;
  line-height: 0.95;
  letter-spacing: 0;
}

.price-current span {
  margin-left: 2px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 900;
}

.stamp-mark {
  position: absolute;
  right: 116px;
  bottom: 10px;
  z-index: 3;
  padding: 5px 3px;
  border: 2px solid #d60016;
  border-radius: 5px;
  color: #d60016;
  background: rgba(0, 0, 0, 0.18);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  writing-mode: vertical-rl;
  transform: rotate(-5deg);
  pointer-events: none;
}

.price-pair {
  display: grid;
  gap: 2px;
  text-align: center;
  line-height: 1.1;
}

.price-pair b {
  color: var(--red);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 28px;
  letter-spacing: 0;
}

.price-pair span {
  color: #888;
  font-size: 12px;
  font-weight: 800;
}

.mini-btn,
.solid-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font-weight: 950;
}

.mini-btn {
  min-height: 34px;
  padding: 0 16px;
  border-radius: 5px;
  color: #050505;
  background: var(--gold);
  font-size: 14px;
}

.solid-btn {
  width: 100%;
  color: #03101b;
  background: linear-gradient(135deg, #bfe9ff, #72c2ff);
  box-shadow: 0 10px 22px rgba(91, 178, 255, 0.18);
}

.ghost-btn {
  width: 100%;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
}

.plans {
  display: grid;
  gap: 0;
  border-top: 1px solid #2a2a2a;
}

.plan-row {
  display: grid;
  grid-template-columns: 52px 1fr 118px;
  min-height: 142px;
  border-bottom: 1px solid #2a2a2a;
}

.plan-label {
  display: grid;
  place-items: center;
  writing-mode: vertical-rl;
  letter-spacing: 0.18em;
  color: #fff;
  font-weight: 950;
  font-size: 20px;
}

.plan-label.gold-bg {
  background: linear-gradient(180deg, #3879a8, #17344f);
}

.plan-label.red-bg {
  background: linear-gradient(180deg, #ef3f3f, #bb2424);
}

.plan-label.blue-bg {
  background: linear-gradient(180deg, #1aa8ff, #0b5799);
}

.plan-label.green-bg {
  background: linear-gradient(180deg, #25bd67, #23823d);
}

.plan-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 14px;
  border-right: 1px dashed #333;
}

.plan-main h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.25;
}

.plan-main p {
  margin: 0;
  color: #aaa;
  font-size: 13px;
}

.plan-highlight {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border: 1px solid currentColor;
  border-radius: 5px;
  padding: 3px 8px;
  color: var(--gold);
  font-weight: 900;
  font-size: 13px;
}

.plan-side {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px 9px;
  background: #151515;
  text-align: center;
}

.plan-price {
  color: var(--red);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.plan-price small {
  font-family: inherit;
  font-size: 16px;
}

.plan-note {
  color: #777;
  font-size: 12px;
  font-weight: 800;
}

.order-panel,
.note-panel,
.faq-card,
.record-panel {
  margin: 22px 0;
  padding: 18px;
  background: var(--panel);
  border: 1px solid #2b2b2b;
  border-radius: var(--radius);
}

.order-panel {
  border-color: rgba(217, 180, 58, 0.54);
  background: linear-gradient(145deg, #151515, #080808);
}

.order-panel h2,
.note-panel h2,
.record-panel h2 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 22px;
}

.order-panel ol,
.note-panel ul,
.record-panel ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #bbb;
}

.order-panel li,
.note-panel li,
.record-panel li {
  margin: 6px 0;
}

.remark-box {
  margin: 14px 0;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: #080808;
  text-align: center;
  font-weight: 900;
}

.faq-intro {
  margin: 18px 0 30px;
  color: #aaa;
  text-align: center;
}

.faq-card {
  margin: 14px 0;
}

.faq-card h2 {
  margin: 0 0 10px;
  color: #9bd9ff;
  font-size: 18px;
  line-height: 1.35;
}

.faq-card p {
  margin: 0;
  color: #bbb;
}

.faq-card strong {
  color: #fff;
}

.split-grid {
  display: grid;
  gap: 12px;
}

.signal-box {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid #333;
  background: #101010;
}

.signal-box.stop {
  border-color: rgba(241, 65, 65, 0.45);
  background: rgba(80, 10, 10, 0.28);
}

.signal-box.good {
  border-color: rgba(21, 184, 102, 0.45);
  background: rgba(5, 72, 34, 0.3);
}

.signal-box h3 {
  margin: 0 0 8px;
}

.screen-mock {
  width: 100%;
  aspect-ratio: 9 / 15;
  max-height: 640px;
  margin: 0 auto 18px;
  border-radius: 18px;
  border: 1px solid #343434;
  background: #0d0d0d;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: #151515;
  border-bottom: 1px solid #2a2a2a;
  color: var(--gold);
  font-weight: 950;
}

.mock-list {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.mock-message {
  padding: 12px;
  border-radius: 7px;
  background: #181818;
  border: 1px solid #2c2c2c;
}

.mock-message b {
  display: block;
  color: #fff;
  margin-bottom: 5px;
}

.mock-message p {
  margin: 0;
  color: #999;
  font-size: 13px;
}

.mock-message.hot {
  border-color: rgba(217, 180, 58, 0.6);
}

.floating-contact {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  width: max-content;
  max-width: calc(100% - 32px);
  background: rgba(20, 20, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.contact-btn {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 0;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
}

.contact-btn.group {
  color: var(--gold-2);
  background: #050505;
  border: 2px solid var(--gold);
}

.contact-btn.qq {
  background: linear-gradient(135deg, #19c0ff, #0d78ec);
}

.contact-btn.wx {
  background: linear-gradient(135deg, #13c96b, #099548);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.82);
}

.modal.open {
  display: flex;
}

.modal-box {
  width: min(100%, 340px);
  border-radius: 12px;
  border: 1px solid var(--gold);
  background: #151515;
  padding: 20px;
  text-align: center;
}

.modal-box h2 {
  margin: 0 0 8px;
  color: var(--gold);
}

.modal-box p {
  margin: 6px 0;
  color: #bbb;
}

.copy-value {
  margin: 14px 0;
  padding: 13px;
  border-radius: 7px;
  background: #050505;
  border: 1px solid #333;
  color: #fff;
  font-weight: 950;
  word-break: break-all;
}

.footer-quote {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 100;
  transform: translateX(-50%);
  width: min(100%, 600px);
  padding: 12px 16px;
  background: var(--gold);
  color: #050505;
  text-align: center;
  font-size: 12px;
  font-weight: 950;
}

.list-footer-bar {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  z-index: 100;
  transform: translateX(-50%);
  width: min(100%, 600px);
  padding: 14px 18px 18px;
  background: rgba(0, 0, 0, 0.96);
  border-top: 1px solid #242424;
  backdrop-filter: blur(10px);
}

.list-package-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  border-radius: 999px;
  color: #03101b;
  background: linear-gradient(135deg, #bfe9ff, #72c2ff);
  text-decoration: none;
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(91, 178, 255, 0.22);
}

.with-footer-bar .floating-contact {
  bottom: 92px;
}

@media (min-width: 760px) {
  .floating-contact {
    left: auto;
    right: 24px;
    transform: none;
    bottom: 84px;
    flex-direction: column;
    padding: 12px;
  }

  .with-footer-bar .floating-contact {
    bottom: 84px;
  }

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

@media (max-width: 420px) {
  .home-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home-btn {
    grid-template-columns: 40px 1fr 18px;
    min-height: 68px;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .topbar {
    grid-template-columns: 88px 1fr 88px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .topbar-title {
    font-size: 18px;
  }

  .toolbar {
    grid-template-columns: 1fr;
    top: 62px;
  }

  .tier-heading {
    top: 158px;
  }

  .teacher-card {
    grid-template-columns: 1fr 96px;
  }

  .teacher-main {
    padding: 14px 10px;
  }

  .teacher-side {
    padding: 10px 6px;
  }

  .price-current {
    font-size: 28px;
  }

  .stamp-mark {
    right: 100px;
    bottom: 8px;
    font-size: 11px;
  }

  .plan-row {
    grid-template-columns: 42px 1fr 96px;
  }

  .plan-label {
    font-size: 17px;
  }

  .plan-main {
    padding: 12px 10px;
  }

  .plan-main h2 {
    font-size: 18px;
  }

  .plan-price {
    font-size: 28px;
  }

  .contact-btn {
    width: 50px;
    height: 50px;
  }
}
