/* sticky.css — 会员粘性增量系统（独立样式，不污染现有页面） */
:root {
  --stk-bg: #FFF8F0;
  --stk-card: #FFFFFF;
  --stk-main: #8B5E3C;
  --stk-main-deep: #6E4526;
  --stk-gold: #C9A063;
  --stk-text: #3B2A1E;
  --stk-sub: #8A7A6A;
  --stk-line: #EFE3D3;
  --stk-red: #D4633F;
  --stk-green: #5E9B6B;
}
.stk-body { background: var(--stk-bg); color: var(--stk-text); font-family: "PingFang SC","Microsoft YaHei",sans-serif; margin:0; }
.stk-top { background: linear-gradient(135deg,#8B5E3C,#A97A54); color:#fff; padding:18px 16px 22px; border-radius:0 0 22px 22px; }
.stk-top h1 { margin:0; font-size:19px; font-weight:600; }
.stk-top .sub { opacity:.85; font-size:12px; margin-top:3px; }
.stk-bar { display:flex; gap:10px; margin-top:16px; background:rgba(255,255,255,.18); border-radius:14px; padding:12px; }
.stk-bar .cell { flex:1; text-align:center; }
.stk-bar .num { font-size:20px; font-weight:700; }
.stk-bar .lbl { font-size:11px; opacity:.85; margin-top:2px; }
.stk-banner { margin:14px 12px 0; background:linear-gradient(90deg,#F7EBD8,#FBEEDF); border:1px dashed var(--stk-gold); border-radius:12px; padding:10px 14px; font-size:13px; color:var(--stk-main-deep); }
.stk-card { margin:14px 12px; background:var(--stk-card); border-radius:14px; box-shadow:0 2px 10px rgba(139,94,60,.08); overflow:hidden; }
.stk-card-head { display:flex; align-items:center; justify-content:space-between; padding:12px 14px 6px; }
.stk-card-head h2 { margin:0; font-size:16px; font-weight:600; }
.stk-card-head a { font-size:12px; color:var(--stk-main); text-decoration:none; }
.stk-card-body { padding:6px 14px 14px; }
.stk-btn { display:inline-block; background:var(--stk-main); color:#fff; border:none; border-radius:20px; padding:9px 22px; font-size:14px; cursor:pointer; text-decoration:none; text-align:center; }
.stk-btn:disabled { background:#CBB9A6; cursor:not-allowed; }
.stk-btn-outline { background:transparent; color:var(--stk-main); border:1px solid var(--stk-main); }
.stk-btn-sm { padding:5px 14px; font-size:12px; border-radius:14px; }
.stk-gold { color:var(--stk-gold); font-weight:700; }
.stk-badge { display:inline-block; background:#F7EBD8; color:var(--stk-main-deep); border-radius:10px; padding:2px 8px; font-size:11px; }
.stk-badge.on { background:var(--stk-gold); color:#fff; }
.stk-empty { text-align:center; padding:22px 10px; color:var(--stk-sub); font-size:13px; }
.stk-list-item { display:flex; align-items:center; justify-content:space-between; padding:11px 0; border-bottom:1px solid var(--stk-line); font-size:14px; }
.stk-list-item:last-child { border-bottom:none; }
.stk-toast { position:fixed; left:50%; bottom:60px; transform:translateX(-50%); background:rgba(59,42,30,.92); color:#fff; padding:9px 18px; border-radius:20px; font-size:13px; z-index:99; max-width:80%; text-align:center; }
.stk-calendar { display:grid; grid-template-columns:repeat(7,1fr); gap:5px; margin-top:8px; }
.stk-calendar .d { text-align:center; padding:6px 0; font-size:12px; color:var(--stk-sub); }
.stk-calendar .d.signed { background:var(--stk-main); color:#fff; border-radius:50%; width:26px; height:26px; line-height:26px; margin:0 auto; }
.stk-calendar .d.today { border:1px solid var(--stk-gold); border-radius:50%; }
.stk-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.stk-grid3 { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.stk-tile { background:#FAF3E8; border-radius:12px; padding:12px 8px; text-align:center; font-size:12px; color:var(--stk-main-deep); }
.stk-tile .ic { font-size:24px; }
.stk-tabs { display:flex; background:#F3E8D8; border-radius:12px; padding:3px; margin:0 12px 4px; }
.stk-tabs .tab { flex:1; text-align:center; padding:8px 0; font-size:13px; border-radius:10px; cursor:pointer; color:var(--stk-sub); }
.stk-tabs .tab.on { background:#fff; color:var(--stk-main); font-weight:600; box-shadow:0 1px 4px rgba(0,0,0,.08); }
.stk-note { background:#FDF8F0; border:1px solid var(--stk-line); border-radius:12px; padding:12px; margin-bottom:10px; }
.stk-note .stars { color:#E8A93C; letter-spacing:2px; }
.stk-note .remark { background:#F3E8D8; border-radius:8px; padding:7px 10px; font-size:12px; color:var(--stk-main-deep); margin-top:7px; }
textarea.stk-ta, input.stk-in { width:100%; box-sizing:border-box; border:1px solid var(--stk-line); border-radius:10px; padding:10px; font-size:14px; font-family:inherit; background:#FDFBF7; }
.stk-flex { display:flex; gap:8px; }
.stk-flex > * { flex:1; }
.stk-muted { font-size:12px; color:var(--stk-sub); }
.stk-coupon { display:flex; align-items:center; border:1px dashed var(--stk-gold); border-radius:10px; padding:10px 12px; margin-bottom:8px; background:#FFFDF8; }
.stk-coupon .val { font-size:20px; font-weight:700; color:var(--stk-red); min-width:70px; }
.stk-coupon .info { font-size:12px; color:var(--stk-sub); }
.stk-tag { display:inline-block; font-size:11px; border-radius:8px; padding:1px 7px; margin-left:6px; background:#EFE3D3; color:var(--stk-main-deep); }
.stk-tag.used { background:#E5E0D8; color:#999; }
.stk-tag.expired { background:#F3DDCC; color:var(--stk-red); }
.stk-tag.已使用 { background:#E5E0D8; color:#999; }
.stk-mini-btn { flex:none; align-self:center; margin-left:10px; border:none; border-radius:8px; padding:6px 12px; font-size:12px; font-weight:600; color:#fff; background:var(--stk-main-deep); cursor:pointer; }
.stk-mini-btn:disabled { opacity:.55; cursor:default; }
.stk-sw { display:flex; overflow-x:auto; gap:8px; padding-bottom:6px; }
.stk-sw::-webkit-scrollbar { height:0; }
.stk-msg { display:flex; gap:10px; padding:10px 0; border-bottom:1px solid var(--stk-line); }
.stk-msg:last-child { border-bottom:none; }
.stk-msg .dot { width:8px; height:8px; border-radius:50%; background:var(--stk-red); margin-top:6px; flex:none; }
.stk-msg.read .dot { background:#D9CFC0; }

/* ── 消息详情弹窗（2026-10-08 新增）─────────────────────────
   客户点整条消息 → 弹出全文查看；打开即写已读（后台单发消息据此给已读回执）。 */
.stk-msg { cursor:pointer; }
.stk-msg:active { background:#FBF6EE; }
.stk-msg .txt { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; word-break:break-word; }
.stk-msg-more { color:var(--stk-main); margin-left:4px; }
.stk-modal-mask { position:fixed; inset:0; background:rgba(59,42,30,.45); z-index:300; display:flex; align-items:center; justify-content:center; padding:18px; box-sizing:border-box; }
.stk-modal-mask[hidden] { display:none; }
.stk-modal { background:var(--stk-card); border-radius:16px; width:100%; max-width:430px; max-height:78vh; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 10px 34px rgba(0,0,0,.2); }
.stk-modal-head { padding:14px 16px 10px; border-bottom:1px solid var(--stk-line); display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.stk-modal-head h3 { margin:0; font-size:16px; line-height:1.45; color:var(--stk-text); word-break:break-word; }
.stk-modal-close { flex:none; border:none; background:transparent; font-size:22px; line-height:1; color:var(--stk-sub); cursor:pointer; padding:0 2px; }
.stk-modal-body { padding:12px 16px; overflow-y:auto; font-size:14px; line-height:1.85; color:var(--stk-text); white-space:pre-wrap; word-break:break-word; }
.stk-modal-foot { padding:10px 16px 14px; border-top:1px solid var(--stk-line); display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.stk-modal-foot .tm { font-size:12px; color:var(--stk-sub); }
