/* ============================================================
   panels.css — 通讯录 / 发现 / 我 三个面板页面
   ============================================================ */

/* ========== 通讯录 ========== */
.contact-section { background: var(--wx-card); margin-bottom: 10px; }
.contact-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; position: relative; }
.contact-item:hover { background: var(--wx-input-bg); }
.contact-item + .contact-item::before {
  content: "";
  position: absolute;
  left: 76px;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--wx-line);
  transform: scaleY(0.5);
}
.contact-item .c-name { font-size: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
.contact-item .c-sub { font-size: 12px; color: var(--wx-sub); }
.contact-item .c-arrow { color: var(--wx-light); }
.contact-item .c-badge { margin-left: 6px; min-width: 18px; height: 18px; line-height: 18px; background: var(--wx-red); color: #fff; border-radius: 9px; font-size: 11px; text-align: center; padding: 0 5px; }

.alphabet-bar {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  font-size: 10px;
  color: var(--wx-sub);
  z-index: 5;
  user-select: none;
}
.alphabet-bar span { padding: 1.5px 4px; cursor: pointer; }

/* ========== 发现 ========== */
.discover-section { background: var(--wx-card); margin-bottom: 10px; }
.discover-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; position: relative; }
.discover-item:hover { background: var(--wx-input-bg); }
.discover-item + .discover-item::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--wx-line);
  transform: scaleY(0.5);
}
.discover-item .d-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.discover-item .d-ico svg { width: 20px; height: 20px; }
.discover-item .d-title { flex: 1; font-size: 16px; }
.discover-item .d-badge { margin-right: 4px; min-width: 18px; height: 18px; line-height: 18px; background: var(--wx-red); color: #fff; border-radius: 9px; font-size: 11px; text-align: center; padding: 0 5px; }

/* ========== 我 ========== */
.me-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  background: var(--wx-card);
  cursor: pointer;
  margin-bottom: 10px;
}
.me-header .mh-name { font-size: 19px; font-weight: 600; }
.me-header .mh-id { font-size: 12px; color: var(--wx-sub); margin-top: 4px; }
.me-header .mh-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--wx-sub);
  margin-top: 6px;
  background: var(--wx-input-bg);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ========== 朋友详情 ========== */
.friend-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px 20px;
  background: var(--wx-card);
  position: relative;
}
.friend-hero .fh-name { font-size: 20px; font-weight: 600; margin-top: 12px; }
.friend-hero .fh-id { font-size: 13px; color: var(--wx-sub); margin-top: 4px; }
.friend-hero .fh-sig { font-size: 13px; color: var(--wx-sub); margin-top: 6px; max-width: 80%; text-align: center; }
.friend-hero .fh-status {
  margin-top: 8px;
  font-size: 12px;
  color: var(--wx-green);
  display: flex;
  align-items: center;
  gap: 4px;
}
.friend-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: var(--wx-card);
  border-top: 1px solid var(--wx-line);
}
.friend-actions .fa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--wx-text);
  cursor: pointer;
  width: 72px;
}
.friend-actions .fa-btn .fa-ico {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.friend-actions .fa-btn .fa-ico svg { width: 26px; height: 26px; }

/* 收款/付款码 */
.qr-page { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 30px 20px; background: var(--wx-card); }
.qr-page .qr-title { font-size: 18px; font-weight: 600; }
.qr-page .qr-sub { font-size: 13px; color: var(--wx-sub); margin: 8px 0 24px; }
.qr-box {
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wx-line);
}
.qr-box svg { width: 170px; height: 170px; }

/* 钱包 */
.wallet-balance {
  background: linear-gradient(160deg, #3B3B4A, #26262F);
  color: #fff;
  padding: 24px 20px;
  margin: 10px 12px;
  border-radius: 12px;
}
.wallet-balance .wb-label { font-size: 13px; opacity: 0.8; }
.wallet-balance .wb-num { font-size: 34px; font-weight: 700; margin: 6px 0 2px; }
.wallet-balance .wb-num span { font-size: 20px; margin-right: 2px; }
.wallet-balance .wb-row { display: flex; gap: 12px; margin-top: 10px; }
.wallet-balance .wb-row .wb-item {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
}
.bill-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--wx-card); }
.bill-item + .bill-item { border-top: 1px solid var(--wx-line); }
.bill-item .bi-name { flex: 1; font-size: 15px; }
.bill-item .bi-sub { font-size: 11px; color: var(--wx-sub); margin-top: 2px; }
.bill-item .bi-amt { font-size: 16px; font-weight: 600; }
.bill-item .bi-amt.in { color: var(--wx-orange); }
.bill-item .bi-amt.out { color: var(--wx-text); }

/* 状态选择 */
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; }
.status-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--wx-card);
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
}
.status-cell.active { border-color: var(--wx-green); }
.status-cell .st-emoji { font-size: 30px; }
.status-cell .st-name { font-size: 13px; }

