* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
:root {
  --primary: #10b981;
  --dark: #059669;
  --bg: #f9fafb;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
}
body {
  background: var(--bg);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: var(--text);
  line-height: 1.5;
}
.phone-card {
  background: white;
  width: 100%;
  max-width: 420px;
  border-radius: 32px;
  box-shadow:
    0 20px 35px -8px #00000026,
    0 4px 8px #0000000d;
  padding: 28px 20px 30px;
  border: 1px solid #ffffff80;
}
.status-section {
  text-align: center;
  margin-bottom: 22px;
}
.status-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  color: var(--primary);
  filter: drop-shadow(0 6px 8px #10b98133);
}
.status-icon svg {
  width: 100%;
  height: 100%;
}
h1 {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-top: 8px;
}
.sub-text {
  display: inline-block;
  font-size: 15px;
  color: var(--muted);
  background: var(--bg);
  padding: 6px 18px;
  border-radius: 40px;
  margin-top: 5px;
}
.auto-panel {
  border: 1px solid #d9efe5;
  background: #f3fbf7;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 12px;
}
.auto-panel > div:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.auto-panel strong {
  font-size: 12px;
  font-weight: 600;
}
.auto-panel p {
  color: #6c8679;
  font-size: 11px;
  margin-top: 5px;
  line-height: 1.7;
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px #10b98115;
  flex-shrink: 0;
}
#auto-toggle {
  margin-left: auto;
  border: 0;
  background: none;
  font-size: 11px;
  color: var(--dark);
  cursor: pointer;
  padding: 0;
}
.progress {
  height: 3px;
  background: #dcece4;
  border-radius: 8px;
  margin-top: 9px;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--primary);
  width: 0;
  transition: width 0.2s linear;
}
.routes-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 10px;
}
.route-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  border-radius: 60px;
  min-height: 60px;
  padding: 8px 11px 8px 21px;
  color: white;
  box-shadow: 0 8px 18px -6px #10b98170;
  border: 1px solid #ffffff33;
  gap: 8px;
}
.route-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.route-arrow {
  font-size: 22px;
  line-height: 1;
}
.route-name {
  font-size: 19px;
  font-weight: 540;
  overflow-wrap: anywhere;
}
.route-info {
  display: flex;
  align-items: center;
  gap: 5px;
}
.route-badge {
  background: #ffffff40;
  padding: 5px 10px;
  border-radius: 30px;
  font-size: 11px;
  white-space: nowrap;
}
.route-visit {
  display: inline-flex;
  align-items: center;
  border: 0;
  color: white;
  text-decoration: none;
  font: 600 11px/1.5 inherit;
  background: #ffffff32;
  border-radius: 30px;
  padding: 7px 10px;
  white-space: nowrap;
  cursor: pointer;
}
.route-visit:hover {
  background: #ffffff50;
}
.route-row[data-state="unreachable"],
.route-row[data-state="mixed"] {
  background: #8d9b95;
  box-shadow: 0 6px 14px -8px #0004;
}
.route-row[data-state="checking"] .route-badge {
  opacity: 0.8;
}
.recheck {
  display: block;
  font: 12px/1.6 inherit;
  color: #71857b;
  border: 0;
  background: none;
  margin: 0 auto 15px;
  padding: 4px 10px;
  cursor: pointer;
}
.ad-row {
  display: flex;
  gap: 12px;
  margin: 16px 0 24px;
  flex-wrap: wrap;
}
.ad-btn {
  flex: 1;
  min-width: 130px;
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 14px 6px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 2px 6px #00000005;
}
.ad-title {
  font-weight: 600;
  font-size: 15px;
  display: block;
  margin-bottom: 2px;
}
.ad-title:before {
  content: "●";
  font-size: 10px;
  color: var(--primary);
  margin-right: 6px;
}
.ad-desc {
  font-size: 11px;
  color: var(--muted);
  display: block;
}
.favorite-links {
  background: var(--bg);
  border-radius: 24px;
  padding: 16px 18px;
  margin-top: 8px;
  border: 1px solid var(--border);
}
.section-mini-title {
  font-size: 12px;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.section-mini-title > span:first-child {
  color: var(--primary);
}
.chevron {
  margin-left: auto;
  opacity: 0.6;
  font-size: 20px;
}
.links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 7px;
}
.link-item {
  text-decoration: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
}
.link-icon {
  font-size: 17px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid #e8eeeb;
  border-radius: 12px;
  color: #4f7261;
}
.link-name {
  font-size: 11px;
  white-space: nowrap;
}
.security-note {
  font-size: 10px;
  color: #a0aba5;
  text-align: center;
  margin-top: 23px;
}
.empty {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.error {
  color: #bb3245;
}
.probe-frame {
  position: fixed;
  left: -10000px;
  top: -10000px;
  width: 1px;
  height: 1px;
  visibility: hidden;
  border: 0;
}
.route-visit:focus-visible,
#auto-toggle:focus-visible,
.recheck:focus-visible {
  outline: 2px solid #07553f;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 360px) {
  body {
    padding: 10px;
  }
  .phone-card {
    padding: 24px 14px;
  }
  .route-row {
    padding-left: 15px;
  }
  .route-name {
    font-size: 17px;
  }
  .route-info {
    gap: 4px;
  }
  .route-badge,
  .route-visit {
    padding: 6px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
