:root {
  color-scheme: light;
  --ink: #112d32;
  --muted: #617174;
  --paper: #f5f2e8;
  --surface: #fffdf7;
  --teal: #12363d;
  --teal-soft: #d8ece9;
  --gold: #b78936;
  --amber: #f1cf84;
  --red: #ad4d3f;
  --green: #3f7d5a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(160deg, rgba(18, 54, 61, 0.16), transparent 42%),
    linear-gradient(180deg, #fbf8ef 0%, #e8e1d2 100%);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

button {
  font: inherit;
}

.phone-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 18px 14px 32px;
}

.phone-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: -18px -14px 16px;
  padding: 18px 14px 12px;
  background: rgba(245, 242, 232, 0.92);
  backdrop-filter: blur(16px);
}

.phone-header p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.phone-header h1 {
  margin: 0;
  font-size: 25px;
  letter-spacing: 0;
}

.install-button {
  border: 0;
  min-height: 38px;
  padding: 0 13px;
  background: var(--teal);
  color: #fffdf7;
  font-size: 13px;
  font-weight: 800;
}

.hero-brief,
.phone-section,
.metric-strip article {
  border: 1px solid rgba(17, 45, 50, 0.08);
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 0 16px 40px rgba(17, 45, 50, 0.1);
}

.hero-brief {
  padding: 18px;
}

.hero-meta,
.section-title,
.hero-main,
.metric-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hero-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

#trustChip {
  padding: 4px 9px;
  background: #efe2c5;
  color: #6b4f1b;
}

.hero-main {
  margin-top: 20px;
}

.metric-label,
.metric-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

#revenue {
  display: block;
  margin-top: 5px;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
}

.occ-meter {
  --occ-fill: 0deg;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  flex: 0 0 108px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fffdf7 0 54%, transparent 55%),
    conic-gradient(var(--teal) var(--occ-fill), #e5ded0 0);
}

.occ-meter span {
  font-size: 22px;
  font-weight: 900;
}

.hero-brief p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.metric-strip {
  margin-top: 12px;
}

.metric-strip article {
  flex: 1;
  min-height: 78px;
  padding: 12px;
}

.metric-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 19px;
  letter-spacing: 0;
}

.phone-section {
  margin-top: 14px;
  padding: 16px;
}

.section-title {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 900;
}

.section-title a,
.section-title > span:last-child {
  color: var(--gold);
}

.stack-list,
.room-list {
  display: grid;
  gap: 10px;
}

.brief-card,
.alert-card,
.room-card {
  padding: 13px;
  background: #fff;
  border-left: 4px solid var(--teal);
}

.alert-card.high {
  border-left-color: var(--red);
}

.alert-card.medium {
  border-left-color: var(--gold);
}

.alert-card.ok,
.alert-card.notice {
  border-left-color: var(--green);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
}

.card-head span:last-child {
  color: var(--gold);
  white-space: nowrap;
}

.brief-card p,
.alert-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.room-grid div {
  padding: 8px;
  background: var(--teal-soft);
}

.room-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.room-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
}

@media (max-width: 360px) {
  #revenue {
    font-size: 31px;
  }

  .hero-main {
    align-items: flex-start;
  }

  .occ-meter {
    width: 92px;
    height: 92px;
    flex-basis: 92px;
  }
}
