/* ===== 会员中心首页 · 控制台式新增块（最近访问 / 我的资源 / 费用与账务）2026-10-15 =====
   依据：腾讯云控制台首页那三个信息块（最近访问、我的资源、右栏账号与费用）
   放哪：home.php 里引用（<link ... ca-home-console.css>），数字由 js/ca-home-console.js 填
   注意：选择器全部限定在 .ca-home 下，只影响会员中心首页，其它页面不动
   回滚：node _build/uc-home/push-console.mjs --rollback
*/

/* ---------- 1. 公共：卡片 + 块标题 ---------- */
html body .ca-home .uc-card {
  box-sizing: border-box;
  padding: 0.22rem 0.24rem 0.24rem;
  border: 1px solid var(--k8-border);
  border-radius: 0.1rem;
  background: #fff;
  box-shadow: none;
}
html body .ca-home .uc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.16rem;
}
html body .ca-home .uc-title {
  margin: 0;
  color: #1f2430;
  font-size: 0.145rem;
  font-weight: 500;
  line-height: 1.4;
}
html body .ca-home .uc-more {
  display: inline-flex;
  align-items: center;
  column-gap: 0.04rem;
  color: #8b93a3;
  font-size: 0.125rem;
  text-decoration: none;
}
html body .ca-home .uc-more:hover { color: #2f7cf6; }

/* ---------- 2. 最近访问（快捷入口条，可收起） ---------- */
html body .ca-home .uc-quick {
  position: relative;
  padding-top: 0.2rem;
}
html body .ca-home .uc-fold-cb {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
html body .ca-home .uc-fold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 0.04rem;
  color: #98a2b3;
  font-size: 0.12rem;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
html body .ca-home .uc-fold:hover { background: #f2f5fa; color: #2f7cf6; }
html body .ca-home .uc-fold i { transition: transform 0.16s; }
html body .ca-home .uc-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.1rem 0.12rem;
}
html body .ca-home .uc-quick-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 0.36rem;
  padding: 0 0.14rem;
  border: 1px solid transparent;
  border-radius: 0.06rem;
  background: #f5f7fb;
  color: #4a5566;
  font-size: 0.125rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
html body .ca-home .uc-quick-item:hover {
  background: #eef3fd;
  border-color: #d7e5fb;
  color: #2f7cf6;
}
/* 收起：只留第一行 + 箭头翻过来 */
html body .ca-home .uc-fold-cb:checked ~ .uc-quick-grid .uc-quick-item:nth-child(n + 7) { display: none; }
html body .ca-home .uc-fold-cb:checked ~ .uc-head .uc-fold i { transform: rotate(180deg); }

/* ---------- 3. 我的资源（一格一类资源，格线分隔） ---------- */
html body .ca-home .uc-res-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--k8-border);
  border-radius: 0.08rem;
  overflow: hidden;
}
html body .ca-home .uc-res-cell {
  display: flex;
  align-items: center;
  column-gap: 0.1rem;
  padding: 0.16rem 0.14rem;
  text-decoration: none;
  transition: background 0.16s;
}
html body .ca-home .uc-res-cell + .uc-res-cell { border-left: 1px solid #eef1f7; }
html body .ca-home .uc-res-cell:hover { background: #fafbfe; }
html body .ca-home .uc-res-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 0.08rem;
  font-size: 0.17rem;
}
html body .ca-home .uc-ic-blue { background: #eef3fd; color: #2f7cf6; }
html body .ca-home .uc-ic-purple { background: #f2eefe; color: #7a5af8; }
html body .ca-home .uc-ic-green { background: #eaf7f0; color: #1a9e66; }
html body .ca-home .uc-ic-orange { background: #fdf3e7; color: #d9822b; }
html body .ca-home .uc-ic-cyan { background: #e8f6f9; color: #1b93a8; }
html body .ca-home .uc-ic-gray { background: #f2f5fa; color: #64748b; }
html body .ca-home .uc-res-body { min-width: 0; }
html body .ca-home .uc-res-label {
  display: block;
  color: #8b93a3;
  font-size: 0.12rem;
  line-height: 1.35;
  white-space: nowrap;
}
html body .ca-home .uc-res-value {
  display: block;
  margin-top: 0.04rem;
  color: #1f2430;
  font-size: 0.22rem;
  font-weight: 500;
  line-height: 1.15;
}
html body .ca-home .uc-res-value em {
  margin-left: 0.03rem;
  color: #8b93a3;
  font-size: 0.12rem;
  font-style: normal;
  font-weight: 400;
}

/* ---------- 4. 费用与账务（右栏，腾讯云那种「标签 + 数字」小格） ---------- */
html body .ca-home .uc-bill {
  margin-bottom: 0.24rem;
  padding-bottom: 0.24rem;
  border-bottom: 1px solid #eef1f7;
}
html body .ca-home .uc-bill .uc-head { margin-bottom: 0.14rem; }
html body .ca-home .uc-bill-links {
  display: flex;
  align-items: center;
  column-gap: 0.08rem;
  margin-bottom: 0.14rem;
  font-size: 0.12rem;
}
html body .ca-home .uc-bill-links a { color: #2f7cf6; text-decoration: none; }
html body .ca-home .uc-bill-links a:hover { text-decoration: underline; }
html body .ca-home .uc-bill-links span { color: #d5dbe6; }
html body .ca-home .uc-bill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--k8-border);
  border-radius: 0.08rem;
  overflow: hidden;
}
html body .ca-home .uc-bill-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 0.08rem;
  padding: 0.13rem 0.14rem;
  text-decoration: none;
  transition: background 0.16s;
}
html body .ca-home .uc-bill-cell:nth-child(even) { border-left: 1px solid #eef1f7; }
html body .ca-home .uc-bill-cell:nth-child(n + 3) { border-top: 1px solid #eef1f7; }
html body .ca-home .uc-bill-cell:hover { background: #fafbfe; }
html body .ca-home .uc-bill-label {
  color: #8b93a3;
  font-size: 0.12rem;
  white-space: nowrap;
}
html body .ca-home .uc-bill-num {
  color: #1f2430;
  font-size: 0.15rem;
  font-weight: 500;
  white-space: nowrap;
}
html body .ca-home .uc-bill-num em {
  margin-left: 0.02rem;
  color: #8b93a3;
  font-size: 0.11rem;
  font-style: normal;
  font-weight: 400;
}

/* ---------- 5. 手机端（≤750 根字号 = 宽度/7.5，rem 变小，这里改回 px） ---------- */
@media screen and (max-width: 750px) {
  html body .ca-home .uc-card { padding: 14px 14px 16px; }
  html body .ca-home .uc-head { margin-bottom: 12px; }
  html body .ca-home .uc-title { font-size: 14px; }
  html body .ca-home .uc-more { font-size: 12px; }

  html body .ca-home .uc-quick { padding-top: 14px; }
  html body .ca-home .uc-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  html body .ca-home .uc-quick-item { height: 34px; font-size: 12px; border-radius: 6px; }
  html body .ca-home .uc-fold { width: 22px; height: 22px; border-radius: 4px; }
  /* 手机端一行 3 个，收起时留 1 行 */
  html body .ca-home .uc-fold-cb:checked ~ .uc-quick-grid .uc-quick-item:nth-child(n + 4) { display: none; }

  html body .ca-home .uc-res-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html body .ca-home .uc-res-cell {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 6px;
    padding: 12px 10px;
  }
  html body .ca-home .uc-res-cell + .uc-res-cell { border-left: 0; }
  html body .ca-home .uc-res-cell:nth-child(3n + 2),
  html body .ca-home .uc-res-cell:nth-child(3n) { border-left: 1px solid #eef1f7; }
  html body .ca-home .uc-res-cell:nth-child(n + 4) { border-top: 1px solid #eef1f7; }
  html body .ca-home .uc-res-icon { width: 28px; height: 28px; border-radius: 7px; font-size: 15px; }
  html body .ca-home .uc-res-label { font-size: 12px; }
  html body .ca-home .uc-res-value { margin-top: 2px; font-size: 19px; }
  html body .ca-home .uc-res-value em { font-size: 11px; }

  html body .ca-home .uc-bill { margin-bottom: 16px; padding-bottom: 16px; }
  html body .ca-home .uc-bill-links { font-size: 12px; margin-bottom: 12px; }
  html body .ca-home .uc-bill-cell { padding: 12px 12px; }
  html body .ca-home .uc-bill-label { font-size: 12px; }
  html body .ca-home .uc-bill-num { font-size: 15px; }
  html body .ca-home .uc-bill-num em { font-size: 11px; }
}
