:root {
  --navy: #11243F;
  --navy-soft: #243954;
  --blue: #2864DC;
  --blue-deep: #1F55C2;
  --blue-soft: #eef4ff;
  --ink: #1b2430;
  --muted: #667487;
  --line: #e5e9ef;
  --line-strong: #d8dee8;
  --warm: #f7f7f5;
  --surface: #ffffff;
  --success: #25735a;
  --warning: #9d6b18;
  --danger: #a14a4a;
  --shadow-sm: 0 8px 24px rgba(20, 36, 58, 0.07);
  --shadow-lg: 0 24px 70px rgba(20, 36, 58, 0.10);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.hidden { display: none !important; }

.container { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.muted { color: var(--muted); }
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .04em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(229, 233, 239, .8);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand { display: inline-flex; align-items: flex-start; gap: 0; font-weight: 720; color: var(--navy); }
.brand-wordmark { flex-direction: column; line-height: 1.05; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: var(--navy);
  color: white;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.brand-name { font-size: 18px; letter-spacing: .01em; }
.brand-subtitle { margin-top: 5px; color: #7b8797; font-size: 10px; font-weight: 560; letter-spacing: .08em; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a { color: #465366; font-size: 14px; transition: color .18s ease; }
.main-nav a:hover { color: var(--blue-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 650;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: white; box-shadow: 0 8px 20px rgba(45,108,243,.19); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-secondary { background: white; color: var(--navy); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: #b8c4d4; box-shadow: var(--shadow-sm); }
.btn-quiet { min-height: 38px; padding: 0 14px; background: transparent; color: #465366; border-color: transparent; }
.btn-wide { width: 100%; }

.input, .textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  background: white;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input { height: 46px; padding: 0 14px; }
.textarea { min-height: 124px; padding: 14px 16px; resize: vertical; line-height: 1.7; }
.input:focus, .textarea:focus { border-color: #8aabfa; box-shadow: 0 0 0 4px rgba(45,108,243,.09); }
.field-label { display: block; margin: 0 0 8px; color: #39485d; font-size: 13px; font-weight: 650; }

.notice {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6f8fb;
  color: #647286;
  font-size: 12px;
  line-height: 1.65;
}
.error-box { background: #fff4f4; color: #9c4141; border: 1px solid #f0d1d1; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 27, 44, .40);
  backdrop-filter: blur(5px);
}
.modal {
  width: min(100%, 480px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 18px;
  background: white;
  box-shadow: 0 30px 90px rgba(16, 27, 44, .25);
}
.modal-head { padding: 24px 26px 10px; }
.modal-head h2 { margin: 0 0 8px; color: var(--navy); font-size: 23px; }
.modal-head p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }
.modal-body { padding: 16px 26px 26px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.form-stack { display: grid; gap: 14px; }
.check-row { display: flex; gap: 9px; align-items: flex-start; color: var(--muted); font-size: 12px; line-height: 1.55; }
.check-row input { margin-top: 3px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 150;
  transform: translateX(-50%) translateY(20px);
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--navy);
  color: white;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  transition: all .2s ease;
  font-size: 13px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #dce6ff;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 38px; color: #788496; font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .header-inner { min-height: 64px; }
  .main-nav { display: none; }
  .brand-name { font-size: 17px; }
  .modal-actions { flex-direction: column-reverse; }
}
