:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #5b6472;
  --line: #dde3ec;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --amber: #b45309;
  --rose: #be123c;
  --blue: #2563eb;
  --shadow: 0 18px 50px rgba(24, 39, 75, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #eef3f8 100%);
  color: var(--text);
}

.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  max-width: 760px;
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 15px;
  font-weight: 700;
}

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

h1 {
  margin-bottom: 16px;
  font-size: 44px;
  line-height: 1.16;
  font-weight: 800;
}

.subtitle {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.deploy-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0;
  padding: 24px;
  border: 1px solid #bfd7d2;
  border-radius: 8px;
  background: #eef8f6;
}

.deploy-label {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.deploy-banner h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.deploy-banner p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.deploy-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

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

.card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 8px;
}

.card-icon span {
  display: block;
  position: relative;
  width: 22px;
  height: 22px;
}

.card-home .card-icon {
  background: #e2f3f0;
}

.card-home .card-icon span {
  border: 3px solid var(--teal);
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.card-home .card-icon span::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 0;
  top: -8px;
  border-top: 3px solid var(--teal);
  border-left: 3px solid var(--teal);
  transform: rotate(45deg);
}

.card-tools .card-icon {
  background: #fff1d8;
}

.card-tools .card-icon span {
  border-top: 4px solid var(--amber);
  border-bottom: 4px solid var(--amber);
}

.card-tools .card-icon span::before,
.card-tools .card-icon span::after {
  content: "";
  position: absolute;
  left: 2px;
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: var(--amber);
}

.card-tools .card-icon span::before {
  top: 3px;
}

.card-tools .card-icon span::after {
  bottom: 3px;
}

.card-notes .card-icon {
  background: #fde7ed;
}

.card-notes .card-icon span {
  border: 3px solid var(--rose);
  border-radius: 3px;
}

.card-notes .card-icon span::before,
.card-notes .card-icon span::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 3px;
  border-radius: 999px;
  background: var(--rose);
}

.card-notes .card-icon span::before {
  top: 6px;
}

.card-notes .card-icon span::after {
  top: 13px;
}

.card h2,
.time-panel h2 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.35;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.updates {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  margin-bottom: 28px;
  padding: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.updates h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.updates ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.time-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.time-output {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.time-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.time-actions p {
  margin-bottom: 0;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

button:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

button:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 3px;
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 24px, 640px);
    padding: 36px 0;
  }

  h1 {
    font-size: 34px;
  }

  .subtitle {
    font-size: 17px;
  }

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

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  .time-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .updates {
    grid-template-columns: 1fr;
  }

  .time-actions {
    justify-items: stretch;
  }

  button {
    width: 100%;
  }
}
