:root {
  color-scheme: light;
  --rose-900: #68213a;
  --rose-700: #a13c61;
  --rose-500: #dc6f91;
  --rose-200: #ffd4df;
  --blush: #fff1f5;
  --petal: #ffe7ed;
  --cream: #fffaf2;
  --ink: #3e2430;
  --muted: #7d6570;
  --line: rgba(104, 33, 58, 0.16);
  --shadow: 0 24px 80px rgba(161, 60, 97, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 212, 223, 0.85), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(255, 244, 214, 0.9), transparent 24rem),
    linear-gradient(135deg, #fff7fa 0%, #fffaf2 52%, #ffeaf1 100%);
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell,
.admin-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.shell {
  padding: 38px 0 56px;
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 36px;
  padding: 36px 0 24px;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--rose-700);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1,
.admin-header h1,
.login-panel h1 {
  margin: 0;
  color: var(--rose-900);
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: 0.95;
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-weight: 700;
}

.subtitle {
  margin: 22px 0 0;
  color: var(--rose-700);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 700;
}

.promise {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-visual {
  position: relative;
  min-height: 430px;
}

.hero-visual img {
  width: 100%;
  height: 360px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-note {
  position: absolute;
  right: -10px;
  bottom: -18px;
  width: min(82%, 340px);
  min-height: 220px;
  padding: 42px 36px 34px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 246, 249, 0.94)),
    repeating-linear-gradient(180deg, transparent 0 35px, rgba(220, 111, 145, 0.12) 36px 37px);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.hero-note::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(161, 60, 97, 0.16);
  border-radius: 6px;
  pointer-events: none;
}

.hero-note p {
  position: relative;
  margin: 0 0 22px;
  color: var(--rose-900);
  font-size: 1.2rem;
  line-height: 2;
  overflow-wrap: anywhere;
}

.hero-note small {
  position: relative;
  display: block;
  margin-top: 34px;
  color: var(--rose-700);
  font-weight: 800;
  text-align: right;
}

.pin {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff91ac, #b53f67);
  box-shadow: 0 8px 18px rgba(181, 63, 103, 0.25);
}

.summary-grid,
.content-grid,
.editor-grid,
.results-grid {
  display: grid;
  gap: 18px;
}

.summary-grid {
  grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(180px, 0.65fr));
  align-items: stretch;
  margin-bottom: 18px;
}

.coconut-card,
.stat-card,
.panel,
.editor-panel,
.tool-panel,
.login-panel {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 54px rgba(161, 60, 97, 0.12);
  backdrop-filter: blur(14px);
}

.coconut-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.coconut-card h2,
.section-heading h2,
.editor-panel h2,
.panel h2 {
  margin: 0;
  color: var(--rose-900);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.tiny,
.muted {
  color: var(--muted);
  line-height: 1.7;
}

.tiny {
  margin: 8px 0 0;
  font-size: 0.86rem;
}

.progress-ring {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--rose-500) 0deg, var(--rose-200) 0deg);
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.78);
}

.progress-ring span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--rose-900);
  background: #fff;
  font-weight: 900;
}

.progress-track {
  grid-column: 1 / -1;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 212, 223, 0.8);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d44d78, #ff9ab5);
  transition: width 420ms ease;
}

.stat-card {
  display: grid;
  align-content: center;
  padding: 24px;
}

.stat-card span {
  color: var(--rose-900);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.stat-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.content-grid {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
}

.panel,
.editor-panel,
.tool-panel {
  padding: 24px;
}

.section-heading {
  margin-bottom: 18px;
}

.reward-list,
.timeline,
.admin-list {
  display: grid;
  gap: 12px;
}

.reward-item,
.timeline-item,
.admin-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 252, 0.82);
}

.reward-item,
.admin-item {
  padding: 16px;
}

.reward-top,
.admin-item-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: start;
}

.reward-item h3,
.timeline-item h3,
.admin-item h3 {
  margin: 0;
  color: var(--rose-900);
  font-size: 1.05rem;
}

.pill {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--rose-700);
  background: var(--petal);
  font-size: 0.76rem;
  font-weight: 800;
}

.mini-progress {
  height: 8px;
  margin: 14px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 212, 223, 0.82);
}

.mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d44d78, #ff9ab5);
}

.timeline {
  position: relative;
}

.timeline-item {
  position: relative;
  padding: 18px 18px 18px 24px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d44d78, #ffb1c5);
}

.timeline-item p {
  margin: 10px 0 0;
  color: var(--ink);
  line-height: 1.8;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.secret-heart {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(220, 111, 145, 0.38);
  box-shadow: 0 12px 30px rgba(161, 60, 97, 0.18);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.secret-heart:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(220, 111, 145, 0.68);
}

.admin-shell {
  padding: 36px 0 56px;
}

.login-panel {
  width: min(480px, 100%);
  margin: 12vh auto 0;
  padding: 32px;
}

.login-panel h1,
.admin-header h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.hidden {
  display: none !important;
}

.admin-workspace {
  display: grid;
  gap: 18px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.admin-actions,
.form-actions,
.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.stacked-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: var(--rose-700);
  font-size: 0.82rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  outline: none;
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
  line-height: 1.7;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(220, 111, 145, 0.72);
  box-shadow: 0 0 0 4px rgba(220, 111, 145, 0.14);
}

.primary-button,
.ghost-button,
.danger-button,
.small-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #c84672, #f28aa7);
  box-shadow: 0 14px 30px rgba(200, 70, 114, 0.22);
}

.ghost-button,
.small-button {
  color: var(--rose-700);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.danger-button {
  color: #a52445;
  border-color: rgba(165, 36, 69, 0.22);
  background: rgba(255, 232, 238, 0.88);
}

.small-button,
.danger-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.84rem;
}

.form-message {
  min-height: 1.4em;
  margin: 0;
  color: var(--rose-700);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px auto;
  gap: 12px;
  align-items: end;
}

.editor-grid,
.results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
}

@media (max-width: 860px) {
  .shell,
  .admin-shell {
    width: min(100% - 22px, 680px);
  }

  .shell {
    padding-top: 18px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 18px;
  }

  .hero-note {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(calc(100% - 24px), 420px);
    margin: -72px auto 0;
    min-height: 280px;
    transform: none;
  }

  .summary-grid,
  .content-grid,
  .editor-grid,
  .results-grid,
  .search-row {
    grid-template-columns: 1fr;
  }

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

  .progress-ring {
    justify-self: start;
  }

  .admin-header {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-note,
  .panel,
  .editor-panel,
  .tool-panel,
  .login-panel,
  .coconut-card,
  .stat-card {
    padding: 18px;
  }

  .hero-note p {
    font-size: 1rem;
    line-height: 1.85;
  }

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

  .reward-top,
  .admin-item-top {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }
}
