:root {
  --bg: #eef7ff;
  --card: rgba(255, 255, 255, 0.96);
  --text-main: #203247;
  --text-soft: #6b7f95;
  --line: #dbe8f4;
  --accent-deep: #4b84c6;
  --blue: #cfe7ff;
  --yellow: #ffe8a6;
  --green: #d9f0d2;
  --coral: #ffd7c9;
  --shadow: 0 18px 36px rgba(87, 123, 163, 0.12);
  --radius-xl: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top, rgba(193, 224, 255, 0.5), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, #eef7ff 48%, #e9f3fb 100%);
}

.page {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 28px 22px 40px;
}

.page-home-portal {
  width: min(100%, 1120px);
}

.hero-card,
.panel,
.task-card,
.action-button {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-card,
.panel {
  background: var(--card);
  border: 1px solid rgba(219, 232, 244, 0.9);
}

.hero-card {
  padding: 28px 24px;
  margin-bottom: 18px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--accent-deep);
  font-weight: 700;
  letter-spacing: 0.03em;
}

h1 {
  margin: 0;
  font-size: 2.3rem;
  line-height: 1.22;
}

.hero-note {
  margin: 14px 0 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.panel {
  padding: 22px 20px;
  margin-bottom: 18px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.3;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 98px;
  padding: 18px;
  text-align: center;
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.lesson-portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.lesson-portal-card {
  min-height: 136px;
  padding: 20px 16px;
  flex-direction: column;
  gap: 6px;
}

.lesson-portal-title {
  font-size: 1.22rem;
  line-height: 1.3;
}

.lesson-portal-note {
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-soft);
}

.action-blue {
  background: var(--blue);
}

.action-yellow {
  background: var(--yellow);
}

.action-green {
  background: var(--green);
}

.action-coral {
  background: var(--coral);
}

.action-button:focus-visible,
.action-button:hover {
  outline: none;
  transform: translateY(-1px);
}

.action-button.is-disabled {
  cursor: default;
}

@media (max-width: 720px) {
  .page {
    padding: 18px 14px 28px;
  }

  h1 {
    font-size: 1.95rem;
  }

  .section-heading h2 {
    font-size: 1.35rem;
  }

  .lesson-portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-button {
    min-height: 84px;
    font-size: 1.08rem;
  }
}
