:root{
  --page-bg:#ededed;
  --panel-bg:#f7f7f7;
  --link-blue:#2f7df6;
  --wechat-green:#07c160;
  --bubble-bg:#fff;
  --text:#111;
  --muted:#777;
  --line:#ddd;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
html,body{min-height:100%;background:var(--page-bg);color:var(--text)}
body{font-family:"PingFang SC","Microsoft YaHei",Arial,sans-serif}
a{text-decoration:none;color:inherit}
button,input,textarea{font:inherit}
button{cursor:pointer}
.sr-only-download{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.announce{position:fixed;left:50%;top:0;z-index:80;transform:translateX(-50%);width:100%;max-width:430px;padding:8px 12px;background:#fff5cf;border-bottom:1px solid #eed88c;color:#9a6700;text-align:center;font-size:13px;font-weight:700}
.app{max-width:430px;margin:0 auto;min-height:100vh;background:var(--page-bg);position:relative;padding-bottom:144px}
.app.entry-app-hidden{display:none}
.topbar{position:sticky;top:0;z-index:30;height:52px;background:var(--panel-bg);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;color:#222}
.topbar .left,.topbar .right{position:absolute;top:0;height:52px;display:flex;align-items:center;padding:0 16px;color:#333}
.topbar .left{left:0;font-size:22px}
.topbar .right{right:0}
.menu-btn-real{min-width:64px;border:none;background:transparent;justify-content:center;z-index:31}
.menu-btn-real img{width:24px;height:24px;display:block;object-fit:contain}
.lang-switch{position:sticky;top:52px;z-index:29;display:flex;gap:6px;justify-content:center;padding:8px;background:#f4f4f4;border-bottom:1px solid #ddd}
.lang-switch button{border:1px solid #d7d7d7;background:#fff;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800}
.lang-switch button.on{background:var(--link-blue);border-color:var(--link-blue);color:#fff}
.scroll-tip{position:sticky;top:52px;z-index:25;width:100%;border:none;background:#fff5cf;border-bottom:1px solid #eed88c;color:#9a6700;padding:7px 12px;text-align:center;font-size:13px;font-weight:700}
.scroll-tip-top{color:#e85d9b;font-weight:900;margin-left:6px}
.chat{padding:10px 10px 110px;scroll-padding-bottom:110px}
.time{text-align:center;color:#999;font-size:12px;margin:10px 0}
.row{display:flex;align-items:flex-start;gap:8px;margin-bottom:14px}
.row.user-row{justify-content:flex-end}
.avatar{width:38px;height:38px;border-radius:50%;overflow:hidden;flex:0 0 38px;background:#f0c7d7;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:13px}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.bw{max-width:calc(100% - 46px);min-width:0}
.nick{font-size:12px;color:#8b8b8b;margin:1px 0 4px 2px}
.bubble{position:relative;background:var(--bubble-bg);border-radius:5px 16px 16px 16px;padding:12px 12px 11px;box-shadow:0 1px 2px rgba(0,0,0,.05);font-size:15px;line-height:1.8;color:#222;word-break:break-word}
.bubble:before{content:"";position:absolute;left:-7px;top:11px;width:0;height:0;border-top:7px solid transparent;border-right:8px solid var(--bubble-bg);border-bottom:7px solid transparent}
.user-row .bubble{background:#95ec69;border-radius:16px 5px 16px 16px}
.user-row .bubble:before{display:none}
.user-row .bw{max-width:75%}
.user-row .nick{display:none}
.copy-line{margin-top:10px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.copy-link{flex:1 1 100%;color:#666;font-size:15px;word-break:break-all}
.copy-btn{display:inline-flex;align-items:center;justify-content:center;flex:1 1 calc(50% - 5px);min-width:96px;height:34px;border:none;border-radius:6px;background:var(--link-blue);color:#fff;font-size:14px;font-weight:700}
.backup-download-btn{background:#246bda}
.copy-btn:active,.quick-option:active{transform:scale(.98)}
.tip-red{margin-top:10px;color:#d94c75;font-weight:800}
.hl-red,.hl-orange,.hl-green,.hl-pink{display:inline-block;padding:1px 6px 2px;border-radius:2px;line-height:1.55;font-weight:900;margin:2px 0}
.hl-red{background:#ff6b6b;color:#fff}
.hl-orange{background:#f6a545;color:#fff}
.hl-green{background:#9ad45b;color:#fff}
.hl-pink{background:#f6b5cf;color:#fff}
.link-strong{color:#1f69d9;font-size:15px;font-weight:800;word-break:break-all}
.media-grid8{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.media-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.media-item{position:relative;border-radius:8px;overflow:hidden;background:#ddd;aspect-ratio:1/1;cursor:pointer}
.media-item img{width:100%;height:100%;object-fit:cover;display:block}
.media-count{position:absolute;right:6px;top:6px;background:rgba(0,0,0,.55);color:#fff;border-radius:999px;padding:2px 6px;font-size:11px;font-weight:700}
.group-title,.video-title{margin-bottom:10px;font-size:16px;font-weight:900}
.single-img{border-radius:10px;overflow:hidden;background:#ddd;margin-top:4px}
.single-img img{display:block;width:100%;height:auto}
.video-card{position:relative;border-radius:10px;overflow:hidden;background:#111;margin-top:4px}
.video-card video{display:block;width:100%;height:auto;max-height:420px;background:#000}
.video-note,.notice-lite{margin-top:8px;font-size:13px;color:#666}
.inputbar{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:100%;max-width:430px;background:var(--panel-bg);border-top:1px solid var(--line);padding:8px 10px calc(8px + env(safe-area-inset-bottom));z-index:40}
.inputrow{display:flex;align-items:center;gap:8px}
.inputbox{flex:1;height:40px;border:1px solid var(--line);border-radius:20px;background:#fff;padding:0 14px;font-size:14px;outline:none}
.sendbtn{height:40px;padding:0 16px;border:none;border-radius:20px;background:var(--wechat-green);color:#fff;font-size:14px;font-weight:700}
.quick-reply-wrap{margin-top:8px}
.quick-hint{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 4px 6px;color:#6d7684;font-size:12px;font-weight:700}
.quick-hint-text{display:flex;align-items:center;gap:6px;white-space:nowrap}
.hint-arrows{display:inline-flex;gap:2px;color:var(--link-blue);font-size:13px;animation:hintMove 1.4s ease-in-out infinite}
.quick-progress{position:relative;flex:1;height:4px;border-radius:999px;background:rgba(0,0,0,.08);overflow:hidden}
.quick-progress:after{content:"";position:absolute;left:-28%;top:0;width:28%;height:100%;border-radius:999px;background:linear-gradient(90deg,rgba(47,125,246,.15),rgba(47,125,246,.95),rgba(47,125,246,.15));animation:progressSlide 2.2s linear infinite}
.quick-options{display:flex;gap:8px;overflow:auto;padding-top:2px;padding-bottom:2px;scrollbar-width:none}
.quick-options::-webkit-scrollbar{display:none}
.quick-option{flex:0 0 auto;border:none;border-radius:999px;padding:10px 14px;background:#fff;color:#333;font-size:13px;font-weight:700;box-shadow:0 1px 2px rgba(0,0,0,.06);border:1px solid #e7e7e7;white-space:nowrap}
@keyframes hintMove{0%,100%{transform:translateX(0);opacity:.72}50%{transform:translateX(4px);opacity:1}}
@keyframes progressSlide{0%{left:-28%}100%{left:100%}}
.toast{position:fixed;left:50%;bottom:132px;transform:translateX(-50%);z-index:99;display:none;background:rgba(0,0,0,.84);color:#fff;padding:10px 14px;border-radius:999px;font-size:13px;white-space:nowrap;max-width:92vw;overflow:hidden;text-overflow:ellipsis}
.viewer{position:fixed;inset:0;background:#000;z-index:120;display:flex;align-items:center;justify-content:center}
.viewer img{max-width:100%;max-height:100%;object-fit:contain}
.viewer .close{position:absolute;top:14px;right:16px;min-width:88px;height:44px;padding:0 14px;border-radius:999px;background:rgba(0,0,0,.72);color:#fff;border:2px solid rgba(255,255,255,.9);font-size:18px;font-weight:700;z-index:122}
.nav-btn{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border:none;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:28px;line-height:40px;text-align:center;z-index:121}
.nav-prev{left:12px}.nav-next{right:12px}
.viewer-stage{width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:pan-y}
.viewer-indicator{position:absolute;bottom:62px;left:50%;transform:translateX(-50%);background:rgba(255,255,255,.14);color:#fff;padding:8px 12px;border-radius:999px;font-size:13px;z-index:121}
.viewer-hint{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);background:rgba(255,255,255,.12);color:#fff;padding:8px 12px;border-radius:999px;font-size:13px;z-index:121;white-space:nowrap}
.mask2{position:fixed;inset:0;background:rgba(0,0,0,.42);z-index:10030}
.popup-menu{position:fixed;top:58px;right:calc(50% - 203px);width:156px;background:#fff;border-radius:14px;box-shadow:0 12px 28px rgba(0,0,0,.18);overflow:hidden;z-index:10040}
@media (max-width:430px){.popup-menu{right:12px}}
.popup-menu .item{width:100%;text-align:left;background:#fff;border:none;outline:none;padding:14px 16px;font-size:15px;color:#222;border-bottom:1px solid #f0f0f0}
.popup-menu .item:last-child{border-bottom:none}
.report-sheet,.success-card,.guide-card{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:calc(100% - 28px);max-width:390px;background:#fff;border-radius:18px;z-index:10060;overflow:hidden;box-shadow:0 16px 40px rgba(0,0,0,.22)}
.guide-card{max-width:340px;padding:22px 18px 18px}
.guide-card.compact{z-index:10066}
.report-head{padding:16px 18px;font-size:18px;font-weight:800;border-bottom:1px solid #efefef;display:flex;align-items:center;justify-content:space-between}
.report-close{width:32px;height:32px;border:none;border-radius:50%;background:#f4f4f4;font-size:22px;line-height:32px;color:#555}
.report-body{padding:16px}
.report-label{display:block;font-size:14px;color:#444;margin-bottom:8px;font-weight:700}
.report-textarea{width:100%;min-height:120px;border:1px solid #ddd;border-radius:12px;padding:12px 14px;resize:none;font-size:15px;outline:none;margin-bottom:14px}
.upload-box{border:1px dashed #cfcfcf;border-radius:12px;padding:14px;background:#fafafa}
.upload-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.upload-btn{display:inline-flex;align-items:center;justify-content:center;min-width:90px;height:38px;padding:0 14px;border:none;border-radius:10px;background:var(--link-blue);color:#fff;font-size:14px;font-weight:700}
.upload-tip{font-size:13px;color:#666;line-height:1.6}
.preview-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.preview-item{width:68px;height:68px;border-radius:10px;overflow:hidden;border:1px solid #eee;background:#f3f3f3}
.preview-item img{width:100%;height:100%;object-fit:cover;display:block}
.report-actions{display:flex;gap:10px;margin-top:18px}
.report-cancel,.report-submit,.success-btn2,.guide-btn{flex:1;height:44px;border:none;border-radius:12px;font-size:16px;font-weight:800}
.report-cancel{background:#f3f3f3;color:#444}.report-submit,.success-btn2,.guide-btn{background:var(--link-blue);color:#fff}
.success-card{width:calc(100% - 56px);max-width:320px;padding:24px 20px 18px;text-align:center}
.success-icon2{width:64px;height:64px;margin:0 auto 14px;border-radius:50%;background:#19c15e;color:#fff;display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:900}
.success-title2{font-size:22px;font-weight:900;color:#111;margin-bottom:8px}
.success-text2{font-size:14px;color:#666;line-height:1.7;margin-bottom:18px}
.guide-title{font-size:21px;font-weight:900;color:#111;margin-bottom:10px;text-align:center}
.guide-text{font-size:15px;color:#444;line-height:1.85;margin-bottom:18px}
.loading-overlay{position:fixed;inset:0;z-index:9999;background:linear-gradient(180deg,#f7f7f7 0%,#ededed 100%);display:flex;align-items:center;justify-content:center;padding:24px;transition:opacity .35s ease,visibility .35s ease}
.loading-overlay.hidden{opacity:0;visibility:hidden;pointer-events:none}
.loading-card{width:min(92vw,340px);background:#fff;border-radius:18px;box-shadow:0 10px 28px rgba(0,0,0,.10);padding:22px 18px;text-align:center}
.loading-title{font-size:18px;font-weight:800;color:#222}.loading-sub{margin-top:8px;font-size:13px;color:#888;line-height:1.7}
.loading-bar{height:6px;background:#f0f0f0;border-radius:999px;overflow:hidden;margin-top:16px}
.loading-bar i{display:block;height:100%;width:42%;border-radius:999px;background:linear-gradient(90deg,#ff8ebc,#ffb9d4);animation:loadingSlide 1.15s ease-in-out infinite}
@keyframes loadingSlide{0%{transform:translateX(-120%)}100%{transform:translateX(320%)}}
.entry-hidden{display:none!important}
.entry-overlay{position:fixed;inset:0;z-index:10020;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#111}
.entry-bg{position:absolute;inset:0;background:center center/cover no-repeat;filter:none}
.entry-bg:after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.18)}
.entry-chat-wrap{position:relative;z-index:2;width:min(100%,430px);height:100%;padding:20px 14px 120px;overflow:auto;-webkit-overflow-scrolling:touch}
.entry-row{display:flex;align-items:flex-start;gap:10px;margin-top:16px}
.entry-row.user{justify-content:flex-end}
.entry-avatar{width:42px;height:42px;border-radius:50%;overflow:hidden;flex:0 0 42px;background:rgba(255,255,255,.28);backdrop-filter:blur(3px)}
.entry-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.entry-bubble{max-width:calc(100% - 56px);padding:18px;border-radius:18px;background:#07090d;color:#fff;box-shadow:0 8px 20px rgba(0,0,0,.18);font-size:18px;line-height:1.5;word-break:break-word}
.entry-row.user .entry-bubble{background:#9af36b;color:#fff;padding:18px 26px;max-width:40%;text-align:center;font-weight:800;font-size:22px}
.entry-choice-card{margin-top:14px;padding:0;background:#07090d;border-radius:18px;overflow:hidden;box-shadow:0 8px 20px rgba(0,0,0,.2)}
.entry-question{padding:18px 18px 12px;color:#fff;font-size:18px;line-height:1.5}
.entry-choice-list{padding:0 16px 16px}
.entry-choice{display:block;width:100%;border:none;border-radius:10px;height:56px;margin-top:14px;color:#fff;font-size:18px;font-weight:800}
.entry-choice.opt-a{background:#ff4d4f}.entry-choice.opt-b{background:#d8b300}
.entry-fail-btn{position:fixed;left:50%;bottom:24vh;transform:translateX(-50%);z-index:10035;border:none;border-radius:16px;background:linear-gradient(180deg,#ff3b3b 0%,#d81f1f 100%);color:#fff;font-size:22px;font-weight:900;padding:18px 28px;display:none;box-shadow:0 16px 36px rgba(0,0,0,.38),0 0 0 4px rgba(255,255,255,.18);white-space:nowrap;letter-spacing:1px}
.entry-hint{position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:10025;background:rgba(0,0,0,.38);color:#fff;padding:10px 14px;border-radius:999px;font-size:13px;backdrop-filter:blur(4px);display:none}
.entry-fail-btn.show{display:block;animation:gateFailPop .9s ease,gateFailShake .45s ease .05s 2}
.entry-choice.gate-wrong{animation:gateWrongFlash .95s ease 1}
@keyframes gateFailPop{0%{opacity:0;transform:translateX(-50%) scale(.75)}55%{opacity:1;transform:translateX(-50%) scale(1.08)}100%{opacity:1;transform:translateX(-50%) scale(1)}}
@keyframes gateFailShake{0%,100%{margin-left:0}20%{margin-left:-8px}40%{margin-left:8px}60%{margin-left:-6px}80%{margin-left:6px}}
@keyframes gateWrongFlash{0%,100%{filter:none}20%,60%{filter:brightness(1.2)}40%,80%{filter:brightness(.9)}}
.state-mask{position:fixed;inset:0;z-index:10080;background:#f3f3f3;display:flex;align-items:center;justify-content:center;padding:24px}
.state-card{max-width:360px;background:#fff;border-radius:16px;padding:24px;text-align:center;box-shadow:0 12px 30px rgba(0,0,0,.12)}
.state-card h1{font-size:22px;margin-bottom:10px}.state-card p{font-size:15px;color:#666;line-height:1.7}
.contact-btn{position:fixed;right:calc(50% - 202px);bottom:156px;z-index:50;border-radius:999px;background:#111;color:#fff;padding:10px 14px;font-size:13px;font-weight:800;box-shadow:0 8px 20px rgba(0,0,0,.22)}
@media (max-width:430px){.contact-btn{right:12px}}
img[loading="lazy"]{content-visibility:auto}
@media (max-width:430px){
  .viewer .close{top:10px;right:10px;min-width:78px;height:40px;font-size:16px;padding:0 12px}
  .nav-btn{width:36px;height:36px;font-size:24px;line-height:36px}
  .nav-prev{left:8px}.nav-next{right:8px}
}
