/* ============================================================
   网约车预约报名系统 - 公共样式
   风格参考：政务蓝移动端（渐变横幅 + 白卡片 + 浅蓝灰背景）
   主色 #1565c0 / #1e88e5 · 背景 #eef3f8 · 描边 #d7e2ee
   ============================================================ */
* { 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", "Helvetica Neue", sans-serif;
  background: #eef3f8; color: #333; font-size: 15px; line-height: 1.6;
}
.page { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #eef3f8; padding-bottom: 46px; }

/* ---------- 顶部渐变横幅 ---------- */
.header {
  background: linear-gradient(135deg, #1565c0, #1e88e5);
  color: #fff; padding: 26px 20px 46px; text-align: center;
  margin-bottom: -30px; /* 卡片上浮叠压横幅 */
}
.header .logo { display: none; }
.header h1 { font-size: 21px; font-weight: 600; letter-spacing: 1px; }
.header .sub { font-size: 12px; opacity: .85; margin-top: 8px; letter-spacing: 2px; }

/* ---------- 卡片 ---------- */
.card {
  background: #fff; border-radius: 14px; margin: 14px; padding: 22px 18px;
  box-shadow: 0 4px 18px rgba(21,101,192,.10); position: relative;
}
.card h2 { font-size: 16px; color: #1565c0; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.card h2::before { content: ""; width: 4px; height: 16px; background: #1e88e5; border-radius: 2px; display: inline-block; }

/* ---------- 阶段提示横幅（叠压在渐变横幅上） ---------- */
.banner {
  margin: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px;
  text-align: center; font-weight: 500; position: relative; z-index: 1;
  box-shadow: 0 4px 14px rgba(21,101,192,.12);
}
.banner.open { background: #e6f7ee; color: #0c8a4d; border: 1px solid #b8eccc; }
.banner.before { background: #fff8e6; color: #8a5a00; border: 1px solid #ffe0a3; }
.banner.ended { background: #fdeeee; color: #c0392b; border: 1px solid #f6c9c5; }

/* ---------- 按钮 ---------- */
.btn {
  display: block; width: 100%; padding: 13px 0; border: none; border-radius: 9px;
  background: linear-gradient(135deg, #1565c0, #1e88e5); color: #fff;
  font-size: 16px; font-weight: 600; cursor: pointer;
  transition: opacity .2s; text-align: center; text-decoration: none; margin-top: 6px;
}
.btn:active { opacity: .82; }
.btn.ghost { background: #fff; color: #1565c0; border: 1px solid #1e88e5; }
.btn.gray { background: #8a97ab; }
.btn.small { padding: 7px 14px; width: auto; font-size: 13px; border-radius: 8px; display: inline-block; }
.btn.green { background: linear-gradient(135deg, #43a047, #66bb6a); }
.btn.orange { background: linear-gradient(135deg, #f57c00, #ffa726); }
.btn.red { background: linear-gradient(135deg, #d32f2f, #ef5350); }
.btn:disabled { opacity: .5; }

/* ---------- 表单 ---------- */
.form-item { margin-bottom: 14px; }
.form-item label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; font-weight: 500; }
.form-item label .req { color: #e53935; margin-right: 2px; }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 12px; border: 1px solid #d7e2ee; border-radius: 8px;
  font-size: 15px; background: #fafcff; outline: none; transition: border .2s, background .2s;
  -webkit-appearance: none; color: #333;
}
.input:focus { border-color: #1e88e5; background: #fff; }
.radio-row { display: flex; gap: 10px; padding: 4px 0; }
.radio-row label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 15px; color: #555; cursor: pointer; padding: 10px 0;
  border: 1px solid #d7e2ee; border-radius: 8px; background: #fafcff;
}
.radio-row label:has(input:checked) { border-color: #1e88e5; background: #e3f2fd; color: #1565c0; font-weight: 600; }
.radio-row input { accent-color: #1e88e5; }

/* ---------- 文件上传（虚线选框） ---------- */
.upload-box {
  border: 1.5px dashed #b0c8e0; border-radius: 10px; background: #fafcff;
  min-height: 86px; padding: 18px 12px; text-align: center;
  cursor: pointer; transition: border .2s; position: relative; overflow: hidden;
}
.upload-box:active { border-color: #1e88e5; }
.upload-box .icon { font-size: 28px; }
.upload-box .tip { font-size: 12px; color: #8aa6c4; margin-top: 4px; }
.upload-box .fname { font-size: 13px; color: #1565c0; margin-top: 6px; word-break: break-all; }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.preview-img { max-width: 100%; max-height: 180px; border-radius: 8px; margin-top: 8px; }

/* ---------- 提示框 ---------- */
.note {
  background: #f7fafd; border: 1px solid #d7e2ee; border-radius: 10px;
  padding: 12px 14px; font-size: 14px; line-height: 1.8; color: #555; margin: 12px 0;
}
.note.warn { background: #fff8e6; border-color: #ffe0a3; color: #8a5a00; }
.note.strong { background: #e3f2fd; border-color: #90caf9; color: #1565c0; font-weight: 600; }

/* ---------- Tab 切换（注册页 个人/公司） ---------- */
.tabs {
  display: flex; margin: 14px; border-radius: 9px; overflow: hidden;
  background: #eef3f8; position: relative; z-index: 1;
  box-shadow: 0 4px 14px rgba(21,101,192,.10);
}
.tabs a {
  flex: 1; text-align: center; padding: 11px 0; font-size: 15px; color: #666;
  text-decoration: none; font-weight: 500;
}
.tabs a.active { background: #1e88e5; color: #fff; font-weight: 600; border-radius: 9px; }

/* ---------- 公告须知 ---------- */
.notice-body { font-size: 14px; color: #333f52; }
.notice-body h3 { font-size: 15px; margin: 14px 0 6px; color: #1f2d3d; text-align: center; }
.notice-body p { margin: 8px 0; text-indent: 2em; }
.notice-body p.no-indent { text-indent: 0; }
.collapse-toggle {
  display: block; width: 100%; background: #e3f2fd; color: #1565c0; border: none;
  padding: 11px; border-radius: 10px; font-size: 14px; margin-top: 10px; cursor: pointer; font-weight: 500;
}
.collapse-toggle .arrow { display: inline-block; transition: transform .3s; }
.collapse-toggle.open .arrow { transform: rotate(180deg); }
.collapse-content { overflow: hidden; max-height: 0; transition: max-height .45s ease; }
.collapse-content.show { max-height: 5000px; }

/* ---------- 状态页 · 渐变圆形结果图标 ---------- */
.result-icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 6px auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: #fff; font-weight: 700;
}
.ic-ok { background: linear-gradient(135deg, #43a047, #66bb6a); }
.ic-warn { background: linear-gradient(135deg, #f57c00, #ffa726); }
.ic-win { background: linear-gradient(135deg, #e65100, #fb8c00); }
.ic-stop { background: linear-gradient(135deg, #757575, #9e9e9e); }
.ic-blue { background: linear-gradient(135deg, #1565c0, #1e88e5); }
.big-icon { display: none; }

.status-card { text-align: center; padding: 26px 18px; }
.status-card h2 { font-size: 18px; margin: 4px 0 10px; color: #333; display: block; font-weight: 700; }
.status-card h2::before { display: none; }
.status-card p { color: #777; font-size: 14px; margin-bottom: 6px; }
/* 中签 · 橙金渐变庆祝框 */
.status-card .win {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2); border: 1px solid #ffb74d;
  border-radius: 12px; padding: 18px 14px; margin: 12px 0;
}
.status-card .win h2 { color: #bf360c; }
/* 等待 · 绿色柔和框 */
.status-card .pending { background: #f0faf3; border: 1px solid #b8eccc; border-radius: 12px; padding: 18px 14px; margin: 12px 0; }
/* 通过 · 蓝色柔和框 */
.status-card .ok { background: #e3f2fd; border: 1px solid #90caf9; border-radius: 12px; padding: 18px 14px; margin: 12px 0; }
/* 未通过 · 橙色警示框 */
.status-card .fail { background: #fff8e6; border: 1px solid #ffe0a3; border-radius: 12px; padding: 18px 14px; margin: 12px 0; }
.info-line { font-size: 13px; color: #888; margin-top: 10px; line-height: 2; }
.info-line b { color: #45526b; }

/* ---------- 管理端（桌面，同配色） ---------- */
.admin-page { max-width: 1080px; margin: 0 auto; padding: 20px 16px 60px; background: #eef3f8; min-height: 100vh; }
.admin-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.admin-top h1 { font-size: 20px; color: #1565c0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card { background: #fff; border-radius: 12px; padding: 16px; text-align: center; box-shadow: 0 4px 14px rgba(21,101,192,.08); }
.stat-card .num { font-size: 26px; font-weight: 700; color: #1565c0; }
.stat-card .lbl { font-size: 13px; color: #8a97ab; margin-top: 2px; }
.stat-card.warn .num { color: #ef8f00; }
.stat-card.green .num { color: #16a35c; }
.stat-card.red .num { color: #e04b3d; }
.stat-card.gold .num { color: #d48806; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .input, .toolbar select { width: auto; min-width: 130px; }
table.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: 13px; box-shadow: 0 4px 14px rgba(21,101,192,.08); }
.data-table th { background: #e3f2fd; color: #45526b; padding: 10px 8px; text-align: left; white-space: nowrap; font-weight: 600; }
.data-table td { padding: 10px 8px; border-top: 1px solid #eef2f8; vertical-align: top; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.tag.pending { background: #fff3e0; color: #b06f00; }
.tag.approved { background: #e5f7ec; color: #0c8a4d; }
.tag.rejected { background: #fdeeee; color: #c0392b; }
.tag.won { background: #fdf3d7; color: #b7791f; font-weight: 700; }
.tag.person { background: #e3f2fd; color: #1565c0; }
.tag.company { background: #f3ecfd; color: #7048c9; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-mask { position: fixed; inset: 0; background: rgba(15,25,45,.55); display: none; z-index: 100; overflow-y: auto; padding: 30px 12px; }
.modal-mask.show { display: block; }
.modal { background: #fff; max-width: 620px; margin: 0 auto; border-radius: 14px; padding: 20px; }
.modal h3 { margin-bottom: 14px; color: #1565c0; }
.modal .img-block { margin-bottom: 14px; }
.modal .img-block .cap { font-size: 13px; color: #45526b; font-weight: 600; margin-bottom: 6px; }
.modal .img-block img { max-width: 100%; border-radius: 8px; border: 1px solid #e6ecf5; }
.modal .img-block a { color: #1e88e5; font-size: 13px; word-break: break-all; }
.toast {
  position: fixed; left: 50%; top: 18%; transform: translateX(-50%);
  background: rgba(0,0,0,.75); color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: 14px; z-index: 200; display: none; max-width: 80%; text-align: center;
}
.footer-note { text-align: center; font-size: 11px; color: #9ab0c5; padding: 8px 0 20px; line-height: 1.9; }
.footer-note a { color: #1565c0; }
.link-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.link-row a { color: #1565c0; font-size: 13px; text-decoration: none; border: 1px solid #90caf9; padding: 6px 12px; border-radius: 8px; background: #e3f2fd; }
a { color: #1e88e5; }

/* Accessible controls and the production account workflow. */
[hidden] { display: none !important; }
fieldset { border: 0; min-width: 0; }
legend { font-size: 13px; color: #666; margin-bottom: 6px; }
small { color: #65758a; font-size: 12px; }
button, input, select, textarea { font-family: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #ffb74d; outline-offset: 3px; }
.tabs button { flex: 1; border: 0; padding: 11px 8px; background: #f6f9fc; color: #536475; font-size: 15px; cursor: pointer; }
.tabs button.active { background: #1e88e5; color: #fff; font-weight: 600; border-radius: 9px; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; color: #45526b; font-size: 13px; line-height: 1.8; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: #1565c0; }
.recovery-code { background: #edf5ff; padding: 16px 12px; margin: 16px 0; border: 1px dashed #90caf9; border-radius: 8px; font-family: ui-monospace, monospace; font-size: 17px; font-weight: 600; word-break: break-all; user-select: all; }
.admin-banner { background: linear-gradient(135deg,#1565c0,#1e88e5); color: #fff; padding: 24px 22px; border-radius: 0 0 18px 18px; margin: -20px -16px 20px; }
.admin-banner h1 { font-size: 20px; font-weight: 600; letter-spacing: 1px; }
.admin-banner p { font-size: 12px; opacity: .85; margin-top: 6px; }
.admin-top .stat-grid { margin: 0; flex: 1; min-width: 280px; grid-template-columns: repeat(4,minmax(64px,1fr)); }
.nav-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.nav-tabs button { padding: 10px 16px; border: none; border-radius: 9px; background: #fff; color: #536475; font-size: 14px; cursor: pointer; box-shadow: 0 4px 14px rgba(21,101,192,.10); }
.nav-tabs button.active { background: #1565c0; color: #fff; }
.view { display: none; }
.view.show { display: block; }
.login-box { max-width: 400px; margin: 70px auto; background: #fff; border-radius: 14px; padding: 34px 28px; box-shadow: 0 4px 18px rgba(21,101,192,.10); }
.login-box h1 { text-align: center; color: #1565c0; font-size: 20px; margin-bottom: 22px; }
.settings-card { max-width: 620px; margin-left: 0; }
.table-scroll { overflow-x: auto; }
.empty-row { text-align: center; padding: 28px !important; color: #65758a; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 18px 0; font-size: 13px; color: #536475; }
.tag.correction, .tag.appeal { background: #fff3e0; color: #8a5a00; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.qr-card { text-align: center; }
.qr-card h2 { justify-content: center; }
.qr-card img { max-width: 100%; height: auto; margin-top: 14px; }
.modal .img-block img { display: block; margin-top: 10px; }
.note, .info-line { overflow-wrap: anywhere; }
@media (max-width: 600px) { .admin-page { padding: 16px 12px 40px; } .admin-banner { margin: -16px -12px 18px; } .stat-card { padding: 12px 6px; } .stat-card .num { font-size: 23px; } .toolbar .input { flex: 1; min-width: 120px; } .settings-card { margin: 14px 0; } .login-box { margin: 40px auto; } .pagination { gap: 10px; } }
