/* 供应商中心视觉壳层 ia-ver 20260726shell */
/* 依赖 common.css 的 --gov-blue 等变量 */

/* ---------- 布局 ---------- */
body.user-center-body,
.user-main {
  /* marker class optional */
}
.user-main {
  margin-top: 28px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.user-content { min-height: 520px; min-width: 0; }

/* 中心页弱化页脚压迫感 */
.user-main ~ .zct-footer,
body:has(.user-main) .zct-footer {
  margin-top: 36px;
  padding: 28px 0 20px;
}
body:has(.user-main) .zct-footer .footer-grid { display: none; }
body:has(.user-main) .zct-footer .footer-copy {
  margin-top: 0;
  padding-top: 0;
  border: none;
}

/* ---------- 侧栏 ---------- */
.user-sidebar {
  background: #fff;
  border: 1px solid rgba(26, 86, 168, 0.08);
  border-radius: 12px;
  overflow: hidden;
  height: fit-content;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 86px;
}
.user-info-side {
  padding: 20px 16px 16px;
  text-align: center;
  background: linear-gradient(180deg, #f3f7fd 0%, #fff 100%);
  border-bottom: 1px solid #eef2f7;
}
.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gov-blue, #1a56a8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}
.user-company {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main, #2c3e50);
  margin-bottom: 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}
.user-status { font-size: 12px; }

.side-menu {
  list-style: none;
  padding: 6px 0 12px;
  margin: 0;
}
.side-menu li.side-group {
  padding: 12px 18px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.04em;
  pointer-events: none;
  line-height: 1.3;
}
.side-menu li.side-group:not(:first-child) {
  margin-top: 4px;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}
/* 账户设置分组稍拉开 */
.side-menu li.side-group:last-of-type {
  margin-top: 10px;
}
.side-menu li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px 0 18px;
  margin: 1px 8px;
  border-radius: 8px;
  color: var(--text-main, #2c3e50);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  border-right: none;
  position: relative;
}
.side-menu li a i {
  margin-right: 10px;
  font-size: 15px;
  color: #94a3b8;
  width: 18px;
  text-align: center;
}
.side-menu li a:hover {
  background: #f5f8fc;
  color: var(--gov-blue, #1a56a8);
}
.side-menu li a:hover i { color: var(--gov-blue, #1a56a8); }
.side-menu li.active a {
  background: var(--gov-blue-light, #eef4ff);
  color: var(--gov-blue, #1a56a8);
  font-weight: 700;
  border-right: none;
}
.side-menu li.active a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--gov-blue, #1a56a8);
}
.side-menu li.active a i { color: var(--gov-blue, #1a56a8); }
.side-menu .unread-dot {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  background: #f56c6c;
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 0 5px;
  margin-left: 6px;
}

/* ---------- 内容卡 ---------- */
.content-card {
  background: #fff;
  border: 1px solid rgba(26, 86, 168, 0.08);
  border-radius: 12px;
  padding: 26px 28px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.content-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main, #2c3e50);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.content-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--gov-blue, #1a56a8);
  border-radius: 2px;
  margin-right: 2px;
  flex-shrink: 0;
}
/* 当 title 是 flex 且第一个子是文字时，用伪元素作色条需要改结构；
   用 padding-left + 背景条更稳： */
.content-title {
  position: relative;
  padding-left: 14px;
  border-bottom: 1px solid #eef2f7;
}
.content-title::before {
  position: absolute;
  left: 0;
  top: 2px;
  bottom: auto;
  height: 18px;
  margin: 0;
}

.page-desc,
.apply-fee-note {
  font-size: 13px;
  color: #64748b;
  line-height: 1.65;
  margin: -6px 0 18px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #eef2f7;
}
.hint {
  background: #f3f7fd;
  border: 1px solid #d7e4f7;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #1e3a5f;
  margin-bottom: 18px;
  line-height: 1.7;
}
.hint.warn {
  background: #fff8f1;
  border-color: #f3d5b5;
  color: #9a3412;
}

/* ---------- 表格 ---------- */
.user-content .zct-table th {
  background: #f8fafc;
  font-size: 13px;
  padding: 12px 14px;
  color: #475569;
  font-weight: 600;
  border-bottom: 1px solid #e8eef5;
}
.user-content .zct-table td {
  padding: 13px 14px;
  font-size: 13.5px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}
.user-content .zct-table tr:last-child td { border-bottom: none; }
.user-content .zct-table tr:hover td { background: #f7faff; }

/* 操作按钮统一 */
.btn-pay, .btn-act, .btn-resubmit {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin: 2px 4px 2px 0;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.4;
}
.btn-pay, .btn-act.btn-view, .btn-act.btn-dl {
  background: var(--gov-blue, #1a56a8);
  color: #fff;
  border-color: var(--gov-blue, #1a56a8);
}
.btn-pay:hover, .btn-act.btn-view:hover {
  background: var(--gov-blue-dark, #14438a);
  color: #fff;
}
.btn-pay.btn-dl, .btn-act.btn-zctzb, .btn-act.btn-zbid {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.btn-pay.btn-dl:hover, .btn-act.btn-zctzb:hover {
  background: #059669;
  color: #fff;
}
.btn-act.btn-export {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fdba74;
}
.btn-sec {
  display: inline-block;
  margin: 2px 0 0 6px;
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
  border-bottom: 1px dashed #94a3b8;
}
.btn-sec:hover {
  color: var(--gov-blue, #1a56a8);
  border-bottom-color: var(--gov-blue, #1a56a8);
}
.action-wait { font-size: 12px; color: #94a3b8; }

/* ---------- 空状态 ---------- */
.empty-state {
  text-align: center;
  color: #94a3b8;
  padding: 48px 16px;
}
.empty-state i {
  font-size: 36px;
  display: block;
  margin-bottom: 10px;
  opacity: 0.55;
}
.empty-state div { font-size: 14px; line-height: 1.6; }

/* ---------- 首页 ---------- */
.home-welcome {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef2f7;
}
.home-welcome h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main, #2c3e50);
  margin: 0 0 4px;
  line-height: 1.35;
}
.home-welcome .sub {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}
.home-welcome .status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f0f9eb;
  color: #67c23a;
  border: 1px solid #e1f3d8;
  white-space: nowrap;
}
.home-welcome .status-pill.wait {
  background: #fdf6ec;
  color: #e6a23c;
  border-color: #faecd8;
}
.home-welcome .status-pill.fail {
  background: #fef0f0;
  color: #f56c6c;
  border-color: #fde2e2;
}

a.stat-card-link { display: block; text-decoration: none; color: inherit; }
.stat-card {
  background: #f8fafc;
  padding: 20px 16px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #eef2f7;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
a.stat-card-link:hover .stat-card {
  border-color: #c5d7f2;
  box-shadow: 0 4px 14px rgba(26, 86, 168, 0.08);
  transform: translateY(-1px);
  background: #fff;
}
.stat-label { font-size: 13px; color: #64748b; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 16px;
  background: #f3f7fd;
  border-radius: 10px;
  border: 1px solid #d7e4f7;
}
.home-cta-row .cta-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-right: 4px;
}
.home-cta-row a.home-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  background: #fff;
  color: var(--gov-blue, #1a56a8);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.home-cta-row a.home-cta.primary {
  background: var(--gov-blue, #1a56a8);
  color: #fff;
}
.home-cta-row a.home-cta:hover { opacity: 0.92; }

.home-section {
  margin-top: 28px;
}
.home-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.home-section-head .title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main, #2c3e50);
}
.home-section-head a {
  font-size: 13px;
  color: var(--gov-blue, #1a56a8);
  text-decoration: none;
  font-weight: 500;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .user-main {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 18px;
  }
}
@media (max-width: 860px) {
  .user-main {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }
  .user-sidebar {
    position: static;
  }
  .user-info-side { display: none; }
  .side-menu {
    display: flex;
    flex-wrap: wrap;
    padding: 8px;
    gap: 4px;
  }
  .side-menu li.side-group {
    display: none;
  }
  .side-menu li a {
    margin: 0;
    min-height: 34px;
    padding: 0 12px;
    font-size: 12.5px;
    background: #f8fafc;
  }
  .side-menu li.active a::before { display: none; }
  .content-card { padding: 18px 16px; }
  .user-content .zct-table { display: block; overflow-x: auto; }
}


/* ---------- 待办条 / 骨架 / 阶段化侧栏 (20260729todo) ---------- */
.skel {
  display: inline-block;
  min-width: 2.2em;
  height: 1.1em;
  border-radius: 4px;
  background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 50%, #eef2f7 75%);
  background-size: 200% 100%;
  animation: skel-shine 1.2s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes skel-shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.stat-value .skel { min-width: 2.5em; height: 1.35em; }

.todo-strip {
  margin: 0 0 18px;
  border: 1px solid rgba(26, 86, 168, 0.12);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.todo-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(180deg, #f3f7fd 0%, #fff 100%);
  border-bottom: 1px solid #eef2f7;
}
.todo-strip-head .title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.todo-strip-head .title i { color: var(--gov-blue, #1a56a8); margin-right: 6px; }
.todo-strip-empty {
  padding: 16px;
  font-size: 13px;
  color: #64748b;
}
.todo-strip-empty a { color: var(--gov-blue, #1a56a8); font-weight: 600; }
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.todo-list li:last-child { border-bottom: none; }
.todo-main { flex: 1; min-width: 0; }
.todo-title { font-size: 14px; font-weight: 600; color: #0f172a; }
.todo-meta { font-size: 12px; color: #64748b; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-level {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.todo-level.danger { background: #fef2f2; color: #dc2626; }
.todo-level.warning { background: #fffbeb; color: #d97706; }
.todo-level.info { background: #eff6ff; color: #1a56a8; }
.todo-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--gov-blue, #1a56a8);
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
}
.todo-action:hover { opacity: 0.92; }

.side-menu li.nav-hidden { display: none !important; }
.side-menu li.side-group.group-empty { display: none !important; }
.side-menu li.nav-forced a::after {
  content: "";
}
