/* ===================== 基础 ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #1b1b1f;
  color: #333;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font-family: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

.phone {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #c8102e 0%, #b7092a 30%, #a80826 60%, #9d0624 100%);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,.45);
}
@media (min-width: 520px) {
  .phone { min-height: 100vh; }
}

/* ===================== 状态栏 ===================== */
.statusbar {
  position: relative; z-index: 20;
  height: 30px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  color: #fff; font-size: 13px; font-weight: 600;
}
.sb-right { display: flex; align-items: center; gap: 5px; }
.sb-signal rect { fill: #fff; }
.sb-5g { font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.sb-battery { color: #fff; }
.sb-battery rect { fill: #fff; }

/* ===================== 顶部导航 ===================== */
.navbar {
  position: relative; z-index: 20;
  height: 44px; padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between;
  color: #fff;
}
.nav-left { display: flex; align-items: center; gap: 6px; }
.nav-back { opacity: .95; }
.nav-title { font-size: 17px; font-weight: 600; letter-spacing: .5px; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.capsule {
  height: 30px; padding: 0 10px;
  display: flex; align-items: center; gap: 9px;
  background: rgba(0,0,0,.22);
  border: .5px solid rgba(255,255,255,.28);
  border-radius: 16px;
}
.cap-dots { display: flex; gap: 3px; }
.cap-dots i { width: 3.5px; height: 3.5px; border-radius: 50%; background: #fff; display: block; }
.cap-div { width: 1px; height: 16px; background: rgba(255,255,255,.3); }
.cap-target { width: 14px; height: 14px; display: grid; place-items: center; }
.cap-target i { width: 11px; height: 11px; border: 1.6px solid #fff; border-radius: 50%; display: block; position: relative; }
.cap-target i::after { content: ""; position: absolute; inset: 2.6px; border-radius: 50%; background: #fff; }

/* ===================== 内容 ===================== */
.content { padding-bottom: 20px; }
.view { display: none; padding-bottom: 10px; animation: fadeIn .25s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===================== 头图 ===================== */
.hero {
  position: relative;
  margin: 4px 12px 12px;
  height: 210px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, #fffdf8 0%, #fdf1e6 100%);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.hero::before {
  content: ""; position: absolute; left: 0; top: 0; width: 96px; height: 66px;
  background:
    radial-gradient(circle at 11px 11px, #f0c04a 0 8px, transparent 9px),
    linear-gradient(200deg, #f7d276 0%, #e6492f 62%, rgba(230,73,47,0) 100%);
  border-bottom-right-radius: 44px;
}
.hero-left { position: relative; z-index: 3; width: 112px; flex: none; padding: 0 0 16px 12px; }
.hl-cols { display: flex; align-items: flex-start; gap: 7px; }
.hl-big {
  font-family: "STKaiti", "KaiTi", "Kaiti SC", serif;
  font-size: 25px; line-height: 1.14; font-weight: 700; color: #c8102e;
  letter-spacing: 2px; text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.hl-big-2 { margin-top: 18px; }
.hl-side {
  font-family: "STKaiti", "KaiTi", serif;
  writing-mode: vertical-rl; font-size: 11px; line-height: 1.45;
  color: #c8102e; letter-spacing: 1.5px; margin-top: 2px; opacity: .9;
}
.hero-center { position: relative; flex: 1; height: 100%; display: flex; justify-content: center; align-items: flex-end; }
.hero-photo {
  height: 196px; width: auto; max-width: 100%;
  object-fit: cover; object-position: center 22%;
  border-radius: 46px 46px 0 0;
  filter: saturate(1.02);
}
.hero-right { position: relative; z-index: 3; width: 68px; flex: none; padding-bottom: 14px; }
.hero-title {
  display: flex; flex-direction: column;
  font-family: "STKaiti", "KaiTi", "STXingkai", serif;
  font-size: 34px; line-height: 1.08; font-weight: 700; color: #c8102e;
  text-shadow: 0 2px 0 rgba(255,255,255,.75), 0 0 14px rgba(255,255,255,.6);
}

/* ===================== 卡片 / 表单 ===================== */
.card {
  margin: 0 12px 12px;
  background: #fff;
  border-radius: 12px;
  padding: 4px 0 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.13);
}
.form-row {
  display: flex; align-items: center;
  min-height: 52px; padding: 0 14px;
  border-bottom: 1px solid #f0f0f0;
}
.fl-label {
  width: 66px; flex: none;
  font-size: 15px; font-weight: 600; color: #222;
  position: relative;
}
.fl-label::after {
  content: ""; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 15px; background: #e2e2e2;
}
.fl-body { flex: 1; display: flex; align-items: center; gap: 16px; padding-left: 16px; flex-wrap: wrap; }
.radio { display: inline-flex; align-items: center; font-size: 14.5px; color: #333; cursor: pointer; }
.radio input { display: none; }
.radio .rd {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c9c9c9;
  margin-right: 6px; position: relative; transition: .15s;
}
.radio input:checked + .rd { border-color: #c8102e; border-width: 5.5px; }
.txt {
  flex: 1; min-width: 0; font-size: 14.5px; color: #333; padding: 4px 0;
  background: transparent;
}
.txt::placeholder { color: #c4c4c4; }

.cal-tabs { display: flex; gap: 8px; }
.cal-tab {
  font-size: 13.5px; padding: 6px 13px; border-radius: 6px;
  background: #f4f4f4; color: #666; border: 1px solid transparent; transition: .15s;
}
.cal-tab.active { background: #fff; color: #c8102e; border-color: #c8102e; font-weight: 600; }
.date-picker { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.date-picker select {
  font-size: 14px; color: #333; background: #f7f7f7;
  border: 1px solid #ececec; border-radius: 6px; padding: 6px 8px; min-width: 56px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='5'><path d='M0 0l4 5 4-5z' fill='%23b5b5b5'/></svg>");
  background-repeat: no-repeat; background-position: right 8px center;
  padding-right: 22px;
}
.dp-unit { font-size: 13px; color: #555; }

/* ===================== 名字风格 ===================== */
.style-list { display: flex; flex-wrap: wrap; gap: 8px; }
.style-chip {
  padding: 7px 14px; border-radius: 18px; font-size: 13.5px;
  background: #f5f5f5; color: #555; border: 1px solid transparent; transition: .15s;
}
.style-chip.active { background: #fff2f4; color: #c8102e; border-color: #c8102e; font-weight: 600; }

.btn-main {
  display: block; width: calc(100% - 28px); margin: 16px 14px 0;
  height: 46px; border-radius: 8px;
  background: linear-gradient(90deg, #e0202f 0%, #c8102e 50%, #e0202f 100%);
  color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 2px;
  box-shadow: 0 6px 14px rgba(200,16,46,.35);
  transition: transform .12s, box-shadow .12s, opacity .15s;
}
.btn-main:active { transform: translateY(1px) scale(.995); box-shadow: 0 3px 8px rgba(200,16,46,.3); }
.btn-main[disabled] { opacity: .55; }
.btn-plain {
  display: block; width: calc(100% - 28px); margin: 10px 14px 0;
  height: 42px; border-radius: 8px; border: 1px solid #c8102e;
  color: #c8102e; font-size: 15px; font-weight: 600; background: #fff;
}
.btn-float { position: sticky; bottom: 74px; z-index: 9; }
.btn-inline { width: auto; flex: 1; margin: 0; }

/* ===================== 区块标题 ===================== */
.section-title {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 2px;
  margin: 18px 0 12px;
}
.st-line { width: 34px; height: 1px; background: rgba(255,255,255,.55); }

/* ===================== 为什么选择我们 ===================== */
.why-grid { display: flex; gap: 12px; margin: 0 12px 12px; }
.why-card {
  flex: 1; background: #fff; border-radius: 12px; padding: 18px 8px 16px;
  text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.13);
}
.why-icon {
  width: 42px; height: 42px; margin: 0 auto 10px;
  border-radius: 9px; color: #fff;
  display: grid; place-items: center;
  font-family: "STKaiti", "KaiTi", serif; font-size: 24px; font-weight: 700;
  box-shadow: 0 3px 8px rgba(0,0,0,.16);
}
.why-name { font-size: 15.5px; font-weight: 700; color: #222; }
.why-desc { font-size: 12.5px; color: #9a9a9a; margin-top: 5px; }

/* ===================== 案例展示 ===================== */
.case-tabs { display: flex; justify-content: center; gap: 26px; margin-bottom: 12px; }
.case-tab { font-size: 16px; color: rgba(255,255,255,.65); font-weight: 600; padding: 4px 2px; position: relative; }
.case-tab.active { color: #fff; font-size: 17px; }
.case-tab.active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -3px;
  width: 22px; height: 3px; border-radius: 2px; background: #ffd666;
}
.case-list { margin: 0 12px; }
.case-card {
  background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 12px;
  display: flex; gap: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.13);
}
.case-photo { width: 88px; height: 88px; border-radius: 10px; object-fit: cover; flex: none; background: #f0f0f0; }
.case-info { flex: 1; min-width: 0; }
.case-name { font-size: 21px; font-weight: 700; color: #222; letter-spacing: 3px; font-family: "STKaiti","KaiTi",serif; }
.case-body { font-size: 13px; line-height: 1.72; color: #555; margin-top: 5px; }
.case-body .lbl { color: #c8102e; font-weight: 700; }
.case-chengyu { font-size: 13px; color: #555; margin-top: 4px; }
.case-chengyu .lbl { color: #c8102e; font-weight: 700; }
.case-chengyu span { color: #c8102e; }

/* ===================== 家长心声 ===================== */
.voice-viewport { overflow: hidden; margin: 0 12px; }
.voice-track { display: flex; transition: transform .45s cubic-bezier(.3,.7,.4,1); }
.voice-item { flex: 0 0 100%; padding: 0 6px; }
.voice-card {
  background: #fff; border-radius: 12px; padding: 16px 16px 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.13); min-height: 132px;
  display: flex; flex-direction: column;
}
.voice-quote { font-size: 13px; color: #d5d5d5; font-family: serif; line-height: .6; }
.voice-text { font-size: 14.5px; line-height: 1.85; color: #333; flex: 1; }
.voice-user { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 12px; }
.voice-name { font-size: 13px; color: #666; }
.voice-ava {
  width: 26px; height: 26px; border-radius: 50%; background: #c8102e; color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.voice-dots { display: flex; justify-content: center; gap: 5px; margin: 12px 0 6px; }
.voice-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.35); display: block; transition: .2s; }
.voice-dots i.on { background: #ffd666; width: 14px; border-radius: 3px; }

.footer { text-align: center; color: rgba(255,255,255,.55); font-size: 12px; padding: 18px 0 12px; }

/* ===================== 弹层 ===================== */
.mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.55);
  display: none; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(2px);
}
.mask.show { display: flex; animation: fadeIn .2s ease; }
.result-sheet {
  width: 100%; max-width: 480px;
  background: #fff; border-radius: 16px 16px 0 0;
  padding: 18px 16px 20px;
  max-height: 84vh; overflow-y: auto;
  animation: up .28s cubic-bezier(.2,.8,.3,1);
}
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.rs-head { display: flex; align-items: center; justify-content: space-between; }
.rs-title { font-size: 18px; font-weight: 700; color: #222; }
.rs-close { font-size: 19px; color: #bbb; padding: 0 4px; }
.rs-sub { font-size: 12.5px; color: #999; margin-top: 6px; }
.rs-list { margin: 14px 0 4px; }
.rs-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px dashed #eee; }
.rs-item:last-child { border-bottom: none; }
.rs-name { font-size: 20px; font-weight: 700; color: #c8102e; font-family: "STKaiti","KaiTi",serif; letter-spacing: 2px; }
.rs-info { font-size: 12.5px; color: #888; margin-top: 3px; }
.rs-pick { margin-left: auto; font-size: 13px; color: #c8102e; border: 1px solid #f0c9cd; border-radius: 15px; padding: 5px 14px; }
.rs-pick.on { background: #c8102e; color: #fff; border-color: #c8102e; }
.rs-actions { display: flex; margin-top: 14px; }
.rs-actions .btn-plain { width: 100%; margin: 0; }

.alert-box {
  width: 78%; max-width: 320px; background: #fff; border-radius: 12px; overflow: hidden;
  animation: fadeIn .2s ease;
}
.ab-title { font-size: 16px; font-weight: 700; text-align: center; padding: 20px 16px 10px; color: #222; }
.ab-body { font-size: 14px; color: #666; text-align: center; padding: 0 20px 20px; line-height: 1.8; white-space: pre-line; }
.ab-actions { display: flex; border-top: 1px solid #eee; }
.ab-btn { flex: 1; height: 46px; font-size: 15.5px; color: #666; }
.ab-btn.ok { color: #c8102e; font-weight: 700; border-left: 1px solid #eee; }

.toast {
  position: fixed; left: 50%; top: 45%; transform: translate(-50%,-50%) scale(.9);
  background: rgba(0,0,0,.78); color: #fff; font-size: 14px;
  padding: 12px 20px; border-radius: 8px; z-index: 90;
  opacity: 0; pointer-events: none; transition: .22s; max-width: 76%; text-align: center; line-height: 1.6;
}
.toast.show { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* ===================== 小屏适配 ===================== */
@media (max-width: 360px) {
  .hero { height: 186px; }
  .hero-photo { height: 180px; }
  .hero-title { font-size: 33px; }
  .hl-big { font-size: 24px; }
  .case-photo { width: 76px; height: 76px; }
}
