* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
  display: flex;
  flex-direction: column;
}

.container * {
  box-sizing: border-box;
}

/* 头部样式 */
header {
  position: relative;
  margin-bottom: 20px;
  text-align: center;
}

header h1 {
  font-size: 32px;
  margin-bottom: 5px;
}

header p{
  font-size: 16px;
  line-height: 1.6;
}

.test-area {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.test-info {
  background: #f8f9fa;
  border-left: 4px solid #4e54c8;
  padding: 20px;
  border-radius: 0 10px 10px 0;
  margin-top: 25px;
}

.test-info h2 {
  color: #4e54c8;
  margin-bottom: 10px;
  font-size: 18px;
}

.test-info p {
  line-height: 1.5;
  margin-top: 15px;
}

.image-container {
  text-align: center;
  margin-bottom: 25px;
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.test-image {
  max-width: 90%;
  max-height: 500px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.test-image:hover {
  transform: scale(1.02);
}

.controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.btn {
  padding: 14px 35px;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(to right, #4e54c8, #8f94fb);
  color: white;
  box-shadow: 0 5px 15px rgba(78, 84, 200, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(to right, #3a40b5, #7a80f2);
  box-shadow: 0 7px 20px rgba(78, 84, 200, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid #4e54c8;
  color: #4e54c8;
}

.btn-outline:hover {
  background: rgba(78, 84, 200, 0.1);
  transform: translateY(-2px);
}

.answer-container {
  background: #e3f2fd;
  border-radius: 10px;
  padding: 20px;
  margin-top: 30px;
  text-align: center;
  display: none;
}

.answer-container.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.answer-title {
  color: #1e88e5;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.answer-content {
  font-size: 1.8rem;
  font-weight: bold;
  color: #0d47a1;
}

.progress-container {
  text-align: center;
  margin-top: 30px;
}

.progress-text {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #555;
}

.progress-bar {
  height: 12px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #4e54c8, #8f94fb);
  border-radius: 10px;
  width: 4.3%; /* 1/23 */
}

footer {
  text-align: center;
  font-size: 15px;
  opacity: 0.85;
}

.test-types {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 25px;
}

.type-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  flex: 1;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.type-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.type-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.red-green .type-icon { color: #e53935; }
.blue-yellow .type-icon { color: #1e88e5; }

.type-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #333;
}

.type-desc {
  color: #666;
  line-height: 1.6;
}

.note {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 20px;
  border-radius: 0 10px 10px 0;
  margin-top: 25px;
}

.note h3 {
  color: #ff9800;
  margin-bottom: 10px;
}

.note p {
  line-height: 1.7;
}