/* 收藏 */
.fav-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: var(--wx-card); cursor: pointer; }
.fav-item + .fav-item { border-top: 1px solid var(--wx-line); }
.fav-item .fi-ico { width: 40px; height: 40px; border-radius: 8px; background: var(--wx-input-bg); display: flex; align-items: center; justify-content: center; color: var(--wx-sub); flex-shrink: 0; }
.fav-item .fi-ico svg { width: 22px; height: 22px; }
.fav-item .fi-main { flex: 1; min-width: 0; }
.fav-item .fi-title { font-size: 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fav-item .fi-sub { font-size: 12px; color: var(--wx-sub); margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* 卡包 */
.card-item {
  margin: 10px 12px;
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.card-item::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.card-item .ci-brand { font-size: 14px; opacity: 0.85; }
.card-item .ci-name { font-size: 20px; font-weight: 600; margin-top: 10px; }
.card-item .ci-no { font-size: 12px; opacity: 0.7; margin-top: 6px; letter-spacing: 1px; }

/* 小程序网格 */
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; padding: 18px 14px; }
.mini-grid .mg-item { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.mini-grid .mg-item .mg-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.mini-grid .mg-item .mg-ico svg { width: 28px; height: 28px; }
.mini-grid .mg-item .mg-name { font-size: 12px; }

/* 附近的人 */
.near-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--wx-card); }
.near-item + .near-item { border-top: 1px solid var(--wx-line); }
.near-item .ni-main { flex: 1; min-width: 0; }
.near-item .ni-name { font-size: 16px; }
.near-item .ni-sig { font-size: 12px; color: var(--wx-sub); margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.near-item .ni-dist { font-size: 12px; color: var(--wx-sub); flex-shrink: 0; }
.near-item .ni-btn {
  font-size: 12px;
  color: var(--wx-green);
  border: 1px solid var(--wx-green);
  border-radius: 4px;
  padding: 3px 10px;
  cursor: pointer;
  flex-shrink: 0;
}

/* 视频号 */
.video-card { margin: 10px 12px; border-radius: 12px; overflow: hidden; background: var(--wx-card); }
.video-card .vc-cover { height: 170px; position: relative; cursor: pointer; overflow: hidden; }
.video-card .vc-cover svg { width: 100%; height: 100%; }
.video-card .vc-cover .vc-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card .vc-cover .vc-play span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.video-card .vc-meta { padding: 12px 14px; }
.video-card .vc-title { font-size: 15px; font-weight: 500; }
.video-card .vc-sub { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--wx-sub); }
.video-card .vc-sub .v-op { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.video-card .vc-sub .v-op svg { width: 15px; height: 15px; }

/* 待办 */
.todo-input { display: flex; gap: 8px; padding: 12px; }
.todo-input input { flex: 1; background: var(--wx-input-bg); border-radius: 8px; height: 40px; padding: 0 12px; }
.todo-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--wx-card); }
.todo-item + .todo-item { border-top: 1px solid var(--wx-line); }
.todo-item .t-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--wx-line-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.todo-item .t-check.done { background: var(--wx-green); border-color: var(--wx-green); }
.todo-item .t-text { flex: 1; font-size: 15px; }
.todo-item .t-text.done { text-decoration: line-through; color: var(--wx-sub); }
.todo-item .t-del { color: var(--wx-light); cursor: pointer; padding: 4px; }

/* 计算器 */
.calc-wrap { flex: 1; display: flex; flex-direction: column; background: var(--wx-card); }
.calc-screen { flex: 1; display: flex; align-items: flex-end; justify-content: flex-end; padding: 20px; font-size: 44px; font-weight: 600; overflow: hidden; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--wx-line); border-top: 1px solid var(--wx-line); }
.calc-key { height: 68px; background: var(--wx-card); display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; }
.calc-key:active { background: var(--wx-input-bg); }
.calc-key.op { background: var(--wx-input-bg); color: var(--wx-green); }
.calc-key.eq { background: var(--wx-green); color: #fff; }

/* 天气 */
.weather-hero { background: linear-gradient(160deg, #4A90D9, #6FB1F5); color: #fff; padding: 26px 20px; margin: 10px 12px; border-radius: 14px; }
.weather-hero .wh-city { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.weather-hero .wh-temp { font-size: 52px; font-weight: 700; margin-top: 6px; }
.weather-hero .wh-temp span { font-size: 24px; vertical-align: top; }
.weather-hero .wh-desc { font-size: 14px; opacity: 0.9; margin-top: 4px; }
.weather-day { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--wx-card); }
.weather-day + .weather-day { border-top: 1px solid var(--wx-line); }
.weather-day .wd-name { width: 50px; font-size: 14px; }
.weather-day .wd-emoji { width: 30px; text-align: center; font-size: 20px; }
.weather-day .wd-temp { flex: 1; text-align: right; font-size: 14px; }
