*{box-sizing:border-box;margin:0}
body{font-family:"Segoe UI",system-ui,-apple-system,sans-serif;color:#1f2937;background:#f8fafc}
.nav{display:flex;justify-content:space-between;align-items:center;padding:14px 24px;background:#1e293b;color:#fff;flex-wrap:wrap;gap:10px}
.nav a{color:#cbd5e1;text-decoration:none;margin-left:14px}
.nav .brand{color:#fff;font-weight:700;font-size:18px;text-decoration:none}
.nav select{background:#334155;color:#fff;border:0;padding:4px 8px;border-radius:4px}
.muted{opacity:.6;font-size:13px}
.hero{text-align:center;padding:80px 20px}
.hero p{color:#64748b;margin:16px 0 28px;font-size:18px}
.btn{display:inline-block;background:#2563eb;color:#fff;padding:12px 28px;border:0;border-radius:8px;cursor:pointer;text-decoration:none;font-size:16px}
.features{display:flex;gap:24px;justify-content:center;margin-top:60px;flex-wrap:wrap}
.features div{background:#fff;padding:20px 28px;border-radius:12px;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.card{max-width:420px;margin:60px auto;background:#fff;padding:32px;border-radius:12px;box-shadow:0 2px 12px rgba(0,0,0,.08)}
.card input,.card select,.card textarea,.kb-form input,.kb-form textarea{width:100%;padding:10px;margin:6px 0 14px;border:1px solid #cbd5e1;border-radius:6px;font-family:inherit}
.err{color:#dc2626;margin-bottom:10px}
.ok-msg{color:#16a34a;margin-bottom:10px}
.footer{text-align:center;padding:30px;color:#94a3b8;font-size:13px}
/* 聊天气泡 */
#chat-widget{position:fixed;right:20px;bottom:20px;z-index:99}
#chat-fab{width:60px;height:60px;border-radius:50%;border:0;background:#2563eb;color:#fff;font-size:26px;cursor:pointer;box-shadow:0 4px 14px rgba(37,99,235,.4)}
#chat-panel{position:absolute;right:0;bottom:72px;width:340px;height:440px;background:#fff;border-radius:14px;box-shadow:0 8px 30px rgba(0,0,0,.2);display:flex;flex-direction:column;overflow:hidden}
.hidden{display:none!important}
.chat-head{background:#2563eb;color:#fff;padding:12px 16px;display:flex;justify-content:space-between}
.chat-head button{background:none;border:0;color:#fff;cursor:pointer}
.chat-box{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:#f1f5f9}
.chat-box.big{height:420px;border:1px solid #e2e8f0;border-radius:10px;margin-bottom:12px}
.msg{max-width:80%;padding:9px 14px;border-radius:14px;font-size:14px;white-space:pre-wrap;word-break:break-word}
.msg.me{align-self:flex-end;background:#2563eb;color:#fff;border-bottom-right-radius:4px}
.msg.them{align-self:flex-start;background:#fff;border:1px solid #e2e8f0;border-bottom-left-radius:4px}
.chat-input{display:flex;gap:8px;padding:10px;background:#fff}
.chat-input.big input{flex:1;padding:12px;border:1px solid #cbd5e1;border-radius:8px}
.chat-input button{background:#2563eb;color:#fff;border:0;border-radius:8px;padding:0 18px;cursor:pointer}
.chat-page{max-width:720px;margin:30px auto;padding:0 16px}
/* 后台 */
.admin-nav{background:#0f172a}
.admin-main{max-width:1200px;margin:24px auto;padding:0 16px}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px;margin:20px 0}
.stat{background:#fff;padding:24px;border-radius:12px;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.stat-num{font-size:32px;font-weight:700;color:#2563eb}
.tbl{width:100%;border-collapse:collapse;background:#fff;margin:14px 0}
.tbl th,.tbl td{padding:10px 12px;border-bottom:1px solid #e2e8f0;text-align:left;font-size:14px}
.tbl a{color:#2563eb;text-decoration:none}
.badge{padding:3px 10px;border-radius:99px;font-size:12px;background:#e2e8f0}
.badge.bot{background:#dcfce7;color:#16a34a}
.badge.human{background:#fef3c7;color:#d97706}
.badge.closed{background:#fee2e2;color:#dc2626}
.chat-admin{display:grid;grid-template-columns:320px 1fr;gap:20px}
.chat-list tr.active{background:#eff6ff}
.ops{margin-top:10px;display:flex;gap:8px}
.ops button{padding:8px 14px;border:1px solid #cbd5e1;background:#fff;border-radius:6px;cursor:pointer}
.search-bar{display:flex;gap:8px;margin:10px 0}
.search-bar input{flex:1;padding:9px;border:1px solid #cbd5e1;border-radius:6px}
.kb-form textarea{resize:vertical}
@media(max-width:800px){.chat-admin{grid-template-columns:1fr}}

/* ===== 支付 / 邮件 / 大模型 ===== */
.pay-page h2{margin-bottom:16px}
.plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:16px}
.plan-card{background:#fff;border-radius:12px;padding:24px;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.plan-card h3{margin-bottom:8px}
.plan-price{font-size:26px;font-weight:700;color:#2563eb;margin:8px 0}
.pay-methods{display:flex;gap:12px;justify-content:center;margin:14px 0;flex-wrap:wrap}
.pay-card{max-width:520px}
.pay-amount{color:#d97706;font-size:20px}
.pay-qr{display:block;max-width:240px;margin:14px auto;border:1px solid #e2e8f0;border-radius:8px}
.addr-box{display:flex;gap:8px;align-items:center;margin:10px 0}
.addr-box code{flex:1;background:#f1f5f9;padding:12px;border-radius:8px;word-break:break-all;font-size:13px}
.btn.small{padding:8px 16px;font-size:14px}
.btn.green{background:#16a34a}.btn.gray{background:#64748b}
.mono{font-family:monospace;font-size:12px}
.qr-row{display:flex;gap:24px;margin:10px 0;flex-wrap:wrap}
.qr-row>div{flex:1;min-width:200px}
.qr-thumb{max-width:160px;display:block;margin-top:8px;border:1px solid #e2e8f0;border-radius:8px}
.mail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.test-ok{border-left:4px solid #16a34a}
.test-fail{border-left:4px solid #dc2626}
.test-ok pre,.test-fail pre{background:#f8fafc;padding:10px;border-radius:6px;margin-top:8px;white-space:pre-wrap}
@media(max-width:900px){.mail-grid{grid-template-columns:1fr}}

/* ===== 表情 / 文件上传 ===== */
.tool-btn{background:none;border:0;font-size:20px;cursor:pointer;padding:2px 4px;line-height:1;border-radius:6px}
.tool-btn:hover{background:#f1f5f9}
.send-btn{white-space:nowrap}
.msg-img{max-width:220px;border-radius:8px;display:block;margin-top:4px}
.msg-file{display:inline-block;background:#eff6ff;color:#1d4ed8;padding:10px 14px;border-radius:10px;text-decoration:none;font-size:13px;line-height:1.5}
.msg.me .msg-file{background:#dbeafe;color:#1e40af}
.msg-file span{display:block;color:#64748b;font-size:11px}
.emoji-panel{position:fixed;z-index:1000;background:#fff;border:1px solid #e2e8f0;border-radius:12px;
box-shadow:0 8px 30px rgba(0,0,0,.15);padding:8px;display:grid;grid-template-columns:repeat(8,1fr);gap:2px;width:284px}
.emoji-panel button{border:0;background:none;font-size:21px;padding:5px;cursor:pointer;border-radius:6px;line-height:1.2}
.emoji-panel button:hover{background:#f1f5f9}

/* ===== 首页大气改版 ===== */
.hero2{background:linear-gradient(135deg,#0f172a 0%,#1e3a8a 55%,#2563eb 100%);color:#fff;text-align:center;padding:90px 20px 80px}
.hero-badge{display:inline-block;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);padding:8px 20px;border-radius:99px;font-size:14px;margin-bottom:26px;backdrop-filter:blur(4px)}
.hero2 h1{font-size:clamp(30px,5vw,52px);line-height:1.25;font-weight:800;letter-spacing:1px}
.hero-sub{margin:22px auto 36px;color:#bfdbfe;font-size:17px;line-height:1.9;max-width:760px}
.hero-cta{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}
.btn-lg{padding:15px 40px;font-size:17px}
.btn-ghost{background:transparent;border:2px solid rgba(255,255,255,.5);color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.1)}
.btn-block{display:block;text-align:center;margin-top:18px}
.btn-light{background:#fff;color:#1e3a8a;font-weight:700}
.hero-trust{display:flex;gap:30px;justify-content:center;flex-wrap:wrap;margin-top:52px;color:#93c5fd;font-size:14px}
.section{padding:80px 20px;max-width:1180px;margin:0 auto}
.section-alt{background:#f1f5f9;max-width:none}
.section-alt>*{max-width:1180px;margin-left:auto;margin-right:auto}
.sec-title{text-align:center;font-size:34px;font-weight:800;color:#0f172a}
.sec-sub{text-align:center;color:#64748b;margin:14px 0 46px;font-size:16px}
.feat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px}
.feat-card{background:#fff;border-radius:16px;padding:34px 28px;box-shadow:0 2px 10px rgba(15,23,42,.06);transition:transform .2s,box-shadow .2s;border:1px solid #eef2f7}
.feat-card:hover{transform:translateY(-5px);box-shadow:0 12px 30px rgba(37,99,235,.12)}
.feat-ico{font-size:38px;margin-bottom:16px}
.feat-card h3{font-size:19px;margin-bottom:10px;color:#0f172a}
.feat-card p{color:#64748b;font-size:14px;line-height:1.8}
.steps{display:flex;align-items:stretch;justify-content:center;gap:18px;flex-wrap:wrap}
.step{background:#fff;border-radius:16px;padding:34px 40px;text-align:center;box-shadow:0 2px 10px rgba(15,23,42,.06);flex:1;min-width:220px;max-width:320px}
.step-no{width:52px;height:52px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;font-size:24px;font-weight:800;display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.step h3{margin-bottom:8px;color:#0f172a}
.step p{color:#64748b;font-size:14px}
.step-arrow{align-self:center;font-size:30px;color:#94a3b8}
/* 价格表 */
.price-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:26px;max-width:1080px;margin:0 auto}
.price-card{background:#fff;border-radius:20px;padding:40px 32px;text-align:center;box-shadow:0 2px 12px rgba(15,23,42,.07);border:2px solid #eef2f7;position:relative;transition:transform .2s,box-shadow .2s}
.price-card:hover{transform:translateY(-6px);box-shadow:0 16px 40px rgba(37,99,235,.14)}
.price-card.hot{border-color:#2563eb;box-shadow:0 10px 36px rgba(37,99,235,.18)}
.hot-tag{position:absolute;top:-14px;left:50%;transform:translateX(-50%);background:linear-gradient(135deg,#f59e0b,#f97316);color:#fff;font-size:13px;padding:5px 18px;border-radius:99px;font-weight:600}
.price-card h3{font-size:20px;color:#0f172a;margin-bottom:18px}
.price-num{font-size:52px;font-weight:800;color:#2563eb;line-height:1}
.price-num small{font-size:24px;vertical-align:top;margin-right:4px}
.price-usd{color:#64748b;font-size:13px;margin:10px 0 22px}
.price-feats{list-style:none;text-align:left;margin:0 auto 8px;max-width:200px}
.price-feats li{padding:7px 0;color:#334155;font-size:14px;border-bottom:1px dashed #f1f5f9}
.pay-note{text-align:center;margin-top:42px;color:#475569;background:#fff;border:1px dashed #cbd5e1;border-radius:12px;padding:16px;max-width:760px;margin-left:auto;margin-right:auto}
.cta-band{background:linear-gradient(135deg,#1e3a8a,#2563eb);color:#fff;text-align:center;padding:70px 20px}
.cta-band h2{font-size:32px;margin-bottom:12px}
.cta-band p{color:#bfdbfe;margin-bottom:30px}

/* ===== 聊天窗 V3：头像气泡 + 现代头部 ===== */
#chat-panel{width:360px;height:470px;border:1px solid #e8edf5;border-radius:18px;overflow:hidden}
.chat-head2{background:linear-gradient(135deg,#1e3a8a,#2563eb);color:#fff;padding:14px 16px;display:flex;align-items:center;gap:12px}
.ch-av{width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;font-size:21px}
.ch-info{flex:1;line-height:1.3}
.ch-info b{font-size:15px;display:block}
.ch-info span{font-size:11px;color:#bfdbfe;display:flex;align-items:center;gap:5px}
.dot{width:7px;height:7px;border-radius:50%;background:#4ade80;display:inline-block;box-shadow:0 0 0 2px rgba(74,222,128,.3)}
.ch-close{background:rgba(255,255,255,.15);border:0;color:#fff;width:28px;height:28px;border-radius:8px;cursor:pointer;font-size:13px}
.ch-close:hover{background:rgba(255,255,255,.3)}
.chat-box{background:linear-gradient(180deg,#f8fafc,#f1f5f9);padding:16px 14px;gap:14px}
.msg-row{display:flex;gap:8px;max-width:88%}
.msg-row.me{align-self:flex-end;flex-direction:row-reverse}
.msg-row.them{align-self:flex-start}
.msg-av{width:30px;height:30px;border-radius:50%;background:#e0e7ff;display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0;margin-top:2px}
.msg-row.me .msg-av{background:#bfdbfe}
.msg-b{display:flex;flex-direction:column}
.msg-row.me .msg-b{align-items:flex-end}
.msg{max-width:100%;padding:10px 14px;font-size:14px;line-height:1.55;box-shadow:0 1px 2px rgba(15,23,42,.06)}
.msg.me{background:linear-gradient(135deg,#2563eb,#1d4ed8);border-radius:16px 4px 16px 16px;border:none}
.msg.them{background:#fff;border:1px solid #e8edf5;border-radius:4px 16px 16px 16px}
.msg-time{font-size:10px;opacity:.55;margin-top:4px;display:block;text-align:right}
.msg-row.them .msg-time{color:#94a3b8}
.msg-row.me .msg-time{color:#dbeafe}
.msg.me .msg-file{background:rgba(255,255,255,.15);color:#fff}
.msg.me .msg-file span{color:#bfdbfe}
.chat-input2{background:#fff;border-top:1px solid #eef2f7;padding:10px 12px;gap:6px;align-items:center}
.chat-input2 input#chat-text{flex:1;border:1px solid #e2e8f0;border-radius:99px;padding:11px 16px;font-size:14px;background:#f8fafc;transition:border-color .15s,background .15s}
.chat-input2 input#chat-text:focus{outline:none;border-color:#2563eb;background:#fff}
.send-btn2{width:40px;height:40px;min-width:40px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;border:0;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center;transition:transform .15s}
.send-btn2:hover{transform:scale(1.08)}
.send-btn2.btn{width:auto;border-radius:99px;padding:0 22px;font-size:14px}
#chat-fab{width:62px;height:62px;font-size:26px;background:linear-gradient(135deg,#2563eb,#1d4ed8);box-shadow:0 6px 20px rgba(37,99,235,.45);transition:transform .15s}
#chat-fab:hover{transform:scale(1.07)}

/* ===== 接入代码页 ===== */
.code-box{width:100%;font-family:Consolas,monospace;font-size:13px;padding:14px;border:1px solid #cbd5e1;border-radius:8px;background:#0f172a;color:#a5f3fc;resize:none;margin-bottom:12px}
