/* 智能客服系统 · 全站样式（浅色主题） */
:root {
  --brand: #1f4fd8;
  --brand-dark: #0f2b5b;
  --brand-light: #eaf0ff;
  --accent: #00b4d8;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #1c2537;
  --text-sub: #64708a;
  --border: #e4e9f2;
  --success: #18a058;
  --warn: #e8930c;
  --danger: #e5484d;
  --shadow-sm: 0 2px 10px rgba(24, 46, 96, .06);
  --shadow-md: 0 12px 36px rgba(24, 46, 96, .12);
  --shadow-lg: 0 24px 64px rgba(16, 36, 80, .22);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

/* ==================== 官网 ==================== */
.site-nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.site-nav-inner { max-width: 1180px; margin: 0 auto; height: 68px; padding: 0 24px; display: flex; align-items: center; gap: 36px; }
.site-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .5px; color: var(--brand-dark); }
.site-logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--accent)); display: grid; place-items: center; color: #fff; font-size: 17px; box-shadow: 0 6px 16px rgba(31,79,216,.3); }
.site-logo small { display: block; font-size: 9px; letter-spacing: 2px; color: var(--text-sub); font-weight: 600; }
.site-links { display: flex; gap: 30px; margin-left: auto; font-size: 14px; color: var(--text-sub); }
.site-links a { transition: color .2s; }
.site-links a:hover { color: var(--brand); }
.site-nav-cta { padding: 9px 18px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 6px 16px rgba(31,79,216,.25); transition: transform .2s, box-shadow .2s; }
.site-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(31,79,216,.32); }

