/* ============================================================
   泰康获客前台 · 公共样式（青绿品牌风格，与泰康 logo 同款渐变）
   由 vue-front 的 styles.css + Home.vue + Feedback.vue 合并而来
   ============================================================ */
:root {
  --p: #00a07e;
  --p2: #008f6f;
  --p3: #007a5e;
  --p-light: #e0f5ee;
  --p-pale: #f1faf6;
  --text: #1d2129;
  --text2: #6b7280;
  --text3: #9ca3af;
  --bg: #f2f5fa;
  --white: #fff;
  --red: #d43030;
  --green: #22c55e;
  --radius: 16px;
  --radius-sm: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px; color: var(--text); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  max-width: 480px; margin: 0 auto; min-height: 100vh;
}

input, textarea, select, button { font-family: inherit; font-size: inherit; outline: none; }

/* ===== Toast ===== */
.v4-toast {
  position: fixed; top: 45%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(30, 30, 30, .9); color: #fff;
  padding: 14px 30px; border-radius: 12px;
  font-size: 14px; z-index: 9999; display: none;
  text-align: center; backdrop-filter: blur(10px);
  white-space: nowrap; pointer-events: none;
}
.v4-toast.show { display: block; animation: v4TIn .25s ease; }
@keyframes v4TIn {
  from { opacity: 0; transform: translate(-50%, -50%) translateY(6px); }
  to   { opacity: 1; transform: translate(-50%, -50%) translateY(0); }
}

/* ===== 底部红字 ===== */
.v4-footer-tip {
  padding: 16px 20px 36px; text-align: center;
  font-size: 13px; color: var(--red); font-weight: 700;
  line-height: 1.6;
}

/* ============================================================
   首页
   ============================================================ */
.v4-hero {
  position: relative; text-align: center;
  padding: 48px 24px 36px; overflow: hidden;
  background: linear-gradient(160deg, var(--p) 0%, var(--p2) 40%, var(--p3) 100%);
  color: #fff;
}
.v4-hero::before {
  content: ''; position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  top: -80px; right: -60px;
}
.v4-hero::after {
  content: ''; position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  bottom: -40px; left: -40px;
}
.v4-hero-logo {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
  margin-bottom: 16px; position: relative; z-index: 1;
}
.v4-hero-logo img { width: 150px; height: auto; display: block; }
.v4-hero h1 {
  position: relative; z-index: 1;
  font-size: 24px; font-weight: 800; letter-spacing: 1px;
}
.v4-hero-sub {
  position: relative; z-index: 1;
  font-size: 14px; opacity: .8; margin-top: 6px; font-weight: 500;
}

/* 类型选择区 */
.v4-type-section { padding: 0 16px; margin-top: -16px; position: relative; z-index: 2; }

.v4-type-card {
  background: var(--white); border-radius: var(--radius);
  padding: 20px; display: flex; align-items: center; gap: 14px;
  cursor: pointer; margin-bottom: 12px;
  border: 2.5px solid transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  position: relative;
}
.v4-type-card:active { transform: scale(.98); }
.v4-type-card.selected {
  border-color: var(--p);
  box-shadow: 0 8px 32px rgba(0, 160, 126, .18);
  transform: translateY(-2px);
}

