:root {
  color-scheme: light;
  --ink: #153047;
  --muted: #617588;
  --green: #087f67;
  --green-deep: #075a50;
  --green-soft: #eaf8f3;
  --blue: #1768c9;
  --line: #dbe8e5;
  --paper: #f4f8f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #eaf1f0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #eaf1f0;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid rgba(8, 127, 103, 0.28);
  outline-offset: 3px;
}

.official-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 16px 46px rgba(25, 72, 67, 0.14);
}

.official-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: max(10px, env(safe-area-inset-top)) 16px 8px;
  color: #dff8ee;
  background: var(--green-deep);
}

.official-topbar a {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.official-topbar span {
  font-size: 12px;
  font-weight: 700;
}

main {
  display: grid;
  gap: 10px;
  padding: 10px 10px calc(24px + env(safe-area-inset-bottom));
}

.official-hero,
.path-panel,
.difference-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.official-hero {
  padding: 22px 18px 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(230, 250, 242, 0.96), rgba(246, 252, 250, 0.98)),
    #fff;
}

.official-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 18px;
}

.official-badges span {
  padding: 4px 8px;
  border: 1px solid #a9d9cc;
  border-radius: 999px;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 800;
}

.official-eyebrow {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.official-hero h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
}

.official-hero > p:not(.official-eyebrow):not(.official-status) {
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.official-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 7px;
  color: #fff;
  background: var(--green);
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
}

.official-primary span {
  font-size: 21px;
  line-height: 1;
}

.official-status {
  margin: 7px 1px 0;
  color: var(--green-deep);
  font-size: 10px;
  font-weight: 700;
}

.official-status.is-error {
  color: #9a4a23;
}

.path-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.path-panel p,
.path-panel h2,
.path-panel span,
.difference-panel h2,
.official-notice {
  margin: 0;
}

.path-panel p {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.path-panel h2 {
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.35;
}

.path-panel span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.path-panel a {
  min-width: 86px;
  padding: 9px 10px;
  border: 1px solid #adcbef;
  border-radius: 6px;
  color: #145fb8;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.difference-panel {
  padding: 14px;
}

.difference-panel h2 {
  font-size: 15px;
}

.difference-panel dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
}

.difference-panel dl > div {
  padding: 10px;
  border-left: 3px solid var(--green);
  background: #f7faf9;
}

.difference-panel dl > div:last-child {
  border-left-color: var(--blue);
}

.difference-panel dt {
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 850;
}

.difference-panel dd {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.official-notice {
  padding: 2px 4px;
  color: #71808d;
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 359px) {
  .official-hero h1 {
    font-size: 34px;
  }

  .path-panel {
    grid-template-columns: 1fr;
  }

  .path-panel a {
    width: 100%;
  }
}

@media (min-width: 700px) {
  body {
    padding: 16px 0;
  }

  .official-shell {
    border-radius: 8px;
    overflow: hidden;
  }
}
