/* 个人中心 · 复用 style.css 的变量与卡片样式 */
.hd-actions { display: flex; gap: 8px; align-items: center; }
.hd-actions .btn.ghost { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); color: #fff; }
.hd-actions .btn.ghost:hover { background: rgba(255,255,255,.26); color: #fff; }

.me-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%;
  background: linear-gradient(120deg, var(--brand-2), var(--brand)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.me-title { flex: 1 1 auto; min-width: 0; }
.me-title h2 { margin: 0; font-size: 18px; }

.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 16px 0 0; }
.kv dt { font-size: 12px; color: var(--hint); }
.kv dd { margin: 2px 0 0; font-size: 14px; word-break: break-all; }

.vip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.vip-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fffaf9; }
.vip-label { font-size: 12px; color: var(--hint); }
.vip-value { font-size: 20px; font-weight: 700; margin-top: 2px; line-height: 1.3; }
.vip-days { font-size: 12px; color: var(--hint); margin-top: 2px; }
.vip-days.warn { color: #b45309; font-weight: 600; }
.vip-days.bad { color: var(--brand-dark); font-weight: 600; }
.bar-track { height: 8px; border-radius: 99px; background: #f0f0f4; margin-top: 10px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-2), var(--brand)); transition: width .3s; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 99px;
  background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #ffd9d2; }
.chip.off { background: #f4f4f6; color: var(--hint); border-color: var(--line); }

.act-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.act-row .btn { display: inline-flex; align-items: center; text-decoration: none; }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row-between h3 { margin: 0; }

.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  margin-top: 12px; color: var(--hint); font-size: 12px; }

.hist-cards { display: none; }
.hist-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.hist-card .h1 { font-weight: 600; }
.hist-card .h2 { font-size: 12px; color: var(--hint); margin-top: 3px;
  display: flex; justify-content: space-between; gap: 8px; }

.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-row input { flex: 1 1 220px; height: 36px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; color: var(--hint); background: #fafafb; }
.contact-row { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-row .btn { text-decoration: none; display: inline-flex; align-items: center; }

/* 通用弹窗 */
.mask { position: fixed; inset: 0; background: rgba(20,20,30,.5); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 100%; max-width: 420px; background: #fff; border-radius: 14px; padding: 20px; }
.modal h3 { margin: 0 0 6px; font-size: 17px; }
.modal label { margin: 10px 0; }
.modal .modal-foot { display: flex; gap: 10px; margin-top: 6px; }
.modal .modal-foot .btn { flex: 1 1 0; height: 40px; }
.modal .err { min-height: 18px; }
.modal .send-row { display: flex; gap: 8px; }
.modal .send-row input { flex: 1 1 auto; }
.modal .send-row .btn { flex: 0 0 auto; height: 40px; margin-top: 5px; }

@media (max-width: 640px) {
  .kv, .vip { grid-template-columns: 1fr; }
  .table-wrap { display: none; }
  .hist-cards { display: block; }
  .modal { padding: 16px; }
}

/* 忘记密码页 */
.page-narrow { max-width: 480px; margin: 0 auto; }
.form-row { display: flex; gap: 8px; align-items: flex-start; }
.form-row input { flex: 1 1 auto; }
.form-row .btn { flex: 0 0 auto; height: 40px; margin-top: 5px; }
.ok-box { background: #f0fbf4; border: 1px solid #c7ecd6; color: #1a7f45;
  border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-bottom: 12px; }

/* ---- 价格留言板 ---- */
.msg-form { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fcfcfd; }
.msg-frow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.msg-frow select, .msg-frow input { width: 100%; height: 36px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: 13px; color: var(--text); }
.msg-form textarea { width: 100%; margin-top: 8px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: 13px; line-height: 1.6; resize: vertical; font-family: inherit; color: var(--text); }
.msg-form textarea:focus, .msg-frow select:focus, .msg-frow input:focus {
  outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.msg-submit { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.msg-submit .tip { margin: 0; }
.msg-form .err { min-height: 0; margin-top: 6px; }
.ok-line { color: #1a7f45; font-size: 13px; min-height: 0; margin-top: 6px; }

.msg-list { margin-top: 14px; }
.msg-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.msg-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--hint); }
.msg-item-head .chip { font-size: 11px; }
.msg-item-head .st { margin-left: auto; }
.msg-item-body { margin-top: 8px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.msg-item-meta { margin-top: 6px; font-size: 12px; color: var(--hint); }
.msg-item-reply { margin-top: 10px; background: #f0fbf4; border: 1px solid #c7ecd6;
  border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.7;
  color: #1a6f42; white-space: pre-wrap; word-break: break-word; }
.msg-item-reply .rlabel { display: block; font-size: 11px; font-weight: 700; color: #16794a; margin-bottom: 3px; }
.msg-empty { text-align: center; color: var(--hint); font-size: 13px; padding: 18px 0; }

@media (max-width: 640px) {
  .msg-frow { grid-template-columns: 1fr 1fr; }
}


/* ---------- 会员等级 / 开通引导（2026-11-19） ---------- */
.vip-upsell { margin-top: 12px; background: #fffaf0; border: 1px solid #ffe0a3; border-radius: 10px;
  padding: 11px 13px; font-size: 12.5px; line-height: 1.75; color: #8a5a00; }
.vip-upsell b { color: #a5730c; }
.vip-upsell a { color: var(--brand-dark); font-weight: 700; text-decoration: none; }
.chip.lv-vip { background: #fff4e0; color: #a5730c; border-color: #ffe0a3; }
.chip.lv-free { background: #eef7f1; color: #1a7f4b; border-color: #cfe9da; }
