/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  min-height: 100vh;
  color: #ffffff;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* 头部样式 */
.header {
  text-align: center;
  color: white;
  margin-bottom: 20px;
}

.header h1 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.header h1 i {
  margin-right: 15px;
  color: #ffffff;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.7;
  font-weight: 300;
  letter-spacing: 1px;
}

/* 日期设置区域 */
.exam-date-section {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.exam-date-section label {
  font-weight: 400;
  color: #ffffff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exam-date-section label i {
  color: #ffffff;
}

#examDate {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

#examDate:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* 倒计时容器 */
.countdown-container {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.time-unit {
  text-align: center;
  min-width: 80px;
}

.time-unit .number {
  display: block;
  font-size: 3.5rem;
  font-weight: 200;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1;
}

.time-unit .label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.separator {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 100;
  margin: 0 10px;
}

/* 进度条区域 */
.progress-section {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

.progress-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 1px;
  transition: width 1s ease;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.8) 50%,
    transparent 100%
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* 励志语录区域 */
.motivational-section {
  margin: 20px 0;
}

.quote-box {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
}

.quote-box i {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  margin-bottom: 15px;
  opacity: 0.7;
}

.quote-box p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  line-height: 1.8;
  font-weight: 300;
}

/* 统计卡片区域 */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.stat-card i {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
}

.stat-card h3 {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
  font-weight: 300;
  letter-spacing: 1px;
}

.stat-card p {
  font-size: 1.8rem;
  font-weight: 200;
  color: #ffffff;
}

/* 页脚 */
.footer {
  margin-top: auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  padding: 20px 0;
  font-weight: 300;
  letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 15px;
    gap: 20px;
  }

  .header h1 {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .exam-date-section {
    flex-direction: column;
    text-align: center;
  }

  .countdown-box {
    padding: 25px 15px;
    gap: 15px;
  }

  .time-unit .number {
    font-size: 2.5rem;
  }

  .separator {
    display: none;
  }

  .stats-section {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .quote-box {
    padding: 20px;
  }

  .quote-box p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .countdown-box {
    flex-direction: column;
    gap: 20px;
  }

  .time-unit {
    min-width: auto;
  }

  .time-unit .number {
    font-size: 2rem;
  }

  .progress-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container > * {
  animation: fadeInUp 0.8s ease forwards;
}

.container > *:nth-child(1) {
  animation-delay: 0.1s;
}
.container > *:nth-child(2) {
  animation-delay: 0.2s;
}
.container > *:nth-child(3) {
  animation-delay: 0.3s;
}
.container > *:nth-child(4) {
  animation-delay: 0.4s;
}
.container > *:nth-child(5) {
  animation-delay: 0.5s;
}
.container > *:nth-child(6) {
  animation-delay: 0.6s;
}
