:root {
  --primary: #07c160;
  --primary-dark: #06ad56;
  --brand: #0ea5e9;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-2: #666;
  --text-3: #999;
  --border: #ececec;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); }

/* 通用卡片 */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin: 14px; overflow: hidden; }

/* 按钮们 */
.btn {
  display: block; width: calc(100% - 28px); margin: 14px; padding: 15px;
  border: none; border-radius: 12px; background: var(--primary); color: #fff;
  font-size: 17px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none;
}
.btn:active { opacity: .85; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-blue { background: var(--brand); }
.btn-sm { display: inline-block; width: auto; margin: 0; padding: 8px 16px; font-size: 14px; border-radius: 8px; }

/* 表单 */
.form { padding: 4px 18px 18px; }
.field { padding: 14px 0 2px; }
.field label { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.field label .req { color: #e64340; margin-left: 2px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; font-size: 16px; border: 1px solid #ddd;
  border-radius: 10px; background: #fafafa; outline: none; appearance: none; color: var(--text);
}
.field input:focus, .field select:focus { border-color: var(--primary); background: #fff; }
.field .err { color: #e64340; font-size: 12px; margin-top: 6px; min-height: 16px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: flex; align-items: flex-start; gap: 10px; padding: 16px 0 4px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }

/* 顶部条 */
.navbar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--border); }
.navbar .logo { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }
.navbar .title { font-size: 16px; font-weight: 600; }

/* 微信通知模拟卡片 */
.wx-notice { background: #fff; border-radius: 12px; padding: 16px; margin: 14px; box-shadow: var(--shadow); }
.wx-notice .wx-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wx-notice .wx-avatar { width: 36px; height: 36px; border-radius: 6px; background: #07c160; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.wx-notice .wx-name { font-weight: 600; font-size: 15px; }
.wx-notice .wx-bubble { background: #f2f2f2; border-radius: 4px 12px 12px 12px; padding: 12px 14px; font-size: 14px; line-height: 1.8; color: #333; }
.wx-notice .wx-bubble .b-title { font-weight: 600; display: block; margin-bottom: 4px; }
.wx-notice .wx-tag { display: inline-block; font-size: 12px; color: var(--text-3); margin-left: auto; }

/* 成功页 */
.success-hero { text-align: center; padding: 48px 20px 24px; }
.success-hero .check { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: #e8f8ef; display: flex; align-items: center; justify-content: center; }
.success-hero h2 { font-size: 22px; margin-bottom: 8px; }
.success-hero p { color: var(--text-2); font-size: 14px; }

/* 信息列表 */
.info-list { padding: 6px 18px 14px; }
.info-list .item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f5f5f5; font-size: 15px; }
.info-list .item:last-child { border-bottom: none; }
.info-list .k { color: var(--text-3); }
.info-list .v { color: var(--text); font-weight: 500; text-align: right; }

/* Toast */
#toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); background: rgba(0,0,0,.75); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 99; white-space: nowrap; }
#toast.show { opacity: 1; }
