/* ==========================================================================
   售楼处报名 - 移动端样式（亮色 · 轻奢版）
   ========================================================================== */
:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --primary: #2b5bd7;
  --primary-deep: #1d3f9e;
  --primary-soft: #eef3ff;
  --gold: #b8924e;
  --gold-soft: #faf5ea;
  --text: #1c2540;
  --muted: #7a849c;
  --line: #e7ecf5;
  --radius: 18px;
  --shadow: 0 8px 28px rgba(29, 63, 158, .07);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 420px at 50% -120px, #e4ecff 0%, rgba(228, 236, 255, 0) 62%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 480px; margin: 0 auto; padding: 18px 16px 56px; }

/* ---------- 头图 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 34px 22px 28px;
  border-radius: 22px;
  margin-bottom: 16px;
  background: linear-gradient(160deg, #ffffff 0%, #f2f6ff 58%, #e9f0ff 100%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow);
}
.hero-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid #ecdfc3;
  border-radius: 999px;
  padding: 4px 14px 4px 18px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  line-height: 1.4;
}
.hero h1::after {
  content: "";
  display: block;
  width: 34px; height: 3px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), #e5c98f);
}
.hero-meta { margin-top: 12px; font-size: 13px; color: var(--muted); letter-spacing: .5px; }
.hero-deco { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-deco.d1 { width: 150px; height: 150px; right: -50px; top: -60px; background: radial-gradient(circle, rgba(43,91,215,.10), rgba(43,91,215,0) 70%); }
.hero-deco.d2 { width: 110px; height: 110px; left: -40px; bottom: -50px; background: radial-gradient(circle, rgba(184,146,78,.12), rgba(184,146,78,0) 70%); }
.hero-deco.d3 { width: 8px; height: 8px; left: 26px; top: 34px; background: #d9c193; opacity: .7; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(231, 236, 245, .9);
  box-shadow: var(--shadow);
}

/* ---------- 报名时段锁定提示（未开始 / 已截止 / 名额已满） ---------- */
.lock-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 26px 20px 22px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, #fff8ec 0%, #fdf3e0 100%);
  border: 1px solid #f0dfbf;
  box-shadow: 0 8px 26px rgba(184, 146, 78, .12);
}
.lock-card.is-ended,
.lock-card.is-full {
  background: linear-gradient(165deg, #f6f8fd 0%, #eef2fa 100%);
  border-color: #dde5f3;
  box-shadow: 0 8px 26px rgba(29, 63, 158, .09);
}
.lock-card::before {
  content: "";
  position: absolute;
  width: 160px; height: 160px;
  right: -60px; top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 146, 78, .16), rgba(184, 146, 78, 0) 70%);
  pointer-events: none;
}
.lock-card.is-ended::before,
.lock-card.is-full::before {
  background: radial-gradient(circle, rgba(43, 91, 215, .12), rgba(43, 91, 215, 0) 70%);
}
.lock-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: var(--gold);
  background: #fff;
  border: 1px solid #f0dfbf;
  box-shadow: 0 4px 14px rgba(184, 146, 78, .16);
}
.lock-card.is-ended .lock-ico,
.lock-card.is-full .lock-ico {
  color: var(--primary);
  border-color: #dde5f3;
  box-shadow: 0 4px 14px rgba(29, 63, 158, .12);
}
.lock-ico svg { width: 24px; height: 24px; }
.lock-card h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--text);
  margin-bottom: 8px;
}
.lock-msg {
  font-size: 15px;
  line-height: 1.7;
  font-weight: 600;
  color: #8a6a24;
  word-break: break-all;
}
.lock-card.is-ended .lock-msg,
.lock-card.is-full .lock-msg { color: var(--primary-deep); }
.lock-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(184, 146, 78, .3);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .3px;
}
.lock-card.is-ended .lock-meta,
.lock-card.is-full .lock-meta { border-top-color: rgba(43, 91, 215, .18); }
.lock-note {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  background: rgba(255, 255, 255, .7);
  border-radius: 10px;
  padding: 8px 12px;
}
.my-note.lock-line { color: var(--primary-deep); font-weight: 600; }

