/* ---------- 基础 ---------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: #2b2b33;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: #c2255c; text-decoration: none; }

h1, h2, h3, p { margin: 0; }

.muted { color: #9a8f96; }
.center { text-align: center; }
.hint { font-size: 11.5px; color: #b3a6ac; }
.money { color: #c2255c; font-weight: 700; }

/* ---------- 移动端 ---------- */
body.mobile {
  background: #fff7f9;
  padding-bottom: 64px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  background: #ffffff;
  border-bottom: 1px solid #f7e9ee;
}

.top-left {
  font-size: 18px;
  font-weight: 800;
  color: #e1346b;
  letter-spacing: 0.5px;
}

.top-left:empty { flex: 0; }

/* 顶栏返回按钮（协议等无底部导航的页面） */
.topbar-back .top-left { display: flex; align-items: center; gap: 10px; }
.back-btn {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: #c2255c;
  text-decoration: none;
  white-space: nowrap;
  padding: 5px 10px 5px 7px;
  border: 1px solid #f3c4d4;
  border-radius: 999px;
  background: #ffffff;
}
.back-btn:hover { background: #fff0f5; }

.brand {
  font-size: 19px;
  font-weight: 800;
  color: #e1346b;
  letter-spacing: 0.5px;
}

.top-actions { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.top-actions .who { font-weight: 600; }

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 16px 24px;
}

.flash {
  padding: 10px 16px;
  background: #fff2e0;
  color: #b25a00;
  font-size: 13px;
  text-align: center;
}

.page-head { margin: 4px 0 18px; }
.page-head h1 { font-size: 25px; font-weight: 800; letter-spacing: 0.3px; }
.page-head p { margin-top: 4px; font-size: 13px; color: #a8768a; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: #f2f3f5;
  color: #4e5969;
}

.btn-primary {
  background: linear-gradient(135deg, #f9688f, #e1346b);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(225, 52, 107, 0.22);
}

.btn-line { background: #ffffff; color: #c2255c; border: 1px solid #f3c4d4; }
.btn-gray { background: #f2f3f5; color: #4e5969; }
.btn-danger { background: #fff0ee; color: #d22e22; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.6; }

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: #c2255c;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
}

/* 提示条 */
.banner {
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.banner.warn { background: #fff2e0; color: #b25a00; }
.banner.ok { background: #e5f7f0; color: #008f63; }

/* 活动 */
.act-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 22px rgba(150, 90, 110, 0.06);
}

.act-top { display: flex; align-items: center; gap: 12px; }

.act-cover {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, #f9688f, #e1346b);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.act-top h2 { font-size: 16px; font-weight: 700; line-height: 1.35; }

.act-body { margin-top: 12px; }
.act-desc { font-size: 13px; color: #9a8f96; margin-bottom: 10px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }

.pill {
  padding: 3px 9px;
  border-radius: 6px;
  background: #fff0f5;
  color: #c2255c;
  font-size: 11.5px;
}
.pill.strong { background: linear-gradient(135deg, #f9688f, #e1346b); color: #fff; }

.act-time { font-size: 11.5px; color: #b3a6ac; margin-bottom: 12px; }

/* 活动头部（报单页） */
.act-head {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(150deg, #ffe4ec, #ffcbdc);
  margin-bottom: 14px;
}
.act-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.act-head h2 { font-size: 17px; font-weight: 700; line-height: 1.4; }
.act-head .pills { margin: 10px 0 0; }

/* 表单 */
.form .field { display: block; margin-bottom: 14px; }
.form .field > span { display: block; font-size: 13px; color: #5a4a51; margin-bottom: 6px; }
.form .field i { color: #e1346b; font-style: normal; }
.form .field em { display: block; margin-top: 4px; font-size: 11px; color: #b3a6ac; font-style: normal; }

input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #f3d6e0;
  border-radius: 12px;
  background: #fffafc;
  font-size: 15px;
  font-family: inherit;
  color: #2b2b33;
  outline: none;
}

input:focus, select:focus, textarea:focus { border-color: #e1346b; background: #fff; }

/* 上传 */
.uploader { margin: 4px 0 16px; }
.upload-head { display: flex; justify-content: space-between; font-size: 13px; color: #5a4a51; margin-bottom: 8px; }
.upload-head .muted { font-size: 11px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }

.thumb {
  position: relative;
  width: 84px;
  height: 84px;
  border: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff1f5;
  cursor: zoom-in;
  display: block;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button {
  position: absolute;
  right: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  padding: 0;
  cursor: pointer;
  border-bottom-left-radius: 8px;
}

.thumb-add {
  width: 84px;
  height: 84px;
  border: 1px dashed #f0bfce;
  border-radius: 10px;
  background: #fff9fb;
  color: #c78fa3;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
}

/* 报单卡片 */
.rec-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 5px 18px rgba(150, 90, 110, 0.06);
}
.rec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rec-head h2 { font-size: 15px; font-weight: 700; line-height: 1.4; }
.rec-order { margin: 6px 0 4px; font-size: 12px; color: #9a8f96; }
.rec-note { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: #fff7f0; color: #c07a3a; font-size: 11.5px; }
.rec-actions { display: flex; gap: 8px; margin-top: 12px; }

.kv { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: 13px; }
.kv .k { color: #9a8f96; }
.kv .v { color: #4a3a41; max-width: 65%; text-align: right; word-break: break-all; }

/* 状态 */
.tag {
  display: inline-block;
  flex-shrink: 0;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
}
.tag-pending { color: #c75e00; background: #fff2e0; }
.tag-waiting { color: #6b7280; background: #f3f4f6; }
.tag-uploadable { color: #1668dc; background: #eaf2ff; }
.tag-reviewing { color: #6f3cc2; background: #f2ecff; }
.tag-paid { color: #008f63; background: #e5f7f0; }
.tag-deleted { color: #86909c; background: #f2f3f5; }

.status-hero {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(150deg, #ffe4ec, #ffc9da);
  margin-bottom: 14px;
}
.status-note { margin-top: 8px; font-size: 12.5px; color: #7a5a66; line-height: 1.6; }
.countdown { margin-top: 6px; font-size: 14px; font-weight: 700; color: #c2255c; }

/* 图片 */
.img-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.img-box {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff1f5;
  display: block;
  cursor: zoom-in;
}
.img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 5px 18px rgba(150, 90, 110, 0.06);
}

.card-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }

/* 我的 */
.profile { display: flex; align-items: flex-start; gap: 12px; padding: 18px 4px; }
.profile-info { flex: 1; min-width: 0; }
.profile-side { display: flex; flex-direction: column; gap: 4px; text-align: right; max-width: 46%; }
.profile-side .ps span { display: block; font-size: 10px; color: #a8768a; }
.profile-side .ps b { display: block; font-size: 12px; font-weight: 600; color: #3d2731; word-break: break-all; }
.muted.small { font-size: 12px; }
.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f9688f, #c2255c);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-info h2 { font-size: 17px; }
.profile-info p { font-size: 12px; color: #a8768a; margin-top: 2px; }

.stats { display: flex; }
.stats .stat { flex: 1; text-align: center; }
.stats .stat b { display: block; font-size: 22px; color: #c2255c; }
.stats .stat span { font-size: 11px; color: #9a8f96; }

.menu { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 5px 18px rgba(150, 90, 110, 0.06); }
.menu a { display: block; padding: 14px 16px; border-bottom: 1px solid #f9f0f3; font-size: 14px; color: #2b2b33; }
.menu a:last-child { border-bottom: 0; }

/* 空状态 */
.empty { padding: 70px 20px; text-align: center; }
.empty-icon { font-size: 46px; }
.empty-title { margin-top: 10px; font-size: 16px; font-weight: 600; }
.empty-sub { margin-top: 4px; font-size: 12.5px; color: #b3a6ac; margin-bottom: 18px; }

/* 底部导航 */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  height: 56px;
  padding-bottom: env(safe-area-inset-bottom);
  background: #ffffff;
  border-top: 1px solid #f7e9ee;
}
.bottom-nav a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #a6939b;
}
.bottom-nav a.active { color: #e1346b; font-weight: 700; }

/* ---------- 管理后台 ---------- */
body.admin { background: #f4f5f7; }

.admin-top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 22px;
  height: 58px;
  background: #ffffff;
  border-bottom: 1px solid #ececf0;
}
.admin-top .brand { font-size: 16px; }
.admin-nav { display: flex; gap: 18px; flex: 1; }
.admin-nav a { font-size: 13px; color: #5a4a51; padding: 19px 0; border-bottom: 2px solid transparent; }
.admin-nav a.active { color: #e1346b; border-bottom-color: #e1346b; font-weight: 600; }

.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 22px; }

.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.admin-head h1 { font-size: 21px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }.chip {
  padding: 6px 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #ececf0;
  color: #5a4a51;
  font-size: 12.5px;
}
.chip.active { background: #e1346b; border-color: #e1346b; color: #fff; font-weight: 600; }

.table-wrap {
  background: #ffffff;
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 4px 14px rgba(30, 30, 40, 0.05);
}
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left;
  padding: 11px 12px;
  background: #fafafb;
  color: #9a8f96;
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
}
.table td { padding: 11px 12px; border-top: 1px solid #f3f3f5; vertical-align: top; }
.table .sub { font-size: 11px; color: #9a8f96; margin-top: 2px; }
.table .num { text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }

.admin .card { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 14px; box-shadow: 0 4px 14px rgba(30, 30, 40, 0.05); }
.admin .card-title { font-size: 14px; margin-bottom: 10px; }
.admin .kv { border-bottom: 1px solid #f7f7f9; padding: 7px 0; }
.admin .kv:last-child { border-bottom: 0; }

.status-line { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.status-line .sub { font-size: 12px; color: #9a8f96; }

.inline { display: inline-block; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.mini-input {
  width: 150px;
  padding: 7px 9px;
  border: 1px solid #ececf0;
  border-radius: 8px;
  font-size: 12px;
  background: #fff;
}
.mini-input.wide { width: 100%; }
.copy-line { display: flex; gap: 6px; align-items: center; }
.copy-line input { font-size: 12px; padding: 7px 8px; }

body.centered { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #fff7f9; }
.admin-login { width: 320px; }
.admin-login h1 { font-size: 22px; text-align: center; margin-bottom: 18px; }

/* 手机上的后台 */
@media (max-width: 720px) {
  .admin-top { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 10px; }
  .admin-nav { order: 3; width: 100%; gap: 12px; overflow-x: auto; }
  .admin-nav a { padding: 6px 0; white-space: nowrap; }
  .admin-wrap { padding: 14px; }
  .table { min-width: 900px; }
}

/* ---------- 两列活动卡片 ---------- */
.act-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.act-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  margin-bottom: 0;
  border-radius: 16px;
}

.act-name {
  height: 37px;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.act-card .pills { margin: 9px 0 7px; gap: 6px; }
.act-card .pill { padding: 2px 6px; font-size: 10px; }
.act-card .act-desc {
  margin: 6px 0 0;
  font-size: 11px;
  color: #9a8f96;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.act-quota { margin-bottom: 10px; font-size: 10.5px; color: #a8768a; }
.act-card .btn { margin-top: auto; padding: 8px 0; font-size: 12.5px; }

/* ---------- 我的报单底部汇总 ---------- */
.summary-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(56px + env(safe-area-inset-bottom));
  z-index: 9;
  display: flex;
  padding: 8px 16px;
  background: #ffffff;
  border-top: 1px solid #f7e9ee;
}

.summary-bar .sum { flex: 1; text-align: center; }
.summary-bar b { display: block; font-size: 15px; color: #c2255c; }
.summary-bar span { font-size: 10.5px; color: #9a8f96; }

.summary-space { height: 58px; }

.tag-followed { color: #1668dc; background: #eaf2ff; }
.tag-approved { color: #0b7a53; background: #e3f8ef; }
.tag-rejected { color: #d22e22; background: #ffedeb; }
.tag-void { color: #86909c; background: #f2f3f5; text-decoration: line-through; }

/* 我的页面：待上传凭证卡片 */
.quick-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  background: linear-gradient(140deg, #fff3f7, #ffe6ef);
  border: 1px solid #ffd9e6;
}
.quick-main b { display: block; font-size: 14px; color: #3d2731; }
.quick-main span { display: block; margin-top: 4px; font-size: 12px; color: #9a6b7e; }
.quick-go { font-size: 13px; color: #c2255c; white-space: nowrap; }


.quick-upload { display: inline-flex; align-items: center; gap: 8px; }
.quick-upload .hint { font-size: 11px; }

.refuse-form { display: flex; gap: 8px; align-items: center; }
.refuse-form input { flex: 1; }


/* ---------- 我的报单：按活动分组 ---------- */
.group { margin-bottom: 18px; }

.group-head {
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(150deg, #ffe4ec, #ffc9da);
  cursor: pointer;
  user-select: none;
}

.group-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.group-title h2 { font-size: 14px; font-weight: 700; color: #3d2731; }
.group-arrow { color: #c2255c; font-size: 14px; transition: transform 0.2s; }
.group.collapsed .group-arrow { transform: rotate(-90deg); }
.group.collapsed .group-body { display: none; }

.group-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 4px;
  margin-top: 8px;
}
.gs b { display: block; font-size: 12.5px; font-weight: 700; color: #c2255c; line-height: 1.3; }
.gs span { font-size: 10px; color: #7a5a66; }

.group-body { padding-top: 10px; }
.group-body .rec-card { margin-bottom: 10px; }

.rec-order { margin: 0; font-size: 12px; color: #9a8f96; }

/* ---------- 图片查看 ---------- */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.88);
  overflow: auto;
}
.viewer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.viewer img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 8px;
}
.viewer-hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 28px;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

/* 报单状态筛选 */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.filter-bar span { font-size: 12px; color: #9a8f96; white-space: nowrap; }
.filter-bar select {
  flex: 1;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #ffd9e6;
  border-radius: 10px;
  background: #fff;
  color: #3d2731;
  font-size: 13px;
}



/* 后台报单筛选 */
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(150, 90, 110, 0.05);
}
.admin-filters input,
.admin-filters select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  color: #2b2b33;
}
.admin-filters input[name=orderNo],
.admin-filters input[name=name],
.admin-filters input[name=wechat],
.admin-filters input[name=alipay] { width: 140px; }
.admin-filters input[type=date] { width: 140px; }
.admin-filters .filter-dash { color: #9a8f96; font-size: 12px; }
/* 分页 */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.pager-info { font-size: 12px; color: #86909c; }
.pager-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.btn.disabled { opacity: 0.45; pointer-events: none; }
/* ===== 登录页 ===== */
.login-hero { text-align: center; margin: 26px 0 20px; }
.login-title {
  font-size: 26px;
  font-weight: 800;
  color: #1f2430;
  letter-spacing: 1px;
}
.login-note {
  margin-top: 18px;
  padding: 16px 18px;
  background: #f4f8ff;
  border: 1px solid #dce8f8;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.75;
  color: #55606f;
  text-align: left;
}

.privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 2px 16px;
  font-size: 13px;
  color: #6b7280;
}
.privacy input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: #e1346b;
}

.inline-form { display: inline; margin: 0; }

/* ===== 隐私协议 ===== */
.privacy-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.privacy-link {
  color: #e1346b;
  text-decoration: underline;
  font-weight: 600;
}
.policy h3 {
  margin: 18px 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2430;
}
.policy h3:first-child { margin-top: 0; }
.policy p {
  font-size: 13.5px;
  line-height: 1.8;
  color: #55606f;
  margin: 0;
}
.policy-back { margin-top: 18px; }
