:root {
  --ink: #17211f;
  --muted: #5f6f69;
  --line: #d9e1dc;
  --paper: #fbfcf8;
  --soft: #eef4ed;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --amber: #b7791f;
  --coral: #b94a48;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(23, 33, 31, .12);
}

* {
  box-sizing: border-box;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 248, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal-dark);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: #33413d;
  font-size: 14px;
}

.site-nav a:hover,
.nav-admin {
  background: var(--soft);
}

.nav-logout {
  margin: 0;
}

.nav-logout button {
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  color: #33413d;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.nav-logout button:hover {
  background: var(--soft);
}

.message-stack {
  position: sticky;
  top: 72px;
  z-index: 15;
  display: grid;
  gap: 8px;
  padding: 10px clamp(18px, 5vw, 72px);
  background: rgba(251, 252, 248, .92);
  border-bottom: 1px solid var(--line);
}

.message {
  padding: 10px 12px;
  border-left: 4px solid var(--teal);
  background: var(--white);
  border-radius: 8px;
}

.hero {
  min-height: min(72vh, 680px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: clamp(58px, 9vw, 112px) clamp(20px, 6vw, 88px);
}

.culture-hero {
  min-height: min(66vh, 620px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: clamp(54px, 8vw, 104px) clamp(20px, 6vw, 88px);
}

.culture-hero-copy {
  width: min(760px, 100%);
}

.culture-hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 900;
}

.culture-hero p:not(.eyebrow) {
  width: min(720px, 100%);
  color: rgba(255, 255, 255, .9);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #a7f3d0;
}

.culture-hero .eyebrow {
  color: #a7f3d0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 900;
}

.hero-copy {
  width: min(680px, 100%);
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.footer-links,
.meta-line,
.form-actions,
.action-strip,
.inline-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-strip {
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.button svg {
  width: 18px;
  height: 18px;
}

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

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

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .12);
}

.button.ghost {
  color: var(--teal-dark);
  border-color: var(--line);
  background: var(--white);
}

.button.wide {
  width: 100%;
  margin-top: 12px;
}

.form-actions .button {
  flex: 1;
}

.inline-actions {
  gap: 10px;
}

.inline-actions a,
.link-row a {
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 14px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 22px clamp(18px, 4vw, 52px);
  background: var(--white);
}

.stat strong {
  display: block;
  color: var(--teal-dark);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.section.muted {
  background: var(--soft);
}

.section.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.compact-section {
  padding-top: 24px;
  padding-bottom: 24px;
}

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

.section-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-heading.compact h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.text-link {
  color: var(--teal-dark);
  font-weight: 800;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.culture-grid,
.identity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.culture-card,
.identity-card,
.document-row,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.culture-card,
.identity-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 22px;
}

.culture-card svg,
.identity-card svg {
  width: 30px;
  height: 30px;
  color: var(--teal-dark);
}

.culture-card h3,
.identity-card strong {
  font-size: 22px;
}

.culture-card p,
.identity-card span {
  margin: 0;
  color: var(--muted);
}

.identity-card:hover,
.culture-card:hover,
.document-row:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  transition: .18s ease;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.timeline div {
  padding: 22px;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: var(--white);
}

.timeline span {
  display: block;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}

.timeline strong {
  display: block;
  margin: 6px 0;
  font-size: 21px;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.document-list {
  display: grid;
  gap: 12px;
}

.document-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
  color: var(--teal-dark);
  font-weight: 800;
}

.document-row svg {
  width: 20px;
  height: 20px;
}

.contact-panel {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 20px;
}

.contact-panel strong {
  font-size: 24px;
}

.contact-panel a {
  color: var(--teal-dark);
  font-size: 20px;
  font-weight: 900;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(23, 33, 31, .04);
}

.resource-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  transition: .18s ease;
}

.resource-card h2,
.resource-card h3 {
  margin: 12px 0;
  font-size: 22px;
}

.resource-card p {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #d9f4ee;
  font-size: 12px;
  font-weight: 800;
}

.pill.amber {
  color: #6f420b;
  background: #f8e7c4;
}

dl {
  margin: 18px 0 0;
}

dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 0;
}

