/* ============================================================
   康元优选商城 H5 静态演示 ｜ 全局样式
   设计语言：金融科技风，主色蓝 + 金色点缀，移动优先(手机壳式)
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --primary: #2D5CFF;
  --primary-dark: #1E44C9;
  --primary-light: #EAF0FF;
  --grad: linear-gradient(135deg, #2D5CFF 0%, #5B8CFF 100%);
  --grad-dark: linear-gradient(135deg, #1E3C72 0%, #2A5298 100%);
  --gold: #F5A623;
  --gold-light: #FFF4E0;
  --purple: #7B61FF;
  --purple-light: #F0ECFF;
  --green: #07C160;
  --green-light: #E5F9EE;
  --red: #FA5151;
  --red-light: #FEECEC;
  --orange: #FF8C00;
  --bg: #F4F6FB;
  --card: #FFFFFF;
  --line: #EEF1F6;
  --text: #1F2430;
  --text2: #8A94A6;
  --text3: #B7BECB;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(31, 42, 72, .06);
  --shadow-lg: 0 8px 30px rgba(31, 42, 72, .12);
}

html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #E9EDF5;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, button, select, textarea { font-family: inherit; outline: none; border: none; background: none; }
img { display: block; max-width: 100%; }

/* ---------- 手机壳容器 ---------- */
.shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, .10);
}
.page { padding-bottom: 84px; }
.page-nofoot { padding-bottom: 40px; }

/* ---------- 顶栏(子页面) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 8px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.topbar .back {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  color: var(--text); border-radius: 50%;
}
.topbar .back:active { background: var(--bg); }
.topbar .ttl { font-size: 17px; font-weight: 600; }
.topbar .right {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--text2);
}
.topbar .right a { color: var(--primary); font-weight: 500; }

/* ---------- 底部标签栏 ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 100;
  background: var(--card);
  border-top: 1px solid var(--line);
  display: flex; height: 62px;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px rgba(31, 42, 72, .05);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text3); font-size: 11px; gap: 3px;
}
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.active { color: var(--primary); font-weight: 600; }
.tabbar a:active { background: var(--bg); }

/* ---------- 首页顶部 ---------- */
.home-header {
  background: var(--grad-dark);
  color: #fff; padding: 22px 16px 0;
  border-radius: 0 0 24px 24px;
  position: relative; overflow: hidden;
}
.home-header::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}
.home-header::before {
  content: ""; position: absolute; right: 40px; bottom: -80px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}
.hd-top { display: flex; align-items: center; justify-content: space-between; }
.hd-user { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  border: 2px solid rgba(255, 255, 255, .35);
  flex-shrink: 0;
}
.hd-user .nm { font-size: 17px; font-weight: 600; }
.hd-user .dt { font-size: 12px; opacity: .75; margin-top: 2px; }
.hd-bell {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  display: flex; align-items: center; justify-content: center;
  position: relative; color: #fff;
}
.hd-bell .dot {
  position: absolute; top: 8px; right: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); border: 1.5px solid #fff;
}
.hd-ids { display: flex; gap: 8px; margin: 14px 0 16px; position: relative; z-index: 1; }

