@charset "utf-8";
:root{--g:#4f9e8f;--o:#e8892b;--ink:#2b2a2a;--mute:#8a8070}
*{box-sizing:border-box;margin:0;-webkit-tap-highlight-color:transparent;min-width:0}
html,body{max-width:100%;overflow-x:hidden}
body{font:15px/1.5 -apple-system,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);
     background:linear-gradient(#fffbea,#fdf3dc 40%,#eef3f6);min-height:100vh}
.wrap{max-width:520px;margin:0 auto;padding:0 14px 30px}
.topbar{text-align:center;font-size:12.5px;font-weight:600;color:#7a5a1e;background:#fff3d6;padding:9px 12px}
.logo{width:76px;height:76px;border-radius:50%;margin:20px auto 8px;display:grid;place-items:center;
      background:#fff;box-shadow:0 4px 14px rgba(190,150,60,.3);font-size:34px}
h1{text-align:center;font-size:25px;margin-bottom:14px}
.fav{border:2.5px solid #f1b24b;background:#fff7dd;border-radius:16px;padding:12px;text-align:center}
.fav b{display:block;color:#b8741a;font-size:14px;margin-bottom:8px}
.fav div{display:flex;justify-content:center;align-items:center;gap:10px;font-weight:600;flex-wrap:wrap}
.fav u{font-size:15px;font-weight:800;text-decoration:none}
.cp{border:0;background:var(--o);color:#fff;font-weight:700;padding:5px 13px;border-radius:14px;font-size:13px}
.hint{text-align:center;color:#555;margin:16px 0;white-space:pre-line;line-height:1.9;font-size:14px}
.search input{width:100%;padding:11px 14px;border-radius:14px;border:1px solid #e3dcc8;background:#fff;font-size:14px;outline:none}
.search{margin-bottom:12px}
.row{display:flex;align-items:center;gap:9px;background:#fffdf8;border-radius:18px;padding:11px 12px;margin-bottom:12px;
     box-shadow:0 2px 8px rgba(120,100,60,.1)}
.tag{flex:none;font-size:10.5px;font-weight:700;color:#837a68;background:#f1eee6;border-radius:6px;padding:1px 6px}
.body{flex:1;min-width:0}
.t{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
   font-weight:700;font-size:15.5px;line-height:1.35;text-align:left}
.meta{margin-top:5px;display:flex;align-items:center;flex-wrap:wrap;font-size:11px;line-height:1.4;color:#a09a8e}
.meta > span + span::before{content:"·";margin:0 5px;color:#cdc6b8;font-weight:400}
.cat{color:#a09a8e}
.rate{color:#9a948a;font-weight:600;display:inline-flex;align-items:center;gap:3px}
.stars{color:#f5a623;font-size:12px;letter-spacing:1px;font-weight:400}
.stars i{color:#e7e1d4;font-style:normal}
.btn{flex:none;margin-left:auto;min-width:80px;text-align:center;background:var(--g);color:#fff;text-decoration:none;font-weight:700;border-radius:8px;padding:8px 12px;font-size:13.5px}
.banner{background:#fffdf8;justify-content:center}
.empty{margin-top:22px;border:2px dashed #c9d6dc;border-radius:18px;text-align:center;padding:44px 10px 60px;background:rgba(255,255,255,.4)}
.empty b{display:block;font-size:16px;margin-bottom:6px}
.empty span{color:#8b9aa4;font-size:13px}
.dis{margin-top:24px;border:1.5px solid #f0c978;background:#fff6dc;border-radius:16px;padding:14px}
.dis b{display:block;color:#b8741a;margin-bottom:6px;font-size:14px}
.dis p{font-size:13px;color:#7a6a4a;line-height:1.7}
footer{text-align:center;color:#8a8070;font-weight:600;padding:20px 0 0;font-size:13px}

/* ===== 在线客服（形态对齐 kise.live：浮标 + 全屏/弹窗聊天） ===== */
.kf-btn{position:fixed;right:16px;bottom:calc(18px + env(safe-area-inset-bottom));z-index:80;
  display:flex;align-items:center;justify-content:center;gap:6px;min-width:132px;min-height:48px;padding:11px 17px;
  border:0;border-radius:999px;background:linear-gradient(135deg,#5572f2,#315ee8);color:#fff;
  font:800 16px/1 -apple-system,"PingFang SC","Microsoft YaHei",sans-serif;cursor:pointer;
  box-shadow:0 10px 28px rgba(49,94,232,.35);transition:transform .15s,box-shadow .2s}
.kf-btn:active{transform:scale(.97)}
.kf-btn b{font-size:20px;line-height:1;font-weight:400}
.kf-btn i{display:none;position:absolute;top:-7px;right:-7px;min-width:22px;height:22px;padding:0 6px;
  border:2px solid #fff;border-radius:13px;background:#f23;color:#fff;font:800 12px/18px sans-serif;
  font-style:normal;text-align:center;box-shadow:0 2px 7px rgba(0,0,0,.25)}
.kf-btn i.show{display:block}

.kf-mask{position:fixed;inset:0;z-index:200;display:none;place-items:center;padding:18px;
  background:rgba(15,23,42,.48);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.kf-mask.on{display:grid}
.kf-panel{display:flex;flex-direction:column;width:min(100%,480px);max-height:min(92vh,760px);
  border-radius:20px;background:#fff;overflow:hidden;box-shadow:0 24px 70px rgba(15,23,42,.3);
  animation:kfPop .3s cubic-bezier(.2,.9,.3,1.15)}
@keyframes kfPop{0%{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}

.kf-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 18px;
  background:linear-gradient(135deg,#5572f2,#315ee8);color:#fff}
.kf-head h3{margin:0;font-size:20px;line-height:1.25;color:#fff;letter-spacing:.3px}
.kf-head small{display:block;margin-top:3px;font-size:12px;color:rgba(255,255,255,.88);line-height:1.5}
.kf-online{display:inline-block;padding:1px 9px 1px 7px;border-radius:999px;background:rgba(255,255,255,.17);
  color:#d1fae5;font-size:12px;font-weight:700}
.kf-online:before{content:"";display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;
  background:#4ade80;vertical-align:1px;animation:kfPulse 1.8s ease-out infinite}
.kf-online.off{color:#fde68a}
.kf-online.off:before{background:#fbbf24;animation:none}
@keyframes kfPulse{0%{box-shadow:0 0 0 0 rgba(74,222,128,.55)}70%,to{box-shadow:0 0 0 6px rgba(74,222,128,0)}}
.kf-close{flex:none;width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:50%;
  background:rgba(255,255,255,.14);color:#fff;font-size:22px;line-height:1;cursor:pointer;
  transition:background .2s,transform .2s}
.kf-close:hover{background:rgba(255,255,255,.3);transform:rotate(90deg)}

.kf-scroll{flex:1;min-height:0;overflow:auto;background:#f5f6f8;scrollbar-width:thin;scrollbar-color:#c9d4ee #f5f6f8}
.kf-scroll::-webkit-scrollbar{width:5px}
.kf-scroll::-webkit-scrollbar-thumb{background:#c9d4ee;border-radius:4px}
.kf-intro{display:grid;grid-template-columns:58px 1fr;gap:12px;padding:16px 14px 10px}
.kf-avatar{width:56px;height:56px;display:grid;place-items:center;border:3px solid #5b8de8;border-radius:50%;
  background:#fff;font-size:30px;box-shadow:0 3px 10px rgba(49,92,163,.19)}
.kf-bubble{position:relative;background:#fff;border-radius:15px;overflow:hidden;box-shadow:0 4px 16px rgba(38,57,87,.09)}
.kf-text{padding:14px;font-size:14px;line-height:1.65;color:#2b2a2a;white-space:pre-line;
  overflow-wrap:break-word;text-wrap:pretty}
.kf-contact{padding:0 14px 12px;font-size:12.5px;color:#7b8794;word-break:break-all}
.kf-contact:empty{display:none}
.kf-quick{display:grid;gap:8px;padding:0 10px 12px}
.kf-quick:empty{display:none}
.kf-quick button{display:flex;align-items:center;gap:8px;width:100%;padding:11px 12px;border:1px solid #e6ebf5;
  border-radius:10px;background:#fff;color:#2b2a2a;font:inherit;font-size:14px;text-align:left;cursor:pointer;
  transition:background .15s,border-color .15s,color .15s}
.kf-quick button:before{content:"💬";font-size:13px;opacity:.55}
.kf-quick button:hover{background:#f0f4ff;border-color:#4169e1;color:#315dcc}
.kf-quick button:active{transform:scale(.99)}

.kf-msgs{display:flex;flex-direction:column;gap:10px;padding:4px 14px 14px}
.kf-welcome{margin:4px 0 0;text-align:center;color:#9aa3af;font-size:13px}
.kf-welcome.hide{display:none}
.kf-msg{display:flex;flex-direction:column;max-width:86%}
.kf-msg.me{margin-left:auto;align-items:flex-end}
.kf-msg.svc{margin-right:auto;align-items:flex-start}
.kf-msg .kf-txt{padding:10px 13px;border-radius:14px;font-size:14px;line-height:1.6;
  white-space:pre-wrap;overflow-wrap:break-word;word-break:break-word}
.kf-auto{display:block;margin-bottom:2px;font-size:10.5px;font-weight:700;color:#8b96a5;letter-spacing:.2px}
.kf-msg.me .kf-txt{background:linear-gradient(135deg,#5572f2,#4169e1);color:#fff;
  border-bottom-right-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.kf-msg.svc .kf-txt{background:#fff;color:#2b2a2a;border-bottom-left-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.kf-msg .kf-img{display:block;max-width:180px;max-height:180px;margin-top:4px;border-radius:10px}
.kf-msg time{margin-top:4px;font-size:10px;color:#a6aebb}

.kf-previews{display:none;gap:8px;padding:8px 14px;background:#fff;border-top:1px solid #eee;overflow-x:auto}
.kf-previews.on{display:flex}
.kf-previews span{position:relative;flex:0 0 58px;height:58px}
.kf-previews img{width:58px;height:58px;object-fit:cover;border-radius:8px}
.kf-previews em{position:absolute;top:-5px;right:-5px;width:19px;height:19px;border-radius:50%;
  background:#ef4444;color:#fff;font:700 12px/19px sans-serif;font-style:normal;text-align:center;cursor:pointer}

.kf-form{flex:none;display:flex;align-items:center;gap:9px;padding:12px;background:#fff;
  border-top:1px solid #eef1f6;box-shadow:0 -8px 20px rgba(15,23,42,.05)}
.kf-pic{flex:0 0 48px;width:48px;height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:1px;border:1px solid #c7d5ff;border-radius:12px;background:#eef3ff;color:#315dcc;cursor:pointer;
  transition:background .2s,border-color .2s,transform .15s}
.kf-pic:hover{background:#e3ecff;border-color:#4169e1}
.kf-pic:active{transform:scale(.96)}
.kf-plus{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;
  background:#4169e1;color:#fff;font:700 24px/24px sans-serif}
.kf-pic small{display:none}
.kf-form textarea{flex:1;min-width:0;height:48px;max-height:90px;padding:12px 10px;border:1px solid #ddd;
  border-radius:10px;background:#fff;color:var(--ink);font-family:inherit;font-size:13px;line-height:22px;
  resize:none;outline:none;overflow-y:auto}
.kf-form textarea:focus{border-color:#4169e1;box-shadow:0 0 0 3px rgba(65,105,225,.15)}
.kf-form button[type=submit]{flex:0 0 72px;height:48px;border:0;border-radius:11px;
  background:linear-gradient(135deg,#5572f2,#315ee8);color:#fff;font:800 15px/1 inherit;cursor:pointer;
  box-shadow:0 6px 16px rgba(49,94,232,.32);transition:filter .2s,transform .15s}
.kf-form button[type=submit]:hover{filter:brightness(1.08)}
.kf-form button[type=submit]:active{transform:scale(.96)}
.kf-form button[type=submit]:disabled{opacity:.55;cursor:default}

@media (max-width:520px){
  .kf-btn{right:12px;bottom:calc(14px + env(safe-area-inset-bottom));min-width:120px;min-height:46px;font-size:15px}
  .kf-mask{align-items:end;padding:10px}
  .kf-panel{width:100%;height:calc(100vh - 20px);height:calc(100dvh - 20px);max-height:none;border-radius:18px}
  .kf-intro{grid-template-columns:48px 1fr;gap:9px;padding:12px 10px 8px}
  .kf-avatar{width:46px;height:46px;font-size:25px}
  .kf-text{padding:13px;font-size:14px}
  .kf-head{padding:15px 16px}
  .kf-head h3{font-size:18px}
}

.toast{position:fixed;left:50%;top:70px;transform:translateX(-50%);background:#2b2a2a;color:#fff;padding:8px 16px;
       border-radius:18px;font-size:13.5px;display:none;z-index:20}

/* 兜底：万一浏览器还收着旧版“客服弹窗”的 HTML，也让它继续是弹窗，别铺在页面里 */
.mask{position:fixed;inset:0;z-index:200;display:none;padding:20px;
      background:rgba(15,23,42,.48);align-items:center;justify-content:center}
.mask.on{display:flex}
.box{width:100%;max-width:380px;padding:20px;border-radius:16px;background:#fff}
.box h3{margin:0 0 8px;font-size:17px}
.box p{margin:0;font-size:13.5px;line-height:1.7;color:#444;white-space:pre-line}
.box textarea{width:100%;margin-top:10px;padding:9px;border:1px solid #e3dcc8;border-radius:10px;
              font:14px/1.5 inherit;color:var(--ink)}
.box button{width:100%;margin-top:10px;padding:11px;border:0;border-radius:10px;
            background:var(--g);color:#fff;font-size:15px;cursor:pointer}

.thumb{width:38px;height:38px;border-radius:8px;object-fit:cover;flex:none;border:1px solid #eceeed}

