:root {
  --forest: #163d31;
  --forest-dark: #0e2b23;
  --forest-soft: #dce7df;
  --ivory: #f4f0e7;
  --paper: #fbf9f3;
  --ink: #1e2925;
  --muted: #66736d;
  --bronze: #9a7750;
  --line: #d8d3c8;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.7;
}

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

.site-header {
  min-height: 88px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(30, 41, 37, 0.12);
  background: rgba(251, 249, 243, 0.94);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--forest);
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 17px;
  letter-spacing: -1px;
}

.brand-name {
  color: var(--forest-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #44534d;
  font-size: 14px;
}

.site-nav a:hover {
  color: var(--forest);
}

.site-nav .nav-entry {
  padding: 9px 14px;
  border: 1px solid var(--forest);
  color: var(--forest);
}

.hero {
  min-height: 680px;
  padding: 100px 8vw 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 9vw;
  background:
    linear-gradient(rgba(22, 61, 49, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 61, 49, 0.035) 1px, transparent 1px),
    var(--ivory);
  background-size: 48px 48px;
}

.eyebrow,
.section-label {
  margin: 0 0 20px;
  color: var(--bronze);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 0;
  color: var(--forest-dark);
  font-family: "Songti SC", SimSun, Georgia, serif;
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.hero-intro {
  max-width: 690px;
  margin: 34px 0 0;
  color: #4f5e58;
  font-size: 18px;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 46px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
}

.button-primary {
  background: var(--forest);
  color: var(--white);
}

.button-primary:hover {
  background: var(--forest-dark);
}

.button-quiet {
  border-color: #9aa69f;
  color: var(--forest);
}

.button-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.hero-note {
  padding: 32px;
  border-top: 3px solid var(--forest);
  background: rgba(251, 249, 243, 0.74);
  box-shadow: 0 24px 60px rgba(32, 50, 42, 0.08);
}

.hero-note p {
  margin: 26px 0;
  font-family: "Songti SC", SimSun, serif;
  font-size: 23px;
  line-height: 1.75;
}

.note-index {
  color: var(--bronze);
  font-family: Georgia, serif;
}

.note-line {
  height: 1px;
  background: var(--line);
}

.note-caption {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.section {
  padding: 110px 8vw;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10vw;
}

.section h2,
.member-strip h2,
.portal-main h1,
.dashboard-header h1 {
  margin: 0;
  color: var(--forest-dark);
  font-family: "Songti SC", SimSun, Georgia, serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.35;
}

.body-copy {
  color: #52605b;
  font-size: 17px;
}

.body-copy p:first-child {
  margin-top: 0;
}

.principles {
  color: var(--white);
  background: var(--forest-dark);
}

.principles .section-label {
  color: #cfb28d;
}

.principles h2 {
  color: var(--white);
}

.principle-list {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.principle-list article {
  min-height: 260px;
  padding: 32px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.principle-list article:last-child {
  border-right: 0;
}

.principle-list span {
  color: #cfb28d;
  font-family: Georgia, serif;
}

.principle-list h3 {
  margin: 42px 0 14px;
  font-family: "Songti SC", SimSun, serif;
  font-size: 22px;
  font-weight: 500;
}

.principle-list p {
  color: #b8c4be;
  font-size: 14px;
}

.research {
  background: var(--paper);
}

.research-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.research-heading > p {
  max-width: 320px;
  color: var(--muted);
  font-size: 14px;
}

.research-list {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.research-card {
  min-height: 350px;
  padding: 34px;
  position: relative;
  border-right: 1px solid var(--line);
}

.research-card:last-child {
  border-right: 0;
}

.research-card.featured {
  background: #ecefe9;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  color: var(--bronze);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.research-card h3 {
  margin: 60px 0 20px;
  color: var(--forest-dark);
  font-family: "Songti SC", SimSun, serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
}

.research-card p {
  color: var(--muted);
  font-size: 14px;
}

.review-status {
  position: absolute;
  left: 34px;
  bottom: 30px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
}

.member-strip {
  padding: 72px 8vw;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: 60px;
  color: #dce6e1;
  background: var(--forest);
}

.member-strip .section-label {
  color: #cfb28d;
}

.member-strip h2 {
  color: var(--white);
  font-size: 34px;
}

.member-strip > p {
  font-size: 14px;
}

footer {
  padding: 44px 6vw;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 40px;
  color: var(--muted);
  background: #ebe7de;
  font-size: 12px;
}

footer strong {
  color: var(--forest-dark);
  font-family: Georgia, serif;
  font-size: 16px;
}

footer p {
  margin: 6px 0 0;
}

.disclaimer {
  max-width: 440px;
}

.portal-body {
  min-height: 100vh;
  background: var(--ivory);
}

.portal-header {
  background: transparent;
}

.back-link {
  color: var(--forest);
  font-size: 13px;
}

.portal-main {
  width: min(1120px, 88vw);
  margin: 0 auto;
  padding: 90px 0;
}

.portal-intro {
  max-width: 700px;
}

.portal-intro p:last-child {
  margin-top: 24px;
  color: var(--muted);
}

.access-grid {
  margin-top: 55px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.access-card {
  min-height: 330px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
}

.access-card.active {
  border-top: 4px solid var(--forest);
}

.access-card.locked {
  opacity: 0.72;
}

.access-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.access-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--forest);
  font-family: Georgia, serif;
}

.access-badge {
  color: var(--muted);
  font-size: 11px;
}

.access-card h2 {
  margin: 44px 0 12px;
  color: var(--forest-dark);
  font-family: "Songti SC", SimSun, serif;
  font-size: 30px;
  font-weight: 500;
}

.access-card p {
  margin: 0 0 32px;
  color: var(--muted);
}

.access-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.button-disabled {
  border-color: var(--line);
  color: #8c948f;
  background: #eeece6;
}

.prototype-note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background: #f1eee7;
}

.dashboard-sidebar {
  min-height: 100vh;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  color: #dce6e1;
  background: var(--forest-dark);
}

.brand.compact .brand-mark {
  border-color: #dce6e1;
  color: #dce6e1;
}

.brand.compact .brand-name {
  color: var(--white);
  font-size: 15px;
  line-height: 1.25;
}

.dashboard-sidebar nav {
  margin-top: 70px;
  display: grid;
  gap: 8px;
}

.dashboard-sidebar nav a {
  padding: 10px 12px;
  color: #aebeb7;
  font-size: 13px;
}

.dashboard-sidebar nav a:hover,
.dashboard-sidebar nav a.current {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.user-chip {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.user-chip > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--forest-dark);
  background: var(--forest-soft);
  font-family: Georgia, serif;
}

.user-chip strong,
.user-chip small {
  display: block;
}

.user-chip small {
  color: #9fb1a9;
  font-size: 10px;
}

.dashboard-main {
  padding: 46px 5vw 80px;
}

.dashboard-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.dashboard-header h1 {
  font-size: 42px;
}

.dashboard-header > p {
  color: var(--muted);
  font-size: 12px;
}

.summary-grid {
  margin: 34px 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.summary-grid article,
.dashboard-panel {
  border: 1px solid #dedad0;
  background: var(--paper);
}

.summary-grid article {
  padding: 24px;
}

.summary-grid span,
.summary-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.summary-grid strong {
  display: block;
  margin: 16px 0 8px;
  color: var(--forest-dark);
  font-family: Georgia, "Songti SC", serif;
  font-size: 30px;
}

.dashboard-panel {
  margin-top: 20px;
  padding: 28px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading h2 {
  margin: 0;
  color: var(--forest-dark);
  font-family: "Songti SC", SimSun, serif;
  font-size: 25px;
  font-weight: 500;
}

.panel-heading button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  color: #8c948f;
  background: #eeece6;
}

.allocation-placeholder {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70px;
}

.donut {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--forest) 0 38%, var(--bronze) 38% 66%, #9aaba3 66% 100%);
  position: relative;
}

.donut::after {
  content: "";
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--paper);
  position: absolute;
}

.donut span {
  z-index: 1;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
}

.legend {
  min-width: 270px;
}

.legend p {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.swatch {
  width: 10px;
  height: 10px;
  display: inline-block;
}

.swatch-a {
  background: var(--forest);
}

.swatch-i {
  background: var(--bronze);
}

.swatch-d {
  background: #9aaba3;
}

.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid #e3dfd6;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.empty-state {
  padding: 60px 20px 35px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--forest-dark);
}

@media (max-width: 900px) {
  .site-header {
    min-height: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    align-items: flex-start;
  }

  .site-nav {
    display: grid;
    gap: 8px;
    text-align: right;
  }

  .site-nav .nav-entry {
    padding: 0;
    border: 0;
  }

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

  .hero {
    padding-top: 70px;
  }

  .principle-list,
  .research-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .research-card:nth-child(2) {
    border-right: 0;
  }

  .research-card:last-child {
    border-top: 1px solid var(--line);
  }

  .member-strip {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .dashboard-body {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    min-height: auto;
  }

  .dashboard-sidebar nav {
    margin-top: 30px;
    grid-template-columns: repeat(2, 1fr);
  }

  .user-chip {
    margin-top: 30px;
  }
}

@media (max-width: 620px) {
  .brand-name {
    display: none;
  }

  .site-nav {
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding: 64px 6vw;
  }

  .section {
    padding: 72px 6vw;
  }

  .principle-list,
  .research-list,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .principle-list article,
  .research-card {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .research-card {
    border-bottom-color: var(--line);
  }

  .research-heading,
  .dashboard-header,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .allocation-placeholder {
    padding: 40px 0;
    flex-direction: column;
    gap: 28px;
  }

  .dashboard-main {
    padding: 36px 20px 60px;
  }
}