/* ---------- 身份标签 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 500;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-blue { background: rgba(90, 140, 255, .18); color: #7FA6FF; border: 1px solid rgba(127, 166, 255, .4); }
.tag-gold { background: rgba(245, 166, 35, .16); color: #FFD37A; border: 1px solid rgba(255, 211, 122, .4); }
.tag-purple { background: rgba(160, 120, 255, .18); color: #C4A8FF; border: 1px solid rgba(196, 168, 255, .4); }
.tag-green { background: var(--green-light); color: var(--green); }
.tag-gray { background: #F2F4F8; color: var(--text2); }
.tag-red { background: var(--red-light); color: var(--red); }
.on-light.tag-blue { background: var(--primary-light); color: var(--primary); }
.on-light.tag-gold { background: var(--gold-light); color: var(--gold); }
.on-light.tag-purple { background: var(--purple-light); color: var(--purple); }

/* ---------- 价格悬浮卡 ---------- */
.price-float {
  margin: -8px 16px 0; position: relative; z-index: 5;
  background: var(--card); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.price-float .lbl { font-size: 12px; color: var(--text2); }
.price-float .num { font-size: 26px; font-weight: 700; color: var(--primary); font-family: "DIN Alternate", "Roboto", Arial; }
.price-float .num small { font-size: 14px; font-weight: 600; }
.price-float .chg { font-size: 12px; margin-top: 2px; font-weight: 500; }
.price-float .mini-chart { width: 110px; height: 44px; }
.up { color: var(--red); }
.down { color: var(--green); }
.flat { color: var(--text2); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px;
  margin: 12px 16px;
}
.card.no-mg { margin: 12px 16px; }
.card-t {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.card-t .t { font-size: 15px; font-weight: 600; }
.card-t .more { font-size: 12px; color: var(--text2); display: flex; align-items: center; gap: 2px; }

/* 渐变资产卡 */
.grad-card {
  border-radius: 16px; color: #fff; padding: 18px 16px;
  position: relative; overflow: hidden; margin: 12px 16px;
  box-shadow: var(--shadow-lg);
}
.grad-card.blue { background: var(--grad); }
.grad-card.gold { background: linear-gradient(135deg, #F5A623, #FFC45C); }
.grad-card.purple { background: linear-gradient(135deg, #7B61FF, #A48BFF); }
.grad-card.dark { background: var(--grad-dark); }
.grad-card::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.grad-card .gc-lbl { font-size: 12px; opacity: .85; display: flex; align-items: center; gap: 6px; }
.grad-card .gc-num { font-size: 30px; font-weight: 700; margin-top: 8px; font-family: "DIN Alternate", "Roboto", Arial; }
.grad-card .gc-sub { font-size: 12px; opacity: .8; margin-top: 6px; position: relative; z-index: 1; }
.grad-card .gc-btn {
  position: absolute; right: 14px; bottom: 16px; z-index: 2;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .45);
  color: #fff; font-size: 12px; padding: 6px 14px; border-radius: 20px;
}

/* ---------- 资产统计网格 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-grid .item {
  background: var(--card); border-radius: 12px; padding: 12px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow);
}
.stat-grid .ic {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.stat-grid .ic svg { width: 22px; height: 22px; }
.ic-blue { background: var(--primary-light); color: var(--primary); }
.ic-green { background: var(--green-light); color: var(--green); }
.ic-gold { background: var(--gold-light); color: var(--gold); }
.ic-purple { background: var(--purple-light); color: var(--purple); }
.ic-red { background: var(--red-light); color: var(--red); }
.stat-grid .lb { font-size: 12px; color: var(--text2); }
.stat-grid .vl { font-size: 17px; font-weight: 700; margin-top: 2px; font-family: "DIN Alternate", "Roboto", Arial; }
.stat-grid .vl small { font-size: 11px; font-weight: 400; color: var(--text2); margin-left: 2px; }

/* ---------- 快捷入口 ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 4px 0; }
.quick-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; color: var(--text); font-size: 12px; }
.quick-grid .qic {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.quick-grid .qic svg { width: 24px; height: 24px; }
.quick-grid a:active { transform: scale(.94); }

/* ---------- 列表单元格 ---------- */
.cell {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cell:last-child { border-bottom: none; }
.cell .c-ic {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cell .c-ic svg { width: 20px; height: 20px; }
.cell .c-tx { flex: 1; min-width: 0; }
.cell .c-t { font-size: 14px; font-weight: 500; }
.cell .c-d { font-size: 12px; color: var(--text2); margin-top: 2px; }
.cell .c-r { font-size: 13px; color: var(--text2); display: flex; align-items: center; gap: 4px; }
.cell .c-r b { color: var(--text); font-weight: 600; }
.cell .arrow { color: var(--text3); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 22px; border-radius: 22px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.btn:active { transform: scale(.97); opacity: .9; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(45, 92, 255, .30); }
.btn-gold { background: linear-gradient(135deg, #F5A623, #FFB84D); color: #fff; box-shadow: 0 6px 16px rgba(245, 166, 35, .30); }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: #fff; }
.btn-gray { background: #F2F4F8; color: var(--text2); }
.btn-mini { height: 32px; padding: 0 16px; font-size: 13px; border-radius: 16px; font-weight: 500; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; border-radius: 18px; }
.btn:disabled { opacity: .5; pointer-events: none; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 16px; }
.form-group .fg-label { font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.input-wrap {
  display: flex; align-items: center; gap: 10px;
  background: #F5F7FB; border: 1px solid transparent;
  border-radius: 12px; padding: 0 14px; height: 48px;
  transition: border-color .15s, background .15s;
}
.input-wrap:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-light); }
.input-wrap svg { width: 20px; height: 20px; color: var(--text3); flex-shrink: 0; }
.input-wrap input { flex: 1; height: 100%; font-size: 15px; color: var(--text); background: none; }
.input-wrap input::placeholder { color: var(--text3); }
.input-wrap .eye { color: var(--text3); cursor: pointer; }
.captcha-box {
  width: 92px; height: 38px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #EAF0FF, #FDEBD7);
  color: var(--primary-dark); font-weight: 700; letter-spacing: 4px; font-size: 16px;
  user-select: none;
}
.row-btw { display: flex; align-items: center; justify-content: space-between; }
.checkbox { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); cursor: pointer; }
.checkbox .box {
  width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--text3);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; transition: all .15s;
}
.checkbox.on .box { background: var(--primary); border-color: var(--primary); }

/* ---------- 进度条 ---------- */
.progress { height: 8px; background: var(--line); border-radius: 6px; overflow: hidden; margin-top: 10px; }
.progress .bar { height: 100%; border-radius: 6px; background: var(--grad); transition: width .4s; }
.progress.gold .bar { background: linear-gradient(90deg, #F5A623, #FFC45C); }
.progress.green .bar { background: linear-gradient(90deg, #07C160, #3BD58A); }

/* ---------- 商品 ---------- */
.cat-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 2px; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat {
  flex-shrink: 0; padding: 7px 16px; border-radius: 18px;
  background: var(--card); color: var(--text2); font-size: 13px;
  border: 1px solid var(--line);
}
.cat.on { background: var(--grad); color: #fff; border-color: transparent; font-weight: 500; }
.pay-toggle { display: flex; background: var(--card); border-radius: 22px; padding: 3px; margin: 10px 16px 2px; border: 1px solid var(--line); }
.pay-toggle button {
  flex: 1; height: 36px; border-radius: 20px; font-size: 13px; color: var(--text2);
}
.pay-toggle button.on { background: var(--grad); color: #fff; font-weight: 600; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 12px 16px 24px; }
.pcard { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pimg {
  height: 128px; display: flex; align-items: center; justify-content: center;
  font-size: 42px; font-weight: 800; color: rgba(255, 255, 255, .92); position: relative;
}
.pimg .p-tag {
  position: absolute; left: 8px; top: 8px; font-size: 10px;
  background: rgba(0, 0, 0, .28); color: #fff; padding: 2px 8px; border-radius: 10px;
  backdrop-filter: blur(2px);
}
.pb { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.pb .p-name { font-size: 13px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.pb .p-price { margin-top: 6px; display: flex; align-items: baseline; gap: 6px; }
.pb .p-price b { color: var(--red); font-size: 17px; font-family: "DIN Alternate", "Roboto", Arial; }
.pb .p-price s { color: var(--text3); font-size: 11px; }
.pb .p-btns { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; }
.pb .p-way { font-size: 10px; color: var(--text2); }

/* ---------- 价格表 ---------- */
.price-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.price-table th { color: var(--text2); font-weight: 500; font-size: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.price-table td { padding: 12px 4px; border-bottom: 1px solid var(--line); text-align: center; }
.price-table td:first-child, .price-table th:first-child { text-align: left; }
.price-table tr:last-child td { border-bottom: none; }
.price-table .num { font-family: "DIN Alternate", "Roboto", Arial; font-weight: 600; }

/* ---------- 图表 ---------- */
.chart-box { width: 100%; height: 280px; }
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--text2); padding: 0 16px 4px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.kl-red { background: var(--red); }
.kl-green { background: var(--green); }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(15, 23, 42, .55);
  display: none; align-items: flex-end; justify-content: center;
}
.modal-mask.show { display: flex; }
.modal {
  width: 100%; max-width: 480px; background: var(--card);
  border-radius: 20px 20px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  animation: slideUp .25s ease;
  max-height: 82vh; overflow-y: auto;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal .m-t { font-size: 16px; font-weight: 600; text-align: center; }
.modal .m-d { font-size: 13px; color: var(--text2); text-align: center; margin-top: 6px; }
.modal .m-close {
  position: absolute; right: 14px; top: 14px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center; color: var(--text2);
}
.money-big { text-align: center; font-size: 34px; font-weight: 700; color: var(--text); font-family: "DIN Alternate", "Roboto", Arial; margin: 14px 0; }
.money-big small { font-size: 16px; margin-right: 4px; }
.m-formula { background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--text2); line-height: 2; }
.m-formula b { color: var(--primary); font-weight: 600; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%);
  background: rgba(20, 26, 40, .82); color: #fff;
  padding: 12px 22px; border-radius: 12px; font-size: 14px;
  z-index: 2000; opacity: 0; pointer-events: none; transition: opacity .2s;
  max-width: 80%; text-align: center;
}
.toast.show { opacity: 1; }

/* ---------- 流程步骤 ---------- */
.steps { display: flex; align-items: flex-start; padding: 6px 4px 2px; }
.steps .st { flex: 1; text-align: center; position: relative; }
.steps .st .dot {
  width: 28px; height: 28px; border-radius: 50%; margin: 0 auto;
  background: var(--line); color: var(--text2);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
  position: relative; z-index: 2;
}
.steps .st.done .dot { background: var(--green); color: #fff; }
.steps .st.on .dot { background: var(--grad); color: #fff; }
.steps .st .lbl { font-size: 11px; color: var(--text2); margin-top: 6px; }
.steps .st.on .lbl { color: var(--primary); font-weight: 500; }
.steps .st::before {
  content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: var(--line);
}
.steps .st:first-child::before { display: none; }
.steps .st.done::before, .steps .st.on::before { background: var(--green); }

/* ---------- 身份卡片 ---------- */
.id-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 4px 0; }
.id-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 8px; text-align: center; position: relative; }
.id-card .iname { font-size: 15px; font-weight: 600; }
.id-card .iprice { font-size: 12px; color: var(--text2); margin-top: 6px; }
.id-card .iprice b { font-size: 15px; color: var(--primary); font-family: "DIN Alternate", "Roboto", Arial; }
.id-card .i-tag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 10px; padding: 1px 10px; border-radius: 10px; white-space: nowrap; }
.id-card.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

/* ---------- 对比表 ---------- */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp-table th, .cmp-table td { padding: 11px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; color: var(--text2); font-size: 12px; }
.cmp-table .ok { color: var(--green); font-weight: 600; }
.cmp-table .no { color: var(--text3); }
.cmp-table th.c-hl { color: var(--primary); background: var(--primary-light); }

/* ---------- 折叠 ---------- */
.accordion .acc-item { border-bottom: 1px solid var(--line); }
.accordion .acc-item:last-child { border-bottom: none; }
.accordion .acc-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; cursor: pointer; font-size: 14px; font-weight: 500;
}
.accordion .acc-h .arr { transition: transform .2s; color: var(--text3); }
.accordion .acc-item.open .arr { transform: rotate(180deg); }
.accordion .acc-b { display: none; padding: 0 0 14px; font-size: 13px; color: var(--text2); line-height: 1.9; }
.accordion .acc-item.open .acc-b { display: block; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 46px 20px; color: var(--text3); }
.empty svg { width: 56px; height: 56px; margin-bottom: 12px; opacity: .5; }
.empty .e-t { font-size: 14px; }

/* ---------- 公告 ---------- */
.notice {
  display: flex; align-items: center; gap: 10px;
  background: var(--gold-light); border: 1px solid #FFE8C2;
  border-radius: 12px; padding: 10px 12px; margin: 12px 16px;
  font-size: 13px; color: #9A6A00;
}
.notice .n-ic { flex-shrink: 0; display: flex; }
.notice .n-tx { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- 记录行 ---------- */
.rec { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rec:last-child { border-bottom: none; }
.rec .r-ic { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.rec .r-tx { flex: 1; min-width: 0; }
.rec .r-t { font-size: 14px; font-weight: 500; }
.rec .r-d { font-size: 12px; color: var(--text2); margin-top: 2px; }
.rec .r-am { font-size: 15px; font-weight: 700; font-family: "DIN Alternate", "Roboto", Arial; }
.rec .r-am.in { color: var(--green); }
.rec .r-am.out { color: var(--text); }
.rec .r-st { font-size: 12px; color: var(--text2); margin-top: 2px; text-align: right; }

/* ---------- 登录页 ---------- */
.login-body { background: linear-gradient(160deg, #14264B 0%, #2A5298 60%, #3E6BC4 100%); }
.login-shell { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; display: flex; flex-direction: column; }
.lg-deco { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.lg-deco.d1 { width: 220px; height: 220px; right: -80px; top: -60px; }
.lg-deco.d2 { width: 140px; height: 140px; left: -50px; bottom: 120px; }
.lg-deco.d3 { width: 60px; height: 60px; right: 30px; bottom: 40px; }
.lg-brand { text-align: center; padding: 56px 24px 30px; color: #fff; position: relative; z-index: 1; }
.lg-logo {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px;
  background: linear-gradient(135deg, #F5A623, #FFC45C);
  color: #14264B; font-size: 30px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(245, 166, 35, .4);
}
.lg-brand h1 { font-size: 24px; font-weight: 700; letter-spacing: 2px; }
.lg-brand p { font-size: 13px; opacity: .75; margin-top: 8px; letter-spacing: 1px; }
.lg-card {
  position: relative; z-index: 2;
  background: #fff; border-radius: 24px 24px 0 0;
  padding: 22px 24px 34px; flex: 1;
}
.lg-tabs { display: flex; margin-bottom: 22px; }
.lg-tabs button {
  flex: 1; text-align: center; font-size: 17px; font-weight: 600;
  color: var(--text2); padding-bottom: 10px; position: relative;
}
.lg-tabs button.on { color: var(--text); }
.lg-tabs button.on::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--grad);
}
.lg-form { display: none; }
.lg-form.show { display: block; }
.lg-sub { font-size: 12px; color: var(--text3); text-align: center; margin-top: 18px; line-height: 1.8; }
.lg-sub a { color: var(--primary); }

/* ---------- 工具类 ---------- */
.flex { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.text2 { color: var(--text2); } .text3 { color: var(--text3); }
.text-red { color: var(--red); } .text-green { color: var(--green); } .text-gold { color: var(--gold); } .text-primary { color: var(--primary); }
.fs-11 { font-size: 11px; } .fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; } .fs-15 { font-size: 15px; }
.num { font-family: "DIN Alternate", "Roboto", Arial; }
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mg-0 { margin: 0; }
