:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --ink: #17201d;
  --muted: #66716c;
  --line: #dce3df;
  --green: #0d8065;
  --green-soft: #d9f1e9;
  --blue: #2457a6;
  --blue-soft: #dce8fb;
  --violet: #6650a4;
  --violet-soft: #ebe4fb;
  --red: #b33a4a;
  --red-soft: #f6dde1;
  --amber: #a56719;
  --amber-soft: #f8e9d1;
  --shadow: 0 22px 60px rgba(24, 39, 33, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

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

.shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 30px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: stretch;
  min-height: 270px;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(13, 128, 101, 0.12), transparent 36%),
    linear-gradient(145deg, #ffffff 0%, #edf3f0 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 16px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
  letter-spacing: 0;
}

.lead {
  max-width: 600px;
  margin-bottom: 0;
  color: #36423e;
  font-size: 20px;
}

.status-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(220, 227, 223, 0.9);
  border-radius: 8px;
}

.status-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #2b3632;
  font-size: 15px;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
}

.status-dot.online {
  background: var(--green);
}

.status-dot.pending {
  background: var(--amber);
}

.status-dot.reserved {
  background: var(--blue);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 22px;
  margin-top: 28px;
}

.module-section {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.module-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}

.module-mark {
  width: 12px;
  height: 38px;
  flex: 0 0 12px;
  border-radius: 999px;
  background: var(--green);
}

.buddhism-module .module-mark {
  background: var(--violet);
}

.education-module .module-mark {
  background: var(--blue);
}

.finance-module .module-mark {
  background: var(--amber);
}

.module-kicker {
  margin-bottom: 2px;
  color: #7d8a84;
  font-size: 12px;
  font-weight: 900;
}

.module-heading h2 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.system-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.compact-card {
  min-height: 330px;
}

.system-card[href]:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 128, 101, 0.45);
  box-shadow: 0 18px 44px rgba(13, 128, 101, 0.13);
}

.muted-card {
  color: #5a6661;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.badge.live {
  color: var(--green);
  background: var(--green-soft);
}

.badge.wait {
  color: var(--amber);
  background: var(--amber-soft);
}

.badge.reserve {
  color: var(--blue);
  background: var(--blue-soft);
}

.buddhism-module .badge.reserve {
  color: var(--violet);
  background: var(--violet-soft);
}

.finance-module .badge.reserve {
  color: var(--amber);
  background: var(--amber-soft);
}

.card-code {
  color: #84908b;
  font-size: 12px;
  font-weight: 800;
}

.visual {
  position: relative;
  height: 126px;
  margin-bottom: 28px;
  overflow: hidden;
  background: #edf3f0;
  border: 1px solid #dce3df;
  border-radius: 8px;
}

.anatomy-visual {
  background:
    linear-gradient(90deg, rgba(179, 58, 74, 0.08), transparent 42%),
    linear-gradient(135deg, #f7fbf9, #e4eee9);
}

.spine {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 12px;
  height: 86px;
  background: repeating-linear-gradient(
    to bottom,
    #f7f2e7 0,
    #f7f2e7 8px,
    #b9b29f 8px,
    #b9b29f 10px
  );
  border: 1px solid #aaa28f;
  border-radius: 999px;
  transform: translateX(-50%);
}

.muscle,
.joint {
  position: absolute;
  display: block;
}

.muscle {
  width: 42px;
  height: 92px;
  background: linear-gradient(180deg, #c94b5b, #8f2634);
  border-radius: 999px;
  opacity: 0.9;
}

.muscle-a {
  top: 18px;
  left: calc(50% - 62px);
  transform: rotate(-12deg);
}

.muscle-b {
  top: 18px;
  right: calc(50% - 62px);
  transform: rotate(12deg);
}

.joint {
  width: 22px;
  height: 22px;
  background: #f3e7d2;
  border: 1px solid #bba98d;
  border-radius: 999px;
}

.joint-a {
  top: 76px;
  left: calc(50% - 92px);
}

.joint-b {
  top: 76px;
  right: calc(50% - 92px);
}

.code-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #f9fbff, #e6eefb);
}

.code-visual span {
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(36, 87, 166, 0.16);
  border-radius: 6px;
  font-size: 22px;
  font-weight: 900;
}

.archive-visual,
.buddhism-visual,
.finance-visual {
  display: flex;
  align-items: end;
  gap: 9px;
  padding: 18px;
  background: linear-gradient(135deg, #fcfbf8, #eef4f0);
}

.archive-visual span,
.buddhism-visual span,
.finance-visual span {
  display: block;
  width: 30%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #7d8f87, #43534d);
}

.archive-visual span:nth-child(1),
.buddhism-visual span:nth-child(1),
.finance-visual span:nth-child(1) {
  height: 72px;
}

.archive-visual span:nth-child(2),
.buddhism-visual span:nth-child(2),
.finance-visual span:nth-child(2) {
  height: 94px;
}

.archive-visual span:nth-child(3),
.buddhism-visual span:nth-child(3),
.finance-visual span:nth-child(3) {
  height: 54px;
}

.buddhism-visual {
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, #fbf8ff, #eee7fb);
}

.buddhism-visual span {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(102, 80, 164, 0.25);
  border-radius: 999px;
  background: rgba(102, 80, 164, 0.16);
}

.buddhism-visual span:nth-child(2) {
  width: 62px;
  height: 62px;
}

.finance-visual {
  background: linear-gradient(135deg, #fff9ee, #f4ead8);
}

.finance-visual span {
  background: linear-gradient(180deg, #d79b42, #7f4f18);
}

.system-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: 0;
}

.system-card p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 16px;
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: fit-content;
  min-width: 110px;
  margin-top: auto;
  padding: 0 16px;
  color: #ffffff;
  background: var(--green);
  border-radius: 6px;
  font-weight: 800;
}

.card-action.disabled {
  color: #69746f;
  background: #eef2f0;
}

.footer {
  display: flex;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 28px;
  justify-content: space-between;
  gap: 18px;
  color: #71807a;
  font-size: 13px;
}

@media (max-width: 880px) {
  .shell {
    width: min(100% - 24px, 680px);
    padding-top: 20px;
  }

  .hero,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding: 24px;
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 18px;
  }

  .system-card {
    min-height: 330px;
  }

  .footer {
    width: min(100% - 24px, 680px);
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: 30px;
  }

  .hero {
    padding: 20px;
  }

  .system-card {
    padding: 18px;
  }
}
