:root {
  --primary: #165dff;
  --primary-soft: #e8f0ff;
  --ink: #1d2129;
  --text: #4e5969;
  --muted: #86909c;
  --line: #e5e6eb;
  --line-soft: #f2f3f5;
  --page: #f5f6f8;
  --white: #ffffff;
  --success: #00b42a;
  --warning: #ff7d00;
  --danger: #f53f3f;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text); background: var(--page); line-height: 1.6; font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; padding: 16px; }

/* 用户信息卡 */
.ucard {
  background: var(--white); border-radius: var(--radius);
  padding: 18px 16px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.u-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, #f6f7f9, #eff1f4);
  color: #b4bac3;
  display: grid; place-items: center;
  flex-shrink: 0; overflow: hidden;
  border: 1px solid #ebedf0;
}
.u-avatar svg { width: 34px; height: 34px; }
.u-main { flex: 1; min-width: 0; }
.u-name { font-size: 18px; font-weight: 700; color: var(--ink); }
.u-org { font-size: 13px; color: var(--muted); margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.u-view {
  display: flex; align-items: center; gap: 2px;
  background: var(--line-soft); border: none;
  padding: 6px 12px; border-radius: 20px;
  font-size: 13px; color: var(--text);
}
.u-view svg { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 双格功能入口：同一张卡片内两等分，中间竖线分隔（参考图布局） */
.quick-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 12px;
}
.qg-item {
  background: none; border: none; padding: 18px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  cursor: pointer;
}
.qg-item + .qg-item { border-left: 1px solid var(--line-soft); }
/* 双格入口图标：去掉色块背景，颜色直接给到图标本身 */
.qg-ic2 {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.qg-ic2 svg {
  width: 30px; height: 30px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.qg-blue { color: #165dff; }
.qg-violet { color: #7b5cf5; }
.qg-t { font-size: 14px; font-weight: 600; color: var(--ink); }

/* 我的报名区域 */
.orders-sec { margin-bottom: 12px; }
.sec-hd { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 10px; }
.sec-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.link-btn {
  font-size: 13px; color: var(--primary); background: none; border: none; padding: 0;
}

/* 订单列表 */
.order-list { display: flex; flex-direction: column; gap: 12px; }

/* App 卡片风格：淡蓝色背景 */
.order-card {
  position: relative;
  background: linear-gradient(150deg, #eef4ff, #e0ecff);
  border: 1px solid rgba(22, 93, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(22, 93, 255, 0.08);
}
.order-card:active { box-shadow: 0 2px 8px rgba(22, 93, 255, 0.12); }

.oc-inner { padding: 18px 16px 14px; }

/* 第一行：姓名 + 状态 */
.oc-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.oc-name {
  font-size: 17px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.01em; line-height: 1.3;
}
.oc-status {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500; flex-shrink: 0;
  color: var(--muted);
}
.oc-status i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #c9cdd4;
}
.oc-status.paid { color: var(--success); }
.oc-status.paid i { background: var(--success); }
.oc-status.pending { color: var(--warning); }
.oc-status.pending i { background: var(--warning); }

/* 第二行：参会类型 */
.oc-type {
  font-size: 12px; color: var(--muted);
  margin-bottom: 12px;
}

/* 第三行：金额 */
.oc-fee {
  font-size: 26px; font-weight: 800; color: var(--primary);
  letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 12px;
}
.oc-fee small { font-size: 14px; font-weight: 600; margin-right: 1px; }
.oc-fee.free { font-size: 18px; }
.oc-fee.free em { font-style: normal; }

/* 第四行：订单号 + 报名时间 */
.oc-info {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
  padding-top: 10px; margin-bottom: 12px;
  border-top: 1px dashed rgba(22, 93, 255, 0.15);
  font-size: 12px; color: var(--muted);
}
.oc-info .mono { font-family: 'SF Mono', Menlo, monospace; letter-spacing: 0; }

/* 操作按钮 */
.oc-actions { display: flex; gap: 8px; }
.oc-btn {
  border: 1px solid rgba(22, 93, 255, 0.18); background: #fff; color: var(--primary);
  padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all 0.15s;
}
.oc-btn:active { background: var(--primary-soft); }
.oc-btn.alt {
  background: transparent; border-color: rgba(22, 93, 255, 0.25);
}

/* 待缴费：通栏支付按钮 */
.oc-pay-wrap { margin-top: 10px; }
.oc-pay {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 11px 0;
  border: none; border-radius: 10px;
  background: linear-gradient(135deg, #3b82ff, var(--primary));
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.25);
  cursor: pointer; transition: transform 0.1s;
}
.oc-pay:active { transform: scale(0.98); }
.oc-pay svg { width: 16px; height: 16px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }
/* 空态可点击跳首页 */
.empty-link {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 34px 0; cursor: pointer; user-select: none;
}
.empty-link:active { opacity: .72; }
.empty-go {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 7px 16px; border-radius: 16px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 13px; font-weight: 500; line-height: 1;
}
.eg-arrow { font-style: normal; font-size: 15px; margin-top: -1px; }

/* 工具与服务 */
.tools-card {
  background: var(--white); border-radius: var(--radius);
  padding: 14px 0; box-shadow: var(--shadow); margin-bottom: 14px;
}
.tc-title {
  font-size: 16px; font-weight: 700; color: var(--ink);
  padding: 0 16px 10px;
}
.tool-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; margin: 0 8px;
  border-radius: 10px;
  background: none; border: none; width: calc(100% - 16px);
  text-decoration: none; color: inherit; cursor: pointer;
  transition: background .15s;
}
.tool-row:active { background: var(--line-soft); }
.tr-ic {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tr-ic svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tr-red { background: linear-gradient(135deg, #f53f3f, #f76560); }
.tr-green { background: linear-gradient(135deg, #00b42a, #23c343); }
.tr-violet { background: linear-gradient(135deg, #722ed1, #a871e3); }
.tr-label { font-size: 15px; font-weight: 600; color: var(--ink); flex: 1; text-align: left; }
.tr-desc { font-size: 12px; color: var(--muted); }
.tr-arrow { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* 退出登录：与全站主题色一致 */
.btn-logout {
  width: 100%; padding: 13px 0; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #3b82ff, var(--primary));
  color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
  box-shadow: 0 8px 18px rgba(22, 93, 255, 0.26);
  margin-bottom: 16px;
}
.btn-logout:active { transform: scale(0.98); }
.footer { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 20px; }

/* 弹层 / 抽屉 */
.drawer-mask, .modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-mask { align-items: center; }
.modal {
  background: var(--white); width: 92%; max-width: 440px; max-height: 88vh;
  border-radius: 14px; display: flex; flex-direction: column;
  animation: popIn .2s ease;
}
@keyframes popIn { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.drawer {
  background: var(--white); width: 100%; max-width: 480px; max-height: 85vh;
  border-radius: 16px 16px 0 0; display: flex; flex-direction: column;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.drawer-hd, .modal-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; border-bottom: 1px solid var(--line-soft); font-weight: 600; color: var(--ink);
}
.close { font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; }
.drawer-bd, .modal-bd { overflow-y: auto; padding: 16px; }

/* 底部抽屉：顶部抓手 */
.drawer-grab {
  width: 36px; height: 4px; border-radius: 2px;
  background: #e5e6eb; margin: 10px auto 0; flex-shrink: 0;
}
.inv-drawer .drawer-hd { border-bottom: none; padding-bottom: 6px; }

/* 发票信息抽屉 */
.inv-type-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 14px;
  background: var(--primary-soft, #e8f0ff); color: var(--primary, #165dff);
  font-size: 12px; font-weight: 600;
}
.inv-title-card {
  margin-top: 12px; padding: 14px;
  background: linear-gradient(135deg, #f5f9ff, #eef4ff);
  border: 1px solid #dbe7ff; border-radius: 12px;
}
.inv-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.inv-company { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.55; word-break: break-all; }
.inv-rows { margin-top: 4px; }
.inv-rows .info-k { width: 100px; }
.mono { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; letter-spacing: .2px; }
.inv-tip {
  margin-top: 14px; text-align: center;
  font-size: 12px; color: var(--muted); line-height: 1.6;
}
.inv-empty { text-align: center; padding: 34px 0 26px; }
.inv-empty svg { width: 46px; height: 46px; color: #c9cdd4; }
.inv-empty-main { margin-top: 12px; font-size: 15px; color: var(--text); font-weight: 600; }
.inv-empty-sub { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* 电子资料抽屉：多文件下载列表 */
.res-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 12px;
  background: var(--white); border: 1px solid var(--line-soft);
  text-decoration: none; margin-bottom: 10px;
}
.res-item:active { background: #f7f9ff; }
.res-badge {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .3px;
}
.res-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.res-name { font-size: 14px; font-weight: 600; color: var(--ink); word-break: break-all; line-height: 1.4; }
.res-sub { font-size: 12px; color: var(--muted); }
.res-dl { width: 20px; height: 20px; color: var(--primary, #165dff); flex-shrink: 0; }

/* 详情分三组 */
.d-section { margin-bottom: 10px; }
.d-section:last-child { margin-bottom: 0; }
.d-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px;
}
.d-section-title::before {
  content: '';
  width: 4px; height: 14px; border-radius: 2px;
  background: var(--primary);
}
.d-row { display: flex; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.d-row:last-child { border: none; }
.d-k { width: 112px; color: var(--muted); font-size: 13px; flex-shrink: 0; }
.d-v { color: var(--ink); font-size: 13px; word-break: break-all; flex: 1; }
/* 多值字段（如拟参加分论坛）逐行展示，避免挤在一行 */
.d-line { display: block; line-height: 1.7; }
.d-actions { display: flex; gap: 10px; margin-top: 14px; }
.btn-primary {
  flex: 1; padding: 12px; border: none; border-radius: 10px;
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn-secondary {
  flex: 1; padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--line-soft); color: var(--text); font-size: 15px; cursor: pointer;
}

/* 查看个人信息 */
.info-row { display: flex; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.info-row:last-child { border: none; }
.info-k { width: 90px; color: var(--muted); font-size: 14px; flex-shrink: 0; }
.info-v { color: var(--ink); font-size: 14px; word-break: break-all; flex: 1; }

/* 待缴费弹窗 */
.pay-modal .modal-hd { display: none; }
.pay-modal .modal-bd { padding: 26px 22px 22px; text-align: center; }
.pm-icon {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, #ffb13d, #f77234);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(247, 114, 52, 0.32);
}
.pm-title { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--ink); }
.pm-amount { font-size: 17px; font-weight: 700; color: #f53f3f; line-height: 1.2; margin-bottom: 10px; }
.pm-amount b { font-size: 36px; margin-left: 2px; }
.pm-order { margin: 0 auto 6px; font-size: 12.5px; color: var(--muted); background: var(--line-soft); border-radius: 6px; padding: 5px 12px; display: inline-block; font-variant-numeric: tabular-nums; }
.pm-tip { margin: 12px 0 20px; font-size: 13px; color: var(--muted); }
.pm-actions { display: flex; gap: 12px; }
.pm-btn { flex: 1; padding: 12px 0; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity .15s, transform .1s; }
.pm-btn:active { transform: scale(0.97); }
.pm-btn-ghost { border: 1px solid var(--line); background: #fff; color: #4e5969; }
.pm-btn-go { border: none; background: linear-gradient(135deg, #165dff, #0e42d2); color: #fff; box-shadow: 0 6px 14px rgba(22, 93, 255, 0.3); }

/* toast */
.toast {
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.8); color: #fff; padding: 10px 18px;
  border-radius: 8px; font-size: 14px; z-index: 999; max-width: 80%;
}
