/* =========================================================
   前台门户主题（无第三方依赖）
   ========================================================= */
:root {
  --brand: #1a5fc4;
  --brand-dark: #154ea6;
  --brand-light: #eaf1fc;
  --bg: #f6f8fc;
  --card: #ffffff;
  --line: #e4e9f2;
  --text: #253044;
  --text-sub: #6b7891;
  --green: #1f9d61;
  --orange: #d97a06;
  --red: #cf3f3f;
  --nav-h: 62px;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.7;
}
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; }
.muted { color: var(--text-sub); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.container-narrow { max-width: 760px; }

/* ---------------- 导航 ---------------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, #2d7bf0, #1a5fc4);
  color: #fff; font-weight: 700; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-name { font-size: 17px; font-weight: 700; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a {
  color: var(--text-sub); padding: 7px 13px; border-radius: 8px;
  font-size: 14.5px; transition: all .15s;
}
.nav-links a:hover { color: var(--brand); background: var(--brand-light); }
.nav-links a.active { color: var(--brand); font-weight: 600; background: var(--brand-light); }
.nav-contact-mobile { display: none; }
.nav-right { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-phone { color: var(--brand); font-weight: 600; font-size: 14px; }
.nav-toggle { display: none; }

/* ---------------- 公告 ---------------- */
.notice-bar {
  background: #fff8e6; border-bottom: 1px solid #f3e0ad;
  color: #9a6b00; font-size: 13.5px;
}
.notice-bar .container { padding-top: 9px; padding-bottom: 9px; }
.notice-tag {
  display: inline-block; background: #d97a06; color: #fff;
  font-size: 12px; border-radius: 4px; padding: 0 7px;
  margin-right: 8px; line-height: 19px; vertical-align: 1px;
}

/* ---------------- Hero ---------------- */
.hero {
  background:
    radial-gradient(800px 320px at 85% -10%, rgba(88, 146, 255, .28), transparent 60%),
    linear-gradient(160deg, #17233c 0%, #1f3a68 62%, #24509b 100%);
  color: #fff; padding: 74px 0 80px;
}
.hero-text { max-width: 640px; }
.hero h1 { font-size: 36px; line-height: 1.3; letter-spacing: 1px; }
.hero p { color: #b9c8e4; margin: 16px 0 28px; font-size: 16px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 12px; margin-top: 30px; list-style: none; flex-wrap: wrap; }
.hero-points li {
  border: 1px solid rgba(255,255,255,.25); border-radius: 30px;
  padding: 4px 16px; font-size: 13px; color: #d7e2f5;
}

/* ---------------- 区块 ---------------- */
.section { padding: 56px 0; }
.section-alt { background: #eef2f9; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: 26px; }
.section-head p { color: var(--text-sub); margin-top: 8px; font-size: 14.5px; }
.more { font-size: 13.5px; }

/* ---------------- 价格卡片 ---------------- */
.price-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.price-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
  transition: all .2s; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 2px 10px rgba(37,48,68,.04);
}
.price-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(26,95,196,.12); border-color: #cfdff7; }
.price-card h3 { font-size: 17px; }
.chip {
  display: inline-block; align-self: flex-start;
  background: var(--brand-light); color: var(--brand);
  font-size: 12px; border-radius: 20px; padding: 1px 11px; line-height: 20px;
}
.price-row { display: flex; align-items: baseline; gap: 10px; }
.price-now { color: var(--brand); font-size: 30px; font-weight: 700; }
.price-now i { font-style: normal; font-size: 15px; margin-right: 2px; }
.price-old { color: #a8b2c4; text-decoration: line-through; font-size: 14px; }
.price-remark { color: var(--text-sub); font-size: 13px; min-height: 22px; }

/* ---------------- 流程 ---------------- */
.steps-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: 0 2px 10px rgba(37,48,68,.04);
}
.step-no {
  display: inline-flex; width: 34px; height: 34px;
  align-items: center; justify-content: center;
  background: var(--brand); color: #fff; border-radius: 50%;
  font-weight: 700; margin-bottom: 12px;
}
.step-card h3 { font-size: 16px; margin-bottom: 6px; }
.step-card p { color: var(--text-sub); font-size: 13.5px; }

/* ---------------- 风险提示 ---------------- */
.risk-list { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.risk-list-page { grid-template-columns: 1fr; }
.risk-item {
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 10px; padding: 16px 18px;
}
.risk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.risk-head strong { font-size: 14.5px; }
.risk-item p { color: var(--text-sub); font-size: 13.5px; }

/* ---------------- 动态 ---------------- */
.news-cols { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.news-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  color: var(--text); transition: all .2s;
}
.news-card:hover { border-color: #cfdff7; box-shadow: 0 10px 26px rgba(26,95,196,.1); transform: translateY(-2px); }
.news-card h3 { font-size: 15.5px; }
.news-card p { color: var(--text-sub); font-size: 13.5px; flex: 1; }
.news-card time, .news-row time { color: #a0abbd; font-size: 12.5px; }
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-row {
  display: flex; align-items: center; gap: 20px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px;
  color: var(--text); transition: all .15s;
}
.news-row:hover { border-color: #cfdff7; box-shadow: 0 6px 18px rgba(26,95,196,.08); }
.news-row-main { flex: 1; min-width: 0; }
.news-row h3 { font-size: 15.5px; }
.news-row p { color: var(--text-sub); font-size: 13px; margin-top: 4px; }
.news-row time { flex: none; }

/* ---------------- 文章详情 ---------------- */
.article-card { padding: 34px 36px; }
.article-title { font-size: 24px; line-height: 1.4; }
.article-meta { color: var(--text-sub); font-size: 13px; margin: 12px 0 22px; display: flex; gap: 18px; }
.article-body { color: #35415a; }
.article-body p { margin-bottom: 12px; }

/* ---------------- 卡片表单 ---------------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  box-shadow: 0 2px 10px rgba(37,48,68,.04);
  margin-bottom: 18px;
}
.form-card { padding: 30px; }
.card-title { font-size: 18px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 13.5px; color: #4a5871; margin-bottom: 6px; font-weight: 500; }
.form-item label em { color: var(--red); font-style: normal; }
input[type=text], input[type=tel], input[type=password], input[type=number], input:not([type]), select, textarea {
  width: 100%; padding: 10px 13px;
  border: 1px solid #d7dfee; border-radius: 9px;
  font-size: 14.5px; font-family: inherit; color: var(--text);
  outline: none; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26,95,196,.1);
}
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-err { color: var(--red); font-size: 12.5px; margin-top: 5px; }
.form-tip { color: var(--text-sub); font-size: 12.5px; margin-top: 12px; text-align: center; }
.query-form { max-width: 640px; }
.agree-line { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-weight: 400; }
.agree-line input[type=checkbox] { width: 15px; height: 15px; margin-top: 4px; flex: none; }

/* 支付方式选择 */
.pay-options { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.pay-option {
  display: flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--line); border-radius: 9px;
  padding: 11px 14px; cursor: pointer; transition: all .15s;
  font-size: 14px; font-weight: 500; color: #4a5871;
}
.pay-option input { accent-color: var(--brand); }
.pay-option.checked { border-color: var(--brand); background: var(--brand-light); color: var(--brand); }

/* ---------------- 订单摘要 / 支付页 ---------------- */
.order-summary {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #f4f7fc; border: 1px solid #dfe8f5;
  border-radius: 10px; padding: 16px 18px; margin-bottom: 20px;
}
.sum-region { font-size: 16px; font-weight: 700; }
.sum-price { margin-left: auto; display: flex; align-items: baseline; gap: 8px; }
.pay-card { padding: 28px 30px; }
.pay-order-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.pay-order-head h2 { font-size: 20px; }
.pay-order-status { display: flex; gap: 8px; align-items: center; }
.plain-table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; }
.plain-table th, .plain-table td { text-align: left; padding: 7px 4px; font-size: 14px; vertical-align: top; }
.plain-table th { color: var(--text-sub); font-weight: 500; width: 96px; white-space: nowrap; }
.amount { font-weight: 700; color: var(--brand); font-size: 17px; }
.admin-note { background: #f4f7fc; border-radius: 8px; padding: 8px 12px; }
.pay-channel { border-top: 1px dashed var(--line); padding-top: 20px; }
.pay-channel h3 { font-size: 16px; margin-bottom: 14px; }
.pay-qr { text-align: center; margin-bottom: 14px; }
.pay-qr img { width: 190px; height: 190px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; }
.pay-desc { background: #f4f7fc; border-radius: 9px; padding: 12px 15px; font-size: 14px; margin-bottom: 14px; }
.pay-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.pay-contact {
  margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line);
  color: var(--text-sub); font-size: 13.5px;
}
.pay-contact p { margin-bottom: 3px; }
.pay-done { text-align: center; padding: 26px 0 10px; }
.pay-done-icon {
  width: 58px; height: 58px; margin: 0 auto 12px;
  border-radius: 50%; background: #e5f6ec; color: var(--green);
  font-size: 30px; display: flex; align-items: center; justify-content: center;
}
.copyable { cursor: pointer; color: var(--brand); }

/* ---------------- 工单会话 ---------------- */
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 2px solid var(--line); }
.tabs a {
  padding: 9px 20px; font-size: 14.5px; color: var(--text-sub);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.tabs a.active { color: var(--brand); border-color: var(--brand); font-weight: 600; }
.tabs a:hover { color: var(--brand); }
.ticket-thread { display: flex; flex-direction: column; gap: 14px; margin: 10px 0 18px; }
.ticket-msg { max-width: 86%; }
.ticket-msg.user { align-self: flex-start; }
.ticket-msg.admin { align-self: flex-end; }
.ticket-meta { font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }
.ticket-msg.admin .ticket-meta { text-align: right; }
.ticket-bubble { padding: 11px 15px; border-radius: 12px; font-size: 14px; word-break: break-word; }
.ticket-msg.user .ticket-bubble { background: #f2f5fa; border: 1px solid var(--line); border-top-left-radius: 3px; }
.ticket-msg.admin .ticket-bubble { background: var(--brand-light); border: 1px solid #d3e3fa; border-top-right-radius: 3px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 9px;
  padding: 9px 22px; font-size: 14.5px; cursor: pointer;
  transition: all .15s; white-space: nowrap; line-height: 1.5;
  font-family: inherit;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(26,95,196,.25); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #eaf1fc; }
.btn-ghost { background: #fff; color: #4a5871; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 5px 13px; font-size: 13px; }
.btn-lg { padding: 12px 30px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------------- 提示 ---------------- */
.alert {
  padding: 11px 40px 11px 14px; border-radius: 9px;
  font-size: 13.5px; margin-bottom: 14px; position: relative; line-height: 1.7;
}
.alert-success { background: #e5f6ec; color: #187a46; border: 1px solid #c3ead4; }
.alert-error { background: #fdeaea; color: #b23030; border: 1px solid #f3c8c8; }
.alert-warn { background: #fff8e6; color: #9a6b00; border: 1px solid #f3e0ad; }
.alert-info { background: #e8f0fd; color: #1a5fc4; border: 1px solid #cddff8; }
.alert-close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; font-size: 18px; cursor: pointer;
  color: inherit; opacity: .6; line-height: 1;
}
.empty {
  text-align: center; color: var(--text-sub);
  background: var(--card); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 48px 20px; font-size: 14px;
}
.badge {
  display: inline-block; padding: 1px 10px;
  font-size: 12px; border-radius: 20px; line-height: 20px; white-space: nowrap;
}
.badge-blue { background: #e8f0fd; color: #1a5fc4; }
.badge-green { background: #e5f6ec; color: #187a46; }
.badge-orange { background: #fdf1e0; color: #b36a05; }
.badge-red { background: #fdeaea; color: #b23030; }
.badge-gray { background: #eef1f5; color: #6b7891; }

/* ---------------- CTA / 页脚 ---------------- */
.cta-band {
  background: linear-gradient(120deg, #1f3a68, #24509b);
  padding: 46px 0; margin-top: 30px;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-inner h3 { color: #fff; font-size: 22px; }
.cta-inner p { color: #b9c8e4; margin-top: 4px; font-size: 14px; }
.site-footer { background: #131c2e; color: #8d9ab5; padding: 44px 0 26px; font-size: 13.5px; }
.footer-inner { display: grid; gap: 30px; grid-template-columns: 1.4fr 1fr 1fr; padding-bottom: 26px; }
.footer-col h4 { color: #dfe6f2; font-size: 15px; margin-bottom: 10px; }
.footer-col p { margin-bottom: 6px; }
.footer-col a { color: #8d9ab5; }
.footer-col a:hover { color: #fff; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; font-size: 12.5px; color: #5d6c8c; }
.footer-copy p { margin-bottom: 4px; }
.footer-copy a { color: #5d6c8c; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 16px; display: none;
    box-shadow: 0 14px 30px rgba(20,30,50,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; }
  .nav-contact-mobile { display: block; color: var(--text-sub); padding: 10px 12px 0; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 4px;
    background: none; border: 0; cursor: pointer; padding: 6px;
  }
  .nav-toggle span { width: 19px; height: 2px; background: var(--text); border-radius: 2px; }
  .nav-phone { display: none; }
  .hero { padding: 52px 0 56px; }
  .hero h1 { font-size: 27px; }
  .section { padding: 40px 0; }
  .form-row { grid-template-columns: 1fr; }
  .pay-options { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .article-card, .pay-card, .form-card { padding: 22px 18px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- 平板 & 大屏手机（≤ 640px） ---------- */
@media (max-width: 640px) {
  .nav-right .btn { padding: 7px 12px; font-size: 13px; }
  .stat-num { font-size: 19px; }
  .stat-grid-4 { grid-template-columns: 1fr 1fr; }

  /* 桌面表格 → 手机卡片列表 */
  .table thead { display: none; }
  .table tbody, .table tr { display: block; }
  .table tbody tr {
    border: 1px solid var(--line); border-radius: 10px;
    padding: 12px 14px; margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(20,30,50,.04);
  }
  .table td {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 0; border-bottom: 1px dashed #eef1f6;
    font-size: 13.5px;
  }
  .table td:last-child { border-bottom: 0; }
  .table td::before {
    content: attr(data-label);
    color: var(--text-sub); font-size: 12.5px;
    flex-shrink: 0; margin-right: 12px;
  }
  .table td.mono { font-size: 12.5px; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* 工单详情 */
  .ticket-msg { max-width: 92%; }
  .ticket-bubble { padding: 9px 12px; font-size: 13.5px; }
}

/* ---------- 小屏手机（≤ 480px） ---------- */
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .brand-name { display: none; }
  .card { padding: 18px 14px; border-radius: 10px; }
  .form-card { padding: 20px 16px; }
  .stat-card { padding: 14px 16px; }
  .stat-num { font-size: 17px; }
  .stat-label { font-size: 12px; }
  .stat-grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* 顶部按钮更紧凑 */
  .nav-right .btn { padding: 6px 10px; font-size: 12.5px; border-radius: 7px; }
  .user-menu-trigger { padding: 5px 10px 5px 5px; }
  .user-name { display: none; }
  .user-avatar { width: 28px; height: 28px; font-size: 12px; }

  /* 用户下拉菜单贴右边 */
  .user-menu-dropdown { right: -10px; width: 210px; }

  /* 用户中心侧栏 → 横向滚动标签 */
  .uc-layout { grid-template-columns: 1fr; }
  .uc-sidebar {
    position: static; padding: 14px; margin-bottom: 14px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .uc-sidebar::-webkit-scrollbar { height: 0; }
  .uc-user { padding: 0 0 12px; }
  .uc-nav {
    flex-direction: row; flex-wrap: nowrap; gap: 6px;
    overflow-x: auto; padding: 0 0 10px; margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }
  .uc-nav::-webkit-scrollbar { height: 0; }
  .uc-nav a { flex-shrink: 0; padding: 8px 14px; font-size: 13.5px; gap: 7px; }
  .uc-badge { margin-left: 6px; }
  .uc-stat { display: none; }
  .uc-logout { margin: 4px 0 0; padding: 10px; font-size: 13px; }

  /* 按钮全宽 */
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }

  /* 工单气泡更紧凑 */
  .ticket-msg { max-width: 95%; }
  .ticket-bubble { font-size: 13px; padding: 8px 11px; }

  .section { padding: 28px 0; }
}

/* ---------------- 上传缩略图网格 ---------------- */
.upload-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.thumb-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb-wrap {
  position: relative; width: 80px; height: 80px;
  border-radius: 8px; overflow: hidden;
  border: 1px solid #d7dfee; background: #f4f7fc;
}
.thumb-wrap .thumb, .thumb-wrap img {
  width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block;
}
.thumb-remove {
  position: absolute; top: 2px; right: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; border: 0;
  font-size: 14px; line-height: 20px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
}
.thumb-wrap:hover .thumb-remove { display: inline-flex; }
.qr-preview { width: 80px; height: 80px; object-fit: cover; border: 1px solid #d7dfee; border-radius: 8px; cursor: zoom-in; }

/* ---------------- 图片弹窗 ---------------- */
.img-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.img-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.78); }
.img-modal-inner { position: relative; max-width: 92vw; max-height: 92vh; }
.img-modal-inner img { max-width: 92vw; max-height: 88vh; display: block; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.img-modal-close {
  position: absolute; top: -12px; right: -12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: #333; border: 0; font-size: 22px; line-height: 28px;
  cursor: pointer; box-shadow: 0 3px 12px rgba(0,0,0,.2);
}

/* ---------------- 顶部用户下拉菜单 ---------------- */
.user-menu { position: relative; }
.user-menu-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid #e4e9f2; border-radius: 20px;
  background: #fff; cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
}
.user-menu-trigger:hover { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,107,240,.08); }
.user-menu-trigger svg { color: #9aa6bb; transition: transform .15s; }
.user-menu.open .user-menu-trigger svg { transform: rotate(180deg); }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #2d7bf0, #1a5fc4);
  color: #fff; font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-avatar-lg { width: 44px; height: 44px; font-size: 18px; }
.user-name { font-size: 14px; color: var(--ink); font-weight: 500; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 240px; background: #fff; border-radius: 10px;
  border: 1px solid #e4e9f2;
  box-shadow: 0 12px 36px rgba(15,27,56,.12);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 80;
}
.user-menu.open .user-menu-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.user-menu-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 14px; margin-bottom: 4px;
  border-bottom: 1px solid #f0f3f8;
}
.user-menu-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.user-menu-phone { font-size: 12.5px; color: #9aa6bb; margin-top: 2px; }
.user-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 7px;
  color: var(--text); font-size: 14px;
  transition: background .1s, color .1s;
}
.user-menu-item:hover { background: #eef4fd; color: var(--brand); }
.user-menu-item svg { color: #9aa6bb; flex-shrink: 0; }
.user-menu-item:hover svg { color: var(--brand); }
.user-menu-logout { color: #cf3535; }
.user-menu-logout:hover { background: #fdeaea; color: #cf3535; }
.user-menu-logout:hover svg { color: #cf3535; }
.user-menu-divider { height: 1px; background: #f0f3f8; margin: 6px 8px; }

/* ---------------- 表格 ---------------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { color: var(--text-sub); font-weight: 600; background: #f7f9fc; white-space: nowrap; font-size: 13px; }
.table tbody tr:hover { background: #f9fbfe; }
.table td.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--text); }
.table .link { color: var(--brand); font-size: 13.5px; }
.table .link:hover { text-decoration: underline; }

/* 徽章 */
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; line-height: 1.5; }
.badge-green { background: #e7f6ed; color: #15803d; }
.badge-red   { background: #fdeaea; color: #cf3535; }
.badge-amber { background: #fef3e2; color: #b45309; }
.badge-blue  { background: #eef4fd; color: var(--brand); }
.badge-gray  { background: #eef1f6; color: #5a6a85; }

/* 统计卡片 */
.stat-grid { display: grid; gap: 14px; margin-bottom: 18px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 4px;
}
.stat-num { font-size: 22px; font-weight: 700; color: var(--ink); }
.stat-label { font-size: 13px; color: var(--text-sub); }

/* 空状态 */
.empty { text-align: center; padding: 40px 20px; color: var(--text-sub); }

/* 按钮行 */
.btn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 12px 26px; font-size: 15.5px; border-radius: 9px; }

/* btn-line 样式（登录按钮） */
.btn-line { border-color: #d5dbe6; color: var(--text); background: #fff; }
.btn-line:hover { border-color: var(--brand); color: var(--brand); background: #eef4fd; }

/* 跳转链接 */
.link { color: var(--brand); }
.link:hover { text-decoration: underline; }
