/* ===== 前台补充样式（Tailwind 之外的自定义）===== */
/* 设计令牌：友好蓝(brand) + 活力珊瑚橙(accent) + 墨蓝(ink) + 暖米纸感(paper) */
:root {
  --brand-600:#1560ad; --brand-700:#145193; --brand-50:#eaf3fd;
  --accent-500:#f9682f; --accent-600:#e4551f;
  --ink:#16273a; --ink-soft:#4a5b70; --paper:#f9f6f0; --line:#ece5d9;
}

html { scroll-behavior: smooth; }
body { font-family:'Inter',ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; color:var(--ink); background-image: radial-gradient(circle at 1px 1px, rgba(22,39,58,.05) 1px, transparent 0); background-size: 22px 22px; }
h1,h2,h3,h4,.font-display { font-family:'Plus Jakarta Sans','Inter',sans-serif; letter-spacing:-.01em; }

/* 小标签 eyebrow */
.eyebrow { display:inline-flex; align-items:center; gap:.55rem; font-size:.72rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--brand-600); }
.eyebrow::before { content:""; width:26px; height:2px; border-radius:2px; background:var(--accent-500); }

/* 区块标题 */
.section-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}
.section-sub { color: var(--ink-soft); max-width: 60ch; }

/* 幻灯片切换 */
#hero-slider .slide { transition: opacity 1s ease; }
.kenburns { animation: kenburns 8s ease-out forwards; transform-origin: center; }
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}
#slider-dots button {
  width: 10px; height: 10px; border-radius: 9999px;
  background: rgba(255,255,255,.5); transition: all .3s;
}
#slider-dots button.active { background: #fff; width: 26px; border-radius: 6px; }

