:root {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background-color: #f6f8fb;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.app {
  min-height: 100vh;
  padding: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.app__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.app__sub-title {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 0.3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app__tag {
  font-size: 0.85rem;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.app__date-text {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  color: #475569;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.controls label {
  font-weight: 600;
  color: #475569;
}

.controls input[type="date"] {
  appearance: none;
  border: 1px solid #cbd5f5;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: #fff;
}

.toggle-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.chip {
  border: 1px solid #94a3b8;
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.chip--off {
  background: #e2e8f0;
  color: #475569;
  border-color: transparent;
}

.promo-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #dbeafe, #fef9c3);
  border: 1px solid #93c5fd;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.promo-banner__content {
  flex: 1;
}

.promo-banner__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.promo-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.promo-banner__cta {
  background: #2563eb;
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.promo-banner__hint {
  color: #475569;
  font-size: 0.9rem;
}

.promo-banner__footer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.6rem;
}

.promo-banner__media img {
  width: 80px;
  height: 80px;
  border-radius: 0.75rem;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.promo-banner__close {
  position: absolute;
  top: 0.3rem;
  right: 0.5rem;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  color: #0f172a;
  cursor: pointer;
  line-height: 1;
}

.review-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.card__stage {
  background: #2563eb;
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.card__meta {
  font-size: 0.9rem;
  color: #475569;
}

.word-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.word-list li {
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 0.6rem;
}

.word-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.word-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  gap: 0.5rem;
}

.word-line__text {
  display: flex;
  flex-direction: column;
}

.word-line__word {
  color: #1d4ed8;
}

.speak-btn {
  border: none;
  background: #f1f5f9;
  color: #0f172a;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.speak-btn:hover {
  background: #e2e8f0;
}

.translation {
  font-size: 0.95rem;
  color: #475569;
  margin-top: 0.2rem;
}

.empty {
  text-align: center;
  color: #94a3b8;
  padding: 2rem 1rem;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .app {
    padding: 1rem;
  }

  .card {
    padding: 0.9rem;
  }

  .promo-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .promo-banner__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .promo-banner__media img {
    width: 120px;
    height: 120px;
  }
}
