/* 入境卡 Demo 共享样式 —— 所有页面统一引用 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #f5f7fa;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: #303133;
}

/* ===== 顶部导航（全站统一） ===== */
.nav { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 10; }
.nav-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; height: 56px; padding: 0 20px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: #409eff; white-space: nowrap; cursor: pointer; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg,#409eff,#79bbff); color:#fff; display:flex; align-items:center; justify-content:center; font-size:16px; }
.menu { display: flex; gap: 28px; flex: 1; align-items: center; }
.menu a { color: #303133; text-decoration: none; font-size: 14px; }
.menu a:hover { color: #409eff; }
.menu a.active { color: #409eff; font-weight: 600; }
.menu .drop-link { color: #303133; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 2px; outline: none; }
.menu .drop-link:hover { color: #409eff; }
.menu .drop-link.active { color: #409eff; font-weight: 600; }
.user { color: #606266; font-size: 13px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ===== 面包屑条（内页统一） ===== */
.crumb-bar { background: #fff; border-bottom: 1px solid #ebeef5; }
.crumb-inner { max-width: 1280px; margin: 0 auto; padding: 10px 20px; }

/* ===== 页面容器 ===== */
.page { max-width: 1280px; margin: 0 auto 40px; padding: 0 20px; }

/* ===== 卡片区块（统一） ===== */
.block { background: #fff; border-radius: 8px; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.block-header { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid #ebeef5; }
.block-header .t { font-size: 15px; font-weight: 600; color: #303133; display: flex; align-items: center; gap: 6px; }
.block-header .sub { font-size: 12px; color: #909399; font-weight: 400; }

/* ===== 筛选区（统一） ===== */
.filter-card { background: #fff; border-radius: 8px; padding: 18px 20px 2px; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; align-items: center; }
.f-item { display: flex; align-items: center; gap: 6px; }
.f-item .label { font-size: 13px; color: #606266; white-space: nowrap; }
.f-item .el-input, .f-item .el-select { width: 160px; }
.f-item .el-date-editor { width: 220px; }

/* ===== 工具栏 / 分页（统一） ===== */
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.total { font-size: 13px; color: #606266; }

/* ===== 订单状态标签（全站统一色） ===== */
.st { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; line-height: 20px; }
.st-wait    { background: #fdf6ec; color: #e6a23c; }  /* 待完善 */
.st-ok      { background: #f0f9eb; color: #67c23a; }  /* 已完善 */
.st-pending { background: #ecf5ff; color: #409eff; }  /* 等待提交 */
.st-done    { background: #f0f9eb; color: #67c23a; font-weight:600; } /* 完成 */
.st-fail    { background: #fef0f0; color: #f56c6c; }  /* 失败（演示） */

/* ===== 表单（统一） ===== */
.form-area { padding: 20px 20px 4px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 20px; }
.save-bar { text-align: center; padding: 18px 0 24px; }
.row-flex { display: flex; align-items: center; gap: 8px; }

/* ===== 提示条 ===== */
.tip-bar { padding: 10px 20px 0; }
.tip-bar .inner { background: #ecf5ff; border: 1px solid #d9ecff; color: #409eff; border-radius: 4px; padding: 8px 12px; font-size: 13px; line-height: 1.6; }

/* ===== 首页卡片网格（横向：圆形国旗 + 标题 + 按钮） ===== */
.grid { max-width: 1200px; margin: 20px auto 40px; padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.home-card { background: #fff; border-radius: 10px; padding: 26px 28px; display: flex; align-items: center; gap: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: .2s; }
.home-card:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.flag-round { width: 64px; height: 64px; min-width: 64px; border-radius: 50%; overflow: hidden; border: 1px solid #ebeef5; background: #f5f7fa; display: flex; align-items: center; justify-content: center; }
.flag-round img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-card .title { font-size: 18px; font-weight: 600; color: #303133; margin-bottom: 16px; }
.home-card .btns { display: flex; gap: 12px; }
.home-card .btns .el-button { height: 38px; font-size: 14px; }
/* 首页大卡片（单卡场景）：整行展示，图标/标题/按钮同步放大 */
.home-card-lg { padding: 44px 48px; gap: 32px; }
.home-card-lg .flag-round { width: 96px; height: 96px; min-width: 96px; }
.home-card-lg .title { font-size: 26px; margin-bottom: 24px; }
.home-card-lg .btns { gap: 16px; }
.home-card-lg .btns .el-button { height: 46px; font-size: 16px; padding: 0 24px; }

/* ===== 扫码端 H5（手机端，无管理端导航） ===== */
.scan-body { background: #f5f6fa; min-height: 100vh; }
.scan-wrap { max-width: 480px; margin: 0 auto; padding: 0 14px 30px; }
.scan-top { background: #fff; border-bottom: 1px solid #ebeef5; }
.scan-top-inner { max-width: 480px; margin: 0 auto; padding: 12px 14px; display: flex; align-items: center; gap: 8px; }
.scan-top .logo { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg,#409eff,#79bbff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.scan-top .name { font-size: 16px; font-weight: 700; color: #409eff; }
.scan-top .tag { margin-left: auto; font-size: 12px; color: #909399; }
.scan-card { background: #fff; border-radius: 10px; padding: 16px; margin-top: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.scan-card .hd { font-size: 15px; font-weight: 600; color: #303133; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.scan-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: 13px; }
.scan-info .k { color: #909399; margin-right: 6px; }
.scan-info .v { color: #303133; font-weight: 500; }
.person-row { display: flex; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid #f2f6fc; font-size: 14px; }
.person-row:last-child { border-bottom: none; }
.person-row .no { color: #909399; font-size: 13px; width: 26px; text-align: center; }
.person-row .nm { color: #303133; flex: 1; }
.person-row .ps { color: #909399; font-size: 12px; }
.person-link { color: #409eff; font-size: 13px; cursor: pointer; white-space: nowrap; }
.scan-foot { text-align: center; color: #c0c4cc; font-size: 12px; margin-top: 18px; }
.cert-box { border: 1px solid #d9ecff; background: #f0f9ff; border-radius: 10px; padding: 18px 16px; }
.cert-no { text-align: center; font-family: Georgia, serif; font-size: 18px; font-weight: 700; letter-spacing: 1px; color: #303133; margin-bottom: 4px; }
.cert-sub { text-align: center; font-size: 12px; color: #909399; margin-bottom: 14px; }
