/* ============================================================
   云客在线客服 —— 前台样式 v2（kefu_home 模板专用）
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #2f6bff;
  --primary-dark: #1d4fd8;
  --primary-soft: #eef3ff;
  --ink: #12203c;
  --gray: #5b6b84;
  --line: #e5eaf3;
  --bg: #f6f8fc;
  --radius: 16px;
  --shadow: 0 18px 44px rgba(18,32,60,.08);
  --grad: linear-gradient(135deg, #4f8bff 0%, #2f6bff 55%, #1d4fd8 100%);
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #12203c;
  background: #fff;
  line-height: 1.7;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; border: 0; }
::selection { background: rgba(47,107,255,.18); }
.wrap { width: 1160px; max-width: 92%; margin: 0 auto; }

/* ============ 通知条 ============ */
.notice {
  background: linear-gradient(90deg, #12203c, #1d3a75);
  color: #cfe0ff; text-align: center; font-size: 13px; padding: 9px 14px;
}
.notice b { color: #fff; }

/* ============ 顶部导航 ============ */
.kf-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5eaf3;
}
.kf-nav .wrap { display: flex; align-items: center; height: 68px; }
.kf-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: #12203c; }
.kf-logo .dot {
  width: 32px; height: 32px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; color: #fff; font-size: 15px;
  background: linear-gradient(135deg, #4f8bff 0%, #2f6bff 55%, #1d4fd8 100%); box-shadow: 0 6px 14px rgba(47,107,255,.35);
}
.kf-menu { display: flex; gap: 28px; margin-left: 38px; flex: 1; }
.kf-menu a { color: #5b6b84; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; transition: .18s; }
.kf-menu a:hover { color: #2f6bff; }
.kf-nav-rt { display: flex; align-items: center; gap: 12px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 22px; border-radius: 11px; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, #4f8bff 0%, #2f6bff 55%, #1d4fd8 100%); color: #fff; box-shadow: 0 10px 22px rgba(47,107,255,.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(47,107,255,.38); }
.btn-ghost { border-color: #e5eaf3; color: #12203c; background: #fff; }
.btn-ghost:hover { border-color: #2f6bff; color: #2f6bff; }
.btn-lg { height: 50px; padding: 0 32px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: #2f6bff; box-shadow: 0 10px 24px rgba(9,20,44,.25); }
.btn-light:hover { transform: translateY(-1px); }

/* ============ 首页首屏 ============ */
.hero {
  position: relative; overflow: hidden; padding: 92px 0 80px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(79,139,255,.16), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(47,107,255,.10), transparent 60%),
    linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%);
}
.hero .wrap { display: flex; align-items: center; gap: 56px; position: relative; z-index: 1; }
.hero-lt { flex: 1; }
.hero-rt { flex: 0 0 440px; display: flex; justify-content: flex-end; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid #e5eaf3; border-radius: 999px; padding: 7px 16px;
  font-size: 13px; color: #2f6bff; font-weight: 600;
  box-shadow: 0 8px 18px rgba(18,32,60,.06);
}
.hero h1 { font-size: 46px; line-height: 1.22; font-weight: 800; letter-spacing: -.5px; margin-top: 20px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #4f8bff 0%, #2f6bff 55%, #1d4fd8 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { margin-top: 18px; font-size: 17px; color: #5b6b84; }
.hero .btns { margin-top: 32px; display: flex; gap: 14px; }
.hero .tips { margin-top: 16px; font-size: 13px; color: #8b99b0; }

/* 聊天模拟卡（首页 + 登录页品牌区共用 .msg） */
.chat-card {
  width: 420px; max-width: 100%; background: #fff;
  border: 1px solid #e5eaf3; border-radius: 20px;
  box-shadow: 0 18px 44px rgba(18,32,60,.08); overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid #e5eaf3;
  background: linear-gradient(180deg, #fbfdff, #f4f8ff);
}
.chat-head .av {
  width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, #4f8bff 0%, #2f6bff 55%, #1d4fd8 100%);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.chat-head b { font-size: 15px; }
.chat-head .on { margin-left: auto; font-size: 12px; color: #16a34a; background: #e8f8ee; border-radius: 999px; padding: 3px 12px; }
.chat-head .on::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; margin-right: 6px; }
.chat-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 210px; }
.chat-body .msg, .ab-chat .msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.6; }
.msg.them { align-self: flex-start; background: #f1f5fb; border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, #4f8bff 0%, #2f6bff 55%, #1d4fd8 100%); color: #fff; border-bottom-right-radius: 4px; }
.chat-foot { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid #e5eaf3; background: #fbfcff; }
.chat-foot input {
  flex: 1; height: 42px; border: 1px solid #e5eaf3; border-radius: 10px;
  padding: 0 12px; font-size: 14px; outline: none; background: #fff;
}
.chat-foot button {
  height: 42px; padding: 0 18px; border: 0; border-radius: 10px;
  background: linear-gradient(135deg, #4f8bff 0%, #2f6bff 55%, #1d4fd8 100%); color: #fff; font-size: 14px; cursor: pointer;
}

/* ============ 通用区块 ============ */
.sec { padding: 74px 0; }
.sec.alt { background: #f6f8fc; }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 42px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; color: #2f6bff;
  background: #eef3ff; border-radius: 999px; padding: 5px 14px; margin-bottom: 14px;
}
.sec-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -.3px; }
.sec-head p { color: #5b6b84; margin-top: 10px; font-size: 15px; }

/* ============ 网格卡片 ============ */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid #e5eaf3; border-radius: 16px;
  padding: 26px; transition: .22s; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(18,32,60,.08); border-color: rgba(47,107,255,.35); }
.card .ico {
  width: 46px; height: 46px; border-radius: 13px; background: #eef3ff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: #5b6b84; font-size: 14px; }
.card code { background: #f1f5f9; border-radius: 5px; padding: 2px 7px; font-size: 13px; color: #be185d; word-break: break-all; }

/* ============ 步骤 ============ */
.steps { display: flex; gap: 22px; }
.step {
  flex: 1; background: #fff; border: 1px solid #e5eaf3;
  border-radius: 16px; padding: 28px 24px;
}
.step .no {
  width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #4f8bff 0%, #2f6bff 55%, #1d4fd8 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: #5b6b84; font-size: 14px; }

/* ============ 价格卡 ============ */
.price-card { padding-top: 30px; }
.price-card .tag {
  position: absolute; top: 18px; right: 18px;
  background: linear-gradient(135deg, #ff7a45, #ff5b2e);
  color: #fff; font-size: 12px; border-radius: 999px; padding: 3px 12px;
}
.price-card .pname { font-size: 15px; color: #5b6b84; }
.price-card .price { font-size: 38px; font-weight: 800; margin: 8px 0 16px; color: #12203c; }
.price-card .price small { font-size: 14px; color: #5b6b84; font-weight: 400; }
.price-card ul { list-style: none; margin: 0 0 22px; }
.price-card li { padding: 7px 0; border-bottom: 1px dashed #e5eaf3; color: #5b6b84; font-size: 14px; }
.price-card li::before { content: "✓"; color: #2f6bff; font-weight: 700; margin-right: 8px; }

/* ============ 资讯卡 ============ */
.news-item {
  background: #fff; border: 1px solid #e5eaf3; border-radius: 16px;
  padding: 24px; transition: .22s;
}
.news-item:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(18,32,60,.08); border-color: rgba(47,107,255,.35); }
.news-item h3 { font-size: 17px; line-height: 1.5; }
.news-item h3 a:hover { color: #2f6bff; }
.news-item p {
  color: #5b6b84; font-size: 14px; margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item .meta { margin-top: 14px; font-size: 13px; color: #93a1b8; }
/* 整卡可点击：标题链接铺满整张卡片（点摘要 / 阅读数也能进详情） */
.news-item { position: relative; }
.news-item h3 a::after { content: ""; position: absolute; inset: 0; }

/* ============ 内页头 ============ */
.page-head {
  padding: 62px 0 56px; text-align: center;
  background:
    radial-gradient(700px 300px at 80% -30%, rgba(79,139,255,.16), transparent 60%),
    linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%);
}
.page-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.3px; }
.page-head p { color: #5b6b84; margin-top: 10px; }

/* ============ 文章 ============ */
.article {
  background: #fff; border: 1px solid #e5eaf3; border-radius: 16px;
  padding: 40px 44px; box-shadow: 0 18px 44px rgba(18,32,60,.08);
}
.article h1 { font-size: 28px; line-height: 1.4; }
.article .meta {
  color: #93a1b8; font-size: 13px; padding-bottom: 18px;
  border-bottom: 1px solid #e5eaf3; margin: 12px 0 24px;
}
.article .content { font-size: 16px; line-height: 1.95; color: #28374f; }
.article .content h2 { font-size: 21px; margin: 26px 0 12px; }
.article .content h3 { font-size: 17px; margin: 20px 0 10px; }
.article .content p { margin: 12px 0; }
.article .content ol, .article .content ul { padding-left: 22px; margin: 12px 0; }
.article .content img { border-radius: 10px; }
.article .content code { background: #f1f5f9; border-radius: 5px; padding: 2px 7px; font-size: 13px; color: #be185d; }
.article-back { margin-top: 28px; padding-top: 20px; border-top: 1px solid #e5eaf3; }

/* ============ 联系卡 ============ */
.contact-card { text-align: center; }
.contact-card p { font-size: 15px; color: #12203c; font-weight: 600; word-break: break-all; }

/* ============ CTA 横幅 ============ */
.cta { padding-top: 0; }
.cta-box {
  background: radial-gradient(700px 300px at 15% -40%, rgba(255,255,255,.14), transparent 60%), linear-gradient(135deg, #4f8bff 0%, #2f6bff 55%, #1d4fd8 100%);
  border-radius: 22px; text-align: center; color: #fff; padding: 54px 30px;
  box-shadow: 0 24px 50px rgba(29,79,216,.3);
}
.cta-box h2 { font-size: 28px; font-weight: 800; }
.cta-box p { margin: 10px 0 26px; color: rgba(255,255,255,.88); }

/* ============ 页脚 ============ */
.kf-foot { background: #0d1830; color: #9fb0c6; padding: 60px 0 26px; }
.kf-foot .cols { display: flex; gap: 56px; }
.kf-foot .col { flex: 1; }
.kf-foot h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.kf-foot a, .kf-foot p { color: #9fb0c6; font-size: 14px; line-height: 2.1; display: block; }
.kf-foot a:hover { color: #fff; }
.kf-foot .btm { border-top: 1px solid #1c2b47; margin-top: 38px; padding-top: 20px; text-align: center; font-size: 13px; color: #66779a; }
.kf-foot .runinfo { display: block; margin-top: 8px; font-size: 12px; color: #4d5f80; }

/* ============ 登录 / 注册（分屏卡片） ============ */
.auth { display: flex; align-items: center; justify-content: center; min-height: 640px; background: #f6f8fc; padding: 48px 0 64px; }
.auth-in {
  display: flex; align-items: stretch; width: 1180px; max-width: 94%;
  background: #fff; border: 1px solid #e5eaf3; border-radius: 24px;
  overflow: hidden; box-shadow: 0 18px 44px rgba(18,32,60,.08);
}
.auth-brand {
  flex: 1 1 46%; display: flex; align-items: center; padding: 60px 56px; color: #fff;
  background:
    radial-gradient(800px 400px at 20% -20%, rgba(255,255,255,.16), transparent 60%),
    linear-gradient(135deg, #4f8bff 0%, #2f6bff 55%, #1d4fd8 100%);
}
.ab-in { max-width: 460px; }
.ab-in h2 { font-size: 32px; line-height: 1.35; font-weight: 800; }
.ab-in > p { margin-top: 14px; color: rgba(255,255,255,.85); font-size: 15px; }
.ab-list { list-style: none; margin-top: 26px; }
.ab-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 15px; color: rgba(255,255,255,.94); }
.ab-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: rgba(255,255,255,.16); display: inline-flex;
  align-items: center; justify-content: center; font-size: 16px;
}
.ab-chat { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }
.ab-chat .msg { box-shadow: 0 6px 16px rgba(9,20,44,.18); }
.ab-chat .msg.them { background: rgba(255,255,255,.16); color: #fff; }

.auth-main { flex: 1 1 54%; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card {
  width: 440px; max-width: 100%; background: #fff;
  border-radius: 18px; padding: 30px 34px;
}
.auth-tabs { display: flex; gap: 6px; background: #f6f8fc; border-radius: 12px; padding: 5px; margin-bottom: 26px; }
.auth-tab { flex: 1; text-align: center; font-size: 14px; color: #5b6b84; padding: 9px 0; border-radius: 9px; transition: .18s; }
.auth-tab:hover { color: #2f6bff; }
.auth-tab.on { background: #fff; color: #2f6bff; font-weight: 700; box-shadow: 0 4px 10px rgba(18,32,60,.08); }
.auth-panel { display: none; }
.auth-panel.on { display: block; }
.auth-panel h2 { font-size: 22px; }
.auth-panel .sub { color: #5b6b84; font-size: 14px; margin: 6px 0 22px; }
.fld { margin-bottom: 16px; }
.fld label { display: block; font-size: 13.5px; color: #5b6b84; margin-bottom: 7px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-ico { position: absolute; left: 13px; display: inline-flex; color: #9aa8be; pointer-events: none; }
.input-wrap input {
  width: 100%; height: 46px; border: 1px solid #e5eaf3; border-radius: 12px;
  padding: 0 42px 0 40px; font-size: 15px; outline: none; transition: .15s; background: #fbfcfe;
}
.input-wrap input:focus { border-color: #2f6bff; background: #fff; box-shadow: 0 0 0 3px rgba(47,107,255,.12); }
.toggle-pwd { position: absolute; right: 12px; cursor: pointer; color: #9aa8be; display: inline-flex; padding: 4px; }
.toggle-pwd:hover { color: #2f6bff; }
.toggle-pwd.see { color: #2f6bff; }
.auth-card .btn { margin-top: 8px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: #5b6b84; }
.auth-switch a { color: #2f6bff; font-weight: 600; }
.auth-tip { margin-top: 14px; font-size: 13px; color: #94a3b8; text-align: center; }

/* ============ 多语言演示页 ============ */
.demo-note {
  background: #fff; border: 1px solid #e5eaf3; border-radius: 14px;
  padding: 18px 20px; font-size: 14px; line-height: 1.9; color: #475569;
}
.demo-note b { color: #12203c; }
.demo-note code { background: #f1f5f9; border-radius: 5px; padding: 2px 7px; font-size: 13px; color: #be185d; }
.demo-note p { margin: 4px 0; }
.demo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.demo-lang { text-align: center; cursor: pointer; }
.demo-lang h3 { margin-bottom: 4px; }
.demo-lang p { font-size: 12.5px; color: #94a3b8; }
.demo-lang.is-cur { border-color: #2f6bff; box-shadow: 0 0 0 2px rgba(47,107,255,.18); }
.demo-lang.is-cur h3 { color: #2f6bff; }
.demo-lang.is-cur p { color: #2f6bff; }
.demo-cur { font-weight: 700; color: #2f6bff; }

/* ============ 资讯卡 v2（news 列表 / 相关阅读） ============ */
.news-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid #e5eaf3; border-radius: 16px;
  transition: .22s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(18,32,60,.08); border-color: rgba(47,107,255,.35); }
.news-card .nc-thumb {
  position: relative; display: block; height: 158px; overflow: hidden;
  background: linear-gradient(135deg, #4f8bff 0%, #2f6bff 55%, #1d4fd8 100%);
}
.news-card .nc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.news-card:hover .nc-thumb img { transform: scale(1.06); }
.news-card .nc-ph {
  position: absolute; inset: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; padding: 22px 24px; color: rgba(255,255,255,.92);
  font-size: 17px; font-weight: 700; line-height: 1.6;
  text-shadow: 0 2px 8px rgba(9,20,44,.25);
}
.news-card .nc-top {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: linear-gradient(135deg, #ff7a45, #ff5b2e);
  color: #fff; font-size: 12px; font-weight: 600;
  border-radius: 999px; padding: 3px 12px;
}
.news-card .nc-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 18px; }
.news-card .nc-date { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #93a1b8; margin-bottom: 8px; }
.news-card .nc-date b { font-weight: 600; color: #5b6b84; }
.news-card .nc-body h3 { font-size: 17px; line-height: 1.5; }
.news-card .nc-body h3 a:hover { color: #2f6bff; }
.news-card .nc-body p {
  color: #5b6b84; font-size: 14px; margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .nc-more { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 600; color: #2f6bff; }
/* 整卡可点击（资讯列表页）：标题链接铺满整张卡片 */
.news-card { position: relative; }
.news-card .nc-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.news-card:hover .nc-more { color: #1d4fd8; }

/* ============ 文章正文教程排版 ============ */
.article .content h2 {
  position: relative; padding-left: 14px; font-weight: 700;
}
.article .content h2::before {
  content: ""; position: absolute; left: 0; top: 7px; bottom: 7px;
  width: 4px; border-radius: 2px; background: linear-gradient(135deg, #4f8bff, #1d4fd8);
}
.article .content pre {
  background: #0d1830; color: #dbe7ff;
  border-radius: 12px; padding: 18px 20px; margin: 16px 0;
  overflow-x: auto; font-size: 13.5px; line-height: 1.8;
  font-family: Consolas, Monaco, "Courier New", monospace;
}
.article .content pre code {
  background: none; color: inherit; padding: 0; font-size: inherit; border-radius: 0;
}
.article .content blockquote {
  border-left: 4px solid #2f6bff; background: #f3f7ff;
  border-radius: 0 10px 10px 0; padding: 12px 18px; margin: 16px 0;
  color: #44546f;
}
.article .content blockquote p { margin: 6px 0; }
.article .content table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px;
}
.article .content th, .article .content td {
  border: 1px solid #e5eaf3; padding: 9px 13px; text-align: left;
}
.article .content th { background: #f6f8fc; font-weight: 700; color: #12203c; }
.article .content tr:nth-child(even) td { background: #fbfcfe; }
.article .content img { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: 14px auto; }
.article .content a { color: #2f6bff; }
.article .content a:hover { text-decoration: underline; }
.article .content hr { border: 0; border-top: 1px dashed #e5eaf3; margin: 22px 0; }

/* ============ 响应式 ============ */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { flex-direction: column; }
  .hero-rt { flex: none; width: 100%; justify-content: center; }
  .hero h1 { font-size: 34px; }
  .steps { flex-direction: column; }
  .auth-brand { display: none; }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .kf-menu { display: none; }
  .grid-3, .grid-4, .demo-grid { grid-template-columns: 1fr; }
  .article { padding: 26px 20px; }
  .auth-card { padding: 26px 20px; }
  .kf-foot .cols { flex-direction: column; gap: 26px; }
  .hero h1 { font-size: 29px; }
  .page-head h1 { font-size: 27px; }
}
