:root {
  --primary: #ff5a1f;
  --text: #222;
  --sub: #8f8f99;
  --bg: #f4f5f7;
  --card: #fff;
  --line: #f0f0f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #e9edf2;
}

.stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 390px minmax(260px, 360px);
  gap: 28px;
  align-items: start;
  justify-content: center;
  padding: 32px;
}

.phone {
  position: relative;
  width: 390px;
  min-height: 844px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--bg);
  box-shadow: 0 22px 60px rgba(26, 35, 58, .18);
}

.status-bar,
.topbar,
.business-tabs {
  background: #fff;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  padding: 0 24px;
  font-size: 15px;
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
}

.status-icons i {
  display: block;
  width: 4px;
  background: #111;
  border-radius: 2px;
}

.status-icons i:nth-child(1) { height: 5px; }
.status-icons i:nth-child(2) { height: 7px; }
.status-icons i:nth-child(3) { height: 9px; }
.status-icons em {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 4px;
  border-radius: 5px;
  color: #fff;
  background: #111;
  font-style: normal;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 20px;
}

.exam-selector,
.message-button,
.business-tabs button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
}

.exam-selector {
  font-size: 18px;
  font-weight: 700;
}

.exam-selector::after {
  content: "";
  display: inline-block;
  margin-left: 5px;
  border: 4px solid transparent;
  border-top-color: #222;
  transform: translateY(2px);
}

.message-button {
  position: relative;
  width: 28px;
  height: 28px;
  border: 2px solid #222;
  border-radius: 7px;
}

.message-button::after {
  content: "";
  position: absolute;
  right: -7px;
  top: -7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f5222d;
}

.business-tabs {
  display: flex;
  gap: 24px;
  padding: 0 22px 14px;
  box-shadow: inset 0 -1px 0 #f3f3f3;
}

.business-tabs button {
  position: relative;
  font-size: 17px;
  font-weight: 700;
  padding: 0 0 9px;
}

.business-tabs .active {
  color: var(--primary);
}

.business-tabs .active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--primary);
}

.main-banner {
  position: relative;
  padding: 16px 16px 0;
  background: #fff;
}

.main-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 1080 / 360;
  object-fit: cover;
  border-radius: 8px;
}

.banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.banner-dots span {
  width: 14px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,.75);
}

.quick-module {
  background: #fff;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 16px 16px 14px;
  background: inherit;
}

.quick-grid a {
  display: grid;
  justify-items: center;
  gap: 7px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
}

.quick-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: inset 0 -12px 18px rgba(255,255,255,.45);
}

