:root {
  --primary: #0B2A5B;
  --primary-light: #123C7A;
  --accent: #F2A93B;
  --accent-dark: #D98F1F;
  --danger: #E5484D;
  --success: #17A673;
  --bg: #F4F5F7;
  --card: #FFFFFF;
  --text: #1B2330;
  --text-sub: #6B7684;
  --line: #EBEDF0;
  --radius: 14px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  padding-bottom: 64px;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* 顶部导航 */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px;
}
.navbar .title { font-size: 17px; font-weight: 600; flex: 1; text-align: center; }
.navbar .back, .navbar .right { width: 44px; font-size: 22px; cursor: pointer; }
.navbar .right { font-size: 14px; width: auto; }

/* 容器 */
.page { padding: 12px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 14px;
  margin-bottom: 12px; box-shadow: 0 2px 10px rgba(16, 32, 60, 0.06);
}
.card-title {
  font-size: 16px; font-weight: 600; margin: 0 0 10px; display: flex; align-items: center; gap: 8px;
}
.card-title::before {
  content: ''; width: 4px; height: 16px; background: var(--accent); border-radius: 2px;
}

/* Banner */
.banner { position: relative; width: 100%; height: 170px; overflow: hidden; }
.banner-track { display: flex; width: 300%; height: 100%; transition: transform .5s ease; }
.banner-track img { width: 33.3333%; height: 170px; object-fit: cover; }
.banner-dots {
  position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px;
}
.banner-dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.5); transition: .3s; }
.banner-dots i.on { width: 18px; background: var(--accent); }

/* 金刚区 */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.grid4 a { text-decoration: none; color: var(--text); text-align: center; }
.grid4 .ico {
  width: 52px; height: 52px; margin: 0 auto 6px; border-radius: 16px; display: flex;
  align-items: center; justify-content: center; font-size: 26px; color: #fff;
}
.grid4 .ico.i1 { background: linear-gradient(135deg, #F2A93B, #E5761B); }
.grid4 .ico.i2 { background: linear-gradient(135deg, #1E6FD9, #0B2A5B); }
.grid4 .ico.i3 { background: linear-gradient(135deg, #17A673, #0E7A55); }
.grid4 .ico.i4 { background: linear-gradient(135deg, #8B5CF6, #5B3CC4); }
.grid4 span { font-size: 12px; color: var(--text-sub); }

/* 表单 */
.form-item {
  display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 10px;
}
.form-item:last-child { border-bottom: none; }
.form-item > label { width: 96px; flex: none; color: var(--text-sub); font-size: 14px; }
.form-item label i { color: var(--danger); font-style: normal; }
.form-item .ctrl { flex: 1; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; border: none; outline: none; font-size: 15px; color: var(--text);
  background: transparent; font-family: inherit; padding: 0;
}
.form-item select { appearance: none; background: transparent; }
.form-item textarea { resize: none; min-height: 50px; }
.form-item .unit { color: var(--text-sub); font-size: 13px; flex: none; }
::placeholder { color: #B5BCC7; }

/* 按钮 */
.btn {
  display: block; width: 100%; border: none; border-radius: 24px; padding: 13px;
  font-size: 16px; font-weight: 600; background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; cursor: pointer; box-shadow: 0 6px 16px rgba(242, 169, 59, .32);
}
.btn:active { opacity: .88; }
.btn[disabled] { background: #C9CFD8; box-shadow: none; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); box-shadow: none; }
.btn.small { width: auto; display: inline-block; padding: 7px 16px; font-size: 13px; border-radius: 16px; }
.btn-row { display: flex; gap: 10px; }

/* 标签 */
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.tag.green { background: #E4F7EF; color: var(--success); }
.tag.orange { background: #FFF2DC; color: var(--accent-dark); }
.tag.red { background: #FDEAEA; color: var(--danger); }
.tag.gray { background: #F0F2F5; color: var(--text-sub); }

/* 列表项 */
.list-item {
  background: #fff; border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(16,32,60,.05);
}
.list-item .row1 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.list-item .name { font-weight: 600; font-size: 15px; flex: 1; }
.list-item .meta { color: var(--text-sub); font-size: 13px; line-height: 1.8; }
.empty { text-align: center; color: var(--text-sub); padding: 60px 0; font-size: 14px; }
.empty .ico { font-size: 44px; margin-bottom: 10px; }

/* 底部 tabbar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex;
  background: #fff; border-top: 1px solid var(--line); padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.tabbar a { flex: 1; text-align: center; text-decoration: none; color: var(--text-sub); font-size: 11px; }
.tabbar a .ico { font-size: 22px; display: block; line-height: 1.4; }
.tabbar a.on { color: var(--primary); font-weight: 600; }
.tabbar a.on .ico { color: var(--accent); }

/* 弹窗 */
.mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100; display: none;
  align-items: flex-end; justify-content: center;
}
.mask.show { display: flex; }
.sheet {
  background: #fff; width: 100%; max-width: 520px; border-radius: 16px 16px 0 0; padding: 16px 16px 24px;
  max-height: 82vh; overflow: auto; animation: up .25s ease;
}
@keyframes up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet h3 { margin: 0 0 12px; font-size: 16px; text-align: center; }

/* 扫码 */
.scanner { position: relative; width: 100%; height: 260px; background: #000; border-radius: 12px; overflow: hidden; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame {
  position: absolute; left: 12%; right: 12%; top: 16%; bottom: 16%;
  border: 2px solid var(--accent); border-radius: 10px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35);
}
.scanner .tip { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: #fff; font-size: 12px; }
.scan-line {
  position: absolute; left: 12%; right: 12%; height: 2px; background: var(--accent);
  box-shadow: 0 0 8px var(--accent); animation: scanmove 2.2s linear infinite;
}
@keyframes scanmove { 0% { top: 16%; } 100% { top: 84%; } }

/* 照片上传 */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-cell {
  aspect-ratio: 1; border-radius: 10px; border: 1px dashed #C8CFDA; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: var(--text-sub); font-size: 12px; position: relative;
  background: #FAFBFC; overflow: hidden; cursor: pointer;
}
.photo-cell img { width: 100%; height: 100%; object-fit: cover; }
.photo-cell .del {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 13px; text-align: center; line-height: 20px;
}
.photo-cell .plus { font-size: 26px; color: #C0C7D2; }

/* 步骤条 */
.steps { display: flex; padding: 14px 8px 18px; }
.steps .step { flex: 1; text-align: center; position: relative; color: var(--text-sub); font-size: 12px; }
.steps .step .dot {
  width: 24px; height: 24px; border-radius: 50%; background: #DDE1E7; color: #fff; margin: 0 auto 4px;
  line-height: 24px; font-size: 13px;
}
.steps .step.on .dot { background: var(--accent); }
.steps .step.on { color: var(--primary); font-weight: 600; }
.steps .step::after {
  content: ''; position: absolute; top: 12px; left: 50%; width: 100%; height: 1px; background: #DDE1E7;
}
.steps .step:last-child::after { display: none; }

/* toast */
.toast {
  position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,.78); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px;
  z-index: 999; display: none; max-width: 80%; text-align: center;
}
.toast.show { display: block; }

.hint { font-size: 12px; color: var(--text-sub); line-height: 1.7; }
.divider { height: 8px; }
.strong { font-weight: 600; }
.center { text-align: center; }
