:root {
  --bg-top: #ffd5e6;
  --bg-bottom: #ff8eb6;
  --card-bg: rgba(255, 249, 252, 0.82);
  --card-border: rgba(255, 255, 255, 0.55);
  --text-main: #6b2143;
  --text-soft: #9d5471;
  --accent: #ff4f8f;
  --accent-deep: #d6306f;
  --line: rgba(175, 61, 112, 0.24);
  --success: #a61a5f;
  --shadow: 0 24px 70px rgba(153, 41, 94, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", "STHeiti", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 35%),
    radial-gradient(circle at 85% 15%, rgba(255, 232, 241, 0.9), transparent 25%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
}

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.app-card {
  width: min(920px, 100%);
  padding: 32px;
  border: 1px solid var(--card-border);
  border-radius: 28px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 24px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.68), rgba(255, 220, 234, 0.78)),
    linear-gradient(120deg, rgba(255, 108, 167, 0.18), rgba(255, 255, 255, 0));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 120, 176, 0.18);
  filter: blur(2px);
}

.eyebrow,
.modal-tag {
  margin: 0 0 10px;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--accent-deep);
}

h1,
h2,
h3,
.field-label {
  font-family: "STZhongsong", "Microsoft YaHei", serif;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
}

.hero-copy,
.panel-heading p,
.modal-heading p,
small,
.status-message,
.modal-message,
.empty-state {
  color: var(--text-soft);
}

.hero-copy {
  max-width: 560px;
  margin: 14px 0 0;
  line-height: 1.7;
}

.hero-submit-block {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  max-width: 640px;
}

.panel {
  margin-top: 28px;
}

.panel-b {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(214, 48, 111, 0.08);
}

.panel-b .panel-heading h2,
.panel-b .table-head,
.panel-b .record-row {
  color: #625d61;
}

.panel-b .panel-heading p,
.panel-b .empty-state,
.panel-b .record-result {
  color: #7a7378;
}

.panel-heading h2 {
  margin: 0;
  font-size: 24px;
}

.panel-heading p {
  margin: 8px 0 0;
  line-height: 1.7;
}

.match-form,
.login-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-primary {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 233, 242, 0.9));
  border: 1px solid rgba(214, 48, 111, 0.14);
  box-shadow: 0 12px 24px rgba(214, 48, 111, 0.08);
  position: relative;
}

.field-primary .field-label {
  color: #842347;
  font-size: 17px;
}

.field-primary input {
  border-color: rgba(214, 48, 111, 0.32);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 16px rgba(214, 48, 111, 0.06);
}

.field-primary small {
  color: #a14c6d;
}

.field-secondary {
  gap: 8px;
  opacity: 0.72;
  margin-left: 18px;
  padding-left: 10px;
  border-left: 2px solid rgba(140, 132, 137, 0.12);
}

.field-secondary .field-label {
  color: #8a8287;
  letter-spacing: 0.01em;
}

.field-secondary input {
  color: #6f686d;
  border-color: rgba(140, 132, 137, 0.22);
  background: rgba(255, 255, 255, 0.6);
}

.field-secondary small {
  color: #9b9499;
}

.submit-block {
  display: grid;
  gap: 8px;
}

.field-label {
  font-size: 16px;
}

input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(200, 90, 139, 0.28);
  border-radius: 16px;
  font-size: 15px;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border: 1px solid rgba(200, 90, 139, 0.28);
  border-radius: 16px;
  font-size: 14px;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.86);
  resize: vertical;
  outline: none;
}

input:focus {
  border-color: rgba(214, 48, 111, 0.75);
  box-shadow: 0 0 0 4px rgba(255, 79, 143, 0.14);
  transform: translateY(-1px);
}

small {
  font-size: 12px;
}

.fairness-note {
  color: #b98500 !important;
  font-weight: 700;
}

.action-note {
  display: block;
  margin: 2px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  color: #c89a1f !important;
  background: rgba(255, 240, 196, 0.72);
  border: 1px solid rgba(212, 180, 88, 0.26);
  font-weight: 600;
  line-height: 1.6;
}

.submit-note {
  color: #9d5471;
  line-height: 1.6;
}


.submit-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.submit-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff8fb;
  box-shadow: 0 14px 28px rgba(214, 48, 111, 0.24);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.86);
  color: var(--text-main);
}

.submit-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.divider {
  margin: 30px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.table-head,
.record-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.table-head {
  margin-top: 18px;
  padding: 0 14px 10px;
  color: var(--accent-deep);
  font-size: 13px;
}

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

.record-row,
.empty-state {
  padding: 16px 14px;
  border: 1px solid rgba(214, 48, 111, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
}

.record-result {
  color: var(--success);
  line-height: 1.5;
}

.status-message,
.modal-message {
  min-height: 24px;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 20;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(90, 18, 49, 0.38);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: min(440px, calc(100% - 24px));
  padding: 24px;
  border-radius: 24px;
  background: #fff8fb;
  box-shadow: var(--shadow);
}

.modal-heading h3 {
  margin: 0;
  font-size: 26px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 6px;
}

.share-textarea {
  line-height: 1.6;
}

.modal-message.share-success {
  color: #b17c00 !important;
  font-weight: 700;
  background: rgba(255, 239, 187, 0.78);
  border: 1px solid rgba(177, 124, 0, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
}

@media (max-width: 720px) {
  .app-card {
    padding: 20px;
    border-radius: 24px;
  }

  .hero,
  .modal-card {
    padding: 20px;
  }

  .field-secondary {
    margin-left: 10px;
  }

  .action-note {
    color: #c89a1f !important;
    background: rgba(255, 240, 196, 0.82);
  }

  .table-head {
    display: none;
  }

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