/* 富文本正文 */
.prose img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }
.prose h2 { font-size: 1.4rem; font-weight: 700; margin: 1.2rem 0 .6rem; color: #111827; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 1rem 0 .5rem; color: #111827; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin: .6rem 0; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin: .6rem 0; }
.prose li { margin: .25rem 0; }
.prose p { margin: .6rem 0; }
.prose a { color: var(--brand-600); text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose th, .prose td { border: 1px solid #e5e7eb; padding: .5rem .75rem; text-align: left; }
.prose th { background: #f3f4f6; }

/* 行数截断（Tailwind CDN 已含 line-clamp，这里做降级） */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 图片灯箱 */
#lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; }
#lightbox img { max-width: 92%; max-height: 92%; border-radius: 8px; }

/* toast */
#site-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 12px 22px; border-radius: 9999px; font-size: 14px; z-index: 200; opacity: 0; transition: opacity .3s; pointer-events: none; }
#site-toast.show { opacity: 1; }
#site-toast.ok { background: #16a34a; }
#site-toast.err { background: #dc2626; }

/* ===== AI 客服 widget ===== */
.ai-bubble {
  position: fixed; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 9999px;
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 22px;
  transition: transform .2s;
}
.ai-bubble:hover { transform: scale(1.08); }
.ai-panel {
  position: fixed; bottom: 90px; z-index: 61;
  width: 340px; max-width: calc(100vw - 24px); height: 460px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.28);
  display: none; flex-direction: column; overflow: hidden;
}
.ai-panel.open { display: flex; }
.ai-head { color: #fff; padding: 14px 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.ai-body { flex: 1; overflow-y: auto; padding: 14px; background: #f8fafc; }
.ai-msg { margin-bottom: 12px; display: flex; }
.ai-msg.user { justify-content: flex-end; }
.ai-msg .bubble { max-width: 80%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.ai-msg.bot .bubble { background: #fff; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px; }
.ai-msg.user .bubble { color: #fff; border-bottom-right-radius: 4px; }
.ai-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e5e7eb; }
.ai-input textarea { flex: 1; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px; font-size: 14px; resize: none; height: 40px; }
.ai-typing span { display: inline-block; width: 6px; height: 6px; margin: 0 1px; background: #94a3b8; border-radius: 50%; animation: ai-blink 1.2s infinite both; }
.ai-typing span:nth-child(2){ animation-delay:.2s } .ai-typing span:nth-child(3){ animation-delay:.4s }
@keyframes ai-blink { 0%,80%,100%{opacity:.2} 40%{opacity:1} }

/* ===== 人工在线客服 widget ===== */
.lc-bubble { overflow: visible; }
.lc-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 9999px; background: #ef4444; color: #fff; font-size: 12px; font-weight: 700; align-items: center; justify-content: center; display: none; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.lc-ring { animation: lc-pulse 1.6s infinite; }
@keyframes lc-pulse { 0%{box-shadow:0 8px 24px rgba(0,0,0,.25),0 0 0 0 rgba(239,68,68,.5)} 70%{box-shadow:0 8px 24px rgba(0,0,0,.25),0 0 0 12px rgba(239,68,68,0)} 100%{box-shadow:0 8px 24px rgba(0,0,0,.25),0 0 0 0 rgba(239,68,68,0)} }
.lc-head { align-items: flex-start; }
.lc-head-t { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.lc-sub { font-style: normal; font-size: 11px; font-weight: 400; opacity: .85; }
.lc-agent-name { display: block; font-size: 11px; color: #64748b; margin-bottom: 2px; }
.lc-system { text-align: center; font-size: 11px; color: #94a3b8; margin: 6px 0 12px; }
.lc-contact { background: #fff; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 12px; margin-top: 6px; }
.lc-contact-tip { font-size: 12px; color: #475569; margin: 0 0 8px; }
.lc-contact input { width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 7px 10px; font-size: 13px; margin-bottom: 7px; }
.lc-contact-actions { display: flex; gap: 8px; }
.lc-contact-ok { color: #fff; border: none; border-radius: 8px; padding: 7px 16px; font-size: 13px; cursor: pointer; }
.lc-contact-skip { background: none; border: 1px solid #d1d5db; border-radius: 8px; padding: 7px 14px; font-size: 13px; color: #64748b; cursor: pointer; }
.lc-input .lc-attach { flex: 0 0 auto; width: 40px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #64748b; cursor: pointer; font-size: 16px; }
.lc-input .lc-attach:hover { background: #f1f5f9; color: #334155; }
.lc-att { margin-top: 6px; }
.lc-img { max-width: 100%; max-height: 220px; border-radius: 8px; display: block; cursor: zoom-in; }
.lc-file-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; text-decoration: underline; }
.ai-msg.user .lc-file-link { color: #fff; }
.ai-msg.bot .lc-file-link { color: #2563eb; }
.lc-pending { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid #e5e7eb; background: #f8fafc; position: relative; }
.lc-pending img { max-height: 48px; border-radius: 6px; }
.lc-pending .lc-pf { font-size: 13px; color: #475569; }
.lc-pending .lc-pend-x { margin-left: auto; border: none; background: #e5e7eb; color: #475569; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; line-height: 1; }

/* ===== 设计系统组件（重构新增）===== */
/* 按钮 */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; font-weight:600; border-radius:.65rem; transition:all .18s ease; cursor:pointer; line-height:1; }
.btn-primary { background:var(--accent-500); color:#fff; padding:.8rem 1.5rem; box-shadow:0 8px 20px rgba(249,104,47,.28); }
.btn-primary:hover { background:var(--accent-600); transform:translateY(-1px); box-shadow:0 12px 26px rgba(249,104,47,.32); }
.btn-brand { background:var(--brand-600); color:#fff; padding:.8rem 1.5rem; }
.btn-brand:hover { background:var(--brand-700); }
.btn-ghost { background:#fff; color:var(--brand-700); padding:.8rem 1.4rem; border:1px solid var(--line); }
.btn-ghost:hover { border-color:var(--brand-600); background:var(--brand-50); }

/* 卡片 */
.card { background:#fff; border:1px solid var(--line); border-radius:1rem; box-shadow:0 1px 2px rgba(22,39,58,.05); transition:box-shadow .22s ease, transform .22s ease, border-color .22s; }
.card:hover { box-shadow:0 18px 40px rgba(22,39,58,.10); transform:translateY(-3px); border-color:#d7e6f2; }

/* 认证 / 芯片 徽章 */
.chip { display:inline-flex; align-items:center; gap:.4rem; font-size:.78rem; font-weight:600; color:var(--brand-700); background:var(--brand-50); border:1px solid #cfe4f6; border-radius:9999px; padding:.32rem .7rem; }
.cert-badge { display:inline-flex; align-items:center; gap:.5rem; font-weight:700; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:.6rem; padding:.5rem .85rem; font-size:.85rem; }
.cert-badge i { color:var(--brand-600); }

/* 能力柱 / 图标块 */
.icon-tile { width:52px; height:52px; border-radius:.85rem; display:flex; align-items:center; justify-content:center; font-size:22px; background:linear-gradient(135deg,var(--brand-50),#fff); color:var(--brand-600); border:1px solid #cfe0f2; }

/* 流程步骤 */
.step-num { flex:0 0 auto; width:38px; height:38px; border-radius:9999px; background:var(--brand-600); color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; font-size:.95rem; }

/* 数据统计 */
.stat-num { font-family:'Plus Jakarta Sans',sans-serif; font-weight:800; font-size:clamp(1.9rem,3.6vw,2.7rem); color:var(--brand-700); line-height:1; letter-spacing:-.02em; }
.stat-num .u { color:var(--accent-500); }

/* 品牌占位图（代替 picsum 假图） */
.ph { background:linear-gradient(135deg,#dcecfb,#f9f6f0 60%,#fff); color:var(--brand-600); display:flex; align-items:center; justify-content:center; }

/* hero 背景：柔和蓝/橙光晕 + 极淡点阵纹理，落在暖米白上 */
.hero-bg { background:
  radial-gradient(900px 420px at 88% -8%, rgba(21,96,173,.13), transparent 60%),
  radial-gradient(760px 360px at 4% 112%, rgba(249,104,47,.11), transparent 55%),
  radial-gradient(circle at 1px 1px, rgba(22,39,58,.045) 1px, transparent 0) 0 0/22px 22px,
  var(--paper); }

/* Hero 幻灯片 */
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-dots { position: absolute; bottom: 14px; right: 16px; display: flex; gap: 8px; z-index: 5; }
.hero-dot { width: 8px; height: 8px; border-radius: 9999px; background: rgba(255,255,255,.55); border: 0; padding: 0; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.hero-dot.is-active { background: #fff; transform: scale(1.4); }

/* 细顶栏 */
.topbar { background:var(--brand-700); color:#cfe1f5; }
.topbar a:hover { color:#fff; }

/* 导航下划线动效 */
#main-nav .nav-link { position:relative; color:var(--ink-soft); }
#main-nav .nav-link:hover { color:var(--brand-700); }
#main-nav .nav-link.active { color:var(--brand-700); }

/* 响应式：小屏隐藏细顶栏右侧 */
@media (max-width:640px){ .topbar-hide-sm { display:none; } }