.quick-icon.red { background: linear-gradient(#ff343f, #ffd4d5); }
.quick-icon.green { background: linear-gradient(#3bd383, #c6f4dc); }
.quick-icon.blue { background: linear-gradient(#7ec4ff, #d8ecff); }
.quick-icon.pink { background: linear-gradient(135deg, #ff4d91, #ffb6d0); border-radius: 50%; }

.secondary-area {
  padding: 0 16px 16px;
  background: inherit;
}

.secondary-area[hidden],
.tile-area[hidden],
.main-banner[hidden] {
  display: none;
}

.secondary-area.one .secondary-card {
  width: 100%;
  aspect-ratio: 4 / 1;
}

.secondary-area.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.secondary-area.two .secondary-card {
  aspect-ratio: 336 / 168;
}

.secondary-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-right: 42px;
  scrollbar-width: none;
}

.secondary-scroll::-webkit-scrollbar {
  display: none;
}

.secondary-area.three .secondary-card {
  flex: 0 0 calc(312 / 690 * 100%);
  aspect-ratio: 312 / 156;
}

.secondary-card {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  text-decoration: none;
}

.image-card {
  background: #fff6ef;
}

.image-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.text-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--card-bg);
  position: relative;
}

.text-card .copy {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.text-card strong,
.text-card em,
.text-card b {
  display: block;
  font-style: normal;
  white-space: nowrap;
}

.text-card strong {
  font-size: 14px;
  line-height: 19px;
  color: var(--card-title, #3a2c25);
}

.text-card em {
  margin-top: 2px;
  font-size: 9px;
  line-height: 14px;
  color: var(--card-desc, #8d7668);
}

.text-card b {
  display: inline-block;
  max-width: 72px;
  margin-top: 5px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--card-button, #d97722);
  background: transparent;
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  vertical-align: top;
}

.text-card b::after {
  content: "";
}

.text-card b i {
  font-style: normal;
}

.text-card .card-arrow {
  color: var(--card-button, #d97722);
}

.text-card.one strong {
  font-size: 15px;
  line-height: 20px;
}

.text-card.one em {
  margin-top: 1px;
  font-size: 9px;
  line-height: 13px;
}

.text-card.one b {
  max-width: 86px;
  margin-top: 4px;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.text-card.one .copy {
  max-width: calc(100% - 76px);
}

.card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  position: absolute;
  right: 10px;
  bottom: 6px;
  z-index: 1;
}

.card-icon img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.text-card.two,
.text-card.three {
  padding: 10px 10px;
  gap: 6px;
}

.text-card.two .card-icon {
  width: 46px;
  height: 46px;
  right: 8px;
  bottom: 5px;
}

.text-card.two .card-icon img {
  width: 46px;
  height: 46px;
}

.text-card.two strong {
  font-size: 13px;
  line-height: 18px;
}

.text-card.two em {
  font-size: 9px;
  line-height: 14px;
}

.text-card.two b {
  max-width: 66px;
  margin-top: 5px;
  padding: 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 15px;
}

.text-card.three strong {
  font-size: 12px;
  line-height: 17px;
}

.text-card.three em {
  font-size: 9px;
  line-height: 14px;
}

.text-card.three b {
  max-width: 62px;
  margin-top: 4px;
  padding: 0;
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
}

.text-card.three {
  grid-template-columns: 1fr;
}

.text-card.three .card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  right: 7px;
  bottom: 5px;
}

.text-card.three .card-icon img {
  width: 38px;
  height: 38px;
}

.home-section {
  padding: 18px 16px 8px;
  background: #fff;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.section-title span {
  width: 4px;
  height: 19px;
  border-radius: 3px;
  background: var(--primary);
}

.section-title strong {
  font-size: 21px;
}

.section-title a {
  margin-left: auto;
  color: #aaa;
  font-size: 14px;
  text-decoration: none;
}

.live-card {
  position: relative;
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 14px;
  min-height: 94px;
  padding: 0 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.live-thumb {
  overflow: hidden;
  height: 82px;
  border-radius: 7px;
  color: #07324a;
  padding: 12px 11px;
}

.live-thumb.blue { background: linear-gradient(135deg, #63d3f8, #5e8ee7); }
.live-thumb.purple { background: linear-gradient(135deg, #372982, #6d4fc9); color: #fff; }
.live-thumb small,
.live-thumb strong,
.live-thumb b { display: block; }
.live-thumb small { color: rgba(255,255,255,.95); background: rgba(0,0,0,.32); width: 52px; margin: -8px 0 8px -7px; padding: 1px 4px; border-radius: 3px; }
.live-thumb strong { font-size: 18px; line-height: 22px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.live-thumb b { margin-top: 8px; font-size: 12px; }

.live-info h3 {
  margin: 2px 0 10px;
  font-size: 18px;
}

.live-info p {
  margin: 0 0 6px;
  color: #888;
  font-size: 13px;
}

.live-card button {
  position: absolute;
  right: 0;
  bottom: 26px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: #fff;
  background: var(--primary);
  font-weight: 700;
}

.tile-area {
  padding: 8px 16px 12px;
  background: #fff;
}

.tile-area img {
  display: block;
  width: 100%;
  aspect-ratio: 690 / 120;
  object-fit: cover;
  border-radius: 7px;
}

.course-section {
  padding-bottom: 98px;
}

.class-card,
.course-card {
  padding: 12px 0;
}

.class-card h3,
.course-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.class-card mark {
  margin-right: 8px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #ffad45;
  color: #fff;
}

.class-card span,
.course-card span {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 6px;
  border: 1px solid #ffb18f;
  border-radius: 4px;
  color: var(--primary);
  font-size: 12px;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 70px;
  padding-top: 10px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 -1px 12px rgba(0,0,0,.04);
}

.bottom-nav a {
  text-align: center;
  color: #999;
  font-size: 12px;
}

.bottom-nav a::before {
  content: "";
  display: block;
  width: 21px;
  height: 21px;
  margin: 0 auto 5px;
  border: 2px solid currentColor;
  border-radius: 7px;
}

.bottom-nav .active {
  color: var(--primary);
}

.demo-panel {
  position: sticky;
  top: 32px;
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(31, 41, 55, .1);
}

.demo-panel h1 {
  margin: 0 0 10px;
  font-size: 22px;
}

.demo-panel p {
  color: #667085;
  line-height: 1.7;
}

.demo-panel code {
  padding: 2px 6px;
  border-radius: 5px;
  background: #f2f4f7;
}

.spec {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 14px;
  border-radius: 10px;
  background: #fff7f3;
  color: #7c2d12;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 820px) {
  .stage {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .phone {
    margin: 0 auto;
  }
  .demo-panel {
    position: static;
  }
}