.sec-title {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: .5px;
}
.sec-title::before {
  content: "";
  width: 4px; height: 15px;
  border-radius: 2px;
  margin-right: 9px;
  background: linear-gradient(180deg, var(--primary), #6f92f2);
}

.text { color: #4d5a75; font-size: 14px; line-height: 1.9; text-align: justify; }

/* 时间 / 地址 双栏 */
.info-duo { display: flex; gap: 12px; }
.info-duo .info-item {
  flex: 1;
  background: #f8faff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.info-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 7px;
}
.info-duo .text { font-size: 13px; line-height: 1.8; }

/* ---------- form-create 表单区域：竖排 + 输入边框 ----------
 * form-create 的字段是双层嵌套 van-cell：
 *   外层 .van-cell.fc-form-item（标题 + 值容器）→ 内层 .van-cell（真正的 input）
 * 边框只画在外层，内层必须完全重置，否则会出现双层框、标签被顶出框外。
 * 另外 form-create 默认 label-right / control--right，这里统一改回左对齐。 */
#form-box .van-cell.fc-form-item {
  display: block;
  background: #f8faff;
  border: 1px solid #e2e9f6;
  border-radius: 13px;
  padding: 12px 14px;
  margin-bottom: 12px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
#form-box .van-cell.fc-form-item:focus-within {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 91, 215, .10);
}
#form-box .van-cell::after { display: none; }

/* 内层嵌套 cell：去边框去背景，只留输入本身 */
#form-box .van-field__body .van-cell {
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

/* 标签：块级、左对齐 */
#form-box .van-cell__title {
  display: block;
  width: auto !important;
  flex: none;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #3c4964;
  line-height: 1.4;
  text-align: left;
}
#form-box .van-field__label { width: auto !important; }
#form-box .van-field__label--right { text-align: left; }
#form-box .fc-form-title { font-size: 13px; font-weight: 600; color: #3c4964; }

/* 输入：块级、左对齐 */
#form-box .van-cell__value { display: block; }
#form-box .van-field__control {
  text-align: left !important;
  font-size: 15px;
  color: var(--text);
  padding: 0;
  height: 26px;
  line-height: 26px;
}
#form-box .van-field__control::placeholder { color: #a9b3c9; }
#form-box .van-field__error-message { text-align: left; font-size: 12px; }
#form-box .van-cell--disabled .van-field__control { color: #aab2c4; -webkit-text-fill-color: #aab2c4; }

/* ---------- 课程卡片列表 ---------- */
.course-tip { font-size: 12px; color: var(--muted); margin: -4px 0 12px; padding-left: 13px; }
.course-list { display: block; }

.course-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: #f8faff;
  border: 1px solid #e2e9f6;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, background .18s, transform .12s;
  font-family: inherit;
}
.course-item:active { transform: scale(.985); }
.course-item.is-selected {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 91, 215, .10), var(--shadow);
}

