* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: #2f3240;
  background: #ffffff;
}

/* ================= 主界面 ================= */
.hero {
  position: relative;
  min-height: 720px;
  text-align: center;
  padding-top: 80px;
  overflow: hidden;
  background: #ffffff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -200px;
  background:
    repeating-linear-gradient(
      120deg,
      #ffffff 0px,
      #ffffff 90px,
      #004cff 90px,
      #004cff 180px,
      #ffdd00 180px,
      #ffdd00 270px
    );
  animation: stripeFlow 10s linear infinite;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

@keyframes stripeFlow {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 200px 0;
  }
}




/* 标题 */

h1 {
  font-size: 42px;
  font-weight: 800;
  color: #2b2d38;
}

.hero h2 {
  font-size: 26px;
  color: #333744;
  margin-top: 6px;
}

.subtitle {
  margin-top: 12px;
  color: #7b8196;
  font-size: 18px;
}

/* ================= 卡片 ================= */

.cards {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}


.card {
  position: relative;
  width: 240px;
  height: 300px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(80, 96, 140, 0.12);
  padding: 36px 24px;
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.card.active {
  border: 4px solid #6b79ff;
}

.card {
  cursor: pointer;
}

.card:active {
  transform: scale(0.97);
}


/* icon */
.icon {
  margin-bottom: 20px;
}

.icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* 文字 */
.card h3 {
  font-size: 30px;
  color: #2d3142;
}

.card p {
  margin-top: 6px;
  font-size: 18px;
  color: #4a4e68;
}

.card span {
  display: block;
  margin-top: 40px;
  font-size: 14px;
  color: #9aa0c2;
  line-height: 1.5;
}

/* 隐藏推荐标签（因为只剩一个） */
.badge {
  display: none;
}

/* ================= 提示文字 ================= */

.question-line {
  margin-top: 46px;
  font-size: 22px;
  color: #252938;
}

.question-line b {
  color: #6b63ff;
}


/* ================= 底部山丘 ================= */

.mountains {
  display: none;
}

/* ================= 测试须知 ================= */

.notice {
  text-align: center;
  padding: 40px 20px 70px;
  background: white;
}

.notice h2 {
  font-size: 30px;
  margin-bottom: 30px;
}

.notice p {
  max-width: 760px;
  margin: 12px auto;
  text-align: left;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}


table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 28px;
  background: #ffffff;
}

th, td {
  border: 1px solid #dcdcdc;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

th {
  background: #f5f7fb;
  font-weight: 700;
}

tr:nth-child(even) {
  background: #fafafa;
}

h2, h3, h4 {
  margin-top: 32px;
  margin-bottom: 16px;
}

p {
  line-height: 1.7;
}


/* ================= 移动端 ================= */

@media (max-width: 768px) {

  h1 {
    font-size: 32px;
  }

  .hero h2 {
    font-size: 20px;
  }

  .card {
    width: 80%;
    height: auto;
    min-height: 240px;
  }


}


/* ================= 答题页面 ================= */

.quiz-page {
  position: relative;
  min-height: 100vh;
  padding: 70px 20px;
  overflow: hidden;

  background:
    repeating-linear-gradient(
      120deg,
      #ffffff 0px,
      #ffffff 90px,
      #004cff 90px,
      #004cff 180px,
      #ffdd00 180px,
      #ffdd00 270px
    );

  animation: stripeFlow 18s linear infinite;
}

.quiz-container {
  max-width: 780px;
  margin: 0 auto;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 700;
  color: #2b2d38;
}

.back-link {
  text-decoration: none;
  color: #2b2d38;
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 14px;
  border-radius: 999px;
}

#progressText {
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 14px;
  border-radius: 999px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

#progressFill {
  height: 100%;
  width: 0%;
  background: #004cff;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.score-board {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.score-board span {
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #2b2d38;
}

.score-board b {
  color: #004cff;
}

.question-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 48px 42px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
  text-align: center;
}

.question-card h1 {
  font-size: 30px;
  line-height: 1.45;
  margin-bottom: 40px;
  color: #2b2d38;
}

.options {
  display: grid;
  gap: 18px;
}

.option-btn {
  width: 100%;
  border: 3px solid #004cff;
  background: #ffffff;
  color: #2b2d38;
  border-radius: 18px;
  padding: 18px 22px;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.option-btn:hover {
  background: #004cff;
  color: #ffffff;
  transform: translateY(-3px);
}

.result-text {
  font-size: 22px;
  line-height: 1.8;
  color: #4a4e68;
  margin-bottom: 26px;
}

.final-score {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.final-score p {
  background: #f1f4ff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: #004cff;
}

.restart-btn {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .quiz-page {
    padding: 40px 16px;
  }

  .quiz-header {
    font-size: 14px;
  }

  .question-card {
    padding: 34px 22px;
  }

  .question-card h1 {
    font-size: 24px;
  }

  .option-btn {
    font-size: 16px;
    padding: 16px 18px;
  }

  .score-board {
    gap: 8px;
  }

  .score-board span {
    font-size: 13px;
  }
}

.result-bars {
  margin: 34px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-bar-item {
  text-align: left;
}

.result-bar-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #2b2d38;
}

.result-bar-title strong {
  color: #004cff;
}

.result-bar-track {
  width: 100%;
  height: 18px;
  background: #e8edff;
  border-radius: 999px;
  overflow: hidden;
}

.result-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #004cff, #ffdd00);
  border-radius: 999px;
}
