/* ===== BaZi Ink · 水墨立绘 ===== */
:root {
  --paper: #f4efe3;
  --paper-dark: #e9e2d0;
  --ink: #23252b;
  --ink-soft: #4a4d57;
  --seal: #b3372f;
  --gold: #8a6d3b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #191b1f;
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', 'Songti SC', serif;
  min-height: 100vh;
}

.page { max-width: 1200px; margin: 0 auto; padding: 36px 24px 60px; }

/* ===== 头部 ===== */
.hero { text-align: center; color: var(--paper); margin-bottom: 36px; }
.hero-seal {
  display: inline-block;
  width: 64px; height: 64px;
  background: var(--seal);
  color: #fdf6e3;
  font-size: 30px;
  font-family: KaiTi, STKaiti, 'Kaiti SC', serif;
  line-height: 64px;
  border-radius: 10px;
  transform: rotate(-4deg);
  box-shadow: 0 4px 18px rgba(179,55,47,.4);
  margin-bottom: 14px;
}
.hero h1 { font-size: 42px; letter-spacing: 6px; font-weight: normal; }
.hero .tagline { margin-top: 10px; color: #b9bdc7; font-style: italic; }
.hero .zh { font-family: KaiTi, STKaiti, serif; font-style: normal; color: #d8cba8; }

/* ===== 布局 ===== */
.layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }

.panel {
  background: var(--paper);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
}

.form-panel h2 { font-weight: normal; letter-spacing: 2px; margin-bottom: 20px; color: var(--ink); }

/* ===== 表单 ===== */
.field { display: block; margin-bottom: 18px; border: none; }
.field > span { display: block; font-size: 13px; letter-spacing: 1px; color: var(--ink-soft); margin-bottom: 6px; }
.field > span em { opacity: .7; font-style: italic; }

.field input, .field select {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fffdf7;
  border: 1px solid #cfc7ae;
  border-radius: 8px;
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--gold); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ===== 职业网格 ===== */
.arch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.arch {
  border: 1.5px solid #cfc7ae;
  border-radius: 10px;
  background: #fffdf7;
  padding: 10px 4px 8px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.arch:hover { border-color: var(--gold); transform: translateY(-2px); }
.arch.active { border-color: var(--seal); background: #fdf3ec; box-shadow: 0 3px 10px rgba(179,55,47,.18); }
.arch .glyph { font-family: KaiTi, STKaiti, serif; font-size: 26px; display: block; }
.arch .en { font-size: 10.5px; letter-spacing: .5px; color: var(--ink-soft); display: block; margin-top: 4px; }
.arch .wp { font-size: 10px; color: var(--gold); display: block; margin-top: 2px; font-style: italic; }

/* ===== 按钮 ===== */
.btn-cast {
  width: 100%;
  padding: 14px;
  font-size: 17px;
  font-family: inherit;
  letter-spacing: 1px;
  color: #fdf6e3;
  background: var(--ink);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
}
.btn-cast:hover { background: var(--seal); }

.privacy { margin-top: 14px; font-size: 12px; color: #7d818c; text-align: center; }

/* ===== 立绘区 ===== */
.card-panel { text-align: center; }
#card {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 30px rgba(0,0,0,.35);
  background: var(--paper);
}
.card-actions { margin-top: 16px; display: flex; gap: 12px; justify-content: center; }
.btn-ghost {
  padding: 10px 20px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink-soft);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}
.btn-ghost:hover { border-color: var(--seal); color: var(--seal); }
.btn-share { border-color: var(--seal); color: var(--seal); }
.btn-share:hover { background: var(--seal); color: #fdf6e3; }

/* ===== 邮箱捕获面板 ===== */
.unlock {
  margin-top: 22px;
  padding: 20px 18px;
  background: #fffdf7;
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  text-align: center;
  animation: unlockIn .5s ease;
}
@keyframes unlockIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.unlock-seal { font-size: 26px; }
.unlock h3 { font-weight: normal; letter-spacing: 1.5px; margin: 6px 0 8px; color: var(--ink); }
.unlock-sub { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 14px; }
.unlock-form input {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  border: 1px solid #cfc7ae;
  border-radius: 8px;
  margin-bottom: 10px;
  outline: none;
}
.unlock-form input:focus { border-color: var(--gold); }
.unlock-btn { font-size: 14.5px; padding: 11px; }
.unlock-btn:disabled { opacity: .6; cursor: wait; }
.unlock-note { margin-top: 10px; font-size: 11.5px; color: #7d818c; }

.foot { text-align: center; margin-top: 40px; color: #777c88; font-size: 12px; letter-spacing: 1px; }