.v4-tc-icon-wrap {
  width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.v4-tc-icon-wrap.type1 { background: linear-gradient(135deg, var(--p-light), #cdeee2); }
.v4-tc-icon-wrap.type2 { background: linear-gradient(135deg, var(--p-light), #cdeee2); }
.v4-tc-icon-wrap svg { width: 26px; height: 26px; }
.v4-tc-icon-wrap.type1 svg { fill: var(--p); }
.v4-tc-icon-wrap.type2 svg { fill: var(--p); }

.v4-tc-info { flex: 1; }
.v4-tc-name { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.v4-tc-desc { font-size: 12px; color: var(--text2); }

/* 选中勾 */
.v4-tc-check {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid #dde2e9; display: flex; align-items: center;
  justify-content: center; transition: all .3s;
}
.v4-type-card.selected .v4-tc-check {
  background: var(--p); border-color: var(--p);
  box-shadow: 0 2px 8px rgba(0, 160, 126, .3);
}
.v4-tc-check svg {
  width: 14px; height: 14px; fill: none; stroke: #fff;
  stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transform: scale(.5); transition: all .3s;
}
.v4-type-card.selected .v4-tc-check svg { opacity: 1; transform: scale(1); }

/* 下一步按钮 */
.v4-home-btn-wrap { padding: 6px 16px 0; }
.v4-home-btn {
  width: 100%; padding: 17px 0;
  background: linear-gradient(135deg, var(--p), var(--p2));
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-size: 17px; font-weight: 800; cursor: pointer;
  letter-spacing: 1px; transition: all .2s;
  box-shadow: 0 6px 24px rgba(0, 160, 126, .3);
}
.v4-home-btn:active { transform: scale(.97); }
.v4-home-btn:disabled { opacity: .45; pointer-events: none; box-shadow: none; }

/* ============================================================
   填报页
   ============================================================ */
/* 导航 */
.v4-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; padding: 12px 16px;
  background: var(--white); border-bottom: 1px solid #eef1f6;
}
.v4-back {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%; background: var(--p-pale);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s;
}
.v4-back:active { background: var(--p-light); }
.v4-back svg { width: 20px; height: 20px; fill: var(--p); }
.v4-nav-title {
  flex: 1; text-align: center; font-size: 17px; font-weight: 700;
  padding-right: 36px; color: var(--text);
}

/* 内容区 */
.v4-container { padding: 20px 16px 12px; }

/* 办事类型标签 */
.v4-type-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--p-pale); color: var(--p);
  font-size: 15px; font-weight: 700;
  padding: 7px 16px; border-radius: 20px;
  margin-bottom: 16px; border: 1px solid var(--p-light);
}
.v4-type-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--p); }

/* 来源业务员提示（通过业务员分享链接进入时显示） */
.v4-source-tip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f1f5f9; color: #475569;
  font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 14px;
  margin-bottom: 8px;
}
.v4-source-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--p); }

