/* ===== 个人中心（[kjb_user_center]） ===== */

/* 页面壳：通栏 + 去默认页头 */
body.kjb-uc .site.grid-container,
body.kjb-uc .site-content,
body.kjb-uc .content-area,
body.kjb-uc .site-main { max-width: none; width: 100%; }
body.kjb-uc .content-area { float: none; }
body.kjb-uc .site-content { background: #f5f6fa; }
body.kjb-uc .inside-article { padding: 0; background: transparent; box-shadow: none; }
body.kjb-uc .entry-header,
body.kjb-uc .page-header,
body.kjb-uc .breadcrumb { display: none; }

/* 未登录提示 */
.uc-login-tip { max-width: 520px; margin: 60px auto; padding: 28px; background: #fff; border-radius: 12px; text-align: center; font-size: 15px; color: #444; }
.uc-login-tip a { color: #2E5C8C; font-weight: 600; }

/* 布局 */
.uc-wrap { display: flex; gap: 16px; padding: 16px 14px 40px; max-width: 1400px; margin: 0 auto; align-items: flex-start; }
.uc-side { width: 200px; flex: 0 0 200px; background: #fff; border-radius: 12px; padding: 10px 8px; position: sticky; top: 76px; }
.uc-user { text-align: center; padding: 14px 8px 12px; border-bottom: 1px solid #f0f0f0; margin-bottom: 8px; }
.uc-avatar { width: 56px; height: 56px; border-radius: 50%; background: #2E5C8C; color: #fff; font-size: 22px; line-height: 56px; margin: 0 auto 8px; font-weight: 600; }
.uc-name { font-weight: 600; color: #333; font-size: 14px; }
.uc-nav-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; color: #555; font-size: 14px; text-decoration: none; margin: 2px 0; }
.uc-nav-item:hover { background: #f5f6fa; color: #2E5C8C; }
.uc-nav-item.active { background: #f2f4f8; color: #F79E1E; font-weight: 600; }
.uc-ico { width: 14px; height: 14px; border-radius: 4px; background: #dfe4ec; flex: 0 0 14px; }
.uc-nav-item.active .uc-ico { background: #F79E1E; }
.uc-logout { color: #b04040; }

.uc-main { flex: 1; min-width: 0; }
.uc-panel { display: none; }

/* 顶部统计卡 */
.uc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.uc-card { background: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(20,40,80,.06); }
.uc-card .big { font-size: 26px; font-weight: 700; color: #E8562A; }
.uc-card .big.plain { color: #2E5C8C; }
.uc-card .lbl { color: #333; font-size: 15px; font-weight: 600; margin-top: 2px; }
.uc-card .sub { color: #999; font-size: 12px; margin-top: 8px; }
.uc-card .sub a { color: #F79E1E; text-decoration: none; }

/* VIP 套餐卡 */
.uc-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.uc-tier { background: #fff; border-radius: 12px; overflow: hidden; text-align: center; box-shadow: 0 1px 3px rgba(20,40,80,.06); padding-bottom: 18px; }
.uc-tier .th { color: #fff; padding: 10px; font-weight: 600; font-size: 15px; }
.uc-tier.t1 .th { background: #2E5C8C; }
.uc-tier.t2 .th { background: #F79E1E; }
.uc-tier.t3 .th { background: #C9A227; }
.uc-tier .price { font-size: 30px; font-weight: 700; color: #333; margin: 16px 0 4px; }
.uc-tier .unit { display: inline-block; font-size: 12px; color: #888; border: 1px solid #eee; border-radius: 999px; padding: 2px 10px; }
.uc-tier ul { list-style: none; margin: 14px 0; padding: 0 18px; text-align: left; }
.uc-tier li { font-size: 13px; color: #555; padding: 4px 0 4px 16px; position: relative; }
.uc-tier li:before { content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; }
.uc-tier.t1 li:before { background: #2E5C8C; opacity: .45; }
.uc-tier.t2 li:before { background: #F79E1E; opacity: .45; }
.uc-tier.t3 li:before { background: #C9A227; opacity: .45; }
.uc-btn { display: inline-block; border: 0; cursor: pointer; color: #fff; border-radius: 999px; padding: 8px 26px; font-size: 14px; text-decoration: none; }
.uc-tier.t1 .uc-btn { background: #2E5C8C; }
.uc-tier.t2 .uc-btn { background: #F79E1E; }
.uc-tier.t3 .uc-btn { background: #C9A227; }
.uc-note { text-align: center; color: #999; font-size: 12px; margin: 18px 0 26px; line-height: 1.9; }

/* 激活码 */
.uc-act { background: #fff; border-radius: 12px; padding: 22px; text-align: center; }
.uc-act h3 { margin: 0 0 14px; font-size: 16px; color: #333; }
.uc-act .row { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.uc-act input { flex: 1; border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.uc-act .uc-btn { background: #555; }

/* 通用面板 */
.uc-sec { background: #fff; border-radius: 12px; padding: 20px; }
.uc-sec h3 { margin: 0 0 14px; font-size: 16px; color: #333; }
.uc-empty { text-align: center; color: #999; padding: 40px 0; font-size: 14px; }
.uc-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #f0f0f0; font-size: 14px; }
.uc-item:last-child { border-bottom: 0; }
.uc-item .t { color: #2E5C8C; text-decoration: none; }
.uc-item .t a { color: #2E5C8C; text-decoration: none; }
.uc-item .meta { color: #999; font-size: 12px; white-space: nowrap; }
.badge { display: inline-block; font-size: 11px; border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
.badge.pub { background: #e8f4ea; color: #2e8b57; }
.badge.pen { background: #fff4e2; color: #E88A12; }
.badge.dra { background: #eef0f4; color: #888; }

/* PMPro / EDD 表格在小容器里的基本适配 */
.uc-sec table { width: 100%; border-collapse: collapse; font-size: 14px; }
.uc-sec th, .uc-sec td { padding: 8px 10px; border-bottom: 1px solid #f0f0f0; text-align: left; }

@media (max-width: 900px) {
  .uc-wrap { flex-direction: column; }
  .uc-side { width: 100%; flex: auto; position: static; display: flex; overflow-x: auto; padding: 6px; align-items: center; }
  .uc-user { border: 0; margin: 0; padding: 4px 10px; display: flex; align-items: center; gap: 8px; }
  .uc-avatar { width: 34px; height: 34px; line-height: 34px; font-size: 15px; margin: 0; }
  .uc-nav-item { white-space: nowrap; }
  .uc-cards, .uc-tiers { grid-template-columns: 1fr; }
}
