/* ==========================================================================
   名爵在线客服 内页骨架：服务台风 · 双栏对话 Hero + 能力四格 + 转接说明 + 响应承诺
   ========================================================================== */

:root {
  --cs-teal: #0d9488;
  --cs-teal-dk: #115e59;
  --cs-mint: #5eead4;
  --cs-bg: #f0fdfa;
  --cs-ink: #043a36;
  --cs-muted: #5a7a76;
  --cs-line: #b8e8e0;
}

body.cs-page {
  background: var(--cs-bg);
  color: var(--cs-ink);
}

.cs-page .brand-mark { background: linear-gradient(140deg, #2dd4bf, #0d9488); color: #f0fdfa; box-shadow: 0 6px 16px rgba(13, 148, 136, .3); }
.cs-page .brand-text em { color: var(--cs-teal); }
.cs-page .site-nav a.is-active { color: var(--cs-teal); }
.cs-page .site-nav a::after { background: var(--cs-teal); }
.cs-page .btn-login { background: linear-gradient(135deg, #14b8a6, #0f766e); box-shadow: 0 8px 20px rgba(13, 148, 136, .3); }
.cs-page .btn-login:hover { box-shadow: 0 12px 26px rgba(13, 148, 136, .4); }

/* ---------------- Hero：双栏对话 ---------------- */
.cs-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 96px;
  background:
    radial-gradient(720px 460px at 86% 10%, rgba(94, 234, 212, .28), transparent 64%),
    radial-gradient(560px 400px at 2% 98%, rgba(13, 148, 136, .14), transparent 70%),
    linear-gradient(180deg, #ffffff, var(--cs-bg));
}

.cs-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 52px;
  align-items: center;
}

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

.cs-hero .pill i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .18);
  animation: csPulse 2.2s infinite;
}

@keyframes csPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); }
  50% { box-shadow: 0 0 0 8px rgba(22, 163, 74, .05); }
}

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

.cs-hero h1 span {
  background: linear-gradient(100deg, #0d9488, #0f766e 60%, #134e4a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

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

.cs-page .btn-primary {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  color: #fff;
  box-shadow: 0 10px 26px rgba(13, 148, 136, .32);
}

.cs-page .btn-primary:hover { box-shadow: 0 14px 32px rgba(13, 148, 136, .42); }

/* 对话窗口卡 */
.cs-chat-wrap { position: relative; }

.cs-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-l);
  opacity: .3;
  filter: saturate(.7);
  pointer-events: none;
}

.cs-chat {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--cs-line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  overflow: hidden;
}

.cs-chat .chat-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: linear-gradient(140deg, #0f766e, #0d9488);
  color: #fff;
}

.cs-chat .chat-top .avatar {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .16);
  font-size: 20px;
}

.cs-chat .chat-top b { display: block; font-size: 15px; }

.cs-chat .chat-top span { display: block; font-size: 12px; color: var(--cs-mint); }

.cs-chat .chat-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: linear-gradient(180deg, #f8fdfc, #f0fdfa);
}

.cs-msg {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.65;
}

.cs-msg.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--cs-line);
  border-bottom-left-radius: 4px;
  color: var(--cs-ink);
}

.cs-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.cs-msg .time {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  opacity: .6;
}

.cs-chat .chat-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--cs-line);
  background: #fff;
}

.cs-chat .chat-foot input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--cs-line);
  border-radius: 10px;
  background: var(--cs-bg);
  font-size: 14px;
  color: var(--cs-ink);
}

.cs-chat .float-badge {
  position: absolute;
  right: -16px;
  top: 60px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--cs-teal-dk);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-m);
}

.cs-chat .float-badge small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--cs-mint);
  margin-top: 2px;
}

/* ---------------- 能力四格 ---------------- */
.cs-section { padding: 80px 0 0; }

.cs-head {
  max-width: 560px;
  margin-bottom: 40px;
}

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

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

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

.cs-cap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 70px;
}

.cs-cap > div {
  padding: 24px;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1px solid var(--cs-line);
  box-shadow: var(--shadow-s);
}

.cs-cap .ico {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(13, 148, 136, .1);
  font-size: 24px;
  margin-bottom: 14px;
}

.cs-cap h3 { font-size: 16px; font-weight: 800; margin-bottom: 7px; }

.cs-cap p { font-size: 13.5px; line-height: 1.7; color: var(--cs-muted); }

