/* ===== 客服页样式 ===== */
.support-head{text-align:center;margin-bottom:24px}
.support-title{font-size:28px;font-weight:800;margin-bottom:8px}
.support-sub{font-size:14px;color:#747d8c}

.support-wrap{display:grid;grid-template-columns:1fr 340px;gap:16px;align-items:start}

/* FAQ */
.faq-item{border:1px solid #f1f2f6;border-radius:10px;margin-bottom:10px;overflow:hidden}
.faq-q{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;cursor:pointer;font-size:14px;font-weight:600;transition:background .2s}
.faq-q:hover{background:#fafbfc}
.faq-q .faq-arrow{color:#a4b0be;transition:transform .25s;font-size:12px}
.faq-item.open .faq-arrow{transform:rotate(180deg)}
.faq-a{display:none;padding:14px 16px;border-top:1px solid #f1f2f6;font-size:13px;color:#57606f;line-height:1.8;background:#fafbfc}
.faq-item.open .faq-a{display:block}

/* 表单 */
.form-hint{font-size:12px;color:#a4b0be;margin-bottom:16px}
.form-group{margin-bottom:14px}
.form-label{font-size:13px;font-weight:600;margin-bottom:6px;display:block}
.form-input{width:100%;padding:11px 14px;border:1px solid #e9ecef;border-radius:8px;font-size:14px;outline:none;transition:border .2s}
.form-input:focus{border-color:#4361ee}
textarea.form-input{resize:vertical;min-height:100px}
.side-line{font-size:13px;color:#57606f;margin-bottom:8px}

@media(max-width:768px){
.support-wrap{grid-template-columns:1fr}
}

/* ===== 在线客服聊天室（淘宝/京东风布局） ===== */
.chat-panel{display:flex;flex-direction:column;height:560px;border:1px solid #eef0f4;border-radius:14px;overflow:hidden;background:#fff}
/* 会话头部 */
.chat-head{display:flex;align-items:center;gap:12px;padding:14px 18px;background:linear-gradient(135deg,#4361ee,#667eea);color:#fff;flex-shrink:0}
.ch-avatar{width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0}
.ch-info{min-width:0}
.ch-name{font-size:15px;font-weight:700}
.ch-status{font-size:12px;opacity:.9;margin-top:2px;display:flex;align-items:center;gap:5px}
.ch-status .dot{width:7px;height:7px;border-radius:50%;background:#7bed9f;display:inline-block;animation:pulse 1.6s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
/* 消息区 */
.chat-body{flex:1;overflow-y:auto;background:#f5f6fa;padding:16px 14px;display:flex;flex-direction:column;gap:12px}
.chat-empty{color:#a4b0be;font-size:13px;text-align:center;padding:70px 20px;line-height:1.9}
.cm-row{display:flex;align-items:flex-start;gap:8px;max-width:100%}
.cm-row.right{justify-content:flex-end}
.cm-avatar{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.cm-avatar-kf{background:#e8edff}
.cm-avatar-me{background:#ffe9d6}
.cm-bubble{max-width:72%;padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.6;word-break:break-word;position:relative;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.cm-row.left .cm-bubble{background:#fff;border:1px solid #e9ecef;border-top-left-radius:4px}
.cm-row.right .cm-bubble{background:#4361ee;color:#fff;border-top-right-radius:4px}
.cm-text{white-space:pre-wrap}
.cm-row.right .cm-text{color:#fff}
.cm-img{display:block;max-width:220px;max-height:200px;border-radius:10px;margin-top:6px;cursor:zoom-in;border:1px solid rgba(0,0,0,.08)}
.cm-time{font-size:11px;margin-top:5px;opacity:.6;color:inherit}
.cm-row.right .cm-time{text-align:right}
/* 底部输入区 */
.chat-foot{border-top:1px solid #eef0f4;background:#fff;padding:10px 14px;flex-shrink:0}
.chat-input-row{display:flex;gap:8px;align-items:flex-end}
.chat-input-row textarea{flex:1;padding:10px 12px;border:1px solid #e3e6ec;border-radius:10px;font-size:14px;outline:none;resize:none;min-height:40px;max-height:90px;font-family:inherit;transition:border .2s}
.chat-input-row textarea:focus{border-color:#4361ee}
.chat-img-btn{width:40px;height:40px;border-radius:10px;background:#f2f4f8;display:flex;align-items:center;justify-content:center;font-size:17px;cursor:pointer;flex-shrink:0;transition:background .2s}
.chat-img-btn:hover{background:#e5e9f2}
.chat-send{height:40px;border-radius:10px;padding:0 22px;background:linear-gradient(135deg,#4361ee,#667eea);color:#fff;border:none;font-size:14px;font-weight:600;cursor:pointer;flex-shrink:0;transition:box-shadow .2s}
.chat-send:hover{box-shadow:0 6px 16px rgba(67,97,238,.35)}
.chat-img-name{font-size:12px;color:#a4b0be;margin-top:6px;min-height:16px}

@media(max-width:768px){
.chat-panel{height:calc(100vh - 190px)}
}

/* ===== 关注我们：图标网格（品牌色圆角图标，6列x4行） ===== */
.social-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;justify-items:center}
.soc-item{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;cursor:pointer;transition:transform .15s;background:#f7f8fc;border:1px solid #eef0f4}
.soc-item:hover{transform:translateY(-2px) scale(1.08);box-shadow:0 4px 12px rgba(0,0,0,.12)}
.soc-ic{width:26px;height:26px;flex-shrink:0;border-radius:7px;color:#fff;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;font-family:inherit}
@media(max-width:768px){.social-grid{gap:6px}.soc-item{width:30px;height:30px}.soc-ic{width:23px;height:23px;font-size:11px}}
