/* 基准字体大小 */
html {
  font-size: 16px; /* PC 默认 */
}

/* 移动端（屏幕宽度 ≤ 768px） */
@media screen and (max-width: 768px) {
  html {
    font-size: 14px; /* 移动端稍小 */
  }
}

/* PC 端（屏幕宽度 ≥ 1024px） */
@media screen and (min-width: 1024px) {
  html {
    font-size: 18px; /* PC 放大 */
  }
  .main {
    /* max-width: 1200px; 限制最大宽度 */
    margin: 0 auto; /* 居中 */
  }
}

body {
  position: relative;
  margin: 0 auto;
  background: #fefeff;
}

body::-webkit-scrollbar {
  width: 0px;
  height: 0;
}

.main {
  position: relative;
  width: 100%;
  max-width: 750px;
  height: 100vh;
  font-size: 0.875rem; /* 14px / 16px */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.main .logo {
  margin-bottom: 3.5rem; /* 56px / 16px */
}
.main .btn {
  display: block;
  width: 127px; /* 适配屏幕宽度，约 266px 在 375px 屏幕上 */
  max-width: 254px; /* 266px / 16px，限制最大宽度 */
  height: 45px; /* 适配屏幕，约 54px 在 375px 屏幕上 */
  max-height: 3.375rem; /* 54px / 16px */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 1.5rem; /* 24px / 16px */
  cursor: pointer;
}

/* 调整 logo 的内联样式 */
.logo {
  width: 50vw; /* 适配屏幕，约 200px 在 375px 屏幕上 */
  max-width: 12.5rem; /* 200px / 16px */
  height: auto; /* 保持比例 */
}

/* Document
 * ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

:where(html) {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  text-size-adjust: 100%; /* 2 */
}

/* Sections
 * ========================================================================== */

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Edge, Firefox, and Safari.
 */

:where(h1) {
  font-size: 2em;
  margin-block-end: 0.67em;
  margin-block-start: 0.67em;
}

/* Grouping content
 * ========================================================================== */

/**
 * Remove the margin on nested lists in Chrome, Edge, and Safari.
 */

:where(dl, ol, ul) :where(dl, ol, ul) {
  margin-block-end: 0;
  margin-block-start: 0;
}

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Correct the inheritance of border color in Firefox.
 */

:where(hr) {
  box-sizing: content-box; /* 1 */
  color: inherit; /* 2 */
  height: 0; /* 1 */
}

/**
 * 圆形进度条
 */
.progress-circle {
  position: relative;
  width: 160px;
  height: 160px;
}

.progress-circle svg {
  transform: rotate(-90deg);
}

.progress-circle circle {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
}

.bg {
  stroke: #ddd;
}

.progress {
  stroke: #007bff;
  stroke-dasharray: 440;
  stroke-dashoffset: 435;
  animation: progressAnim 2s linear forwards;
}

@keyframes progressAnim {
  from {
    stroke-dashoffset: 435;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.6em;
  font-weight: bold;
  color: #333;
  font-family: sans-serif;
}
#main-content,
#app {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.footer-tip {
  position: fixed;
  bottom: 10px;
  left: 0;
  right: 0;
  padding: 0 10px;
  text-align: center;
  font-size: clamp(6px, 2.5vw, 13px);
  color: #666;
  line-height: 1.6;
  word-break: break-word;
  z-index: 99;
  background-color: transparent;
}
#container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 两列等宽 */
  gap: 16px; /* 可选：列间距 */
}
