/* ============================================
   客户服务中心 - 用户端样式 v20261004c
   精致美化版：渐变品牌面板 + 卡片动效 + 柔和气泡
   ============================================ */
:root {
  --primary: #2563eb;
  --primary-2: #0ea5e9;
  --primary-soft: #eff6ff;
  --danger: #ef4444;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #eef2f7; color: var(--text); font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* ============ 主布局 ============ */
.app { display: flex; height: 100vh; overflow: hidden; }

/* ============ 左侧品牌面板 ============ */
.brand-panel {
  width: 300px; flex: 0 0 auto; position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px 34px 30px; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, #1e3a8a 0%, #2563eb 55%, #0ea5e9 130%);
}
.brand-panel::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 80% -10%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(400px 260px at -10% 110%, rgba(56,189,248,.35), transparent 65%);
  pointer-events: none;
}
.brand-panel::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 30%, transparent 75%);
}
.brand { position: relative; z-index: 1; }
.brand-logo {
  width: 54px; height: 54px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  margin-bottom: 22px;
}
.brand-name { font-size: 24px; font-weight: 700; letter-spacing: 1px; text-shadow: 0 2px 12px rgba(0,0,0,.15); }
.brand-slogan { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 8px; letter-spacing: 2px; }
.brand-features { position: relative; z-index: 1; margin: 34px 0 0; }
.feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: rgba(255,255,255,.92);
  padding: 9px 0;
}
.feature .dot {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
  background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.18);
}
.brand-footer { position: relative; z-index: 1; font-size: 12.5px; color: rgba(255,255,255,.65); letter-spacing: 1px; }