/* ---------------- 机器人 → 人工 转接 ---------------- */
.cs-route {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 70px;
}

.cs-route-card {
  padding: 30px;
  border-radius: var(--radius-l);
  background: #fff;
  border: 1px solid var(--cs-line);
  box-shadow: var(--shadow-s);
}

.cs-route-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 16px;
}

.cs-route-card h3 .tag {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
}

.cs-route-card.bot-card { background: linear-gradient(160deg, #f0fdfa, #ccfbf1); }
.cs-route-card.bot-card .tag { background: var(--cs-teal); color: #fff; }
.cs-route-card.human-card .tag { background: var(--cs-teal-dk); color: #fff; }

.cs-route-card li {
  position: relative;
  padding: 7px 0 7px 24px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--cs-muted);
}

.cs-route-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cs-teal);
  font-weight: 700;
}

.cs-route-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-radius: var(--radius-m);
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 14.5px;
  line-height: 1.6;
}

.cs-route-note i {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fef3c7;
  font-size: 20px;
  font-style: normal;
}

/* ---------------- 响应承诺 ---------------- */
.cs-promise {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin-bottom: 70px;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: linear-gradient(140deg, #134e4a, #0d9488);
  color: #fff;
}

.cs-promise > div {
  padding: 36px 30px;
  border-right: 1px solid rgba(255, 255, 255, .14);
}

.cs-promise > div:last-child { border-right: 0; }

.cs-promise b {
  display: block;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--cs-mint);
}

.cs-promise span { display: block; margin-top: 10px; font-size: 14.5px; color: rgba(230, 255, 251, .8); line-height: 1.6; }

/* ---------------- FAQ + CTA ---------------- */
.cs-faq .faq-acc { display: grid; gap: 12px; margin-bottom: 60px; }

.cs-faq .acc-item {
  background: #fff;
  border: 1px solid var(--cs-line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.cs-faq .acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--cs-ink);
  text-align: left;
}

.cs-faq .acc-trigger .sign {
  flex: none;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(13, 148, 136, .12);
  position: relative;
}

.cs-faq .acc-trigger .sign::before,
.cs-faq .acc-trigger .sign::after {
  content: "";
  position: absolute;
  background: var(--cs-teal);
  border-radius: 2px;
  transition: transform .25s;
}

.cs-faq .acc-trigger .sign::before { width: 12px; height: 2px; }
.cs-faq .acc-trigger .sign::after { width: 2px; height: 12px; }

.cs-faq .acc-item.is-open .sign::after { transform: rotate(90deg); opacity: 0; }

.cs-faq .acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}

.cs-faq .acc-item.is-open .acc-panel { grid-template-rows: 1fr; }

.cs-faq .acc-panel > div { overflow: hidden; }

.cs-faq .acc-panel p { padding: 0 24px 20px; font-size: 14.5px; line-height: 1.85; color: var(--cs-muted); }

.cs-faq .acc-panel a { color: var(--cs-teal); font-weight: 600; }

.cs-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  padding: 42px;
  border-radius: var(--radius-l);
  background: #fff;
  border: 1px solid var(--cs-line);
  box-shadow: var(--shadow-m);
}

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

.cs-cta p { color: var(--cs-muted); margin-top: 8px; font-size: 15px; }

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

.cs-cta .btn-primary {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  color: #fff;
  box-shadow: 0 10px 26px rgba(13, 148, 136, .32);
}

.cs-cta .tg {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: 12px;
  border: 1px solid var(--cs-line);
  color: var(--cs-ink);
  font-size: 15px;
  font-weight: 600;
  transition: all .2s;
}

.cs-cta .tg:hover { border-color: var(--cs-teal); background: var(--cs-bg); transform: translateY(-2px); }

/* ---------------- 动画 ---------------- */
[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) {
  .cs-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .cs-chat { max-width: 560px; }
  .cs-cap { grid-template-columns: 1fr 1fr; }
  .cs-route { grid-template-columns: 1fr; }
  .cs-promise { grid-template-columns: 1fr; }
  .cs-promise > div { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .cs-promise > div:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
  .cs-hero { padding: 52px 0 60px; }
  .cs-hero h1 { font-size: 32px; }
  .cs-cap { grid-template-columns: 1fr; }
  .cs-cta { flex-direction: column; text-align: center; align-items: center; }
  .cs-chat .float-badge { right: 10px; top: auto; bottom: -14px; }
}
