:root {
  --ink: #10382f;
  --deep: #083d31;
  --deep-2: #0a5845;
  --green: #39b98a;
  --green-bright: #54d5a5;
  --mint: #e9f7f1;
  --line: #d8e9e2;
  --paper: #f6faf8;
  --white: #ffffff;
  --muted: #687e76;
  --orange: #f26544;
  --shadow: 0 22px 70px rgba(10, 63, 50, .13);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(84, 213, 165, .17), transparent 27rem),
    var(--paper);
  font-family: Inter, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 122px;
  height: auto;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--deep);
}

.brand-divider {
  width: 1px;
  height: 34px;
  background: var(--line);
}

.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 17px; letter-spacing: .08em; }
.brand-copy small { color: var(--muted); font-size: 9px; letter-spacing: .19em; }

.internal-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--deep-2);
  background: rgba(255,255,255,.74);
  font-size: 13px;
  font-weight: 700;
}

.internal-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(57,185,138,.12);
}

.hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: clamp(44px, 7vw, 88px);
  color: var(--white);
  background:
    linear-gradient(112deg, rgba(4, 48, 38, .98), rgba(6, 78, 60, .93) 55%, rgba(20, 124, 91, .87)),
    #07503e;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -16% -70% 38%;
  height: 150%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82, 222, 167, .25), transparent 61%);
  z-index: -1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .11;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(90deg, transparent, #000 45%);
}

.hero-copy { position: relative; z-index: 1; width: 100%; min-width: 0; max-width: 735px; }

.eyebrow,
.section-kicker {
  margin: 0 0 13px;
  color: var(--green-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(46px, 7vw, 82px);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero-lead {
  max-width: 680px;
  margin: 27px 0 0;
  overflow-wrap: anywhere;
  color: rgba(255,255,255,.76);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-lead span { display: block; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  color: rgba(255,255,255,.64);
  font-size: 13px;
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green-bright);
}

.hero-mark {
  position: absolute;
  right: clamp(28px, 7vw, 84px);
  bottom: 20px;
  color: rgba(255,255,255,.055);
  font-size: clamp(150px, 23vw, 320px);
  font-weight: 900;
  letter-spacing: -.11em;
  line-height: .8;
  user-select: none;
}

.hero-mark span { color: rgba(84,213,165,.15); }

.portal-section { padding: 72px 8px 52px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.section-heading h2,
.notice-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.035em;
}

.section-heading > p {
  max-width: 430px;
  margin: 0 0 5px;
  color: var(--muted);
  line-height: 1.7;
}

.portal-groups {
  display: grid;
  gap: 24px;
}

.portal-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.52);
}

.group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, #eaf7f2, #f8fcfa);
}

.group-heading span {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
}

.group-heading h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; }

.group-heading b {
  color: rgba(8,61,49,.17);
  font-size: 34px;
  line-height: 1;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.portal-grid.count-5 { grid-template-columns: repeat(5, 1fr); }
.portal-grid.count-3 { grid-template-columns: repeat(3, 1fr); }

.portal-card {
  position: relative;
  min-height: 208px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 26px;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  background: var(--white);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

a.portal-card:hover {
  transform: translateY(-5px);
  border-color: rgba(57,185,138,.55);
  box-shadow: 0 20px 45px rgba(11,76,61,.11);
}

.portal-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -65px;
  bottom: -70px;
  border-radius: 50%;
  background: var(--mint);
}

.portal-card.is-muted { background: rgba(255,255,255,.73); }

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

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--deep-2);
  background: var(--mint);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-state {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: #f0f5f3;
  font-size: 11px;
  font-weight: 700;
}

.card-state.is-live { color: #086c50; background: #dff6ec; }

.portal-card h3 {
  margin: 22px 0 8px;
  font-size: 20px;
  letter-spacing: -.02em;
}

.portal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.card-action {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 22px;
  color: var(--deep-2);
  font-size: 13px;
  font-weight: 800;
}

.notice-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  margin: 12px 8px 72px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #eef9f4, #fff);
}

.notice-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--deep-2);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(11,76,61,.09);
}

.notice-icon svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notice-panel h2 { font-size: clamp(24px, 3vw, 34px); }

.notice-panel > div:last-child > p:last-child {
  max-width: 900px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

footer {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer div { display: flex; gap: 12px; align-items: center; }
footer strong { color: var(--ink); }
footer a { color: var(--deep-2); font-weight: 800; text-decoration: none; }

@media (max-width: 900px) {
  .portal-grid,
  .portal-grid.count-5,
  .portal-grid.count-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-mark { right: -30px; }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 24px, 560px); }
  .topbar { min-height: 78px; }
  .brand { gap: 10px; }
  .brand img { width: 92px; }
  .brand-divider { height: 28px; }
  .brand-copy strong { font-size: 14px; }
  .internal-pill { display: none; }

  .hero {
    min-height: 470px;
    padding: 36px 24px 42px;
    border-radius: 24px;
  }

  .hero h1 { font-size: clamp(42px, 12vw, 52px); line-height: 1.06; }
  .hero-lead { font-size: 16px; line-height: 1.7; }
  .hero-meta { flex-wrap: wrap; margin-top: 26px; }
  .hero-mark { display: none; }
  .portal-section { padding-top: 54px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .portal-grid,
  .portal-grid.count-5,
  .portal-grid.count-3 { grid-template-columns: 1fr; }
  .portal-card { min-height: 190px; }
  .group-heading { padding: 19px 20px; }
  .notice-panel { grid-template-columns: 1fr; margin-bottom: 48px; padding: 24px; }
  footer { align-items: flex-start; flex-direction: column; }
  footer div { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
