/* 活动倒计时计算器 - Material 3 橙色系风格 */

html, body, main, header, footer {
  padding: 0px;
  margin: 0px;
}

body {
  font-family: 'Roboto', 'Noto Sans SC', sans-serif;
  background-color: #fafafa;
  color: #333;
}

header {
  background-color: #e65100;
  padding: 16px;
  text-align: center;
}

main {
  padding: 24px;
  min-height: calc(100vh - 200px);
}

#app {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  min-height: 400px;
}

.setup-panel {
  width: 100%;
  max-width: 500px;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  margin-bottom: 8px;
}

.text-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  color: #333;
  background-color: #fafafa;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.text-input:focus {
  border-color: #e65100;
  background-color: #ffffff;
}

.button-group {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-primary {
  flex: 1;
  background-color: #e65100;
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background-color: #bf360c;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  flex: 1;
  background-color: transparent;
  color: #e65100;
  border: 2px solid #e65100;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
  background-color: #fff3e0;
}

.countdown-display {
  width: 100%;
  max-width: 700px;
  position: relative;
}

.expired-notice {
  display: none;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  background-color: #d32f2f;
  border-radius: 12px;
  animation: fadeIn 0.5s ease;
}

.expired-notice span {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
}

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

.countdown-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.countdown-cards.expired .countdown-card {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
}

.countdown-card {
  background: linear-gradient(135deg, #ff9800, #e65100);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(230, 81, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-card:hover {
  box-shadow: 0 6px 20px rgba(230, 81, 0, 0.45);
}

.countdown-value {
  display: block;
  font-size: 52px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
}

.pulse-animation {
  animation: pulse 0.3s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.countdown-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

section {
  margin: 24px 0;
  padding: 24px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

section h2 {
  color: #e65100;
  margin-bottom: 16px;
  font-size: 24px;
}

section p {
  line-height: 1.6;
  color: #555;
}

section ul {
  list-style-type: disc;
  padding-left: 24px;
}

section li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: #555;
}

section dl {
  margin-top: 16px;
}

section dt {
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

section dd {
  margin-left: 24px;
  margin-bottom: 16px;
  line-height: 1.6;
  color: #555;
}

button {
  background-color: #e65100;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #bf360c;
}

footer {
  background-color: #e65100;
  color: #ffffff;
  text-align: center;
  padding: 16px;
}

footer a {
  color: #ffcc80;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* 平板端 */
@media (max-width: 768px) {
  .countdown-cards {
    gap: 12px;
  }

  .countdown-card {
    padding: 20px 12px;
  }

  .countdown-value {
    font-size: 40px;
  }

  .countdown-label {
    font-size: 13px;
  }

  .setup-panel {
    padding: 24px 20px;
  }

  section {
    padding: 16px;
    margin: 16px 0;
  }
}

/* 移动端 */
@media (max-width: 480px) {
  .countdown-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .countdown-card {
    padding: 16px 10px;
  }

  .countdown-value {
    font-size: 36px;
  }

  .countdown-label {
    font-size: 12px;
  }

  .setup-panel {
    padding: 20px 16px;
  }

  .button-group {
    flex-direction: column;
  }

  main {
    padding: 16px;
  }

  section {
    padding: 12px;
    margin: 12px 0;
  }

  section h2 {
    font-size: 20px;
  }
}
