.wechat-demo{--wechat:#168468;--wechat-dark:#135c4d;--wechat-soft:#e7f4ed;--wechat-light:#f1f9f4;--wechat-border:#cbe5d9;max-width:1440px;margin:0 auto}
.wechat-demo[data-wechat-channel="bot"]{--wechat:#456dcc;--wechat-dark:#2f4f99;--wechat-soft:#eaf0ff;--wechat-light:#f3f6ff;--wechat-border:#d8e2fb}
.wechat-hero{position:relative;display:flex;justify-content:space-between;gap:30px;overflow:hidden;padding:32px 35px;background:linear-gradient(120deg,var(--wechat-light),var(--wechat-soft));border:1px solid var(--wechat-border);border-radius:20px}
.wechat-hero-copy{position:relative;z-index:1;max-width:690px}.wechat-hero .eyebrow{color:var(--wechat-dark);font-size:10px;display:flex;align-items:center;gap:14px}.wechat-hero .eyebrow span{opacity:.45;letter-spacing:2px}.wechat-hero h1{font-size:30px;letter-spacing:-.5px;color:#17392f;margin:15px 0 13px}.wechat-hero p{font-size:13px;line-height:1.9;color:#5d716a;margin:0 0 20px}
.wechat-connection{display:inline-flex;align-items:center;gap:8px;border:1px solid #dddfd4;border-radius:30px;padding:8px 13px;background:#ffffffe0;color:#8b662e;font-size:11px;font-weight:600}.wechat-connection i{width:6px;height:6px;border-radius:50%;background:#d39637}.wechat-connection.live{color:#0d7456;border-color:#b8dacd}.wechat-connection.live i{background:#19a271;box-shadow:0 0 0 4px #19a27115}.wechat-connection.error{color:#a03f35;border-color:#efd0cb}.wechat-connection.error i{background:#c95443}
.wechat-hero-art{position:relative;align-self:center;width:200px;min-width:160px;height:145px}.wechat-orbit{position:absolute;border:1px dashed var(--wechat-border);width:146px;height:146px;border-radius:50%;left:18px;top:0}.wechat-app-mark{position:absolute;display:grid;place-items:center;left:35px;top:15px;width:98px;height:98px;border-radius:28px;transform:rotate(-8deg);background:var(--wechat);color:#fff;box-shadow:0 15px 27px #193e2f18}.wechat-app-mark .wechat-symbol{width:52px;height:52px}.wechat-arrival-mark{position:absolute;display:flex;align-items:center;gap:7px;right:0;bottom:13px;background:#fff;border:1px solid #e1e9e1;border-radius:12px;padding:11px 15px;box-shadow:0 6px 16px #193e2f13;font-size:11px;font-weight:700;color:var(--wechat-dark)}.wechat-arrival-mark .icon{width:17px;height:17px}
.wechat-symbol{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.wechat-channel-tabs{display:flex;gap:9px;margin:22px 0}.wechat-channel-tabs button{display:flex;align-items:center;gap:9px;padding:11px 15px;border:1px solid var(--line);border-radius:11px;background:#fff;color:#65706b;font-size:12px}.wechat-channel-tabs button.selected{border-color:var(--wechat-border);background:var(--wechat-soft);color:var(--wechat-dark);font-weight:650}.wechat-tab-count{background:#ffffffbb;padding:2px 7px;border-radius:6px;font-size:10px;min-width:24px;text-align:center}
.wechat-metrics{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:14px;margin-bottom:22px}.wechat-metrics>div{display:flex;flex-direction:column;align-items:flex-start;gap:8px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:19px 21px}.wechat-metrics span{font-size:11px;color:var(--muted)}.wechat-metrics strong{font-size:30px;font-weight:650;letter-spacing:-.7px;color:var(--wechat-dark)}.wechat-metrics small{font-size:10px;color:#849087}.wechat-metrics .wechat-time-metric strong{font-size:17px;line-height:37px;letter-spacing:0}
.wechat-layout{display:grid;grid-template-columns:minmax(0,1fr) 315px;align-items:start;gap:20px}.wechat-inbox{overflow:hidden}.wechat-inbox-head{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:22px 25px;border-bottom:1px solid var(--line)}.wechat-inbox-head h2,.wechat-side h2{font-size:14px;margin:0 0 7px}.wechat-inbox-head p{display:flex;gap:6px;align-items:center;margin:0;font-size:10px;color:var(--muted)}.wechat-inbox-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end}.wechat-pulse{width:5px;height:5px;border-radius:50%;background:var(--wechat)}.wechat-inbox-head .btn{font-size:10px}.wechat-inbox-head .btn .icon{width:14px;height:14px}
.wechat-messages{padding:25px;min-height:350px;max-height:520px;overflow-y:auto;background:linear-gradient(180deg,#fbfcf9,#fff);scroll-behavior:smooth}.wechat-empty{display:flex;min-height:305px;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:20px;max-width:480px;margin:0 auto}.wechat-empty>.wechat-symbol{width:54px;height:54px;padding:12px;box-sizing:content-box;border-radius:22px;background:var(--wechat-soft);color:var(--wechat);margin-bottom:8px}.wechat-empty h3{font-size:15px;margin:0;color:#334c40}.wechat-empty p{font-size:12px;line-height:1.9;color:#6d7d74;margin:0}.wechat-empty>span{font-size:10px;line-height:1.8;color:#9aa49c;max-width:340px}
.wechat-message{display:flex;gap:12px;margin-bottom:24px;animation:wechat-arrive .25s ease-out}.wechat-message:last-child{margin-bottom:0}.wechat-message-avatar{display:grid;place-items:center;width:34px;min-width:34px;height:34px;border-radius:11px;font-size:13px;font-weight:650;background:var(--wechat-soft);color:var(--wechat-dark);border:1px solid var(--wechat-border)}.is-simulated .wechat-message-avatar{background:#fff4e7;color:#936b3e;border-color:#efdfc5}.wechat-message-body{min-width:0;flex:1}.wechat-message-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:1px 0 9px}.wechat-message-meta strong{font-size:11px;color:#395144;overflow-wrap:anywhere}.wechat-message-meta time{font-size:9px;color:#9aa39e;margin-left:auto}.wechat-source{font-size:9px;line-height:1.4;padding:3px 6px;border-radius:5px;white-space:nowrap;font-weight:500}.wechat-source.real{color:#13785b;background:#e4f3ec}.wechat-source.simulation{color:#8f6736;background:#fcf0dd}.wechat-bubble{border:1px solid var(--wechat-border);border-radius:0 12px 12px 12px;background:var(--wechat-light);padding:13px 15px}.is-simulated .wechat-bubble{background:#fffcf7;border-color:#eee3d4}.wechat-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:12px;color:#314d3e;margin:0}.wechat-message-foot{display:flex;gap:10px;flex-wrap:wrap;margin-top:7px;color:#99a59d;font-size:9px}.wechat-message-foot span:last-child{overflow-wrap:anywhere;max-width:100%;font-family:monospace;font-size:8px}
.wechat-compose{padding:21px 25px;background:#fffdf8;border-top:1px solid #ece6d9}.wechat-compose-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.wechat-compose-title strong{font-size:12px;color:#68533a}.wechat-compose>p{font-size:10px;color:#9a8970;line-height:1.8;margin:8px 0 13px}.wechat-compose textarea{display:block;min-height:70px;resize:vertical;background:#fff;font-size:12px;margin-bottom:12px;border-color:#e5dfd1}.wechat-compose .btn{font-size:11px;background:#fff;border-color:#ded6c7}.wechat-compose .btn .icon{width:15px;height:15px}
.wechat-side{display:flex;flex-direction:column;gap:17px;min-width:0}.wechat-path{padding:23px}.wechat-side-heading{margin-bottom:23px}.wechat-route-label{font-size:9px;color:#88968d;line-height:1.6}.wechat-path-step{display:flex;align-items:center;gap:12px}.wechat-step-mark{display:grid;place-items:center;border-radius:10px;width:36px;min-width:36px;height:36px;background:var(--wechat-soft);color:var(--wechat-dark)}.wechat-step-mark .wechat-symbol,.wechat-step-mark .icon{width:18px;height:18px}.wechat-step-mark.cloud{background:#f0f3ef;color:#788878}.wechat-step-mark.received{background:#f2f3f0;color:#a9b2a9}.wechat-path-step.has-real-messages .received{background:#dcf0e4;color:#137a57}.wechat-path-step strong{display:block;font-size:11px;color:#465b4c}.wechat-path-step small{display:block;font-size:9px;color:#8e9d93;margin-top:5px;line-height:1.7}.wechat-path-line{height:22px;width:1px;margin:5px 0 5px 18px;background:#dae5db}.wechat-connection-note{border-top:1px solid var(--line);padding-top:15px;margin:20px 0 0;font-size:10px;line-height:1.9;color:#839085}
.wechat-details{padding:23px}.wechat-details dl{margin:18px 0 0}.wechat-details dl>div{margin:0 0 16px}.wechat-details dl>div:last-child{margin-bottom:0}.wechat-details dt{font-size:9px;color:#97a197;margin-bottom:6px}.wechat-details dd{margin:0;font-size:10px;line-height:1.7;color:#5f7566;overflow-wrap:anywhere}.wechat-details .wechat-url{font-size:9px;font-family:monospace}.wechat-other-channel{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:15px 17px;background:#fff;color:#5f7766;font-size:10px;text-align:left}.wechat-other-channel span{flex:1;min-width:0}.wechat-other-channel>.icon{width:15px;height:15px}.wechat-other-channel>.wechat-symbol{width:17px;height:17px}.wechat-permission-note{display:flex;align-items:flex-start;gap:8px;margin:20px 0 0;font-size:9px;line-height:1.9;color:#99a49a}.wechat-permission-note>.icon{min-width:13px;width:13px;height:13px;margin-top:2px}.wechat-error{padding:12px 25px;background:#fff0eb;color:#9b5142;font-size:11px;line-height:1.8}.wechat-error[hidden]{display:none}.wechat-demo .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes wechat-arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1200px){.wechat-layout{grid-template-columns:minmax(0,1fr) 270px}.wechat-hero-art{min-width:130px;width:150px}.wechat-app-mark{left:15px}.wechat-orbit{left:0}.wechat-side .panel{padding:19px}}
@media(max-width:1020px){.wechat-layout{grid-template-columns:minmax(0,1fr)}.wechat-side{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.wechat-other-channel{grid-column:1/-1}.wechat-path,.wechat-details{height:100%}.wechat-hero-art{display:none}.wechat-metrics>div{padding:16px}.wechat-metrics .wechat-time-metric strong{font-size:14px}}
@media(max-width:620px){.wechat-hero{padding:22px 20px;border-radius:15px}.wechat-hero h1{font-size:24px}.wechat-hero p{font-size:11px;line-height:1.9}.wechat-hero .eyebrow{font-size:9px}.wechat-connection{font-size:10px;padding:7px 10px}.wechat-channel-tabs{gap:7px;margin:17px 0}.wechat-channel-tabs button{flex:1;min-width:0;gap:6px;padding:10px 9px;font-size:10px}.wechat-channel-tabs .wechat-symbol{width:17px;height:17px}.wechat-tab-count{min-width:18px;padding:2px 4px;font-size:9px}.wechat-metrics{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:17px}.wechat-metrics>div{padding:13px 14px;gap:5px}.wechat-metrics span{font-size:10px}.wechat-metrics strong{font-size:25px}.wechat-metrics .wechat-time-metric{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center}.wechat-metrics .wechat-time-metric strong{font-size:13px;line-height:26px;grid-column:2;grid-row:1/3}.wechat-time-metric small{grid-column:1;font-size:9px}.wechat-layout{gap:15px}.wechat-inbox-head{padding:17px 16px;gap:9px}.wechat-inbox-head .btn span{display:none}.wechat-inbox-head h2{font-size:13px}.wechat-inbox-head .btn{padding:7px}.wechat-messages{padding:19px 15px;min-height:300px;max-height:440px}.wechat-empty{min-height:260px;padding:15px 5px}.wechat-empty h3{font-size:13px}.wechat-empty p{font-size:11px}.wechat-message{gap:8px}.wechat-message-avatar{width:28px;min-width:28px;height:28px;border-radius:9px;font-size:11px}.wechat-message-meta{gap:5px}.wechat-message-meta time{font-size:8px}.wechat-message-meta strong{font-size:10px}.wechat-source{font-size:8px}.wechat-bubble{padding:10px 12px}.wechat-bubble p{font-size:11px}.wechat-compose{padding:18px 16px}.wechat-compose>p{font-size:9px}.wechat-compose-title strong{font-size:11px}.wechat-side{grid-template-columns:minmax(0,1fr)}.wechat-side .panel{padding:20px}.wechat-path,.wechat-details{height:auto}.wechat-permission-note{font-size:8px}.wechat-error{padding:11px 16px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.wechat-message{animation:none}.wechat-messages{scroll-behavior:auto}}
.wechat-channel-tabs button.is-message-unbound{color:#909b92;background:#f4f6f2;border-color:#dce2d7}.wechat-channel-tabs button.is-message-unbound.selected{background:#eaf0e6;color:#75836e}.wechat-access-page .page-head{margin-bottom:18px}.wechat-access-page .page-head p{color:#899382}.wechat-unavailable{padding:35px;max-width:980px;background:#fafbf8;border-style:dashed}.wechat-unavailable-mark{display:grid;place-items:center;width:55px;height:55px;border-radius:15px;background:#e9eee5;color:#8a9981;margin-bottom:21px}.wechat-unavailable-mark>.icon{width:29px;height:29px}.wechat-unavailable>.eyebrow{color:#89957f;font-size:10px;line-height:1.7}.wechat-unavailable h2{font-size:21px;margin:10px 0 15px;line-height:1.6;color:#53674b}.wechat-unavailable>p{max-width:720px;font-size:12px;color:#7b8b71;line-height:1.9}.wechat-unavailable-account{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;background:#f0f4eb;border:1px solid #e2e9d9;border-radius:12px;padding:20px;margin:25px 0}.wechat-unavailable-account dt{font-size:10px;color:#96a28b;margin-bottom:8px}.wechat-unavailable-account dd{font-size:12px;color:#5f7754;margin:0;line-height:1.7;overflow-wrap:anywhere}.wechat-unavailable-note{display:flex;align-items:flex-start;gap:8px}.wechat-unavailable-note>.icon{min-width:16px;width:16px;height:16px;margin-top:3px}.wechat-unavailable-actions{display:flex;gap:12px;flex-wrap:wrap;padding-top:17px}.wechat-unavailable-actions .btn{font-size:11px}.wechat-access-error{background:#fff1e8;border:1px solid #eed9c8;border-radius:9px;padding:12px 15px;color:#936950!important}.wechat-access-error[hidden]{display:none}
@media(max-width:620px){.wechat-unavailable{padding:23px 18px}.wechat-unavailable h2{font-size:18px}.wechat-unavailable>p{font-size:11px}.wechat-unavailable-account{grid-template-columns:minmax(0,1fr);gap:15px;padding:17px;margin:21px 0}.wechat-unavailable-account>div{display:flex;justify-content:space-between;align-items:baseline;gap:15px}.wechat-unavailable-account dt{font-size:9px;margin-bottom:0}.wechat-unavailable-account dd{font-size:11px;text-align:right;max-width:65%}.wechat-unavailable-actions{gap:9px}.wechat-unavailable-actions .btn{font-size:10px}.wechat-access-page .wechat-channel-tabs .wechat-tab-count{font-size:8px;white-space:nowrap}.wechat-access-page .wechat-channel-tabs button{flex-wrap:wrap}}
