/* ============================================================
   智汇盒 · 前台 H5 样式
   ============================================================ */
:root {
  --primary: #4a6cf7;
  --primary-2: #6a8dff;
  --primary-soft: rgba(74, 108, 247, .08);
  --success: #16b777;
  --warn: #ff9500;
  --danger: #f5222d;
  --vip: #b8860b;
  --vip-bg: linear-gradient(135deg, #ffe9b0, #f7d67a);
  --bg: #f4f5f9;
  --card: #fff;
  --text: #1a1d24;
  --text-2: #5b6172;
  --sub: #949aab;
  --line: #edeff4;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(24, 35, 71, .05);
  --shadow-lg: 0 8px 28px rgba(24, 35, 71, .12);
  --tabbar-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
a { color: inherit; text-decoration: none; }
img { border-style: none; }
input, textarea, button, select { font-family: inherit; font-size: 14px; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul, li { list-style: none; margin: 0; padding: 0; }

/* 布局骨架 */
#app { max-width: 720px; margin: 0 auto; min-height: 100vh; position: relative; background: var(--bg); }
.page { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px); min-height: 100vh; }
.page.no-tab { padding-bottom: calc(var(--safe-b) + 20px); }
.wrap { padding: 0 14px; }
.hide { display: none !important; }

/* ---------- 顶部栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 12px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar.grad {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-bottom: none; color: #fff;
}
.topbar .tb-title { font-size: 16px; font-weight: 600; flex: 1; text-align: center; }
.topbar .tb-back, .topbar .tb-act {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 18px; flex-shrink: 0;
}
.topbar .tb-back:active { background: rgba(0, 0, 0, .05); }
.topbar.grad .tb-back:active { background: rgba(255, 255, 255, .18); }

/* ---------- 首页头部 ---------- */
.home-hero {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-2) 55%, #8aa4ff 100%);
  padding: 14px 14px 46px; color: #fff; position: relative;
}
.home-hero .hh-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.home-hero .hh-brand { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.home-hero .hh-brand .logo {
  width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.home-hero .hh-sub { font-size: 11px; opacity: .8; font-weight: 400; }
.home-hero .hh-vip {
  font-size: 11px; padding: 5px 10px; border-radius: 20px;
  background: var(--vip-bg); color: #7a5200; font-weight: 600; display: flex; align-items: center; gap: 3px;
}
.hero-stats { display: flex; gap: 16px; font-size: 11px; opacity: .9; margin-top: 10px; }
.hero-stats b { font-size: 15px; font-weight: 700; margin-right: 3px; }

/* 搜索框 */
.searchbar {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px; border-radius: 20px;
  background: rgba(255, 255, 255, .96); box-shadow: 0 3px 12px rgba(20, 30, 70, .12);
}
.searchbar .ico { color: var(--sub); font-size: 15px; }
.searchbar input { flex: 1; border: none; outline: none; background: none; font-size: 13px; }
.searchbar input::placeholder { color: #b3b8c6; }
.searchbar .sb-btn {
  font-size: 12px; color: var(--primary); font-weight: 600; padding: 3px 4px;
}

/* ---------- 卡片区块 ---------- */
.panel {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; margin-bottom: 12px;
}
.panel.tight { padding: 12px 10px; }
.panel-float { margin-top: -34px; position: relative; z-index: 5; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sec-head h3 { margin: 0; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.sec-head h3::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(var(--primary), var(--primary-2));
}
.sec-head .more { font-size: 12px; color: var(--sub); }

/* ---------- 公告条 ---------- */
.notice-bar {
  display: flex; align-items: center; gap: 8px;
  background: #fff8e8; color: #a06a00; border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: 12px; margin-bottom: 12px; overflow: hidden;
}
.notice-bar .nb-tag {
  background: var(--warn); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 8px; flex-shrink: 0;
}
.notice-bar .nb-txt { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 轮播 ---------- */
.swiper {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px;
}
.swiper::-webkit-scrollbar { display: none; }
.swipe-item {
  flex: 0 0 100%; scroll-snap-align: center; height: 112px; border-radius: var(--radius);
  padding: 16px; color: #fff; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden; background-size: cover; background-position: center;
}
.swipe-item h4 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.swipe-item p { margin: 0; font-size: 12px; opacity: .88; }
.swipe-dots { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.swipe-dots i { width: 5px; height: 5px; border-radius: 3px; background: #d3d7e2; transition: .25s; }
.swipe-dots i.on { width: 14px; background: var(--primary); }

/* ---------- 金刚区 ---------- */
.kingkong { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 4px; }
.kk-item { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.kk-icon {
  width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; box-shadow: 0 3px 8px rgba(74, 108, 247, .18);
}
.kk-icon img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
.kk-item span {
  font-size: 11px; color: var(--text-2); text-align: center; line-height: 1.3;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kk-item:active .kk-icon { transform: scale(.93); }
.kk-icon { transition: transform .15s; }
.kk-badge {
  position: absolute; top: -4px; right: 2px; font-size: 9px; line-height: 1;
  padding: 2px 4px; border-radius: 6px 6px 6px 0; color: #fff; background: var(--danger);
}
.kk-badge.vip { background: linear-gradient(135deg, #f7c94b, #e0a012); color: #6b4a00; }

/* ---------- 分类快捷 ---------- */
.cat-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.cat-scroll::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 6px 14px; border-radius: 18px; font-size: 12.5px;
  background: #f2f4f9; color: var(--text-2); border: 1px solid transparent; transition: .18s;
}
.chip.on {
  background: var(--primary-soft); color: var(--primary); font-weight: 600; border-color: rgba(74, 108, 247, .25);
}

/* ---------- 工具卡片列表 ---------- */
.tool-list { display: flex; flex-direction: column; gap: 10px; }
.tool-card {
  background: var(--card); border-radius: var(--radius); padding: 13px;
  display: flex; gap: 12px; box-shadow: var(--shadow); position: relative; transition: transform .15s;
}
.tool-card:active { transform: scale(.985); }
.tc-icon {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff;
}
.tc-icon img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.tc-body { flex: 1; min-width: 0; }
.tc-title { display: flex; align-items: center; gap: 6px; }
.tc-title h4 {
  margin: 0; font-size: 15px; font-weight: 600; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; max-width: 62%;
}
.tc-sub {
  font-size: 12px; color: var(--sub); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.tc-meta { display: flex; align-items: center; gap: 10px; margin-top: 7px; font-size: 11px; color: var(--sub); }
.tc-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tc-tags i { font-style: normal; background: #f3f5fa; color: #7c8398; padding: 2px 6px; border-radius: 5px; }
.tc-go {
  align-self: center; flex-shrink: 0; font-size: 12px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  padding: 7px 14px; border-radius: 16px; box-shadow: 0 3px 8px rgba(74, 108, 247, .22);
}
.tag-hot { background: #fff0f0 !important; color: #f5222d !important; }
.tag-new { background: #eefaf3 !important; color: #16b777 !important; }
.tag-vip { background: #fff6e0 !important; color: #b8860b !important; }
.fav-btn {
  position: absolute; top: 10px; right: 10px; font-size: 16px; color: #d8dce6; padding: 4px;
}
.fav-btn.on { color: #ff5a5f; }

/* ---------- 工具详情 ---------- */
.tool-hero {
  background: linear-gradient(160deg, var(--primary), var(--primary-2));
  color: #fff; padding: 4px 16px 40px;
}
.th-main { display: flex; gap: 13px; align-items: center; }
.th-icon {
  width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .2);
  display: flex; align-items: center; justify-content: center; font-size: 27px; flex-shrink: 0;
  backdrop-filter: blur(4px);
}
.th-icon img { width: 34px; height: 34px; border-radius: 8px; }
.th-info h2 { margin: 0 0 5px; font-size: 19px; font-weight: 700; }
.th-info p { margin: 0; font-size: 12px; opacity: .88; }
.th-badges { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.th-badges i {
  font-style: normal; font-size: 10.5px; background: rgba(255, 255, 255, .2);
  padding: 3px 8px; border-radius: 10px;
}

/* 输入区 */
.input-box {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fafbfd;
  transition: .18s; overflow: hidden;
}
.input-box:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-soft); }
.input-box textarea, .input-box input {
  width: 100%; border: none; outline: none; background: none; resize: none;
  padding: 12px; font-size: 14px; line-height: 1.6; display: block;
}
.input-box textarea { min-height: 88px; }
.ib-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--sub);
}
.ib-foot .acts { display: flex; gap: 12px; }
.ib-foot .acts b { color: var(--primary); font-weight: 500; }
.field-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.field-label .quota { font-size: 11px; font-weight: 400; color: var(--sub); }
.field-label .quota b { color: var(--warn); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; border-radius: 24px; font-size: 15px; font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
  box-shadow: 0 5px 16px rgba(74, 108, 247, .28); width: 100%; transition: .15s;
}
.btn:active { transform: scale(.985); opacity: .92; }
.btn[disabled] { opacity: .6; box-shadow: none; }
.btn.ghost {
  background: #fff; color: var(--primary); border: 1.5px solid rgba(74, 108, 247, .3); box-shadow: none;
}
.btn.gray { background: #f2f4f9; color: var(--text-2); box-shadow: none; }
.btn.sm { height: 36px; font-size: 13px; border-radius: 18px; }
.btn.vip-btn { background: linear-gradient(135deg, #f7d67a, #e0a012); color: #6b4a00; box-shadow: 0 5px 16px rgba(224, 160, 18, .3); }
.btn-row { display: flex; gap: 10px; }

.spin {
  width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff; border-radius: 50%; animation: rot .7s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }

/* 结果区 */
.result-card { animation: fadeUp .28s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.res-head { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 13px; }
.res-head .ok { color: var(--success); font-weight: 600; }
.res-head .cost { color: var(--sub); font-size: 11px; margin-left: auto; }
.media-box {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; background: #000; margin-bottom: 12px;
}
.media-box video, .media-box img { width: 100%; display: block; max-height: 62vh; object-fit: contain; }
.media-cover { position: relative; }
.media-cover .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .25);
}
.media-cover .play span {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .9);
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--primary);
  padding-left: 3px;
}
.res-title { font-size: 14px; font-weight: 600; line-height: 1.5; margin-bottom: 8px; word-break: break-all; }
.res-author { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); margin-bottom: 10px; }
.res-author img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.res-text {
  background: #fafbfd; border-radius: var(--radius-sm); padding: 12px; font-size: 13.5px;
  line-height: 1.75; white-space: pre-wrap; word-break: break-word; max-height: 46vh; overflow-y: auto;
}
.img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.img-grid a { display: block; border-radius: 8px; overflow: hidden; background: #f1f2f6; aspect-ratio: 1; }
.img-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qr-box { text-align: center; padding: 8px 0; }
.qr-box img { width: 200px; height: 200px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.qr-box p { font-size: 11.5px; color: var(--sub); margin: 10px 0 0; }

.kv-list { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.kv-item {
  display: flex; padding: 10px 12px; font-size: 13px; border-bottom: 1px solid var(--line); background: #fff;
}
.kv-item:last-child { border-bottom: none; }
.kv-item:nth-child(odd) { background: #fafbfd; }
.kv-item .k { color: var(--sub); width: 92px; flex-shrink: 0; }
.kv-item .v { flex: 1; word-break: break-all; font-weight: 500; }

.tip-box {
  background: #f7f9ff; border-left: 3px solid var(--primary); border-radius: 8px;
  padding: 10px 12px; font-size: 12px; color: var(--text-2); line-height: 1.7; white-space: pre-wrap;
}
.err-box {
  background: #fff5f5; border-left: 3px solid var(--danger); border-radius: 8px;
  padding: 11px 12px; font-size: 13px; color: #c92a2a; line-height: 1.6;
}

/* ---------- 使用记录 ---------- */
.rec-item { background: var(--card); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); margin-bottom: 10px; }
.rec-top { display: flex; align-items: center; gap: 9px; }
.rec-icon {
  width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 17px; color: #fff; flex-shrink: 0;
}
.rec-name { font-size: 13.5px; font-weight: 600; }
.rec-time { font-size: 11px; color: var(--sub); margin-top: 2px; }
.rec-state { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 10px; flex-shrink: 0; }
.rec-state.ok { background: #eefaf3; color: var(--success); }
.rec-state.no { background: #fff1f0; color: var(--danger); }
.rec-input {
  margin-top: 9px; font-size: 12px; color: var(--text-2); background: #f7f8fc;
  border-radius: 8px; padding: 8px 10px; word-break: break-all;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rec-acts { display: flex; gap: 14px; margin-top: 9px; font-size: 12px; color: var(--primary); }
.rec-acts .del { color: var(--sub); margin-left: auto; }

/* ---------- 我的 ---------- */
.mine-hero { background: linear-gradient(160deg, var(--primary), var(--primary-2)); padding: 18px 16px 46px; color: #fff; }
.mh-user { display: flex; align-items: center; gap: 12px; }
.mh-avatar {
  width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .25);
  display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, .45); overflow: hidden;
}
.mh-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mh-name { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.mh-name .vip-tag {
  font-size: 10px; background: var(--vip-bg); color: #7a5200; padding: 2px 7px; border-radius: 9px; font-weight: 700;
}
.mh-desc { font-size: 11.5px; opacity: .85; margin-top: 4px; }
.mine-stat { display: flex; }
.mine-stat > div { flex: 1; text-align: center; padding: 4px 0; }
.mine-stat b { display: block; font-size: 19px; font-weight: 700; color: var(--text); }
.mine-stat span { font-size: 11px; color: var(--sub); }
.vip-card {
  background: linear-gradient(120deg, #3a3f52, #22252f); border-radius: var(--radius);
  padding: 15px; color: #f3d99b; display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.vip-card .vc-body { flex: 1; }
.vip-card h4 { margin: 0 0 4px; font-size: 15px; color: #ffe9b8; }
.vip-card p { margin: 0; font-size: 11.5px; opacity: .72; }
.vip-card .vc-btn {
  background: var(--vip-bg); color: #6b4a00; font-size: 12px; font-weight: 700;
  padding: 7px 14px; border-radius: 16px; flex-shrink: 0;
}
.menu-list { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.menu-item {
  display: flex; align-items: center; gap: 11px; padding: 14px;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: #fafbfd; }
.menu-item .mi-ico {
  width: 30px; height: 30px; border-radius: 9px; background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--primary);
}
.menu-item .mi-arrow { margin-left: auto; color: #ccd1dd; font-size: 15px; }
.menu-item .mi-val { margin-left: auto; font-size: 12px; color: var(--sub); }

/* 会员套餐 */
.vip-plans { display: flex; flex-direction: column; gap: 10px; }
.plan {
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 13px;
  display: flex; align-items: center; gap: 12px; background: #fff; transition: .18s;
}
.plan.on { border-color: var(--vip); background: #fffdf5; box-shadow: 0 3px 12px rgba(184, 134, 11, .12); }
.plan .p-name { font-size: 15px; font-weight: 700; }
.plan .p-benefit { font-size: 11.5px; color: var(--sub); margin-top: 4px; line-height: 1.5; }
.plan .p-price { margin-left: auto; text-align: right; flex-shrink: 0; }
.plan .p-price b { font-size: 20px; color: #d9480f; font-weight: 700; }
.plan .p-price s { font-size: 11px; color: var(--sub); display: block; }

/* ---------- 底部 tabbar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); max-width: 720px; margin: 0 auto;
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 10.5px; color: var(--sub); transition: .15s;
}
.tab-item .ti-ico { font-size: 20px; line-height: 1; }
.tab-item.on { color: var(--primary); font-weight: 600; }
.tab-item.on .ti-ico { transform: translateY(-1px); }

/* ---------- 通用组件 ---------- */
.skeleton { background: linear-gradient(90deg, #eef0f5 25%, #f6f7fa 37%, #eef0f5 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-card { height: 72px; border-radius: var(--radius); margin-bottom: 10px; }

.empty { text-align: center; padding: 56px 20px; color: var(--sub); }
.empty .e-ico { font-size: 46px; opacity: .35; margin-bottom: 10px; }
.empty p { margin: 0 0 4px; font-size: 14px; }
.empty small { font-size: 12px; opacity: .8; }

.load-more { text-align: center; padding: 14px; font-size: 12.5px; color: var(--sub); }
.load-more.clickable { color: var(--primary); }

.toast-wrap { position: fixed; left: 50%; top: 42%; transform: translateX(-50%); z-index: 999; pointer-events: none; }
.toast {
  background: rgba(28, 32, 44, .9); color: #fff; padding: 11px 18px; border-radius: 10px;
  font-size: 13.5px; max-width: 76vw; text-align: center; margin-bottom: 8px;
  animation: tin .22s ease; line-height: 1.5; word-break: break-word;
}
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.loading-mask {
  position: fixed; inset: 0; z-index: 998; background: rgba(0, 0, 0, .28);
  display: flex; align-items: center; justify-content: center;
}
.loading-mask .lm-box {
  background: rgba(28, 32, 44, .88); color: #fff; padding: 18px 24px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px;
}
.loading-mask .spin { width: 22px; height: 22px; border-width: 2.5px; }

.sheet-mask {
  position: fixed; inset: 0; z-index: 900; background: rgba(0, 0, 0, .42);
  display: flex; align-items: flex-end; animation: fade .2s;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: 100%; max-width: 720px; margin: 0 auto; background: #fff;
  border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + var(--safe-b));
  animation: up .25s cubic-bezier(.2, .8, .3, 1); max-height: 86vh; overflow-y: auto;
}
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.sheet-title { font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 16px; }
.sheet-close { position: absolute; right: 16px; top: 14px; font-size: 20px; color: var(--sub); }

.form-item { margin-bottom: 14px; }
.form-item label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.form-item .ipt {
  width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 12px; background: #fafbfd; outline: none; transition: .18s;
}
.form-item textarea.ipt { height: auto; min-height: 96px; padding: 11px 12px; resize: none; line-height: 1.6; }
.form-item .ipt:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-soft); }
.form-tabs { display: flex; background: #f2f4f9; border-radius: 10px; padding: 3px; margin-bottom: 18px; }
.form-tabs div {
  flex: 1; text-align: center; padding: 8px; font-size: 13.5px; border-radius: 8px; color: var(--text-2); transition: .18s;
}
.form-tabs div.on { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 1px 5px rgba(0, 0, 0, .06); }

.footer-info { text-align: center; padding: 20px 16px 8px; font-size: 11px; color: #b0b5c2; line-height: 1.8; }