.list-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.list-row {
  display: grid;
  grid-template-columns: 116px 1fr 150px;
  gap: 14px;
  align-items: center;
  min-height: 64px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row:hover {
  background: var(--soft);
}

.list-row span,
.list-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.list-row.tall {
  grid-template-columns: 130px 1fr 240px;
}

.page-title {
  padding: clamp(46px, 8vw, 92px) clamp(18px, 5vw, 72px) 22px;
  background: var(--soft);
}

.page-title h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.page-title p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.search-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.search-bar label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 220px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.search-bar svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.search-bar input {
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.auth-shell {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: clamp(38px, 7vw, 86px) 18px;
  background: var(--soft);
}

.auth-card {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.auth-card h1,
.form-copy h1 {
  font-size: clamp(32px, 5vw, 52px);
}

.stack-form,
.editor-form {
  display: grid;
  gap: 14px;
}

.stack-form p,
.editor-form p {
  display: grid;
  gap: 6px;
  margin: 0;
}

.stack-form label,
.editor-form label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.stack-form input,
.editor-form input,
.editor-form textarea,
.editor-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--white);
  font: inherit;
}

.helptext,
.errorlist {
  color: var(--coral);
  font-size: 13px;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 760px);
  gap: 34px;
  padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.form-copy {
  align-self: start;
  position: sticky;
  top: 106px;
}

.editor-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.upload-grid,
.submission-grid,
.profile-grid,
.honor-grid {
  display: grid;
  gap: 18px;
}

.upload-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.submission-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.upload-tile,
.submission-panel,
.profile-card,
.honor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.upload-tile {
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 22px;
}

.upload-tile:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  transition: .18s ease;
}

.upload-tile svg {
  width: 28px;
  height: 28px;
  color: var(--teal-dark);
}

.upload-tile strong {
  font-size: 21px;
}

.upload-tile span,
.submission-row span {
  color: var(--muted);
}

.upload-tile.urgent {
  border-color: rgba(15, 118, 110, .35);
  background: #eef9f5;
}

.submission-panel {
  padding: 16px;
}

.submission-panel h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.submission-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.empty.compact {
  padding: 12px;
}

.profile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.profile-photo {
  display: grid;
  place-items: center;
  width: 92px;
  height: 112px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
  color: var(--teal-dark);
  font-size: 34px;
  font-weight: 900;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo.large {
  width: 150px;
  height: 190px;
  font-size: 52px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: clamp(42px, 7vw, 82px) clamp(18px, 5vw, 72px);
  background: var(--soft);
}

.profile-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
}

.honor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.honor-card {
  overflow: hidden;
  padding: 18px;
}

.honor-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
}

.honor-detail-image {
  margin: 24px 0;
}

.honor-detail-image img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.mini-link {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--teal-dark);
  font-weight: 700;
}

.video-box {
  margin-top: 24px;
  border-radius: 8px;
  overflow: hidden;
  background: #101918;
}

.video-box video {
  display: block;
  width: 100%;
  max-height: 520px;
}

.group-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.group-chip {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.group-chip strong,
.group-chip span {
  display: block;
}

.group-chip span {
  color: var(--muted);
  font-size: 13px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 32px;
  padding: clamp(44px, 7vw, 88px) clamp(18px, 5vw, 72px);
}

.detail-main,
.detail-side {
  min-width: 0;
}

.detail-main h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.lead {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.meta-line span {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--soft);
  color: #34443f;
  font-size: 14px;
}

.rich-text {
  margin-top: 28px;
  font-size: 17px;
}

.detail-side {
  align-self: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-side h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.access-form {
  display: grid;
  gap: 12px;
}

.access-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.access-form input,
.access-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.notice {
  padding: 12px 14px;
  border-left: 4px solid var(--teal);
  background: var(--soft);
  color: var(--teal-dark);
  font-weight: 700;
}

.empty {
  margin: 0;
  padding: 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 5vw, 72px);
  color: #eaf3ef;
  background: #17211f;
}

.site-footer p {
  margin: 6px 0 0;
  color: #b8c7c1;
}

.footer-links a {
  color: #d8f6ec;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .stats-band,
  .card-grid,
  .card-grid.two,
  .culture-grid,
  .identity-grid,
  .timeline,
  .section.split,
  .detail-layout,
  .form-layout,
  .upload-grid,
  .submission-grid,
  .profile-grid,
  .profile-grid.compact,
  .honor-grid,
  .group-strip {
    grid-template-columns: 1fr;
  }

  .form-copy {
    position: static;
  }

  .list-row,
  .list-row.tall {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .hero {
    min-height: 66vh;
  }

  .search-bar,
  .section-heading,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
