/* 公共样式 */
* { 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', 'Microsoft YaHei', sans-serif;
  background: #f5f5f5; color: #333; line-height: 1.45;
  max-width: 480px; margin: 0 auto; position: relative;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* 顶部导航 */
.nav-bar {
  position: sticky; top: 0; z-index: 100;
  background: #fff; height: 48px; display: flex; align-items: center;
  padding: 0 12px; border-bottom: 1px solid #f0f0f0;
}
.nav-bar .back { width: 36px; font-size: 22px; color: #333; }
.nav-bar .title { flex: 1; text-align: center; font-size: 17px; font-weight: 600; padding-right: 36px; }

/* 底部 tabbar */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; max-width: 480px; margin: 0 auto;
  display: flex; background: #fff; border-top: 1px solid #f0f0f0; padding: 6px 0 4px;
}
.tabbar a { flex: 1; text-align: center; color: #999; font-size: 11px; }
.tabbar a.active { color: #c41e24; }
.tabbar a .ic { display: block; font-size: 22px; line-height: 1; margin-bottom: 2px; }
.body-pad { padding-bottom: 64px; }

/* 按钮 */
.btn-primary {
  display: block; width: 100%; border: none; border-radius: 10px;
  padding: 15px; font-size: 16px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #c41e24, #a0181e); cursor: pointer;
}
.btn-primary:active { transform: scale(.99); }
.btn-outline {
  display: block; width: 100%; border: 1px solid #c41e24; border-radius: 10px;
  padding: 13px; font-size: 15px; color: #c41e24; background: #fff; cursor: pointer;
}

/* 表单 */
.input-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid #f5f5f5;
}
.input-row:last-child { border-bottom: none; }
.input-row .label { font-size: 15px; color: #333; }
.input-row input[type="number"], .input-row input[type="text"] {
  width: 80px; text-align: right; font-size: 15px; border: none; outline: none; color: #333;
}
.section-title {
  font-size: 12px; color: #999; padding: 14px 16px 8px; background: #f5f5f5;
}
.card {
  background: #fff; margin-bottom: 10px; padding: 0 16px;
}

/* 提示条 */
.tip-bar {
  display: flex; align-items: flex-start; gap: 8px;
  background: #fffbe6; border: 1px solid #ffe58f; border-radius: 8px;
  padding: 10px 12px; margin: 10px 16px 16px; font-size: 12px; color: #d48806;
}
