/* ==========================================================================
   名爵客服 内页骨架：会话模拟风 · 蓝绿客服色 · 聊天卡片 Hero + 承诺 + 通道
   ========================================================================== */

:root {
  --kf-teal: #0f766e;
  --kf-teal-dk: #115e59;
  --kf-cyan: #06b6d4;
  --kf-ink: #134e4a;
  --kf-muted: #5b7571;
  --kf-paper: #f0fbf9;
  --kf-line: #d3ebe7;
}

body.kefu-page {
  background: var(--kf-paper);
  color: var(--kf-ink);
}

.kefu-page .brand-mark {
  background: linear-gradient(140deg, var(--kf-teal), var(--kf-cyan));
  color: #ecfeff;
  box-shadow: 0 6px 16px rgba(15, 118, 110, .3);
}
.kefu-page .brand-text em { color: var(--kf-teal); }
.kefu-page .site-nav a.is-active { color: var(--kf-teal); }
.kefu-page .site-nav a::after { background: var(--kf-cyan); }
.kefu-page .btn-login {
  background: linear-gradient(135deg, var(--kf-teal), var(--kf-cyan));
  box-shadow: 0 8px 20px rgba(15, 118, 110, .3);
}
.kefu-page .btn-login:hover { box-shadow: 0 12px 26px rgba(15, 118, 110, .4); }
.kefu-page .footer-col a:hover { color: var(--kf-cyan); }
.kefu-page .footer-contact a:hover { border-color: var(--kf-cyan); background: rgba(6, 182, 212, .08); }

/* ---------------- Hero ---------------- */
.kf-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 92px;
  background:
    radial-gradient(720px 460px at 86% 8%, rgba(6, 182, 212, .16), transparent 64%),
    radial-gradient(560px 400px at 0% 100%, rgba(15, 118, 110, .08), transparent 70%),
    linear-gradient(180deg, #f2fdfb, var(--kf-paper));
}

.kf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 118, 110, .08) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, #000 40%);
  pointer-events: none;
}

.kf-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.kf-hero .pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--kf-line);
  box-shadow: var(--shadow-s);
  font-size: 13px;
  font-weight: 700;
  color: var(--kf-teal);
}

.kf-hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.6px;
}

.kf-hero h1 span {
  background: linear-gradient(100deg, var(--kf-cyan), var(--kf-teal) 60%, var(--kf-teal-dk));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kf-hero .lead {
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--kf-muted);
  max-width: 500px;
}

.kf-hero .lead strong { color: var(--kf-ink); }

.kf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.kefu-page .btn-primary {
  background: linear-gradient(135deg, var(--kf-cyan), var(--kf-teal));
  color: #fff;
  box-shadow: 0 10px 26px rgba(15, 118, 110, .32);
}

.kefu-page .btn-primary:hover { box-shadow: 0 14px 32px rgba(15, 118, 110, .42); }

.kefu-page .btn-room {
  background: #fff;
  border-color: var(--kf-line);
  color: var(--kf-teal);
}

/* 聊天模拟卡片 */
.kf-chat {
  position: relative;
  max-width: 420px;
  width: 100%;
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--kf-line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--kf-teal-dk), var(--kf-teal));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.chat-head small { font-size: 12px; font-weight: 600; opacity: .9; }

.chat-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
}

.bubble {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
}

.bubble.bot {
  align-self: flex-start;
  background: var(--kf-paper);
  border: 1px solid var(--kf-line);
  border-bottom-left-radius: 4px;
  color: var(--kf-ink);
}

.bubble.me {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--kf-teal), var(--kf-cyan));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble.typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 16px;
}

.bubble.typing span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--kf-teal);
  opacity: .4;
  animation: kfDots 1.2s infinite;
}

.bubble.typing span:nth-child(2) { animation-delay: .2s; }
.bubble.typing span:nth-child(3) { animation-delay: .4s; }

@keyframes kfDots {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

.chat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-top: 1px solid var(--kf-line);
  background: #fff;
  font-size: 13px;
  color: var(--kf-muted);
}

.chat-foot .tg-mini {
  font-weight: 700;
  color: var(--kf-teal);
}

/* ---------------- 通用 section ---------------- */
.kf-section { padding: 78px 0 0; }

.kf-head {
  max-width: 560px;
  margin-bottom: 44px;
}

.kf-head .k {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 2.4px;
  color: var(--kf-teal);
  margin-bottom: 12px;
}

.kf-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; letter-spacing: -.4px; }

.kf-head p { margin-top: 12px; color: var(--kf-muted); font-size: 15.5px; }

/* ---------------- 承诺 ---------------- */
.kf-promise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 70px;
}

.pr-item {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius-l);
  background: #fff;
  border: 1px solid var(--kf-line);
  box-shadow: var(--shadow-s);
  overflow: hidden;
}

.pr-num {
  display: inline-block;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(100deg, var(--kf-cyan), var(--kf-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.pr-item h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }

.pr-item p { font-size: 13.5px; line-height: 1.7; color: var(--kf-muted); }

/* ---------------- 通道 ---------------- */
.kf-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 70px;
}

.ch-card {
  padding: 30px 28px;
  border-radius: var(--radius-l);
  background: #fff;
  border: 1px solid var(--kf-line);
  box-shadow: var(--shadow-s);
  transition: transform .24s, box-shadow .24s, border-color .24s;
}

.ch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(15, 118, 110, .16);
  border-color: var(--kf-cyan);
}

.ch-card.tg {
  background: linear-gradient(160deg, #fff, #f2fdfb);
  border-color: rgba(6, 182, 212, .35);
}

.ch-ico {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 26px;
  margin-bottom: 16px;
  background: rgba(15, 118, 110, .09);
}

.ch-card h3 { font-size: 18px; font-weight: 900; margin-bottom: 8px; }

.ch-card p { font-size: 14px; line-height: 1.75; color: var(--kf-muted); }

.ch-card a { color: var(--kf-teal); font-weight: 700; }
.ch-card a:hover { text-decoration: underline; }

/* ---------------- 相关 ---------------- */
.kf-related {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 70px;
}

.kf-related a {
  display: block;
  padding: 22px 22px;
  background: #fff;
  border: 1px solid var(--kf-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  transition: transform .22s, box-shadow .22s;
}

.kf-related a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 118, 110, .16);
  border-color: var(--kf-cyan);
}

.kf-related strong { display: block; font-size: 15px; font-weight: 800; margin-bottom: 4px; }

.kf-related span { font-size: 13px; color: var(--kf-muted); }

/* ---------------- CTA ---------------- */
.kf-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  padding: 42px;
  border-radius: var(--radius-l);
  background: linear-gradient(140deg, var(--kf-teal-dk), var(--kf-teal));
  color: #fff;
  box-shadow: var(--shadow-m);
}

.kf-cta h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 900; }

.kf-cta p { color: rgba(255, 255, 255, .82); margin-top: 8px; font-size: 15px; }

.kf-cta .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.kf-cta .btn-primary {
  background: #fff;
  color: var(--kf-teal-dk);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.kf-cta .btn-room {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .4);
  color: #ecfeff;
}

/* ---------------- 动画 ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .kf-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .kf-chat { max-width: 460px; margin-left: 0; }
  .kf-promise { grid-template-columns: 1fr; }
  .kf-channels { grid-template-columns: 1fr; }
  .kf-related { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .kf-hero { padding: 52px 0 60px; }
  .kf-hero h1 { font-size: 32px; }
  .kf-related { grid-template-columns: 1fr; }
  .kf-cta { flex-direction: column; text-align: center; align-items: center; }
}
