:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.88);
  --panel-border: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #22c55e;
  --accent-2: #38bdf8;
  --danger: #ef4444;
  --shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.16), transparent 24%),
    var(--bg);
  color: var(--text);
}

.app {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.hero, .quote-card, .card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  padding: 20px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 16px;
}

.eyebrow, .label, .tag, .record-time {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

h1 {
  margin: 6px 0 8px;
  font-size: clamp(28px, 6vw, 42px);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.quote-card {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.quote {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.card {
  padding: 18px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.card h2 {
  margin: 0;
  font-size: 20px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field span {
  font-size: 14px;
  color: var(--muted);
}

input, select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 14px;
  font-size: 16px;
  outline: none;
}

input:focus, select:focus {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.primary-btn, .ghost-btn, .delete-btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 15px;
  cursor: pointer;
}

.primary-btn {
  width: 100%;
  color: #052e16;
  background: linear-gradient(135deg, #86efac, #22c55e);
  font-weight: 700;
}

.ghost-btn {
  color: var(--text);
  background: rgba(148, 163, 184, 0.14);
}

.ghost-btn.small {
  padding: 10px 12px;
}

.ghost-btn.danger, .delete-btn {
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
}

.summary {
  display: grid;
  gap: 10px;
  color: var(--text);
  line-height: 1.65;
}

.summary strong {
  color: #dbeafe;
}

.records {
  display: grid;
  gap: 12px;
}

.record {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  padding: 14px;
  background: rgba(2, 6, 23, 0.28);
}

.record-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.record-type {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.record-text {
  margin: 10px 0 0;
  color: #dbeafe;
  line-height: 1.6;
}

.record-image {
  display: none;
  width: 100%;
  margin-top: 12px;
  border-radius: 14px;
  max-height: 260px;
  object-fit: cover;
}

@media (max-width: 760px) {
  .hero, .quote-card, .card {
    border-radius: 18px;
  }

  .hero, .quote-card {
    flex-direction: column;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card-head {
    align-items: start;
    flex-direction: column;
  }
}
