/* 慧辰教育 · 门户与模块占位页共用的样式 */
:root {
  --ink: #16231f;
  --muted: #5b6b66;
  --brand: #0f6e62;
  --brand-strong: #0a4f47;
  --brand-soft: #dff3ef;
  --bg: #f4f8f7;
  --card: #ffffff;
  --line: #dbe7e3;
  --warn: #b26a00;
  --warn-soft: #fdf1dc;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(12, 47, 41, 0.08);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1200px 600px at 12% -10%, #e6f4f0 0%, rgba(230, 244, 240, 0) 60%),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--brand-strong); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px clamp(16px, 6vw, 64px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 0 6px 16px rgba(15, 110, 98, 0.28);
}

.brand-name {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-kicker {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.16em;
  font-weight: 600;
}

.header-note {
  font-size: 0.85rem;
  color: var(--muted);
}

main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px clamp(16px, 6vw, 64px) 64px;
}

.hero {
  padding: 28px 0 8px;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--brand);
  font-weight: 700;
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.lede {
  color: var(--muted);
  max-width: 46em;
  margin: 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 40px 0 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.section-head span { font-size: 0.85rem; color: var(--muted); }

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--brand);
}

.module-card:hover,
.module-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 16px 34px rgba(12, 47, 41, 0.14);
}

.module-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.16rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
}

.module-desc {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  list-style: none;
  padding: 0;
}

.module-tags li {
  font-size: 0.78rem;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 650;
}

.module-go {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
}

.note-card {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px clamp(16px, 6vw, 64px);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--brand-strong);
}

.placeholder {
  margin-top: 26px;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.placeholder h2 { margin: 0 0 8px; font-size: 1.1rem; }

.plan-list {
  margin: 14px 0 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.plan-list li { margin: 6px 0; }

@media (max-width: 560px) {
  .site-header { padding-top: 14px; }
  .header-note { display: none; }
  .hero { padding-top: 14px; }
}
