/* 公共样式：品牌色 + H5基础组件 */
:root {
  --brand: #003057;
  --brand-light: #2b5a86;
  --accent: #00a3e0;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-2: #666666;
  --danger: #d93025;
  --success: #1e8e3e;
  --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px;
  padding-bottom: 72px;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 15px; }

/* 通用头部 */
.page-header {
  background: var(--brand); color: #fff;
  padding: 20px 16px; text-align: center;
}
.page-header h1 { font-size: 19px; font-weight: 600; }
.page-header p { font-size: 12px; opacity: .85; margin-top: 6px; }

/* 底部备案栏 */
.icp-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid #eee;
  padding: 12px 16px; text-align: center;
  font-size: 11px; color: #999; z-index: 100;
}
.icp-footer a { color: #999; text-decoration: none; }

/* 卡片 */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 16px; margin: 12px 16px; box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

/* 主按钮 */
.btn-primary {
  background: var(--brand); color: #fff; border-radius: 8px;
  padding: 13px; width: 100%; font-size: 16px; font-weight: 600;
  transition: opacity .2s;
}
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline {
  background: #fff; color: var(--brand); border: 1px solid var(--brand);
  border-radius: 8px; padding: 10px 18px; font-size: 14px;
}

/* loading */
.loading-box { text-align: center; padding: 60px 20px; color: var(--text-2); }
.spinner {
  width: 32px; height: 32px; border: 3px solid #e0e3e7; border-top-color: var(--brand);
  border-radius: 50%; margin: 0 auto 12px; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 错误提示 */
.error-text { color: var(--danger); font-size: 12px; margin-top: 6px; }
.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: rgba(0,0,0,.82); color: #fff; padding: 12px 22px;
  border-radius: 8px; font-size: 14px; z-index: 999;
}
