:root {
  color-scheme: light;
  --bg: #f5f7f7;
  --surface: #ffffff;
  --text: #172322;
  --muted: #687775;
  --line: #dce5e3;
  --accent: #087f73;
  --accent-dark: #05655d;
  --accent-soft: #e8f5f2;
  --warning: #8a4b05;
  --warning-soft: #fff5e6;
  --danger: #a72d2d;
  --danger-soft: #fff0ef;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 47, 44, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
select {
  font: inherit;
}

button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(8, 127, 115, 0.24);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

.language-control select {
  min-height: 38px;
  padding: 0 30px 0 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.page-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 28px 18px calc(42px + env(safe-area-inset-bottom));
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.3;
}

.intro__text {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.chevron {
  flex: 0 0 auto;
  color: #8b9795;
  font-size: 28px;
  line-height: 1;
  transition: transform 160ms ease;
}

.issue-section {
  margin-top: 32px;
}

.section-heading {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.issue-list {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.issue-item {
  width: 100%;
  min-height: 82px;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
  text-align: left;
  background: var(--surface);
  border: 0;
  cursor: pointer;
}

.issue-item + .issue-item {
  border-top: 1px solid var(--line);
}

.issue-item:active {
  background: #f7faf9;
}

.issue-item__number {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  background: var(--accent-soft);
  border-radius: 11px;
}

.issue-item__copy {
  display: grid;
  flex: 1;
  min-width: 0;
}

.issue-item__copy strong {
  font-size: 16px;
  line-height: 1.35;
}

.weather-visual {
  margin: 24px 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.weather-visual__grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.weather-visual__grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.weather-visual__item {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.weather-visual__image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eef2f7;
}

.weather-visual__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.weather-visual__image--bottom img {
  object-position: center bottom;
}

.weather-visual__image--restart img {
  object-position: center 58%;
}

.weather-visual__image--upgrade img {
  object-position: center 80%;
}

.weather-visual__item figcaption {
  padding: 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.back-button {
  min-height: 44px;
  margin: -8px 0 20px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.diagnostic__head p {
  color: var(--muted);
}

.safety-notice {
  margin: 20px 0;
  padding: 14px 16px;
  color: var(--danger);
  font-weight: 700;
  background: var(--danger-soft);
  border: 1px solid #f0c9c5;
  border-radius: 14px;
}

.steps-card,
.router-guide,
.diagnostic-video {
  margin-top: 20px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.router-guide__head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.router-guide__beginner {
  margin-top: 16px;
  padding: 14px 16px;
  color: #38514e;
  background: var(--accent-soft);
  border-radius: 12px;
}

.router-guide__beginner strong {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
}

.router-guide__beginner ol {
  margin: 0;
  padding-left: 20px;
}

.router-guide__beginner li + li {
  margin-top: 5px;
}

.router-settings {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.router-setting {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(112px, 0.45fr) 1fr;
  gap: 10px 16px;
  background: #fff;
}

.router-setting + .router-setting {
  border-top: 1px solid var(--line);
}

.router-setting strong {
  color: var(--text);
  font-size: 14px;
}

.router-setting span {
  color: #276c63;
  font-size: 14px;
  font-weight: 700;
}

.router-setting__copy {
  display: grid;
  gap: 4px;
}

.router-setting__copy small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

.router-guide__finish {
  margin: 14px 0 0;
  padding: 13px 14px;
  color: #6d3a06;
  background: var(--warning-soft);
  border-radius: 10px;
}

.steps-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps-list li {
  position: relative;
  min-height: 50px;
  padding: 1px 0 18px 50px;
  counter-increment: step;
}

.steps-list li:last-child {
  padding-bottom: 0;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: var(--accent);
  border-radius: 50%;
}

.steps-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 0;
  left: 16px;
  width: 2px;
  background: var(--line);
}

@media (max-width: 620px) {
  .page-shell {
    padding: calc(14px + env(safe-area-inset-top)) 14px calc(34px + env(safe-area-inset-bottom));
  }

  .router-setting {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .weather-visual {
    padding: 14px;
  }

  .weather-visual__grid {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
