:root {
  --bg: #f4f0e8;
  --ink: #13202a;
  --muted: #60707f;
  --panel: #fffdf8;
  --panel-strong: #ffffff;
  --line: rgba(19, 32, 42, 0.13);
  --accent: #d95d39;
  --accent-2: #0f7a7d;
  --dark: #13202a;
  --warm: #ffd7b8;
  --green: #1f8a5b;
  --shadow: 0 20px 60px rgba(19, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 10px max(20px, calc((100vw - 1120px) / 2));
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 188px;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--dark);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

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

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.topnav a {
  white-space: nowrap;
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.topnav a.is-active {
  color: var(--ink);
  background: rgba(15, 122, 125, 0.1);
}

.view {
  display: none;
}

.view--active {
  display: block;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 68px;
}

.page-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.page-head--row {
  display: flex;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: 42px;
  line-height: 1.08;
}

h2 {
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1.2;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.page-head p,
.activity-card p,
.signup__header p,
.consent,
.data-hint {
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.metrics article,
.panel,
.activity-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.metrics article {
  padding: 18px;
}

.metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.panel {
  padding: 22px;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
}

.activity-list {
  display: grid;
  gap: 14px;
}

.activity-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  overflow: hidden;
  padding: 14px;
  box-shadow: none;
}

.activity-card img,
.empty-visual {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  background: #dce8e5;
}

.empty-visual {
  background:
    linear-gradient(135deg, rgba(15, 122, 125, 0.18), transparent 58%),
    linear-gradient(45deg, rgba(217, 93, 57, 0.2), transparent 50%),
    #edf2ef;
}

.activity-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.status {
  color: var(--muted);
}

.status--live {
  color: var(--green);
}

.activity-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.button--primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 14px 28px rgba(217, 93, 57, 0.24);
}

.button--secondary {
  color: var(--ink);
  background: #e7efed;
}

.button--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.button--block {
  width: 100%;
}

.h5-page {
  min-height: 100vh;
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
  background: var(--bg);
}

.standalone-h5 .h5-page {
  padding-bottom: 0;
}

.standalone-h5 .hero {
  min-height: 92vh;
}

.section {
  padding: 44px 22px;
}

.section--light {
  background: var(--panel);
}

.section--dark {
  color: #fff;
  background: var(--dark);
}

.hero {
  position: relative;
  min-height: calc(92vh - 68px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  background: linear-gradient(180deg, rgba(19, 32, 42, 0.08), rgba(19, 32, 42, 0.9));
}

.hero__content {
  position: relative;
  max-width: 640px;
  padding-bottom: 36px;
}

.hero .eyebrow {
  color: var(--warm);
}

.lead {
  max-width: 32em;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel-strong);
}

.card span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-2);
  font-weight: 900;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stats div {
  border-left: 3px solid var(--warm);
  padding-left: 12px;
}

.stats strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.stats span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.signup {
  background: linear-gradient(180deg, #fffdf8, #f4f0e8);
}

.signup-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.signup-form label {
  display: grid;
  gap: 8px;
}

.signup-form span {
  font-size: 14px;
  font-weight: 800;
}

.signup-form input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 16px;
  background: #fff;
}

.signup-form input:focus {
  outline: 2px solid rgba(15, 122, 125, 0.18);
  border-color: var(--accent-2);
}

.consent {
  margin-bottom: 0;
  font-size: 13px;
}

.result {
  min-height: 24px;
  font-size: 14px;
  font-weight: 800;
}

.result.is-success {
  color: var(--accent-2);
}

.result.is-error {
  color: #b42318;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.data-hint {
  margin: 14px 0 0;
  font-size: 13px;
}

@media (min-width: 720px) {
  .section {
    padding: 64px max(32px, calc((100vw - 960px) / 2));
  }

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

  .hero h1 {
    font-size: 58px;
  }

  .h5-page {
    padding-bottom: 0;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 16px;
  }

  .topnav {
    width: 100%;
  }

  .shell {
    width: min(100% - 28px, 1120px);
    padding-top: 26px;
  }

  .page-head--row {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 34px;
  }

  .metrics,
  .activity-card,
  .stats {
    grid-template-columns: 1fr;
  }

  .activity-card img,
  .empty-visual {
    height: 180px;
  }

  .panel {
    padding: 16px;
  }
}
