﻿:root {
  --bg-start: #eaf2ff;
  --bg-end: #f7fbff;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #dbe3f0;
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #f1f5f9;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #16a34a;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-start), var(--bg-end));
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  background: #1e3a8a;
  color: #ffffff;
  padding: 16px 24px;
}

header .title {
  font-size: 20px;
  font-weight: 700;
}

header .nav {
  margin-top: 6px;
  font-size: 14px;
  color: #c7d2fe;
}

main {
  max-width: 1100px;
  margin: 28px auto 40px;
  padding: 0 20px;
}

.page-center {
  min-height: calc(100vh - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(219, 227, 240, 0.6);
  padding: 28px;
}

.card + .card {
  margin-top: 16px;
}

.button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  gap: 8px;
  line-height: 1;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:active {
  transform: scale(0.98);
}

.button.primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  background: var(--secondary);
  color: var(--text);
  border: 1px solid var(--border);
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.button.is-disabled,
.button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.button.block {
  width: 100%;
}

input[type="text"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font);
  background: #ffffff;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.2);
  border-color: var(--primary);
}

.label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.helper {
  font-size: 12px;
  color: var(--muted);
}

.notice {
  border-radius: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--muted);
  margin-bottom: 16px;
}

.notice.error {
  border-color: rgba(239, 68, 68, 0.4);
  background: #fee2e2;
  color: #b91c1c;
}

.notice.warning {
  border-color: rgba(245, 158, 11, 0.4);
  background: #fef3c7;
  color: #b45309;
}

.notice.success {
  border-color: rgba(22, 163, 74, 0.35);
  background: #dcfce7;
  color: #166534;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  right: 24px;
  top: 24px;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  border-radius: 14px;
  font-size: 14px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast[data-type="success"] {
  background: rgba(22, 163, 74, 0.95);
}

.toast[data-type="warning"] {
  background: rgba(245, 158, 11, 0.95);
  color: #1f2937;
}

.toast[data-type="error"] {
  background: rgba(239, 68, 68, 0.95);
}

@media (max-width: 720px) {
  header {
    padding: 16px;
  }

  main {
    padding: 0 16px;
  }

  .toast {
    right: 16px;
    left: 16px;
    text-align: center;
  }
}
