:root {
  --red: #e53935;
  --red-dark: #c62828;
  --blue: #4169e1;
  --ink: #171717;
  --muted: #667085;
  --line: #eceff3;
  --bg: #f6f7f9;
  --soft: #fff7f6;
  --green: #059669;
  --amber: #d97706;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  letter-spacing: 0;
}

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

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

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.front-wrap {
  position: relative;
  min-height: 100vh;
  background: #fffdf7;
  overflow: hidden;
}

.front-frame {
  display: block;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  border: 0;
  background: #fff;
}

.logo-fall-layer {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.logo-fall-layer canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.topbar {
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.logo img {
  height: 30px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  font-size: 14px;
  color: #333;
}

.nav a,
.nav button {
  border: 0;
  background: transparent;
  padding: 8px 0;
  color: inherit;
}

.nav a.active {
  color: var(--red);
  font-weight: 800;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(229, 57, 53, 0.22);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-soft {
  background: #eef3ff;
  color: #3651c9;
}

.btn-ghost {
  background: #fff;
  color: #333;
  border-color: var(--line);
}

.btn-dark {
  background: #171717;
  color: #fff;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page {
  min-height: calc(100vh - 72px);
}

.section {
  padding: 72px 20px;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--red);
  background: #fff2f1;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-title {
  margin: 14px 0 10px;
  font-size: 34px;
  line-height: 1.16;
  font-weight: 950;
}

.section-title span {
  color: var(--red);
}

.section-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.hero {
  min-height: calc(100vh - 72px);
  padding: 72px 20px 52px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.2)),
    var(--hero-image, url("/optimized/hero-showcase-new.jpg")) right center / cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

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

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 0.95;
  font-weight: 950;
}

.hero h2 {
  margin: 12px 0 0;
  font-size: 26px;
}

.hero .en {
  margin: 8px 0 0;
  color: #9aa0aa;
  font-weight: 700;
  letter-spacing: 0;
}

.hero p {
  margin: 22px 0 0;
  color: #555;
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.course-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.course-cover {
  height: 210px;
  position: relative;
  overflow: hidden;
  background: #eee;
}

.course-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.badge-red {
  color: var(--red);
  background: #fff2f1;
}

.badge-green {
  color: var(--green);
  background: #ecfdf5;
}

.badge-blue {
  color: #3651c9;
  background: #eef3ff;
}

.badge-amber {
  color: var(--amber);
  background: #fff7ed;
}

.course-body {
  padding: 20px;
}

.course-body h3 {
  margin: 10px 0 8px;
  font-size: 20px;
}

.course-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  color: #98a2b3;
  font-size: 12px;
}

.core-course {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background-position: right center;
  background-size: cover;
  box-shadow: 0 16px 38px rgba(16, 24, 40, 0.06);
}

.core-course::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.86) 42%, rgba(255, 255, 255, 0.22) 72%, transparent);
}

.core-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 44px;
}

.core-content h3 {
  margin: 18px 0 4px;
  font-size: 34px;
}

.stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.stat-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  color: #667085;
}

.stat-pill strong {
  color: #222;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  color: #777;
  font-size: 14px;
}

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

.adv-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.adv-item h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.works-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.works-strip img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.footer {
  background: #111;
  color: rgba(255, 255, 255, 0.72);
  padding: 40px 20px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.auth-wrap {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 36px 20px;
  background: linear-gradient(135deg, #fff, #fff6f5 45%, #eef3ff);
}

.auth-card {
  width: min(460px, 100%);
  padding: 34px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-card-wide {
  width: min(760px, 100%);
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 8px;
  background: #f2f4f7;
  margin: 22px 0;
}

.tabs button {
  flex: 1;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-weight: 800;
  color: #667085;
}

.tabs button.active {
  background: #fff;
  color: var(--red);
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.auth-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: -6px 0 18px;
}

.auth-methods button {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
  color: #667085;
}

.auth-methods button.active {
  border-color: var(--red);
  color: var(--red);
  background: #fff7f6;
}

.auth-row {
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
}

.auth-row label {
  font-size: 17px;
  color: #111;
}

.username-row {
  grid-template-columns: 88px minmax(120px, 190px) auto minmax(0, 1fr);
}

.code-row {
  grid-template-columns: 88px minmax(0, 1fr) 150px;
}

.password-row {
  grid-template-columns: 88px minmax(0, 1fr) 160px;
}

.checkline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px !important;
  font-weight: 800;
  white-space: nowrap;
}

.checkline input {
  width: 18px;
  min-height: 18px;
  accent-color: #111;
}

.auth-submit {
  width: min(220px, 100%);
  height: 48px;
  margin: 20px auto 0;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  min-height: 40px;
  padding: 9px 11px;
  outline: none;
  background: #fff;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.auth-row label {
  font-size: 17px;
  color: #111;
}

.auth-row .checkline {
  font-size: 13px;
}

.auth-row .checkline input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.11);
}
