:root {
  --bg: #f6f7f2;
  --surface: #ffffff;
  --ink: #243c35;
  --muted: #7b8780;
  --brand: #285f4e;
  --brand-dark: #194333;
  --mint: #dcece0;
  --mint-light: #edf4eb;
  --line: #e1e8df;
  --red: #a24a40;
  --radius: 26px;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', 'Noto Sans SC', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, #dcefe2 0, transparent 38%),
    radial-gradient(circle at 100% 100%, #e7f2e9 0, transparent 36%),
    var(--bg);
}

.shell {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(28px, 6vh, 60px) 0 26px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { display: block; width: 56px; height: 56px; border-radius: 18px; object-fit: contain; }
.brand-title { display: flex; align-items: center; gap: 7px; }
.eyebrow { margin: 0 0 4px; color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.beta-badge { display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border: 1px solid #c9d9c7; border-radius: 999px; background: #f3f7ef; color: #6f8467; font-size: 10px; font-weight: 700; letter-spacing: .05em; white-space: nowrap; }
h1 { margin: 0; font-size: clamp(21px, 3vw, 26px); letter-spacing: -.03em; }

.hero { margin: clamp(44px, 8vh, 82px) 0 clamp(26px, 4vh, 38px); max-width: 760px; }
.hero h2 { margin: 8px 0 12px; font-size: clamp(34px, 5.4vw, 52px); line-height: 1.1; letter-spacing: -.05em; }
.hero > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }

.entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.entry-card { display: flex; flex-direction: column; padding: clamp(22px, 3.5vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 18px 50px rgb(36 60 53 / 6%); }
.entry-card.admin { background: linear-gradient(145deg, #f5faf3 0%, #e8f2e6 100%); }
.role-label { display: inline-flex; align-self: flex-start; margin: 0 0 16px; padding: 5px 10px; border-radius: 999px; background: var(--mint-light); color: var(--brand); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.entry-card h2 { margin: 0 0 8px; font-size: clamp(22px, 2.8vw, 27px); letter-spacing: -.03em; }
.muted { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.entry-form { display: grid; gap: 11px; margin-top: auto; padding-top: 26px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
input { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 13px; background: #fbfdfb; color: var(--ink); font: inherit; font-size: 13px; }
input:focus-visible, .button:focus-visible { outline: 3px solid #d5a928; outline-offset: 2px; }
.error { min-height: 17px; margin: 0; color: var(--red); font-size: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 43px; padding: 9px 16px; border: 0; border-radius: 999px; color: #fff; background: var(--brand); font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--brand-dark); }
.button.dark { background: var(--brand-dark); }
.portal-note { margin: 20px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.portal-note a { color: var(--brand); font-weight: 700; text-decoration: none; }
.portal-note a:hover { text-decoration: underline; }
footer { padding: 26px 0 0; color: var(--muted); font-size: 11px; }
footer p { margin: 0; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 24px); padding-top: 22px; }
  .brand-mark { width: 46px; height: 46px; border-radius: 14px; }
  h1 { font-size: 21px; }
  .hero { margin-top: 38px; }
  .hero h2 { font-size: 38px; }
  .entry-grid { grid-template-columns: 1fr; gap: 12px; }
  .entry-card { padding: 22px; border-radius: 22px; }
  .entry-form { padding-top: 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  .entry-card { animation: rise 300ms ease-out both; }
  .entry-card.admin { animation-delay: 60ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
