: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;
  text-decoration: none; color: inherit;
}
.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); }
.qg-desc { font-size: 11px; color: var(--muted); margin-top: -4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* 区块标题行（子页面通用） */
.pg-sec { margin-bottom: 14px; }
.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: 10px; }

/* 报名卡片：紧凑型「行程单/账单」风格 */
.order-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.order-card:active { border-color: rgba(22, 93, 255, 0.18); }

.oc-main { padding: 12px 14px 10px; }

/* 第一行：姓名 + 状态标签 */
.oc-line1 {
  display: flex; align-items: center; gap: 8px;
}
.oc-name {
  font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.oc-type {
  flex-shrink: 0; font-size: 11px; font-weight: 500; padding: 1px 7px; border-radius: 4px; line-height: 1.5;
}
.oc-type.personal { color: #165dff; background: #e8f3ff; }
.oc-type.team { color: #86909c; background: #f2f3f5; }
.oc-type.code { color: #0e9f6e; background: #e6f7f0; }
.oc-status {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 500; flex-shrink: 0; line-height: 1.5;
  color: var(--muted); background: var(--line-soft);
  margin-left: auto;
}
.oc-status i {
  width: 5px; height: 5px; border-radius: 50%;
  background: #c9cdd4;
}
.oc-status.paid { color: var(--success); background: #e8ffea; }
.oc-status.paid i { background: var(--success); }
.oc-status.pending { color: var(--warning); background: #fff7e8; }
.oc-status.pending i { background: var(--warning); }

/* 第二行：参会类型 + 报名时间 */
.oc-line2 {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-top: 3px;
  font-size: 12px; color: var(--muted);
}

/* 底部行：金额（弱化）+ 操作按钮（小巧） */
.oc-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-top: 1px dashed var(--line);
  background: #fbfcfe;
}
.oc-amount {
  font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.oc-amount small { font-size: 12px; font-weight: 500; margin-right: 1px; }
.oc-amount.free { color: var(--muted); font-weight: 500; }

.oc-btns { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.oc-mini {
  border: 1px solid var(--line); background: #fff; color: var(--text);
  padding: 4px 10px; border-radius: 7px; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}
.oc-mini:active { background: var(--line-soft); }
.oc-mini.primary {
  border-color: var(--primary); background: var(--primary); color: #fff;
}
.oc-mini.primary:active { opacity: 0.88; }
.oc-mini.danger {
  border-color: rgba(245, 63, 63, 0.35); color: #f53f3f; background: #fff;
}
.oc-mini.danger:active { background: rgba(245, 63, 63, 0.08); }
.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; }

/* ========== 团队采购专属卡片 ========== */
.team-card { border-color: rgba(22, 93, 255, .22); }
.tc-hero {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #eef4ff 0%, #f6f9ff 100%);
  border-bottom: 1px solid rgba(22, 93, 255, .1);
}
.tc-hero-ic {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #165dff, #4080ff);
  color: #fff;
  box-shadow: 0 3px 8px rgba(22, 93, 255, .25);
}
.tc-hero-ic svg { width: 21px; height: 21px; }
.tc-hero-main { min-width: 0; flex: 1; }
.tc-hero-t { display: flex; align-items: center; gap: 7px; }
.tc-hero-sub { margin-top: 2px; font-size: 11.5px; color: #6b8bbf; line-height: 1.4; }
.team-card .oc-type.team {
  color: #165dff; background: #e3edff; font-weight: 600;
}
.tc-body {
  display: flex; align-items: stretch; gap: 14px;
  padding: 12px 14px;
}
.tc-stat {
  flex-shrink: 0; width: 86px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-right: 14px;
  border-right: 1px dashed var(--line);
}
.tc-stat b {
  font-size: 24px; font-weight: 700; color: var(--primary); line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.tc-stat span { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tc-meta {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  font-size: 12px; color: var(--muted);
}
.team-card .oc-foot { background: #f8faff; }

/* 工具与服务 */
.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-orange { background: linear-gradient(135deg, #ff7d00, #ff9a2e); }
.tr-sky { background: linear-gradient(135deg, #165dff, #3b82ff); }
.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;
}

/* 发票抬头/发票列表空状态（user.js 团队空记录也复用 inv-empty-*） */
.mono { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; letter-spacing: .2px; }
.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;
}
.btn-secondary.danger {
  border-color: rgba(245, 63, 63, 0.4); background: #fff; color: #f53f3f;
}

/* 查看个人信息 */
.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); }
/* 取消订单弹窗：红色警示风格 */
.pm-icon.warn { background: linear-gradient(135deg, #f76560, #f53f3f); box-shadow: 0 8px 20px rgba(245, 63, 63, 0.32); }
.pm-btn-danger { border: none; background: linear-gradient(135deg, #f76560, #f53f3f); color: #fff; box-shadow: 0 6px 14px rgba(245, 63, 63, 0.28); }
.pm-btn.loading { opacity: 0.65; pointer-events: none; }

/* 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%;
}

/* 团队注册码 */
.tr-ic.tr-blue { background: #e8f3ff; color: #165dff; }
.team-order-card {
  background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px;
  border: 1px solid var(--line-soft);
}
.to-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.to-no { font-size: 13px; color: var(--muted); }
.to-status { font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.to-status.paid { background: #e8ffea; color: #00b42a; }
.to-status.pending { background: #fff7e8; color: #ff7d00; }
.to-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.to-summary { font-size: 13px; color: var(--ink); margin-bottom: 10px; padding: 8px 10px; background: var(--line-soft); border-radius: 8px; }
.code-list { display: flex; flex-direction: column; gap: 8px; }
.code-item { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.code-item.used { opacity: 0.7; background: #fafafa; }
.ci-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ci-code { font-size: 15px; font-weight: 600; letter-spacing: 1px; }
.ci-type { font-size: 12px; color: var(--muted); background: var(--line-soft); padding: 2px 6px; border-radius: 4px; }
.ci-status { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.ci-copy { border: none; background: var(--primary); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 12px; cursor: pointer; }
.ci-usedby { margin-top: 6px; font-size: 12px; color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

/* ========== 子页面通用：顶栏 ========== */
.subbar {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0 12px;
}
.subbar-spacer { flex: 1; }
/* 胶囊按钮（图标 + 文字） */
.subbar-btn {
  height: 32px; padding: 0 14px; border-radius: 999px; flex-shrink: 0;
  background: var(--white); border: 1px solid var(--line-soft);
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--text);
  box-shadow: 0 1px 2px rgba(31, 35, 41, .05), 0 3px 10px rgba(31, 35, 41, .05);
  transition: background .15s ease, transform .15s ease;
}
.subbar-btn:active { background: var(--line-soft); transform: scale(.96); }
.subbar-btn svg {
  width: 15px; height: 15px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
/* 返回：蓝色实心胶囊（白字白图标） */
.subbar-btn.back {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.subbar-btn.back:active { background: #0e4ad6; }
.subbar-btn.spinning svg { animation: subbar-spin .7s linear; }
@keyframes subbar-spin { to { transform: rotate(360deg); } }

/* ========== 我的任务 ========== */
.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
}
.tk-top {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.tk-role {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 1.6; flex-shrink: 0;
}
.tk-role.r-speaker { color: #165dff; background: #e8f0ff; }
.tk-role.r-host { color: #722ed1; background: #f5efff; }
.tk-role.r-discuss { color: #00b42a; background: #e8ffea; }
.tk-role.r-review { color: #ff7d00; background: #fff7e8; }
.tk-date { font-size: 13px; font-weight: 600; color: var(--ink); }
.tk-time {
  font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tk-topic {
  margin-top: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.5;
}
.tk-venue {
  margin-top: 7px; padding-top: 8px;
  border-top: 1px dashed var(--line-soft);
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--muted); line-height: 1.5;
}
.tk-venue svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ========== 我的发票 ========== */
/* 分区标题右侧操作按钮 */
.sec-action {
  border: none; background: none; padding: 4px 6px;
  font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer;
}
.sec-action.primary {
  background: var(--primary-soft); border-radius: 15px; padding: 5px 12px;
}
.sec-action:active { opacity: .7; }

/* 空态在子页面也衬一张白卡 */
.pg-sec .inv-empty,
.pg-sec .empty {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  margin: 0;
}
.pg-sec .empty { padding: 34px 0; }
.iv-tip-empty {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow);
  text-align: center; padding: 28px 16px;
}
.iv-tip-empty svg { width: 44px; height: 44px; color: #c9cdd4; }
.iv-tip-empty p { margin: 10px 0 4px; font-size: 14px; font-weight: 600; color: var(--text); }
.iv-tip-empty span { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* 发票抬头卡片 */
.iv-title-list { display: flex; flex-direction: column; gap: 10px; }
.iv-title-card {
  background: var(--white); border-radius: 12px;
  border: 1px solid var(--line-soft); box-shadow: var(--shadow);
  padding: 12px 14px;
}
.ivt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ivt-tag { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 12px; }
.ivt-tag.company { background: var(--primary-soft); color: var(--primary); }
.ivt-tag.personal { background: #f3edff; color: #722ed1; }
.ivt-ops button {
  border: none; background: none; padding: 2px 6px;
  font-size: 13px; color: var(--primary); cursor: pointer;
}
.ivt-ops button.danger { color: var(--danger); }
.ivt-name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.5; word-break: break-all; }
.ivt-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; color: var(--muted); }

/* 发票列表卡片 */
.iv-inv-list { display: flex; flex-direction: column; gap: 10px; }
.iv-inv-card {
  background: var(--white); border-radius: 12px;
  border: 1px solid var(--line-soft); box-shadow: var(--shadow);
  padding: 12px 14px;
}
.iv-inv-card.pending { background: #fffdf5; border-color: #ffe7ba; box-shadow: none; }
.ivc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ivc-chip { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 12px; }
.ivc-chip.green { background: #e8ffea; color: var(--success); }
.ivc-chip.amber { background: #fff3e0; color: var(--warning); }
.ivc-type { font-size: 11px; color: var(--muted); }
.ivc-main { display: flex; align-items: center; gap: 12px; }
.ivc-badge {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: .3px;
}
.ivc-badge.pdf {
  background: linear-gradient(135deg, #ff6a5c, var(--danger));
  color: #fff; box-shadow: 0 6px 14px rgba(245, 63, 63, .25);
}
.ivc-badge.wait { background: #fff3e0; color: var(--warning); font-size: 16px; }
.ivc-body { flex: 1; min-width: 0; }
.ivc-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.45; word-break: break-all; }
.ivc-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 12px; color: var(--text); }
.ivc-date { margin-top: 3px; font-size: 11px; color: var(--muted); }
.ivc-dl {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: 1px solid #ffd4d0; background: #fff5f5; color: var(--danger);
  border-radius: 10px; padding: 7px 11px; font-size: 11px; font-weight: 600; cursor: pointer;
}
.ivc-dl svg { width: 18px; height: 18px; }
.ivc-dl:active { transform: scale(.96); }

/* 抽屉内表单（抬头编辑 / 选择订单开票） */
.iv-drawer { max-width: 480px; }
.ivf-label { font-size: 13px; font-weight: 600; color: var(--text); }
.ivf-label i { color: var(--danger); font-style: normal; margin-left: 2px; }
.ivf-label.mt { margin-top: 14px; }
.ivf-radio-row { display: flex; gap: 10px; margin-top: 8px; }
.ivf-chip {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--white);
  font-size: 14px; color: var(--text); cursor: pointer;
}
.ivf-chip.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.ivf-input {
  width: 100%; margin-top: 8px;
  padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  font-size: 14px; color: var(--ink); background: #f7f8fa;
}
.ivf-input:focus { outline: none; border-color: var(--primary); background: #fff; }
.ivf-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); cursor: pointer; }
.ivf-check.mt { margin-top: 12px; }
.ivf-submit {
  width: 100%; margin-top: 18px; padding: 13px 0; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #3b82ff, var(--primary));
  color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 8px 18px rgba(22, 93, 255, .22);
}
.ivf-submit:disabled { opacity: .6; }
.ivf-note { margin: 10px 2px 0; font-size: 12px; color: var(--muted); line-height: 1.6; text-align: center; }

/* 开票抽屉：已支付订单选择 */
.iv-order-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.iv-order {
  display: block; border: 1.5px solid var(--line-soft); border-radius: 12px;
  padding: 11px 13px; background: var(--white); cursor: pointer;
}
.iv-order.on { border-color: var(--primary); background: var(--primary-soft); }
.iv-order.disabled { background: #f7f8fa; cursor: not-allowed; }
.ivo-line { display: flex; justify-content: space-between; gap: 10px; }
.ivo-name { font-size: 14px; font-weight: 600; color: var(--ink); min-width: 0; }
.ivo-amount { font-size: 14px; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.iv-order.disabled .ivo-amount { color: var(--muted); }
.ivo-sub { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; font-size: 11px; color: var(--muted); }
.ivo-state {
  display: inline-block; margin-top: 7px; font-size: 11px; font-weight: 600;
  color: var(--warning); background: #fff3e0; padding: 2px 8px; border-radius: 10px;
}

/* 开票抽屉：抬头选择 */
.iv-title-pick { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.iv-pick {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; cursor: pointer;
}
.iv-pick.on { border-color: var(--primary); background: var(--primary-soft); }
.ivp-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; flex-shrink: 0; }
.ivp-tag.company { background: #e8f0ff; color: var(--primary); }
.ivp-tag.personal { background: #f3edff; color: #722ed1; }
.ivp-tag.new { background: #e8ffea; color: var(--success); }
.ivp-name { font-size: 13px; color: var(--ink); word-break: break-all; }
.iv-new-title { margin-top: 10px; }