/* 最左侧：实时剩余名额 */
.quota {
  flex: none;
  width: 46px;
  min-height: 46px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1.1;
  background: #eef4ff;
  color: var(--primary);
}
.quota .q-num { font-size: 17px; }
.quota .q-txt { font-size: 10px; font-weight: 500; margin-top: 2px; opacity: .8; letter-spacing: 1px; }
.quota.q-tight { background: #fff7ea; color: #b97b16; }
.quota.q-full { background: #fdeeee; color: #cf4b4b; }

.ci-main { flex: 1; min-width: 0; }
.ci-name { font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.55; }
.ci-name .ci-date { color: var(--primary); margin-right: 6px; }
.ci-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.ci-sub .ci-cap { margin-left: 8px; }

/* 右侧选中标记 */
.ci-check {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid #ccd5e6;
  background: #fff;
  position: relative;
  transition: all .18s;
}
.course-item.is-selected .ci-check {
  border-color: var(--primary);
  background: var(--primary);
}
.course-item.is-selected .ci-check::after {
  content: "";
  position: absolute;
  left: 6px; top: 2.5px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.course-item.is-full { opacity: .62; cursor: not-allowed; background: #f5f6f9; }
.course-item.is-full .ci-name { color: #98a1b5; text-decoration: line-through; text-decoration-color: #c3cad9; }
.course-item.is-full.is-selected { border-color: #e3c9c9; box-shadow: none; }

/* 课程已选/满员的小标签 */
.course-flag {
  display: inline-block;
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: 1px;
}
.course-flag.full { background: #fdeeee; color: #cf4b4b; }

/* ---------- 提交按钮 ---------- */
.submit-area { margin: 18px 2px 4px; }
#submit-btn {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(135deg, #2b5bd7 0%, #4a7bf0 60%, #6a96f5 100%);
  color: #fff;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 6px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(43, 91, 215, .30);
  transition: transform .15s, box-shadow .15s, opacity .15s;
  font-family: inherit;
}
#submit-btn:active { transform: translateY(1px); box-shadow: 0 6px 14px rgba(43, 91, 215, .28); }
#submit-btn[disabled] { opacity: .55; }

/* ---------- 温馨提示 ---------- */
.note-card .text.note {
  color: #8a6a25;
  background: var(--gold-soft);
  border: 1px solid #eee0c2;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.85;
}

.page-foot {
  text-align: center;
  font-size: 11.5px;
  color: #a6afc4;
  letter-spacing: .5px;
  line-height: 1.9;
  margin-top: 22px;
}

/* ---------- 提示条 ---------- */
.alert-ok {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: linear-gradient(135deg, #eefaf3 0%, #e8f7f0 100%);
  border: 1px solid #bfe6d1;
  border-radius: 14px;
  padding: 13px 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(16, 120, 72, .07);
}
.alert-ok b { font-size: 14px; color: #10784a; }
.alert-ok span { font-size: 12.5px; color: #4d7a65; line-height: 1.6; }

.alert-soft {
  background: #fdf8ec;
  border: 1px solid #f0e2c2;
  border-radius: 12px;
  padding: 11px 14px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: #8a6a25;
  line-height: 1.7;
}

/* 修改模式提示条：突出「正在修改哪一条」 */
.edit-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  background: #eef4ff;
  border-color: #cfe0ff;
  color: #2b5bd7;
  font-weight: 500;
}
.edit-bar b { color: #1d3f9e; }

/* ---------- 视图切换 ---------- */
.view.is-hidden { display: none; }

/* ---------- 我的报名 ---------- */
.my-card {
  position: relative;
  background: linear-gradient(180deg, #fbfcff 0%, #ffffff 40%);
  border: 1px solid #e4ebf8;
  border-radius: 16px;
  padding: 15px 16px 14px;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(29, 63, 158, .06);
  overflow: hidden;
}
.my-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary), #7ba1f7 55%, var(--gold));
}
.my-card.is-cancel { background: #fafbfc; border-color: #eceff4; }
.my-card.is-cancel::before { background: #d7dce6; }
.my-card.is-cancel .my-rows b { color: #96a0b4; }

/* 刚刚提交 / 刚刚修改的记录：高亮定位，避免用户在多张卡片中找不到 */
.my-card.is-new,
.my-card.is-updated {
  border-color: #cfe0ff;
  box-shadow: 0 10px 28px rgba(29, 63, 158, .13);
  animation: my-pop .5s ease both;
}
@keyframes my-pop {
  from { transform: translateY(6px); opacity: .4; }
  to   { transform: translateY(0);   opacity: 1; }
}

.my-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.my-status {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: .5px;
}
.my-status.ok { background: #e9f9f1; color: #10784a; border: 1px solid #c6e9d6; }
.my-status.off { background: #f2f4f8; color: #7a849c; border: 1px solid #e4e8f0; }
.my-no { font-size: 11.5px; color: #9aa4ba; letter-spacing: .5px; }

.my-wx {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #f7faff;
  border: 1px solid #e6edfa;
  border-radius: 11px;
  margin-bottom: 11px;
}
.my-wx img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #eef2f9; }
.my-wx-ph {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #d8e4fa;
  color: var(--primary);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.my-wx-name { font-size: 13px; font-weight: 600; color: #33406b; }
.my-wx-tag {
  margin-left: auto;
  font-size: 10.5px;
  color: #10784a;
  background: #e9f9f1;
  border-radius: 999px;
  padding: 2px 8px;
}

.my-rows { list-style: none; }
.my-rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed #eef1f7;
  font-size: 13px;
}
.my-rows li:last-child { border-bottom: none; }
.my-rows span { color: var(--muted); flex: none; }
.my-rows b { color: var(--text); font-weight: 600; text-align: right; word-break: break-all; }

.my-courses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.c-chip {
  font-size: 11.5px;
  color: var(--primary-deep);
  background: var(--primary-soft);
  border: 1px solid #dde7fb;
  border-radius: 8px;
  padding: 4px 9px;
  line-height: 1.5;
}

.my-ops { margin-top: 12px; }
.my-note { margin-top: 11px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.my-note.center { text-align: center; background: #f7f9fd; border-radius: 11px; padding: 11px 12px; }

.my-actions { margin-top: 14px; }

.btn-solid {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 24px;
  background: linear-gradient(135deg, #2b5bd7 0%, #4a7bf0 60%, #6a96f5 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(43, 91, 215, .26);
}
.btn-solid:active { transform: translateY(1px); }
.btn-solid em {
  font-style: normal;
  font-size: 11.5px;
  opacity: .85;
  margin-left: 6px;
}

.btn-ghost {
  width: 100%;
  height: 42px;
  border-radius: 21px;
  background: #fff;
  border: 1px solid #cfdcf5;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 1px;
}
.btn-ghost:active { background: #f4f8ff; }
.btn-ghost.full { margin-top: 10px; }

/* ---------- 「请在微信中打开」引导页 ---------- */
.block-card {
  background: var(--card);
  border: 1px solid rgba(231, 236, 245, .9);
  border-radius: 22px;
  padding: 40px 26px 32px;
  margin: 26px 0 6px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px; height: 74px;
  border-radius: 24px;
  background: linear-gradient(150deg, #e8f9ef 0%, #d6f2e2 100%);
  color: #22a45d;
  margin-bottom: 18px;
}
.block-icon svg { width: 40px; height: 40px; }
.block-card h1 { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: 1px; }
.block-card h1::after {
  content: "";
  display: block;
  width: 34px; height: 3px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #22a45d, #7fd6a8);
}
.block-text {
  margin-top: 14px;
  font-size: 13.5px;
  color: #4d5a75;
  line-height: 1.9;
}
.block-steps {
  margin: 18px auto 0;
  padding: 14px 16px 14px 30px;
  text-align: left;
  background: #f8faff;
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 320px;
  font-size: 13px;
  color: #3c4964;
  line-height: 2;
}
.block-tip {
  margin-top: 16px;
  font-size: 12px;
  color: #8a6a25;
  background: var(--gold-soft);
  border: 1px solid #eee0c2;
  border-radius: 12px;
  padding: 10px 13px;
  line-height: 1.8;
}

/* ---------- Vant 弹窗微调 ---------- */
.van-dialog {
  border-radius: 16px;
  padding-top: 4px;
}
.van-dialog__message {
  color: #4d5a75;
  line-height: 1.8;
  white-space: pre-line;
}
.van-toast { border-radius: 12px; }

@media (max-width: 360px) {
  .info-duo { flex-direction: column; }
  .hero h1 { font-size: 22px; }
}
