:root {
  --ink: #1e293b;
  --muted: #64748b;
  --line: #d8e0e7;
  --paper: #fbfcf9;
  --soft: #eef7f4;
  --sea: #118a8a;
  --coral: #d85b4a;
  --gold: #c7952b;
  --blue: #3766a3;
  --shadow: 0 18px 42px rgba(30, 41, 59, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(216, 224, 231, 0.8);
  background: rgba(251, 252, 249, 0.88);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.section-head,
.segmented,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav {
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.nav a:hover,
.admin-link:hover {
  color: var(--sea);
}

.admin-link {
  color: var(--ink);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 0 5vw 86px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.16) 62%, rgba(15, 23, 42, 0.02));
}

.hero-content {
  position: relative;
  max-width: 690px;
  color: white;
}

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

.hero .eyebrow {
  color: #ffe08a;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.8;
}

.hero-actions {
  gap: 14px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.message-form button,
.icon-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.primary-action,
.secondary-action {
  min-width: 132px;
  padding: 14px 20px;
  text-align: center;
}

.primary-action {
  background: #f5c84c;
  color: #172033;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: white;
}

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

.stats-band div {
  background: white;
  padding: 28px 5vw;
}

.stats-band strong {
  display: block;
  color: var(--blue);
  font-size: 32px;
}

.stats-band span {
  color: var(--muted);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 84px 24px;
}

.section-head {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

.segmented {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.segmented button {
  min-width: 78px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.segmented button.active {
  background: var(--sea);
  color: white;
}

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

.member-card,
.message-list article,
.message-form,
.timeline article,
.deploy-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.member-card {
  min-height: 220px;
  padding: 24px;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  font-weight: 900;
}

.sea {
  background: var(--sea);
}

.coral {
  background: var(--coral);
}

.gold {
  background: var(--gold);
}

.ink {
  background: var(--ink);
}

.member-card h3,
.timeline h3 {
  margin-bottom: 8px;
}

.member-card p,
.timeline p,
.deploy-panel p,
.message-list p {
  color: var(--muted);
  line-height: 1.7;
}

.icon-button {
  min-width: 88px;
  height: 42px;
  background: var(--ink);
  color: white;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.photo-tile {
  overflow: hidden;
  min-height: 280px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
}

.photo {
  display: block;
  height: 220px;
  background-size: cover;
}

.photo.one {
  background: linear-gradient(135deg, #90c8c0, #f1d37a 54%, #d75d52);
}

.photo.two {
  background: linear-gradient(135deg, #dbe9ef, #86a6b8 48%, #f4cf72);
}

.photo.three {
  background: linear-gradient(135deg, #253858, #d36054 58%, #f2c75a);
}

.photo.four {
  background: linear-gradient(135deg, #18332f, #4d806f 52%, #e8d8a2);
}

.photo-tile strong {
  display: block;
  padding: 16px;
}

.message-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.message-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.message-list article,
.message-form {
  padding: 20px;
}

.message-form {
  display: grid;
  gap: 16px;
}

.message-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.message-form input,
.message-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  resize: vertical;
}

.message-form button {
  height: 46px;
  background: var(--coral);
  color: white;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
}

.timeline time {
  color: var(--sea);
  font-size: 26px;
  font-weight: 900;
}

.deploy-panel {
  padding: 42px;
}

pre {
  overflow: auto;
  margin: 24px 0 0;
  border-radius: 8px;
  background: #172033;
  color: #ecfeff;
  padding: 18px;
}

dialog {
  width: min(680px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.3);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.58);
}

.close-button {
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  font-size: 24px;
}

.dialog-photo {
  height: 380px;
}

dialog h3 {
  padding: 20px 24px;
  margin: 0;
}

.footer {
  justify-content: space-between;
  gap: 16px;
  padding: 34px 5vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    padding: 14px 20px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .hero {
    min-height: 560px;
  }

  .stats-band,
  .member-grid,
  .gallery,
  .message-layout {
    grid-template-columns: 1fr 1fr;
  }

  .message-layout {
    align-items: stretch;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 520px;
    padding: 0 22px 54px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-band,
  .member-grid,
  .gallery,
  .message-layout {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 18px;
  }

  .segmented {
    width: 100%;
    overflow-x: auto;
  }

  .segmented button {
    flex: 1;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