/* 主表单面板 */
.v4-form-panel {
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04); overflow: hidden;
  animation: v4In .35s ease;
}
@keyframes v4In {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 分区 */
.v4-section { padding: 20px 20px 0; }
.v4-section:first-child { padding-top: 24px; }
.v4-section:last-of-type { padding-bottom: 24px; }
.v4-section + .v4-section {
  border-top: 1px solid #f0f3f7;
  margin-top: 8px; padding-top: 20px;
}
.v4-section-title {
  font-size: 15px; font-weight: 800; color: var(--text);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.v4-section-title::before {
  content: ''; width: 4px; height: 18px;
  background: var(--p); border-radius: 2px;
}

/* 表单字段 */
.v4-field { margin-bottom: 20px; }
.v4-field:last-child { margin-bottom: 0; }
.v4-label { display: block; font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 8px; }
.v4-label .req { color: var(--red); margin-left: 2px; }

.v4-input {
  width: 100%; padding: 15px 16px;
  border: 2px solid #e8ecf2; border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text); background: #f9fafb;
  transition: all .2s;
}
.v4-input:focus {
  border-color: var(--p); background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 160, 126, .1);
}
.v4-input::placeholder { color: #c4cad4; }

/* 下拉 */
.v4-select-wrap { position: relative; }
.v4-select-wrap::after {
  content: ''; position: absolute; right: 18px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid #b0b8c0; border-bottom: 2px solid #b0b8c0;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.v4-select {
  width: 100%; padding: 15px 40px 15px 16px;
  border: 2px solid #e8ecf2; border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text); background: #f9fafb;
  cursor: pointer; appearance: none; -webkit-appearance: none;
}
.v4-select:focus { border-color: var(--p); background: var(--white); }

.v4-other-input { margin-top: 12px; display: none; }
.v4-other-input.show { display: block; }

/* 险种多选标签 */
.v4-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.v4-chip {
  padding: 10px 20px;
  border: 2px solid #e8ecf2; border-radius: 999px;
  font-size: 14px; color: var(--text); background: #f9fafb;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, color .15s, background .15s;
}
.v4-chip:active { transform: scale(.96); }
.v4-chip.on {
  border-color: var(--p); color: var(--p);
  background: rgba(0, 160, 126, .08); font-weight: 600;
}

/* 文本域 */
.v4-textarea {
  width: 100%; padding: 15px 16px;
  border: 2px solid #e8ecf2; border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text); background: #f9fafb;
  resize: none; min-height: 160px; transition: all .2s;
}
.v4-textarea:focus {
  border-color: var(--p); background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 160, 126, .1);
}
.v4-textarea::placeholder { color: #c4cad4; }
.v4-char-count { text-align: right; font-size: 12px; color: var(--text3); margin-top: 8px; }

/* 专属客服二维码 */
.v4-kefu-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  margin-top: 16px; padding: 24px 20px;
  text-align: center;
}
.v4-kefu-line {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 18px;
}
.v4-kefu-bar { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--p-light)); }
.v4-kefu-bar:last-child { background: linear-gradient(90deg, var(--p-light), transparent); }
.v4-kefu-qrcode {
  display: inline-block; padding: 10px;
  border: 2px solid var(--p-light); border-radius: 14px;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0, 160, 126, .1);
}
.v4-kefu-qrcode img { width: 190px; height: 190px; display: block; border-radius: 8px; }
.v4-kefu-tip { font-size: 12px; color: var(--text3); margin-top: 12px; }

/* 提交按钮 */
.v4-submit-wrap { padding: 16px 0 0; }
.v4-btn-submit {
  width: 100%; padding: 16px 0;
  background: linear-gradient(135deg, var(--p), var(--p3));
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 800; cursor: pointer;
  letter-spacing: 1px; transition: all .15s;
  box-shadow: 0 6px 20px rgba(0, 160, 126, .35);
}
.v4-btn-submit:active { transform: scale(.97); }
.v4-btn-submit:disabled { opacity: .45; pointer-events: none; box-shadow: none; }

/* 成功弹窗 */
.v4-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .45);
  z-index: 9999; display: none; align-items: center;
  justify-content: center; backdrop-filter: blur(8px);
}
.v4-overlay.show { display: flex; }
.v4-success-card {
  background: var(--white); border-radius: 24px;
  padding: 40px 30px 30px; text-align: center;
  width: 300px; box-shadow: 0 24px 80px rgba(0, 0, 0, .15);
  animation: v4Pop .45s cubic-bezier(.175, .885, .32, 1.275);
}
@keyframes v4Pop {
  from { opacity: 0; transform: scale(.7) translateY(40px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.v4-sc-icon {
  width: 76px; height: 76px; margin: 0 auto 20px;
  border-radius: 50%; background: linear-gradient(135deg, var(--green), #16a34a);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 36px rgba(34, 197, 94, .35);
}
.v4-sc-icon svg { width: 38px; height: 38px; }
.v4-sc-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.v4-sc-msg { font-size: 14px; color: var(--text2); margin-bottom: 24px; line-height: 1.7; }
.v4-btn-close {
  width: 100%; padding: 14px 0;
  background: linear-gradient(135deg, var(--p), var(--p2));
  color: #fff; border: none; border-radius: 24px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  letter-spacing: .5px; transition: all .15s;
}
.v4-btn-close:active { transform: scale(.97); }

/* 加载中遮罩（分类读取） */
.v4-loading { text-align: center; padding: 12px; font-size: 12px; color: var(--text3); }
