* {
  box-sizing: border-box;
}

:root {
  --blue: #0b63ff;
  --blue2: #2563eb;
  --green: #16a34a;
  --orange: #f97316;
  --red: #dc2626;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: rgba(255,255,255,.92);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at 50% -10%, #ffffff 0%, #f6f8fc 42%, #eef3fa 100%);
  color: var(--text);
}

.page {
  min-height: 100vh;
  padding: 26px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  display: block;
  width: 240px;
  max-width: 82%;
  margin: 0 auto 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 15px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #334155;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid rgba(148,163,184,.22);
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}

h1 {
  margin: 12px 0 10px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -2px;
}

.hero-desc {
  max-width: 760px;
  margin: 0 auto 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  font-style: italic;
}

.hero-desc .hotline {
  color: #ef4444;
  font-weight: 800;
  text-decoration: none;
}

.hero-desc .hotline:hover {
  color: #dc2626;
  text-decoration: underline;
}

.search-card {
  width: 100%;
  max-width: 820px;
  margin: 10px auto 0;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 14px;
  background: rgba(255,255,255,.92);
  border-radius: 24px;
  border: 1px solid rgba(148,163,184,.22);
  backdrop-filter: blur(20px);
  box-shadow: 0 22px 60px rgba(15,23,42,.08);
}

.search-card input {
  width: 100%;
  height: 60px;
  border-radius: 16px;
  border: 1px solid #d8dee9;
  outline: none;
  padding: 0 22px;
  font-size: 18px;
  transition: .25s;
  background: white;
}

.search-card input:focus {
  border-color: var(--blue2);
  box-shadow: 0 0 0 5px rgba(37,99,235,.12);
}

.search-card button,
.actions button {
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #0b63ff);
  color: white;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: .25s;
  box-shadow: 0 15px 35px rgba(37,99,235,.25);
}

.search-card button:hover,
.actions button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.hint {
  width: 100%;
  max-width: 820px;
  margin: 8px auto 0;
  text-align: left;
  color: var(--muted);
  font-size: 13px;
}

.message {
  margin-top: 10px;
  color: #dc2626;
  font-weight: 700;
  min-height: 18px;
  font-size: 13px;
}

.features {
  width: 100%;
  max-width: 920px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}

.feature {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: .25s;
  box-shadow: 0 10px 25px rgba(15,23,42,.04);
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15,23,42,.09);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #eff6ff;
  color: var(--blue2);
  font-size: 22px;
  margin-bottom: 10px;
}

.feature strong {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text);
}

.feature span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.result-card {
  width: 100%;
  max-width: 980px;
  margin: 28px auto 0;
  padding: 28px;
  border-radius: 24px;
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148,163,184,.22);
  box-shadow: 0 26px 75px rgba(15,23,42,.10);
  animation: fadeUp .35s;
}

.hidden {
  display: none;
}

.result-top {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
  align-items: start;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 13px;
  font-weight: 900;
}

.status.warning {
  background: #fff7ed;
  color: #ea580c;
}

.status.danger {
  background: #fee2e2;
  color: #dc2626;
}

.result-card h2 {
  margin: 18px 0 8px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.6px;
}

.serial-line {
  font-size: 15px;
  color: var(--muted);
}

.serial-line span {
  color: var(--blue2);
  font-weight: 500;
}

.days-box {
  min-height: 150px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.days-box span {
  color: var(--muted);
  font-size: 13px;
}

.days-box strong {
  margin: 8px 0;
  font-size: 52px;
  line-height: 1;
  color: var(--green);
}

.progress-area {
  margin: 22px 0;
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  gap: 18px;
  align-items: center;
}

.progress-area span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}

.progress-area strong {
  font-size: 14px;
}

.progress-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress-center span {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.progress {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress div {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  transition: width .6s ease, background .4s;
}

.progress.green div {
  background: linear-gradient(90deg,#34d399,#22c55e);
}

.progress.orange div {
  background: linear-gradient(90deg,#fbbf24,#f97316);
}

.progress.red div {
  background: linear-gradient(90deg,#fb7185,#ef4444);
}

.progress-center strong {
  margin-top: 8px;
  font-size: 13px;
  color: #475569;
}

.details {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.details div {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.details div:last-child {
  border-bottom: none;
}

.details span {
  color: #475569;
  font-weight: 700;
  font-size: 13px;
}

.details strong {
  text-align: right;
  font-weight: 650;
  font-size: 13px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.actions button {
  height: 52px;
  border-radius: 15px;
  font-size: 15px;
}

.secondary {
  background: white !important;
  border: 1px solid #d8dee9 !important;
  color: #334155 !important;
  box-shadow: none !important;
}

footer {
  margin-top: 28px;
  padding-top: 10px;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

@media (max-width: 760px) {
  .page {
    padding: 24px 14px;
  }

  .logo {
    width: 210px;
  }

  .pill {
    font-size: 11px;
  }

  h1 {
    font-size: 40px;
    letter-spacing: -1.2px;
  }

  .hero-desc {
    font-size: 13px;
    line-height: 1.6;
  }

  .search-card,
  .result-top,
  .progress-area,
  .actions {
    grid-template-columns: 1fr;
  }

  .search-card {
    max-width: 100%;
    padding: 14px;
    gap: 12px;
  }

  .search-card input {
    height: 56px;
    font-size: 16px;
  }

  .search-card button {
    height: 56px;
  }

  .hint {
    text-align: center;
  }

  .result-card {
    padding: 22px;
    border-radius: 24px;
  }

  .result-card h2 {
    font-size: 24px;
  }

  .days-box {
    min-height: 140px;
  }

  .days-box strong {
    font-size: 46px;
  }

  .details div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .details strong {
    text-align: left;
  }
}