.site-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, #0d2554 0%, #153a86 48%, #1c63c9 100%); }
.site-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 26px 26px; opacity: .65; }
.site-hero::after { content: ""; position: absolute; width: 560px; height: 560px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(0,180,216,.42), transparent 68%); filter: blur(8px); }
.site-hero-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 88px 24px 96px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.site-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22); font-size: 12px; letter-spacing: 1px; }
.site-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.site-hero h1 { margin: 22px 0 18px; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.22; font-weight: 800; letter-spacing: -.5px; }
.site-hero h1 em { font-style: normal; background: linear-gradient(90deg, #7ee8fa, #a8c7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-hero p { margin: 0 0 30px; font-size: 16px; line-height: 1.9; color: rgba(255,255,255,.8); max-width: 520px; }
.site-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.site-btn { padding: 13px 26px; border-radius: 10px; font-size: 14px; font-weight: 600; border: 1px solid transparent; transition: transform .2s, box-shadow .2s; }
.site-btn:hover { transform: translateY(-2px); }
.site-btn-primary { background: #fff; color: var(--brand-dark); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.site-btn-ghost { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.35); color: #fff; }
.site-hero-metrics { display: flex; gap: 34px; margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.16); }
.site-hero-metrics strong { display: block; font-size: 26px; font-weight: 800; }
.site-hero-metrics span { font-size: 12px; color: rgba(255,255,255,.65); }

.site-chat-preview { background: rgba(255,255,255,.97); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; color: var(--text); transform: rotate(-1.5deg); }
.site-chat-preview-head { padding: 14px 18px; background: linear-gradient(100deg, var(--brand), #3b7bff); color: #fff; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.site-chat-preview-head .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.site-chat-preview-body { padding: 20px 16px 22px; display: flex; flex-direction: column; gap: 12px; }
.site-mini-bubble { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 12.5px; line-height: 1.65; }
.site-mini-bubble.ai { background: #f1f4fa; border-bottom-left-radius: 4px; align-self: flex-start; }
.site-mini-bubble.me { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.site-mini-typing { display: flex; gap: 4px; padding: 12px 14px; background: #f1f4fa; border-radius: 14px; width: fit-content; }
.site-mini-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa8c4; animation: blink 1.3s infinite; }
.site-mini-typing i:nth-child(2) { animation-delay: .2s; }
.site-mini-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.site-section { max-width: 1180px; margin: 0 auto; padding: 84px 24px; }
.site-section-head { text-align: center; margin-bottom: 52px; }
.site-section-head .tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--brand-light); color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.site-section-head h2 { margin: 16px 0 12px; font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--brand-dark); }
.site-section-head p { margin: 0; color: var(--text-sub); font-size: 15px; line-height: 1.8; }
.site-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.site-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.site-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #cfdcff; }
.site-card-icon { width: 48px; height: 48px; border-radius: 13px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; font-size: 22px; margin-bottom: 20px; }
.site-card h3 { margin: 0 0 10px; font-size: 18px; color: var(--brand-dark); }
.site-card p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--text-sub); }
.site-card .more { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--brand); font-weight: 600; }

.site-solutions { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.site-solution-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.site-solution { position: relative; overflow: hidden; padding: 36px; border-radius: 18px; color: #fff; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; }
.site-solution.a { background: linear-gradient(135deg, #12336e, #2563d9); }
.site-solution.b { background: linear-gradient(135deg, #0b6b78, #17b4c8); }
.site-solution::after { content: ""; position: absolute; width: 240px; height: 240px; right: -60px; top: -90px; border-radius: 50%; background: rgba(255,255,255,.08); }
.site-solution span { font-size: 12px; letter-spacing: 2px; opacity: .75; }
.site-solution h3 { margin: 10px 0 8px; font-size: 24px; }
.site-solution p { margin: 0; font-size: 14px; line-height: 1.8; opacity: .85; max-width: 380px; }

.site-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.site-contact h2 { font-size: 32px; color: var(--brand-dark); margin: 0 0 16px; }
.site-contact > div > p { color: var(--text-sub); line-height: 1.9; font-size: 15px; margin: 0 0 28px; }
.site-contact-list { display: flex; flex-direction: column; gap: 18px; }
.site-contact-item { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; }
.site-contact-item .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; flex: 0 0 38px; font-size: 17px; }
.site-contact-item strong { display: block; color: var(--text-sub); font-size: 12px; font-weight: 500; margin-bottom: 3px; }
.site-contact-item span { color: var(--text); font-weight: 600; }
.site-contact-form { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 30px; box-shadow: var(--shadow-sm); }
.site-contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text-sub); }
.site-contact-form input, .site-contact-form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; margin-bottom: 18px; outline: none; transition: border-color .2s, box-shadow .2s; background: #fbfcfe; }
.site-contact-form input:focus, .site-contact-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,79,216,.1); }
.site-contact-form textarea { min-height: 96px; resize: vertical; }

.site-footer { background: #0d2249; color: rgba(255,255,255,.62); padding: 46px 24px 26px; }
.site-footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.site-footer strong { color: #fff; font-size: 17px; }
.site-footer p { margin: 8px 0 0; font-size: 13px; }
.site-footer .copy { width: 100%; text-align: center; border-top: 1px solid rgba(255,255,255,.1); margin-top: 26px; padding-top: 20px; font-size: 12px; }

/* ==================== 客服悬浮窗 ==================== */
.kf-launcher { position: fixed; right: 26px; bottom: 26px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; border: none; background: linear-gradient(135deg, var(--brand), #3b7bff); color: #fff; font-size: 25px; box-shadow: 0 12px 30px rgba(31,79,216,.42); display: grid; place-items: center; transition: transform .25s, box-shadow .25s; }
.kf-launcher:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 16px 38px rgba(31,79,216,.5); }
.kf-launcher::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(31,79,216,.25); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(.9); opacity: 1; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
.kf-badge { position: absolute; top: -2px; right: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; line-height: 19px; font-weight: 700; display: none; }
.kf-badge.show { display: block; }

.kf-panel { position: fixed; right: 26px; bottom: 98px; z-index: 61; width: 384px; height: min(600px, calc(100vh - 130px)); background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; transform: translateY(16px) scale(.97); opacity: 0; pointer-events: none; transition: transform .26s cubic-bezier(.2,.8,.2,1), opacity .26s; }
.kf-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.kf-head { padding: 16px 18px; background: linear-gradient(105deg, var(--brand-dark), var(--brand)); color: #fff; display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.kf-avatar { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 20px; }
.kf-head-title { flex: 1; min-width: 0; }
.kf-head-title strong { display: block; font-size: 15px; }
.kf-head-title span { font-size: 11.5px; opacity: .8; display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.kf-head-title span i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.kf-head-title span i.off { background: #fbbf24; }
.kf-head-actions { display: flex; gap: 4px; }
.kf-head-actions button { width: 30px; height: 30px; border: none; border-radius: 8px; background: rgba(255,255,255,.14); color: #fff; font-size: 15px; transition: background .2s; }
.kf-head-actions button:hover { background: rgba(255,255,255,.28); }

.kf-body { flex: 1; overflow-y: auto; padding: 18px 16px; background: #f7f9fd; scroll-behavior: smooth; }
.kf-body::-webkit-scrollbar { width: 6px; }
.kf-body::-webkit-scrollbar-thumb { background: #d3dbea; border-radius: 6px; }
.kf-time { text-align: center; font-size: 11px; color: #9aa6bd; margin: 4px 0 14px; }
.kf-msg { display: flex; gap: 9px; margin-bottom: 14px; align-items: flex-start; }
.kf-msg.me { flex-direction: row-reverse; }
.kf-msg-face { width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px; display: grid; place-items: center; font-size: 14px; background: #e6edff; color: var(--brand); }
.kf-msg.me .kf-msg-face { background: #dbe7ff; }
.kf-msg.system .kf-msg-face { background: #fff3d9; color: var(--warn); }
.kf-bubble { max-width: 78%; padding: 10px 13px; border-radius: 13px; font-size: 13.5px; line-height: 1.72; white-space: pre-wrap; word-break: break-word; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); border-top-left-radius: 4px; }
.kf-msg.me .kf-bubble { background: var(--brand); color: #fff; border-color: var(--brand); border-top-left-radius: 13px; border-top-right-radius: 4px; }
.kf-msg.system .kf-bubble { background: #fff8e8; border-color: #f5e3b8; color: #8a6414; max-width: 86%; font-size: 12.5px; }
.kf-bubble .src { display: block; margin-top: 7px; padding-top: 6px; border-top: 1px dashed var(--border); font-size: 11px; color: var(--text-sub); }
.kf-msg.me .kf-bubble .src { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.75); }
.kf-typing { display: flex; gap: 4px; padding: 13px; }
.kf-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa8c4; animation: blink 1.3s infinite; }
.kf-typing i:nth-child(2) { animation-delay: .2s; }
.kf-typing i:nth-child(3) { animation-delay: .4s; }

.kf-quick { padding: 0 16px 12px; background: #f7f9fd; flex: 0 0 auto; }
.kf-quick-label { font-size: 11px; color: var(--text-sub); margin-bottom: 8px; }
.kf-quick-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.kf-chip { padding: 7px 11px; border-radius: 999px; border: 1px solid #cfdcff; background: #fff; color: var(--brand); font-size: 12px; transition: background .2s, color .2s; }
.kf-chip:hover { background: var(--brand); color: #fff; }
.kf-tools { display: flex; gap: 6px; padding: 10px 14px 0; border-top: 1px solid var(--border); background: #fff; flex: 0 0 auto; flex-wrap: wrap; }
.kf-tool { padding: 6px 10px; border: 1px solid var(--border); background: #fbfcfe; color: var(--text-sub); border-radius: 8px; font-size: 12px; transition: all .2s; }
.kf-tool:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.kf-tool.active { background: var(--brand-light); color: var(--brand); border-color: #cfdcff; }
.kf-tool-right { margin-left: auto; }
.kf-compose { display: flex; gap: 8px; padding: 10px 14px 14px; background: #fff; flex: 0 0 auto; align-items: flex-end; }
.kf-compose textarea { flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; resize: none; height: 42px; max-height: 96px; outline: none; background: #fbfcfe; line-height: 1.6; transition: border-color .2s; }
.kf-compose textarea:focus { border-color: var(--brand); }
.kf-send { height: 42px; padding: 0 18px; border: none; border-radius: 10px; background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 600; transition: opacity .2s; }
.kf-send:disabled { opacity: .5; cursor: not-allowed; }
.kf-notice { padding: 7px 14px; background: #fff8e8; color: #8a6414; font-size: 11.5px; border-top: 1px solid #f5e3b8; }

.kf-overlay { position: absolute; inset: 0; background: #fff; z-index: 5; padding: 20px; overflow-y: auto; display: none; }
.kf-overlay.show { display: block; }
.kf-overlay h3 { margin: 0 0 6px; font-size: 17px; color: var(--brand-dark); }
.kf-overlay .sub { font-size: 12.5px; color: var(--text-sub); line-height: 1.7; margin: 0 0 20px; }
.kf-overlay label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.kf-overlay input, .kf-overlay textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 13px; margin-bottom: 15px; outline: none; background: #fbfcfe; }
.kf-overlay input:focus, .kf-overlay textarea:focus { border-color: var(--brand); }
.kf-overlay textarea { min-height: 88px; resize: vertical; }
.kf-overlay-btns { display: flex; gap: 9px; }

/* ==================== 管理后台 ==================== */
.adm-login { position: fixed; inset: 0; z-index: 100; background: linear-gradient(135deg, #0d2554, #1c63c9); display: grid; place-items: center; }
.adm-login-card { width: min(400px, 90vw); background: #fff; border-radius: 20px; padding: 38px 34px; box-shadow: var(--shadow-lg); }
.adm-login-card .mark { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; display: grid; place-items: center; font-size: 24px; margin-bottom: 22px; }
.adm-login-card h1 { margin: 0 0 8px; font-size: 23px; color: var(--brand-dark); }
.adm-login-card p { margin: 0 0 26px; font-size: 13px; color: var(--text-sub); line-height: 1.7; }
.adm-login-card input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; outline: none; margin-bottom: 14px; }
.adm-login-card input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,79,216,.1); }
.adm-login-card button { width: 100%; padding: 12px; border: none; border-radius: 10px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; }
.adm-login-card .hint { margin-top: 18px; font-size: 12px; color: #98a3b8; text-align: center; }
.adm-login-card .err { color: var(--danger); font-size: 12.5px; min-height: 18px; margin-bottom: 8px; }

.adm-shell { display: flex; min-height: 100vh; }
.adm-side { width: 226px; flex: 0 0 226px; background: linear-gradient(180deg, #102a5c, #0b1f45); color: #fff; padding: 22px 14px; display: flex; flex-direction: column; }
.adm-side-logo { display: flex; align-items: center; gap: 10px; padding: 0 10px 22px; border-bottom: 1px solid rgba(255,255,255,.1); font-weight: 700; font-size: 16px; }
.adm-side-logo .mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--accent)); display: grid; place-items: center; }
.adm-nav { margin-top: 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.adm-nav button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 13px; border: none; border-radius: 9px; background: transparent; color: rgba(255,255,255,.68); font-size: 13.5px; text-align: left; transition: background .2s, color .2s; }
.adm-nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
.adm-nav button.active { background: rgba(255,255,255,.16); color: #fff; font-weight: 600; }
.adm-nav button .ico { width: 18px; text-align: center; font-size: 15px; }
.adm-nav button .cnt { margin-left: auto; background: var(--danger); color: #fff; border-radius: 999px; font-size: 10px; min-width: 18px; text-align: center; padding: 1px 5px; display: none; }
.adm-nav button .cnt.show { display: block; }
.adm-side-foot { padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 11.5px; color: rgba(255,255,255,.5); line-height: 1.7; }
.adm-side-foot a { color: rgba(255,255,255,.8); text-decoration: underline; }

.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-top { height: 64px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 28px; gap: 14px; }
.adm-top h2 { margin: 0; font-size: 18px; color: var(--brand-dark); }
.adm-top .crumb { font-size: 12.5px; color: var(--text-sub); }
.adm-top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.adm-online-badge { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: #eafaf0; color: var(--success); font-size: 12px; font-weight: 600; }
.adm-online-badge.off { background: #fff5e6; color: var(--warn); }
.adm-online-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.adm-btn { padding: 8px 14px; border-radius: 9px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 13px; font-weight: 500; transition: all .2s; }
.adm-btn:hover { border-color: var(--brand); color: var(--brand); }
.adm-btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.adm-btn-primary:hover { background: #1740bd; color: #fff; }
.adm-btn-danger { color: var(--danger); }
.adm-btn-danger:hover { border-color: var(--danger); color: var(--danger); }
.adm-btn-sm { padding: 5px 10px; font-size: 12px; }
.adm-content { padding: 26px 28px 40px; overflow-y: auto; flex: 1; }

.adm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.adm-stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.adm-stat .label { font-size: 12.5px; color: var(--text-sub); display: flex; align-items: center; gap: 7px; }
.adm-stat .value { font-size: 28px; font-weight: 800; color: var(--brand-dark); margin-top: 10px; }
.adm-stat .foot { font-size: 11.5px; color: var(--text-sub); margin-top: 6px; }
.adm-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 20px; overflow: hidden; }
.adm-panel-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.adm-panel-head h3 { margin: 0; font-size: 15px; color: var(--brand-dark); }
.adm-panel-head .desc { font-size: 12px; color: var(--text-sub); }
.adm-panel-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.adm-panel-body { padding: 20px; }
.adm-panel-body.flush { padding: 0; }

.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th { background: #f8fafd; text-align: left; padding: 12px 16px; color: var(--text-sub); font-weight: 600; font-size: 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.adm-table td { padding: 12px 16px; border-bottom: 1px solid #f0f3f8; vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td { background: #fafbfe; }
.adm-table .q { font-weight: 600; color: var(--text); max-width: 260px; }
.adm-table .a { color: var(--text-sub); max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-table .ops { white-space: nowrap; }
.adm-empty { padding: 46px 20px; text-align: center; color: var(--text-sub); font-size: 13px; }

.adm-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.adm-badge.blue { background: var(--brand-light); color: var(--brand); }
.adm-badge.green { background: #eafaf0; color: var(--success); }
.adm-badge.orange { background: #fff5e6; color: var(--warn); }
.adm-badge.gray { background: #f0f2f6; color: var(--text-sub); }
.adm-badge.red { background: #fdecec; color: var(--danger); }

.adm-field { margin-bottom: 16px; }
.adm-field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.adm-field label .tip { font-weight: 400; color: var(--text-sub); font-size: 11.5px; margin-left: 6px; }
.adm-field input, .adm-field textarea, .adm-field select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 13.5px; outline: none; background: #fbfcfe; }
.adm-field input:focus, .adm-field textarea:focus, .adm-field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,79,216,.08); }
.adm-field textarea { min-height: 92px; resize: vertical; line-height: 1.7; }
.adm-field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.adm-switch { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; }
.adm-switch input { width: auto; accent-color: var(--brand); }
.adm-help { background: #f3f7ff; border: 1px solid #dbe6ff; border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: #35517f; line-height: 1.8; margin-bottom: 18px; }

.adm-modal-mask { position: fixed; inset: 0; z-index: 90; background: rgba(12, 26, 54, .45); display: none; place-items: center; padding: 20px; }
.adm-modal-mask.show { display: grid; }
.adm-modal { width: min(620px, 96vw); max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); }
.adm-modal-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.adm-modal-head h3 { margin: 0; font-size: 16px; color: var(--brand-dark); }
.adm-modal-head button { margin-left: auto; border: none; background: #f2f4f8; width: 28px; height: 28px; border-radius: 8px; font-size: 16px; }
.adm-modal-body { padding: 22px; }
.adm-modal-foot { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 9px; }

.adm-chat-layout { display: grid; grid-template-columns: 300px 1fr; min-height: 480px; }
.adm-conv-list { border-right: 1px solid var(--border); overflow-y: auto; max-height: 520px; }
.adm-conv-item { padding: 14px 16px; border-bottom: 1px solid #f0f3f8; cursor: pointer; transition: background .2s; }
.adm-conv-item:hover { background: #f8fafd; }
.adm-conv-item.active { background: var(--brand-light); border-left: 3px solid var(--brand); }
.adm-conv-item .row1 { display: flex; align-items: center; gap: 8px; }
.adm-conv-item .name { font-size: 13px; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-conv-item .snippet { font-size: 12px; color: var(--text-sub); margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-conv-item .time { font-size: 11px; color: #a3adc0; margin-top: 5px; }
.adm-chat-main { display: flex; flex-direction: column; min-width: 0; }
.adm-chat-head { padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 13px; display: flex; align-items: center; gap: 10px; }
.adm-chat-msgs { flex: 1; padding: 18px; overflow-y: auto; height: 340px; background: #f7f9fd; }
.adm-chat-msgs .line { display: flex; margin-bottom: 12px; }
.adm-chat-msgs .line.agent, .adm-chat-msgs .line.system { justify-content: flex-end; }
.adm-chat-msgs .line.system { justify-content: center; }
.adm-chat-msgs .b { max-width: 72%; padding: 9px 13px; border-radius: 12px; font-size: 13px; line-height: 1.7; background: #fff; border: 1px solid var(--border); white-space: pre-wrap; word-break: break-word; }
.adm-chat-msgs .line.agent .b { background: var(--brand); color: #fff; border-color: var(--brand); }
.adm-chat-msgs .line.system .b { background: #fff8e8; color: #8a6414; border-color: #f5e3b8; font-size: 12px; }
.adm-chat-msgs .who { font-size: 11px; color: #9aa6bd; margin-bottom: 4px; }
.adm-chat-compose { padding: 14px 18px; border-top: 1px solid var(--border); display: flex; gap: 9px; align-items: flex-end; }
.adm-chat-compose textarea { flex: 1; border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; font-size: 13px; height: 44px; resize: none; outline: none; }
.adm-chat-compose textarea:focus { border-color: var(--brand); }

.adm-toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-20px); z-index: 200; padding: 11px 20px; border-radius: 10px; background: #102a5c; color: #fff; font-size: 13px; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: all .25s; }
.adm-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.adm-toast.err { background: var(--danger); }

/* ==================== 响应式 ==================== */
@media (max-width: 980px) {
  .site-hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 64px 24px 72px; }
  .site-chat-preview { max-width: 420px; transform: none; }
  .site-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .site-solution-row, .site-contact { grid-template-columns: 1fr; }
  .adm-stats { grid-template-columns: repeat(2, 1fr); }
  .adm-chat-layout { grid-template-columns: 1fr; }
  .adm-conv-list { max-height: 200px; border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 680px) {
  .site-links { display: none; }
  .site-grid-3 { grid-template-columns: 1fr; }
  .site-hero-metrics { gap: 18px; flex-wrap: wrap; }
  .kf-panel { right: 0; bottom: 0; width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .kf-launcher { right: 18px; bottom: 18px; }
  .adm-side { width: 62px; flex: 0 0 62px; padding: 18px 8px; }
  .adm-side-logo span, .adm-nav button span:not(.ico):not(.cnt), .adm-side-foot { display: none; }
  .adm-nav button { justify-content: center; padding: 12px 0; }
  .adm-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .adm-content { padding: 18px 14px 32px; }
  .adm-top { padding: 0 14px; }
  .adm-field-row { grid-template-columns: 1fr; }
}
