:root {
  color: #15203a;
  background: #eef4fb;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 218, 94, 0.28), transparent 26%),
    linear-gradient(135deg, #e9f6ff 0%, #f7fbff 42%, #fff5df 100%);
}

button,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}

.shell {
  min-height: 100vh;
}

.login-view {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(300px, 420px);
  gap: 40px;
  align-items: center;
  width: min(1120px, calc(100vw - 40px));
  min-height: 100vh;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand img {
  width: 126px;
  height: 126px;
}

.brand p,
.section-title span {
  margin: 0 0 8px;
  color: #1c7c8c;
  font-weight: 700;
  letter-spacing: 0;
}

.brand h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.06;
}

.login-panel {
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid rgba(39, 84, 132, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 60px rgba(49, 79, 112, 0.18);
  backdrop-filter: blur(16px);
}

label {
  display: grid;
  gap: 8px;
  color: #52617a;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid #c7d7e6;
  border-radius: 8px;
  padding: 13px 14px;
  color: #15203a;
  background: #fff;
}

button,
.primary-link,
.secondary-link,
.package-actions a {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
}

.login-panel button,
.primary-link {
  padding: 13px 18px;
  color: #fff;
  background: #e34d38;
  box-shadow: 0 10px 24px rgba(227, 77, 56, 0.22);
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: #b33326;
}

.home-view {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 18px 0 54px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.identity img {
  width: 54px;
  height: 54px;
}

.identity strong,
.identity span {
  display: block;
}

.identity span {
  color: #62728b;
  font-size: 13px;
}

.class-select {
  display: block;
  min-width: 170px;
  max-width: min(360px, calc(100vw - 120px));
  margin-top: 3px;
  border: 0;
  border-radius: 0;
  padding: 0 22px 0 0;
  color: #62728b;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.class-select:focus {
  outline: 2px solid rgba(36, 91, 131, 0.18);
  outline-offset: 3px;
}

.ghost-button,
.secondary-link {
  padding: 10px 14px;
  color: #1f5870;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(71, 121, 154, 0.18);
}

.content-panel {
  border: 1px solid rgba(39, 84, 132, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.content-panel {
  padding: 22px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.section-title h2 {
  margin: 0;
  font-size: 28px;
}

.package-list {
  display: grid;
  gap: 26px;
  margin-top: 18px;
}

.level-group {
  display: grid;
  gap: 12px;
}

.level-group > h3 {
  margin: 0;
  color: #0c1c39;
  font-size: 40px;
  line-height: 1;
}

.level-course-list {
  display: grid;
  gap: 10px;
}

.package-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(39, 84, 132, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.package-card h3 {
  margin: 0;
  color: #0c1c39;
  font-size: 24px;
}

.course-title {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.course-number {
  color: #1c7c8c;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.package-card a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 8px;
  color: #fff;
  background: #245b83;
  white-space: nowrap;
}

.empty-state {
  padding: 26px;
  color: #66758d;
  text-align: center;
}

@media (max-width: 860px) {
  .login-view {
    grid-template-columns: 1fr;
  }

  .login-view {
    align-content: center;
    gap: 24px;
  }

  .brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .package-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-title {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .home-view,
  .login-view {
    width: min(100vw - 24px, 1180px);
  }

  .topbar,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand h1 {
    font-size: 42px;
  }
}
