/* ============ 达文思 移动版 · 品牌风格（对齐 index.html） ============ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: 'Microsoft YaHei', '微软雅黑', -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  background: #F5F7FA;
  color: #1A1A1A;
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 58px; /* 底部导航占位 */
}
.hidden { display: none !important; }
a { color: #1677FF; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

/* ============ 视图容器 ============ */
.view { display: none; padding: 16px; }
.view.active { display: block; }
.page-view { padding: 0; padding-bottom: 24px; min-height: 100vh; }

/* ============ 顶部导航（品牌深蓝渐变） ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(135deg, #003880 0%, #0958D9 60%, #1677FF 100%);
  color: #fff;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
}
.topbar .tb-back { font-size: 18px; line-height: 1; padding: 2px 6px; color: #fff; }
.topbar .tb-title { flex: 1; font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ 标题 ============ */
.page-head {
  padding: 14px 4px 12px;
  font-size: 18px;
  font-weight: 700;
  color: #003880;
}
.page-head small { font-size: 12px; color: #A8AEBD; font-weight: 400; margin-left: 6px; }

/* ============ 卡片 ============ */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(15,23,42,.05);
}
.card-title { font-size: 15px; font-weight: 700; color: #1A1A1A; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.card-title::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: #1677FF; }
.card-title .card-sub { margin-left: auto; font-size: 12px; font-weight: 400; color: #A8AEBD; }

/* ============ 表单 ============ */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: #3D4359; margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #D9E0EA;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 15px;
  background: #fff;
  color: #1A1A1A;
  outline: none;
  transition: border-color .2s;
}
.field input, .field select { height: 46px; }
.field textarea { padding: 10px 12px; min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #1677FF; box-shadow: 0 0 0 3px rgba(22,119,255,.12); }
.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1; }
.field-row button { flex: 0 0 108px; }

/* 勾选/开关行 */
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #D9E0EA;
  background: #FAFBFD;
  font-size: 13px;
  color: #3D4359;
}
.opt-chip.active {
  background: #E6F4FF;
  border-color: #1677FF;
  color: #0958D9;
  font-weight: 600;
}
#p-wcwrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
#p-wcwrap::-webkit-scrollbar { display: none; }
#p-wcwrap .opt-chip { padding: 8px 2px; font-size: 12.5px; white-space: nowrap; text-align: center; }

/* ============ 降重降AI · 服务瓦片 + 上传/粘贴切换 ============ */
.scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.scene-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 10px 2px 8px;
  border: 1px solid #DCE8FF; border-radius: 10px;
  background: #F7FAFF; color: #3D4359;
  font-size: 11px; font-weight: 600; line-height: 1.2;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.scene-tile svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.scene-tile.active { background: #E8F3FF; border-color: #1677FF; color: #0958D9; }
.seg-tabs { display: flex; background: #EEF2F8; border-radius: 10px; padding: 3px; margin-bottom: 12px; }
.seg-btn {
  flex: 1; height: 34px; border: none; border-radius: 8px;
  background: transparent; color: #5A6377; font-size: 13px; font-weight: 600; cursor: pointer;
}
.seg-btn.active { background: #fff; color: #1677FF; box-shadow: 0 1px 4px rgba(22,119,255,.18); }
.upload-hint { font-size: 12px; color: #A8AEBD; margin-bottom: 8px; line-height: 1.6; }
.file-chip {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px; padding: 7px 10px;
  background: #F0F6FF; border: 1px solid #D6E6FF; border-radius: 8px;
  font-size: 12px; color: #0958D9; line-height: 1.5; word-break: break-all;
}
/* ============ 按钮 ============ */
.btn {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  background: #1677FF;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(22,119,255,.20);
}
.btn:active { opacity: .85; }
.btn[disabled] { background: #A8C9F2; box-shadow: none; }
.btn-plain { background: #E6F4FF; color: #0958D9; box-shadow: none; }
.btn-outline { background: #fff; color: #1677FF; border: 1px solid #1677FF; box-shadow: none; }
.btn-accent { background: #22A747; box-shadow: 0 2px 6px rgba(34,167,71,.20); }
.btn-danger { background: #D63D43; box-shadow: 0 2px 6px rgba(214,61,67,.20); }
.btn-text { background: transparent; color: #1677FF; box-shadow: none; }
.btn-sm { height: 38px; font-size: 13px; border-radius: 6px; width: auto; padding: 0 14px; box-shadow: none; }

/* ============ 登录页（对齐 PC：浅灰底 #F5F7FA + 白卡 + #1677FF 强调色） ============ */
.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12vh 24px 32px;
  background: #F5F7FA;
}
.login-logo { text-align: center; font-size: 28px; font-weight: 700; color: #1A1A1A; letter-spacing: 1px; }
.login-logo span { color: #1677FF; }
.login-slogan { text-align: center; font-size: 13px; color: #6B7280; margin: 6px 0 26px; }
.login-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 22px 18px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, .06);
}
.login-tip { font-size: 12px; color: #9AA3B2; margin-top: 14px; text-align: center; line-height: 1.7; }

/* ============ 底部导航 ============ */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  display: flex;
  background: #fff;
  border-top: 1px solid #EBEFF5;
  z-index: 100;
}
.tab-item {
  flex: 1;
  height: 56px;
  border: none;
  background: none;
  font-size: 13px;
  color: #A8AEBD;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.tab-item .tb-ico { font-size: 18px; line-height: 1; }
.tab-item.active { color: #1677FF; font-weight: 600; }

/* ============ 首页 ============ */
.m-carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #EAF2FF;
}
.m-carousel .mc-track { display: flex; transition: transform .45s ease; }
.m-carousel .mc-img { width: 100%; flex-shrink: 0; display: block; }
.m-carousel .mc-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.m-carousel .mc-dot {
  width: 6px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.55);
  box-shadow: 0 0 2px rgba(0,0,0,.2);
  transition: all .3s;
  cursor: pointer;
}
.m-carousel .mc-dot.active { background: #fff; width: 16px; }
.brand-hero {
  background: linear-gradient(135deg, #EAF2FF 0%, #F7FAFF 100%);
  border: 1px solid #DCE8FF;
  border-radius: 12px;
  padding: 14px 12px;
  margin-bottom: 12px;
}
.brand-hero .bh-title {
  font-size: 18px; font-weight: 700; color: #003880;
  text-align: center; letter-spacing: .5px;
}
.brand-hero .bh-slogan {
  margin-top: 8px;
  text-align: center;
  font-size: 10.5px; font-weight: 600; color: #8A5A10;
  line-height: 1.6;
}
.brand-hero .bh-slogan .bh-star { color: #F5A623; letter-spacing: 1px; }
.brand-hero .bh-badges { display: flex; gap: 10px; margin-top: 10px; }
.brand-hero .bh-badge {
  flex: 1;
  background: #fff;
  border: 1px solid #E3ECFF;
  border-radius: 10px;
  padding: 9px 4px 7px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  box-shadow: 0 1px 4px rgba(15,23,42,.05);
}
.brand-hero .bh-badge img { height: 14.7px; width: auto; max-width: 53px; object-fit: contain; }
.brand-hero .bh-badge span { font-size: 10px; color: #475569; white-space: nowrap; }
.stat-bar {
  background: #fff;
  border: 1px solid #E3ECFF;
  border-radius: 10px;
  padding: 10px 4px;
  margin-top: 12px;
  display: flex;
}
.stat-bar .stat-item { flex: 1; text-align: center; position: relative; }
.stat-bar .stat-item + .stat-item::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 22px;
  background: #E9EFFA;
}
.stat-bar .st-num {
  font-size: 16px; font-weight: 700; color: #003880;
  font-variant-numeric: tabular-nums; letter-spacing: -.2px;
}
.stat-bar .st-label { font-size: 10px; color: #6B7A99; margin-top: 3px; }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.entry {
  background: #fff;
  border-radius: 12px;
  padding: 18px 14px;
  box-shadow: 0 1px 4px rgba(15,23,42,.05);
  cursor: pointer;
  position: relative;
}
.entry:active { background: #F0F8FF; }
.entry .entry-ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: #E6F4FF; color: #0958D9;
  font-size: 19px; font-style: normal;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.entry .entry-title { font-size: 15px; font-weight: 700; color: #1A1A1A; margin-bottom: 4px; }
.entry .entry-desc { font-size: 12px; color: #A8AEBD; line-height: 1.5; }
.entry-full { grid-column: 1 / -1; }
.entry .entry-arrow { position: absolute; right: 12px; top: 18px; color: #C7D1DE; font-size: 15px; }

/* ============ 订单 ============ */
.order-card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(15,23,42,.05); }
.order-card .oc-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #A8AEBD; margin-bottom: 6px; }
.order-card .oc-title { font-size: 15px; font-weight: 700; color: #1A1A1A; margin-bottom: 6px; }
.order-card .oc-meta { font-size: 12px; color: #3D4359; margin-bottom: 10px; }
.st-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #F0F8FF; color: #0958D9; }
.st-tag.done { background: #E8F6EC; color: #1B8A3D; }
.st-tag.writing { background: #FFF4DD; color: #B06A00; }
.st-tag.outline { background: #F0F2F5; color: #8A94A3; }
.oc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============ 论文写作 ============ */
.step-block { margin-bottom: 14px; }
.chapter-card { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(15,23,42,.05); }
.chapter-card .cc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.chapter-card .cc-num {
  flex-shrink: 0; font-size: 12px; font-weight: 700; color: #0958D9;
  background: #E6F4FF; border-radius: 6px; padding: 3px 8px;
}
.chapter-card .cc-title { flex: 1; }
.chapter-card .cc-title input { width: 100%; border: none; font-size: 14px; font-weight: 600; color: #1A1A1A; outline: none; background: transparent; }
.chapter-card .cc-status { font-size: 11px; color: #A8AEBD; flex-shrink: 0; }
.chapter-card .cc-status.done { color: #1B8A3D; }
.chapter-card .cc-status.fail { color: #D63D43; }
.sec-line { font-size: 13px; color: #3D4359; line-height: 1.9; padding-left: 8px; }
.sec-line .sn { color: #A8AEBD; margin-right: 4px; }
.sub-line { font-size: 12px; color: #3D4359; line-height: 1.8; padding-left: 22px; }
.sub-line .sn { color: #A8AEBD; margin-right: 4px; }
.cc-content { font-size: 13px; color: #3D4359; line-height: 1.7; margin-top: 8px; white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: hidden; position: relative; }
/* 章节内图形/图表/公式 */
.cc-chart { margin: 10px 0 4px; padding: 10px; background: #FAFBFC; border: 1px solid #F0F2F5; border-radius: 10px; }
.cc-chart-title { font-size: 12px; color: #3D4359; font-weight: 600; text-align: center; margin-bottom: 8px; }
.cc-chart-body { text-align: center; min-height: 24px; font-size: 12px; color: #A8AEBD; }
.cc-chart-body img { max-width: 100%; height: auto; }
/* 摘要块（正文卡第一章上方） */
.abs-block { border-bottom: 1px dashed #E2E8F0; padding: 2px 0 12px; margin-bottom: 6px; }
.qa-badge { font-size: 12px; color: #B06A00; background: #FFF4DD; border-radius: 6px; padding: 2px 8px; }

/* ============ 降AI ============ */
.ai-rate-row { display: flex; gap: 12px; align-items: center; margin: 10px 0; }
.ai-rate-box { flex: 1; text-align: center; padding: 12px 6px; border-radius: 10px; background: #F5F7FA; }
.ai-rate-box .v { font-size: 20px; font-weight: 700; }
.ai-rate-box .v.origin { color: #D63D43; }
.ai-rate-box .v.reduced { color: #22A747; }
.ai-rate-box .l { font-size: 11px; color: #A8AEBD; margin-top: 2px; }
.ai-arrow { color: #C7D1DE; font-size: 18px; }

/* ============ 我的 ============ */
.user-card { display: flex; align-items: center; gap: 12px; }
.user-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #1677FF, #0958D9);
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center;
}
.user-points {
  margin-left: auto;
  color: #B25E00;
  font-size: 17px; font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.user-name { font-size: 16px; font-weight: 700; color: #1A1A1A; }
.user-phone { font-size: 12px; color: #A8AEBD; margin-top: 2px; }
.menu-list { padding: 0; }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 2px;
  border-bottom: 1px solid #F0F2F5;
  font-size: 14px; color: #3D4359;
}
.menu-item:last-child { border-bottom: none; }
.menu-item .mi-ico { font-size: 16px; }
.menu-item .mi-txt { flex: 1; }
.menu-item .mi-arrow { color: #C7D1DE; font-size: 14px; }

/* ============ 进度遮罩 ============ */
.progress-mask {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,56,128,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.progress-card {
  background: #fff; border-radius: 14px;
  width: min(320px, 100%);
  padding: 22px 18px;
  text-align: center;
}
.spin {
  width: 30px; height: 30px;
  border: 3px solid #E6F4FF;
  border-top-color: #1677FF;
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: mspin 1s linear infinite;
}
@keyframes mspin { to { transform: rotate(360deg); } }
.progress-card .pc-title { font-size: 15px; font-weight: 700; color: #1A1A1A; margin-bottom: 6px; }
.progress-card .pc-detail { font-size: 12px; color: #A8AEBD; line-height: 1.7; word-break: break-all; }
.progress-card .pc-bar { height: 6px; border-radius: 3px; background: #F0F2F5; margin-top: 12px; overflow: hidden; }
.progress-card .pc-bar i { display: block; height: 100%; width: 0; background: #1677FF; border-radius: 3px; transition: width .3s; }

/* ============ 弹窗遮罩 ============ */
.modal-mask {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(15,23,42,.50);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-card {
  background: #fff; border-radius: 14px;
  width: min(360px, 100%);
  max-height: 84vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,56,128,.25);
}
.modal-card .mc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #F0F2F5;
  font-size: 15px; font-weight: 700; color: #1A1A1A;
}
.modal-card .mc-head button { font-size: 16px; color: #A8AEBD; }
.modal-card .mc-body { padding: 16px 18px; overflow-y: auto; }
.price-big { font-size: 26px; font-weight: 700; color: #D63D43; }
.price-big small { font-size: 13px; font-weight: 400; color: #A8AEBD; }
.modal-card .mc-foot { padding: 12px 18px; border-top: 1px solid #F0F2F5; display: flex; gap: 10px; }
.qr-wrap { text-align: center; padding: 8px 0; }
.qr-wrap img { width: 200px; height: 200px; border-radius: 8px; border: 1px solid #F0F2F5; }
/* 支付弹窗内容居中（参照 PC paper 支付弹窗） */
.pay-card .mc-head { justify-content: center; position: relative; }
.pay-card .mc-head button { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.pay-card .mc-body { text-align: center; }
.pay-card .mc-foot { justify-content: center; }
.pay-name { font-size: 14px; color: #6B7280; margin-bottom: 10px; }
.pay-card .price-big { margin: 2px 0 4px; font-size: 16px; }
.pay-balance { display: flex; justify-content: space-between; align-items: center; background: #F0FDF4; border: 1px solid #DCFCE7; border-radius: 14px; padding: 12px 16px; margin-top: 14px; font-size: 14px; color: #166534; }
.pay-balance .pay-bal-val { color: #16A34A; font-weight: 700; font-size: 15px; }

/* ============ 提示条 ============ */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 82%;
  background: rgba(0,56,128,.92);
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 20px;
  z-index: 1200;
  box-shadow: 0 4px 16px rgba(0,56,128,.30);
}

/* ============ 空态 ============ */
.empty-tip { text-align: center; padding: 46px 20px; color: #A8AEBD; font-size: 13px; line-height: 1.8; }

/* ============ 底部导航图标 ============ */
.tab-item .tb-svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ============ 首页 · 功能宫格（对齐PC侧边栏菜单） ============ */
.func-group-title {
  font-size: 13px; font-weight: 700; color: #5A6478;
  margin: 14px 2px 8px;
  display: flex; align-items: center; gap: 6px;
}
.func-group-title::before {
  content: ''; width: 3px; height: 12px;
  border-radius: 2px; background: #1677FF;
}
.func-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px 2px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 6px 12px;
  box-shadow: 0 1px 4px rgba(15,23,42,.05);
}
.brand-hero .func-group-title { margin: 16px 2px 8px; }
.brand-hero .func-grid { background: #fff; border: 1px solid #E3ECFF; box-shadow: none; }
.func-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 6px 2px 4px; cursor: pointer; border-radius: 10px;
  position: relative;
}
.func-item:active { background: #F0F7FF; }
.fi-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.fi-ico svg {
  width: 23px; height: 23px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.fi-c1 { background: #E8F3FF; color: #1677FF; }
.fi-c2 { background: #E6F9EF; color: #16A34A; }
.fi-c3 { background: #FFF4E6; color: #E8830C; }
.fi-c4 { background: #F1ECFF; color: #7C3AED; }
.fi-c5 { background: #FFECEF; color: #E11D48; }
.fi-name { font-size: 12px; color: #333; white-space: nowrap; }
.fi-tag {
  font-size: 9px; color: #16A34A; background: #E6F9EF;
  border-radius: 999px; padding: 0 4px; margin-left: 3px;
}

/* 首页快捷入口 */
.quick-row { display: flex; gap: 10px; margin-top: 12px; }
.quick-card {
  flex: 1; display: flex; align-items: center; justify-content: space-between;
  border-radius: 12px; padding: 13px 14px; color: #fff; cursor: pointer;
}
.quick-card:active { opacity: .88; }
.qc-blue { background: linear-gradient(135deg, #1677FF, #4096FF); }
.qc-green { background: linear-gradient(135deg, #16A34A, #3FCB6E); }
.qc-t { font-size: 14px; font-weight: 700; }
.qc-d { font-size: 11px; opacity: .82; margin-top: 2px; }
.qc-arrow { font-size: 16px; opacity: .85; }

/* ============ 订单页 · 3类订单 Tab ============ */
.order-tabs {
  display: flex; gap: 6px; margin-bottom: 12px;
  background: #EEF2F8; border-radius: 10px; padding: 4px;
}
.ot-btn {
  flex: 1; height: 34px; border-radius: 8px;
  font-size: 13px; color: #5A6478; background: none;
}
.ot-btn.active {
  background: #fff; color: #1677FF; font-weight: 600;
  box-shadow: 0 1px 4px rgba(15,23,42,.08);
}
.order-count { font-size: 11px; color: #A8AEBD; margin: 0 2px 8px; }
.scene-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; flex-shrink: 0; }
.scene-badge.free { background: #E8F3FF; color: #1677FF; }
.scene-badge.aigc { background: #F1ECFF; color: #7C3AED; }
.scene-badge.check { background: #E6F9EF; color: #16A34A; }
.st-tag.wait { background: #FFF4E6; color: #E8830C; }
.st-tag.run { background: #FFF7E0; color: #B8860B; }
.st-tag.fail { background: #FFECEF; color: #D63D43; }
.pay-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; flex-shrink: 0; }
.pay-tag.ok { background: #E6F9EF; color: #16A34A; }
.pay-tag.no { background: #FFF4E6; color: #E8830C; }
.oc-actions .btn-sm { width: auto; flex: none; padding: 0 12px; }

/* ============ 客服反馈（弹窗新页面） ============ */
.fb-page {
  position: fixed; inset: 0; z-index: 1000;
  background: #F5F7FB;
  display: none; flex-direction: column;
}
.fb-page.open { display: flex; animation: fbIn .22s ease; }
@keyframes fbIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.fb-head {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 12px; background: #fff;
  border-bottom: 1px solid #F0F2F5;
  flex-shrink: 0;
}
.fb-back {
  width: 32px; height: 32px; font-size: 20px; color: #3D4359;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.fb-back:active { background: #F0F2F5; }
.fb-title { font-size: 16px; font-weight: 700; color: #1A1A1A; }
.fb-body { flex: 1; overflow-y: auto; padding: 12px 14px 30px; -webkit-overflow-scrolling: touch; }
.fb-seg { display: flex; gap: 8px; margin-bottom: 12px; }
.fb-seg.order { margin-bottom: 10px; }
.fb-seg-btn {
  flex: 1; padding: 9px 4px; border: 1.5px solid #E3E8F0; background: #fff;
  color: #5A6478; font-size: 13px; font-weight: 600; border-radius: 10px;
  transition: all .18s;
}
.fb-seg-btn.active { background: #1677FF; border-color: #1677FF; color: #fff; }
/* 提交反馈 / 我的反馈：底部下划线 Tab（非按钮） */
.fb-tabs {
  display: flex; margin-bottom: 12px;
  border-bottom: 1px solid #EEF0F4;
  background: #fff;
}
.fb-tab {
  flex: 1; padding: 12px 4px;
  background: none; border: none;
  color: #8A93A6; font-size: 14px; font-weight: 600;
  border-bottom: 2.5px solid transparent;
  transition: color .18s, border-color .18s;
}
.fb-tab.active { color: #1677FF; border-bottom-color: #1677FF; }
.fb-label { font-size: 13px; color: #3D4359; font-weight: 600; margin-bottom: 8px; }
.fb-label i, .fb-page .field label i { color: #D63D43; font-style: normal; }
.fb-orders {
  max-height: 216px; overflow-y: auto;
  border: 1px solid #EDF0F5; border-radius: 10px; background: #FAFBFD;
}
.fb-order {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-bottom: 1px solid #F0F2F5;
  cursor: pointer; transition: background .15s;
}
.fb-order:last-child { border-bottom: none; }
.fb-order:active { background: #F0F7FF; }
.fb-order.selected { background: #F0F7FF; }
.fb-radio {
  width: 18px; height: 18px; flex: 0 0 auto;
  border: 2px solid #D9E0EA; border-radius: 50%;
  position: relative; transition: all .15s;
}
.fb-order.selected .fb-radio { border-color: #1677FF; background: #1677FF; }
.fb-order.selected .fb-radio::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
}
.fb-o-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fb-o-title {
  font-size: 13px; color: #1A1A1A; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fb-o-meta { font-size: 11px; color: #A8AEBD; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-empty { padding: 18px 12px; text-align: center; color: #A8AEBD; font-size: 13px; }
.fb-up {
  border: 1.5px dashed #D9E0EA; border-radius: 12px;
  padding: 18px 12px; text-align: center;
  background: #FAFBFD; color: #A8AEBD; cursor: pointer;
}
.fb-up:active { border-color: #1677FF; }
.fb-up svg { width: 34px; height: 34px; margin-bottom: 6px; }
.fb-up-txt { font-size: 13px; color: #3D4359; font-weight: 600; }
.fb-up-hint { font-size: 11px; color: #A8AEBD; margin-top: 3px; }
.fb-shots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fb-shot {
  position: relative; width: 78px; height: 78px;
  border-radius: 10px; overflow: hidden; border: 1px solid #EDF0F5;
}
.fb-shot img { width: 100%; height: 100%; object-fit: cover; }
.fb-shot button {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(0,0,0,.55); color: #fff;
  font-size: 13px; line-height: 1; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.fb-viewer {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,.85);
  display: none; align-items: center; justify-content: center;
}
.fb-viewer.open { display: flex; }
.fb-viewer img { max-width: 92%; max-height: 88%; border-radius: 8px; }
.fb-item { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.fb-item-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.fb-item-type { font-size: 14px; font-weight: 700; color: #1A1A1A; }
.fb-status { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; flex-shrink: 0; }
.fb-status.s0 { background: #FFF4E6; color: #E8830C; }
.fb-status.s1 { background: #E6F4FF; color: #1677FF; }
.fb-status.s2 { background: #E6F9EF; color: #16A34A; }
.fb-item-preview {
  font-size: 12px; color: #6B7280; background: #F5F7FB;
  border-radius: 8px; padding: 6px 10px; margin-bottom: 6px;
}
.fb-item-content { font-size: 13px; color: #3D4359; line-height: 1.7; word-break: break-word; }
.fb-item-time { font-size: 11px; color: #A8AEBD; margin-top: 6px; }
.fb-item-shots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fb-item-shots img {
  width: 64px; height: 48px; object-fit: cover;
  border-radius: 6px; border: 1px solid #EDF0F5;
}
.fb-reply {
  margin-top: 8px; padding: 10px 12px;
  background: #F5F7FB; border-left: 3px solid #1677FF;
  border-radius: 8px; font-size: 12px; color: #3D4359; line-height: 1.6;
}
.fb-reply b { color: #1677FF; display: block; margin-bottom: 2px; font-size: 12px; }
