﻿:root {
  --bg-start: #f8f4eb;
  --bg-end: #dfe9f6;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-border: #cbd7e7;
  --text: #1f2e43;
  --muted: #5e6f84;
  --accent: #ff6a3d;
  --accent-strong: #e44d22;
  --success: #0b8f6b;
  --shadow: 0 20px 48px rgba(54, 73, 101, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  background: linear-gradient(145deg, var(--bg-start), var(--bg-end));
  overflow-x: hidden;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(31, 46, 67, 0.06) 0.6px, transparent 0.6px);
  background-size: 14px 14px;
  z-index: -3;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.36;
  pointer-events: none;
  z-index: -2;
}

.orb-a {
  width: 42vw;
  height: 42vw;
  min-width: 220px;
  min-height: 220px;
  top: -8vw;
  left: -10vw;
  background: #ffab7a;
}

.orb-b {
  width: 30vw;
  height: 30vw;
  min-width: 180px;
  min-height: 180px;
  right: -8vw;
  bottom: -8vw;
  background: #80d7c3;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 42px 20px 30px;
}

.header {
  margin-bottom: 22px;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #7f2d13;
  background: #ffd6c7;
}

.header h1 {
  margin: 10px 0 6px;
  font-size: 34px;
  letter-spacing: -0.02em;
}

.header p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

select,
input[type="text"] {
  width: 100%;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select:focus,
input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.18);
}

.input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.status {
  color: var(--success);
  font-weight: 700;
  font-size: 13px;
}

.btn {
  appearance: none;
  border-radius: 12px;
  border: none;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 10px 22px rgba(228, 77, 34, 0.24);
}

.btn.ghost {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--panel-border);
}

.footer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 11px 14px;
  border-radius: 11px;
  background: #22334b;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 31, 46, 0.55);
}

.modal-panel {
  position: relative;
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.modal-actions {
  display: grid;
  gap: 10px;
}

.modal-actions .btn {
  width: 100%;
}

@media (max-width: 700px) {
  .container {
    padding: 30px 14px 20px;
  }

  .header h1 {
    font-size: 26px;
  }

  .input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .input-row .btn {
    width: 100%;
  }

  .actions {
    align-items: stretch;
  }
}
