/* 外语通套餐续费系统 — 公共样式 */
:root {
  --red: #d92b1f;
  --red-dark: #b8221a;
  --red-bg: #fff1ef;
  --orange: #e07b1c;
  --orange-bg: #fff8ec;
  --blue: #1a6fd4;
  --blue-bg: #f0f6ff;
  --text: #1c1f23;
  --text-2: #5b6167;
  --text-3: #8b9198;
  --line: #ececee;
  --bg: #f4f5f7;
  --white: #ffffff;
  --green: #1a9c5b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 16px rgba(16, 24, 40, .05);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; }

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 14px 32px;
}

/* 顶部标题栏 */
.appbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 16px 16px 14px;
  text-align: center;
}
.appbar .t1 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .02em;
}
.appbar .t2 {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: .02em;
}

/* 卡片 */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-top: 12px;
}
.card.tight { padding: 14px; }
.card-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
}

/* 提示条 */
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--orange-bg);
  border: 1px solid #f6e2c4;
  border-radius: 10px;
  padding: 12px 13px;
  margin-top: 12px;
}
.notice .ico {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.notice .hd { font-size: 13px; font-weight: 600; color: #8a4b0c; margin-bottom: 4px; }
.notice ol { margin: 0; padding-left: 16px; }
.notice li { font-size: 12.5px; color: #8a5a24; line-height: 1.75; }

.alert-red {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--red-bg);
  border: 1px solid #f7d3ce;
  color: #a8281c;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.6;
}
.alert-red .dot { color: var(--red); font-weight: 700; }

.alert-blue {
  background: var(--blue-bg);
  border: 1px solid #d6e6fb;
  color: #1c5aa8;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.7;
}

/* 表单 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.field .req { color: var(--red); }
.inp {
  width: 100%;
  height: 46px;
  border: 1px solid #dcdfe3;
  border-radius: 9px;
  padding: 0 13px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .15s;
}
.inp:focus { border-color: var(--red); }
.inp::placeholder { color: #b6bbc1; }

.btn {
  width: 100%;
  height: 47px;
  border: none;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s;
}
.btn:active { background: var(--red-dark); }
.btn:disabled { background: #e6b3ae; cursor: not-allowed; }
.btn.ghost {
  background: #fff;
  color: var(--red);
  border: 1px solid var(--red);
}
.btn.ghost:active { background: var(--red-bg); }

.err-line {
  color: var(--red);
  font-size: 12.5px;
  margin-top: 9px;
  display: none;
}
.err-line.show { display: block; }

/* 信息行 */
.irow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.irow:last-child { border-bottom: none; }
.irow .lb { color: var(--text-3); font-size: 13px; flex: 0 0 auto; }
.irow .vv {
  color: var(--text);
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.pill {
  display: inline-block;
  background: #f2f4f6;
  color: #3a4147;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12.5px;
  font-weight: 400;
}

.tag {
  display: inline-block;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.tag.exp { color: var(--orange); background: var(--orange-bg); }
.tag.over { color: var(--red); background: var(--red-bg); }
.tag.ok { color: var(--green); background: #eaf7f0; }

/* 底部固定栏 */
.bottombar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(8px);
}
.bottombar .sum { flex: 1 1 auto; }
.bottombar .sum .lb { font-size: 11.5px; color: var(--text-3); }
.bottombar .sum .amt {
  font-size: 21px;
  font-weight: 700;
  color: var(--red);
  line-height: 1.15;
}
.bottombar .sum .amt i { font-size: 14px; font-style: normal; margin-right: 1px; }
.bottombar .sum .cut { font-size: 11px; color: var(--orange); margin-left: 6px; }
.bottombar .btn { width: 168px; flex: 0 0 auto; }
.bottombar-spacer { height: 74px; }

/* 弹层 */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  z-index: 60;
}
.mask.show { display: flex; }
.dialog {
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px 18px;
  text-align: center;
  animation: pop .18s ease-out;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dialog .dico {
  width: 42px; height: 42px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--red-bg);
  color: var(--red);
  font-size: 22px;
  font-weight: 700;
  line-height: 42px;
}
.dialog .dtitle { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.dialog .dtext { font-size: 13.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 18px; }
.dialog .btn { height: 42px; font-size: 15px; }

/* 页脚 */
.foot {
  text-align: center;
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.9;
  padding: 22px 10px 10px;
}
.foot a { color: var(--text-3); }

/* 通用工具 */
.muted { color: var(--text-3); }
.center { text-align: center; }
.hidden { display: none !important; }
.spin {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sp .7s linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}
@keyframes sp { to { transform: rotate(360deg); } }
