/* ===== reset ===== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: #0f172a;
  background:
    radial-gradient(1200px 500px at 18% 10%, rgba(16,185,129,.18), transparent 60%),
    radial-gradient(900px 500px at 82% 0%, rgba(59,130,246,.15), transparent 55%),
    linear-gradient(180deg, #f8fafc, #eef2ff);

  /* 兼容 */
  min-height: 100vh;
  min-height: 100dvh;

  display: grid;
  place-items: start center;
  padding: 5vh 20px 32px;
}

.page {
  width: 100%;
  display: grid;
  place-items: start center;
}

/* ===== card ===== */
.card {
  width: min(820px, 100%);
  background: rgba(255,255,255,.9);
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow:
    0 22px 64px rgba(15,23,42,.14),
    0 2px 10px rgba(15,23,42,.06);
  padding: 34px 34px 26px;
}

/* ===== progress ===== */
.meter {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.circular-chart {
  width: 210px;
  height: 210px;
}

.circle-bg {
  fill: none;
  stroke: rgba(15,23,42,.1);
  stroke-width: 4;
}

.circle {
  fill: none;
  stroke: #6ee7b7;
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  /* 不加粗；保留顺滑过渡 */
  transition: stroke-dasharray 0.12s linear;
}

.percentage {
  fill: #0f172a;
  font-size: 0.58em;  
  font-weight: 400;   
  text-anchor: middle;
}

/* ===== notice ===== */
.notice {
  width: 100%;
  text-align: center;
  border: 1px dashed rgba(15,23,42,.18);
  border-radius: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,.55);
}

.notice-title {
  font-size: 18px;
  font-weight: 900;
  color: #ef4444;
  margin-bottom: 8px;
}

.notice-text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(15,23,42,.75);
}

/* ===== buttons ===== */
.actions { margin-top: 28px; }

.btn-wrap { margin-bottom: 16px; }
.btn-group { display: grid; gap: 14px; }

.btn {
  width: 100%;
  height: 64px;
  border-radius: 16px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .2px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  border: 1px solid rgba(15,23,42,.12);
  box-shadow:
    0 14px 30px rgba(15,23,42,.14),
    0 1px 0 rgba(255,255,255,.6) inset;

  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(59,130,246,.35),
    0 14px 30px rgba(15,23,42,.14);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, #ffd866, #ffcc33);
  color: rgba(15,23,42,.9);
}

.btn-secondary {
  background: linear-gradient(180deg, rgba(255,216,102,.95), rgba(255,204,51,.95));
  color: rgba(15,23,42,.8);
}

/* ===== footer ===== */
.footer {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(15,23,42,.1);
  text-align: center;
}

.footer-text {
  font-size: 14px;
  color: rgba(15,23,42,.55);
}

/* ===== mobile ===== */
@media (max-width: 640px) {
  body {
    padding: 14px 14px 18px;
    place-items: center;
  }

  .page { place-items: center; }

  .card {
    width: min(560px, 100%);
    padding: 24px 18px 18px;
    border-radius: 20px;
  }

  .circular-chart {
    width: 52vw;
    height: 52vw;
    max-width: 240px;
    max-height: 240px;
    min-width: 180px;
    min-height: 180px;
  }

  .percentage {
    font-size: 0.58em; /* 保持一致 */
    font-weight: 400;
  }

  .notice-title { font-size: 18px; }
  .notice-text  { font-size: 16px; }

  .btn {
    height: 62px;
    font-size: 19px;
  }

  .footer-text { font-size: 14px; }
}

/* ===== focus fallback ===== */
@supports not selector(:focus-visible) {
  .btn:focus {
    outline: none;
    box-shadow:
      0 0 0 3px rgba(59,130,246,.35),
      0 14px 30px rgba(15,23,42,.14);
  }
}