/* ============ 右侧主区 ============ */
.right-panel { flex: 1; min-width: 0; position: relative; background: #f6f8fb; }

/* ============ 视图切换 ============ */
.panel-view { position: absolute; inset: 0; display: none; }
.panel-view.active { display: block; }
.chat-view, .choice-view, .feedback-view { display: none; }
.chat-view.active { display: flex; flex-direction: column; }
.choice-view.active { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 40px; overflow-y: auto; }
.feedback-view.active { display: flex; flex-direction: column; }
.order-view, .aftersale-view { overflow-y: auto; background: #f6f8fb; }

/* ============ 聊天头部 ============ */
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; background: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  flex: 0 0 auto; z-index: 2;
}
.header-avatar {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; color: #fff; flex: 0 0 auto;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 6px 16px rgba(37,99,235,.28);
}
.header-info { flex: 1; min-width: 0; }
.header-name { font-size: 16px; font-weight: 700; }
.header-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-3); margin-top: 2px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; position: relative; flex: 0 0 auto; }
.status-dot.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(74,222,128,.5);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.status-dot.off { background: #94a3b8; }
.status-dot.off::after { display: none; }
.status-dot.error { background: var(--danger); }
.status-dot.error::after { display: none; }
.header-back {
  border: 1px solid var(--border); background: #fff; color: var(--text-2);
  padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 13px;
  transition: all .18s; white-space: nowrap;
}
.header-back:hover { background: var(--primary-soft); color: var(--primary); border-color: #bfdbfe; }
.od-avatar { background: linear-gradient(135deg, #0ea5e9, #06b6d4); box-shadow: 0 6px 16px rgba(14,165,233,.28); }
.as-avatar { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 6px 16px rgba(16,185,129,.28); }
.fb-avatar { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 6px 16px rgba(245,158,11,.28); }

/* ============ 消息区 ============ */
.messages { flex: 1; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 2px; background: #f6f8fb; }
.messages::-webkit-scrollbar { width: 6px; }
.messages::-webkit-scrollbar-thumb { background: #d3dce8; border-radius: 3px; }
.messages::-webkit-scrollbar-track { background: transparent; }
.date-divider { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: var(--text-3); font-size: 12px; }
.date-divider::before, .date-divider::after { content: ""; flex: 1; height: 1px; background: #e6eaf0; }
.date-divider span { white-space: nowrap; }
.msg-row { display: flex; margin-bottom: 14px; align-items: flex-end; }
.msg-row.customer { justify-content: flex-end; }
.msg-row.customer .msg-bubble {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff; border-radius: 16px 16px 4px 16px;
  box-shadow: 0 4px 14px rgba(37,99,235,.22);
}
.msg-row.agent { justify-content: flex-start; gap: 10px; }
.msg-row.agent .avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  box-shadow: 0 4px 10px rgba(124,58,237,.25);
}
.msg-row.agent .msg-bubble {
  background: #fff; color: var(--text);
  border: 1px solid #e8edf3; border-radius: 16px 16px 16px 4px;
  box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.msg-body { max-width: 68%; min-width: 0; }
.msg-bubble { padding: 10px 14px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.msg-time { font-size: 11px; color: #a8b3c4; margin-top: 4px; padding: 0 4px; }
.customer .msg-time { text-align: right; }
.msg-row.system { justify-content: center; }
.msg-row.system .msg-system-pill {
  background: #e8edf3; color: var(--text-3); font-size: 12px;
  padding: 5px 16px; border-radius: 999px;
}

/* ============ 输入区 ============ */
.input-area {
  display: flex; gap: 10px; align-items: flex-end;
  padding: 12px 16px; background: #fff; border-top: 1px solid var(--border);
  flex: 0 0 auto;
}
.input-area textarea {
  flex: 1; resize: none; border: 1px solid var(--border); border-radius: 14px;
  padding: 11px 14px; font-size: 14px; font-family: inherit; outline: none;
  max-height: 120px; line-height: 1.5; background: #f8fafc;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.input-area textarea:focus { border-color: var(--primary-2); background: #fff; box-shadow: 0 0 0 3px rgba(14,165,233,.12); }
.input-area textarea::placeholder { color: var(--text-3); }
.send-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 18px; border: none; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff;
  font-size: 14px; font-weight: 600; flex: 0 0 auto;
  box-shadow: 0 4px 14px rgba(37,99,235,.25);
  transition: transform .15s, box-shadow .15s;
}
.send-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37,99,235,.36); }
.send-btn:active:not(:disabled) { transform: translateY(0); }
.send-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ============ 模式选择页 ============ */
.choice-view { background: #f6f8fb; }
.choice-head { text-align: center; margin-bottom: 34px; }
.choice-head h1 { font-size: 28px; font-weight: 800; margin-bottom: 10px; letter-spacing: 1px; }
.grad-text { background: linear-gradient(135deg, #2563eb, #0ea5e9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.choice-head p { font-size: 14.5px; color: var(--text-2); }
.choice-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  width: 100%; max-width: 560px;
}
.choice-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  padding: 24px 22px; border-radius: 18px; cursor: pointer;
  border: 1px solid #e6ebf2; background: #fff;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  overflow: hidden;
}
.choice-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  opacity: 0; transition: opacity .2s;
}
.choice-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15,23,42,.1); border-color: #c7d6f0; }
.choice-card:hover::before { opacity: 1; }
.choice-card:active { transform: translateY(-1px); }
.card-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-chat .card-icon { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #2563eb; }
.card-feedback .card-icon { background: linear-gradient(135deg, #fff7ed, #ffedd5); color: #f97316; }
.card-order .card-icon { background: linear-gradient(135deg, #ecfeff, #cffafe); color: #0891b2; }
.card-aftersale .card-icon { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #059669; }
.card-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.card-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.card-go {
  position: absolute; right: 18px; top: 24px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #f1f5f9; color: #94a3b8; font-size: 15px;
  transition: all .2s;
}
.choice-card:hover .card-go { background: var(--primary); color: #fff; }
.choice-tip {
  margin-top: 26px; font-size: 13px; color: var(--text-3);
}
.choice-tip button {
  border: none; background: none; color: var(--primary); font-size: 13px;
  cursor: pointer; font-weight: 600; padding: 0 2px;
}
.choice-tip button:hover { text-decoration: underline; }

/* ============ 反馈/订单/售后表单 ============ */
.order-view::-webkit-scrollbar, .aftersale-view::-webkit-scrollbar { width: 6px; }
.order-view::-webkit-scrollbar-thumb, .aftersale-view::-webkit-scrollbar-thumb { background: #d3dce8; border-radius: 3px; }
.od-result, .as-result { padding: 18px 24px 30px; }
.od-body, .as-body { padding: 22px 24px 10px; }
.feedback-form {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 26px 24px; max-width: 560px;
  box-shadow: 0 4px 18px rgba(15,23,42,.05);
  display: flex; flex-direction: column; gap: 4px;
}
.feedback-form[hidden] { display: none; }
.fb-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.fb-label { font-size: 14px; font-weight: 600; }
.fb-label i { color: var(--danger); font-style: normal; }
.fb-opt { color: var(--text-3); font-weight: 400; font-size: 12.5px; }
.fb-field input,
.fb-field select,
.fb-field textarea {
  border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px;
  font-size: 14px; font-family: inherit; outline: none; background: #fbfdff;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.fb-field input:focus,
.fb-field select:focus,
.fb-field textarea:focus {
  border-color: var(--primary-2); background: #fff;
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.fb-field input::placeholder, .fb-field textarea::placeholder { color: var(--text-3); }
.fb-field textarea { resize: vertical; min-height: 130px; line-height: 1.65; }
.fb-field select { cursor: pointer; }
.fb-hint { font-size: 12px; color: var(--text-3); }
.fb-hint button {
  border: none; background: none; color: var(--primary); font-size: 12px;
  cursor: pointer; font-weight: 600;
}
.fb-hint button:hover { text-decoration: underline; }
.fb-count { align-self: flex-end; font-size: 11px; color: var(--text-3); margin-top: -4px; }
.fb-error { color: var(--danger); font-size: 13px; min-height: 18px; margin: 4px 0; }
.fb-detail-error { border-color: var(--danger) !important; }
.fb-detail-error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important; }
button.primary {
  border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff;
  padding: 12px; font-size: 15px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(37,99,235,.22);
  transition: transform .15s, box-shadow .15s;
}
button.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(37,99,235,.32); }
button.ghost {
  border: 1px solid var(--border); background: #fff; color: var(--text-2);
  padding: 11px 18px; border-radius: 12px; cursor: pointer; font-size: 14px;
}
button.ghost:hover { background: #f8fafc; border-color: #cbd5e1; }

/* ============ 反馈 tab ============ */
.fb-tabs { display: flex; gap: 8px; padding: 14px 20px 0; flex: 0 0 auto; }
.fb-tab {
  border: 1px solid var(--border); background: #fff; color: var(--text-2);
  padding: 8px 18px; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 500;
  transition: all .18s;
}
.fb-tab:hover { color: var(--primary); border-color: #bfdbfe; }
.fb-tab.active { background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(37,99,235,.25); }
#fbSubmitPane { flex: 1; overflow-y: auto; padding: 18px 20px 24px; }
.fb-success {
  display: none; flex-direction: column; align-items: center; text-align: center;
  padding: 44px 20px; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; max-width: 560px; margin: 0 auto;
  box-shadow: 0 4px 18px rgba(15,23,42,.05);
}
.fb-success.active { display: flex; }
.fb-success-icon {
  width: 68px; height: 68px; border-radius: 50%; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #16a34a;
  box-shadow: 0 8px 24px rgba(22,163,74,.2);
}
.fb-success h2 { font-size: 20px; margin-bottom: 10px; }
.fb-success p { font-size: 13.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 18px; }
.fb-success-actions { display: flex; gap: 12px; margin-top: 6px; }
.fb-approval { width: 100%; margin-top: 8px; text-align: left; }
.fb-approval .approval-box { margin-top: 12px; }

/* 查询回复 */
.fb-query { flex: 1; overflow-y: auto; padding: 18px 20px 24px; }
.fb-query-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; max-width: 460px; margin: 0 auto;
  box-shadow: 0 4px 18px rgba(15,23,42,.05);
}
.fb-query-card h3 { font-size: 17px; margin-bottom: 6px; }
.fb-query-card .fb-hint { display: block; margin-bottom: 14px; }
.fb-query-card input {
  width: 100%; border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 13px; font-size: 14px; outline: none; background: #fbfdff;
  margin-bottom: 10px;
}
.fb-query-card input:focus { border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(14,165,233,.12); background: #fff; }
.fb-query-card button.primary { width: 100%; margin-top: 6px; }
.fb-query-result { max-width: 640px; margin: 18px auto 0; }

/* ============ 审批卡片（售后/反馈共用） ============ */
.approval-box { background: #fff; border: 1px solid #e8e8ef; border-radius: 12px; padding: 14px 16px; text-align: left; }
.approval-title { font-size: 14px; font-weight: 600; color: #1f2329; }
.approval-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin-left: 8px; }
.approval-badge.pending { background: #fff7e6; color: #d48806; }
.approval-badge.approved { background: #e6f7ed; color: #0d9c50; }
.approval-badge.rejected { background: #fdecec; color: #e5484d; }
.ap-steps { display: flex; align-items: flex-start; margin-top: 12px; }
.ap-step { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ap-dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; background: #eef0f4; color: #8a919f;
}
.ap-step.done .ap-dot { background: #0d9c50; color: #fff; }
.ap-step.rejected .ap-dot { background: #e5484d; color: #fff; }
.ap-step.pending .ap-dot { background: #fff; border: 1px solid #d3d7de; color: #c1c7d1; }
.ap-name { font-size: 11px; color: #4e5560; white-space: nowrap; margin-top: 4px; }
.ap-time { font-size: 10px; color: #a0a6b1; white-space: nowrap; }
.ap-line { flex: 1; height: 2px; background: #eef0f4; margin-top: 10px; min-width: 8px; }

/* 售后结果 */
.as-refund-card { border: 1px solid #d3e8e0; }
.as-empty { text-align: center; padding: 28px 16px; }
.as-empty h3 { margin: 0 0 6px; color: var(--text-2); }

/* 订单结果 */
.od-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; max-width: 560px; box-shadow: 0 4px 18px rgba(15,23,42,.05); }
.od-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed #e8edf3; font-size: 14px; }
.od-row:last-child { border-bottom: none; }
.od-row .k { color: var(--text-3); }
.od-row .v { font-weight: 600; color: var(--text); }

/* ============ 昵称弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.modal {
  width: 360px; max-width: 92vw; background: #fff; border-radius: 20px;
  padding: 32px 28px; text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  animation: modalIn .25s ease-out;
}
@keyframes modalIn { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-icon {
  width: 58px; height: 58px; border-radius: 18px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #2563eb;
}
.modal h2 { font-size: 20px; margin-bottom: 8px; }
.modal-desc { font-size: 13.5px; color: var(--text-2); margin-bottom: 22px; }
.modal input {
  width: 100%; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 13px; font-size: 14px; outline: none; background: #fbfdff;
  margin-bottom: 6px;
}
.modal input:focus { border-color: var(--primary-2); background: #fff; box-shadow: 0 0 0 3px rgba(14,165,233,.12); }
.modal-error { color: var(--danger); font-size: 13px; min-height: 20px; padding: 4px 0; }
.modal button.primary { width: 100%; margin-top: 8px; }

/* ============ 人机验证遮罩 ============ */
.verify-mask {
  position: fixed; inset: 0; z-index: 300;
  background: linear-gradient(160deg, #1e3a8a, #2563eb 60%, #0ea5e9);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s;
}
.verify-box {
  width: 340px; max-width: 90vw; background: rgba(255,255,255,.96);
  border-radius: 22px; padding: 36px 30px; text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,.3);
  animation: modalIn .3s ease-out;
}
.verify-shield {
  width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #2563eb;
  box-shadow: 0 10px 26px rgba(37,99,235,.22);
}
.verify-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.verify-desc { font-size: 13px; color: var(--text-2); margin-bottom: 20px; }
.verify-spinner { margin: 0 auto 14px; width: 26px; height: 26px; }
.verify-spinner i {
  display: block; width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid #dbeafe; border-top-color: #2563eb;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.verify-captcha { margin: 6px auto; }
.verify-error { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 6px; }
.verify-mask.hide { opacity: 0; pointer-events: none; }

/* ============ 响应式 ============ */
@media (max-width: 820px) {
  .app { flex-direction: column; }
  .brand-panel {
    width: 100%; flex: 0 0 auto; flex-direction: row; align-items: center;
    padding: 14px 18px; gap: 14px;
  }
  .brand-logo { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 0; }
  .brand-name { font-size: 17px; }
  .brand-slogan { display: none; }
  .brand-features, .brand-footer { display: none; }
  .choice-view.active { padding: 22px 16px; }
  .choice-head h1 { font-size: 22px; }
  .choice-cards { grid-template-columns: 1fr; max-width: 380px; }
  .msg-body { max-width: 82%; }
  .feedback-form { padding: 20px 18px; }
}

/* ============================================
   美化增强 v20261004d
   ============================================ */
body {
  background: linear-gradient(160deg, #eef2f7 0%, #e8eef7 55%, #e0ecf7 100%);
  background-attachment: fixed;
}

/* 品牌面板动态光晕 */
.brand-panel { animation: panelGlow 8s ease-in-out infinite alternate; }
@keyframes panelGlow {
  0% { filter: saturate(1); }
  100% { filter: saturate(1.15) brightness(1.06); }
}

/* 选择页标题更醒目 */
.choice-head h1 {
  font-size: 32px; letter-spacing: 2px;
  text-shadow: 0 8px 30px rgba(37,99,235,.15);
}
.choice-head p { font-size: 15px; letter-spacing: 4px; color: #64748b; }

/* 卡片交互增强 */
.choice-card {
  border: 1px solid rgba(199,214,240,.8);
  backdrop-filter: blur(4px);
}
.choice-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 20px 44px rgba(15,23,42,.14); }
.choice-card .card-icon { transition: transform .25s ease; }
.choice-card:hover .card-icon { transform: scale(1.12) rotate(-4deg); }
.choice-card .card-go { transition: all .25s ease; }
.choice-card:hover .card-go { transform: translateX(3px) scale(1.1); }

/* 视图进入动画 */
.panel-view.active { animation: viewIn .28s ease-out; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* 消息区渐变背景 */
.messages {
  background: radial-gradient(800px 400px at 80% 0%, #f0f6ff 0%, #f6f8fb 55%, #f8fafc 100%);
}

/* 消息气泡 hover */
.msg-row .msg-bubble { transition: transform .18s ease, box-shadow .18s ease; }
.msg-row.customer .msg-bubble:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37,99,235,.3); }
.msg-row.agent .msg-bubble:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,23,42,.1); }

/* 发送按钮流光 */
.send-btn { position: relative; overflow: hidden; }
.send-btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  animation: shine 2.8s ease-in-out infinite;
}
@keyframes shine { 0% { left: -80%; } 60%, 100% { left: 130%; } }

/* 表单卡片微质感 */
.feedback-form, .fb-query-card, .modal, .verify-box, .od-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

/* 状态呼吸点 */
.status-dot.pulse { animation: breath 2.4s ease-in-out infinite; }
@keyframes breath { 0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,.35); } 50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); } }

/* 返回按钮胶囊强化 */
.header-back { box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.header-back:active { transform: scale(.96); }
