/* ============================================================
   im-service.css · 在线客服系统页专属样式
   独有布局：实景照片 + 悬浮 CSS 聊天气泡窗 / 接入方式三卡 /
            关键词规则表 / 虚线访客旅程 / 本地落地双栏
   ============================================================ */

/* ---------- 首屏 ---------- */
.im-hero {
  padding: calc(var(--header-h) + 40px) 0 72px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 55%, var(--yellow-1) 130%);
}

.im-hero-blob {
  position: absolute;
  right: -120px;
  top: -80px;
  width: 420px;
  height: 420px;
  border-radius: 46% 54% 60% 40% / 50% 44% 56% 50%;
  background: var(--green-1);
  opacity: 0.55;
  z-index: 0;
}

.im-hero-in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.im-eyebrow {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--r-pill);
  background: var(--green-1);
  color: var(--green-deeper);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.im-title {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.25;
  margin-bottom: 18px;
}

.im-title em {
  font-style: normal;
  color: var(--amber);
}

.im-sub {
  color: var(--ink-2);
  font-size: 16px;
  margin-bottom: 26px;
}

.im-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.im-hero-note {
  font-size: 14px;
  color: var(--ink-3);
}

.im-hero-visual {
  position: relative;
}

.im-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.im-photo img {
  width: 100%;
}

/* CSS 聊天窗口示意：压在照片左下角 */
.im-chat {
  position: absolute;
  left: -28px;
  bottom: -44px;
  width: 78%;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
  animation: imFloat 4.5s ease-in-out infinite;
}

@keyframes imFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.im-chat-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px dashed var(--line);
  background: var(--cream-2);
  border-radius: var(--r-md) var(--r-md) 0 0;
}

.im-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-2);
}

.im-dot:nth-child(2) { background: var(--yellow-2); }
.im-dot:nth-child(3) { background: var(--amber); }

.im-chat-title {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.im-chat-body {
  padding: 16px;
}

.im-msg {
  max-width: 88%;
  padding: 9px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  margin-bottom: 10px;
  line-height: 1.55;
}

.im-msg-in {
  background: var(--green-1);
  color: var(--ink);
  border-bottom-left-radius: 5px;
}

.im-msg-out {
  background: var(--yellow-1);
  margin-left: auto;
  border-bottom-right-radius: 5px;
}

.im-quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.im-quick span {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--green-2);
  color: var(--green-deeper);
  background: #fff;
}

/* ---------- 板块一：接入方式三卡 ---------- */
.im-ways {
  background: var(--cream);
}

.im-way-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.im-way {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 28px 30px;
  position: relative;
  transition: all 0.32s ease;
}

.im-way:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
  border-color: var(--green-2);
}

.im-way-mid {
  background: linear-gradient(170deg, var(--green-1) 0%, #fff 45%);
}

.im-way-no {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.im-way h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.im-way p {
  font-size: 14.5px;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.im-way-list li {
  font-size: 13.5px;
  color: var(--ink-2);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.im-way-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-3);
}

/* ---------- 板块二：自动回复规则 ---------- */
.im-auto {
  background: var(--cream-2);
}

.im-auto-in {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 52px;
  align-items: center;
}

.im-auto-p {
  color: var(--ink-2);
  margin: 14px 0 24px;
}

.im-rules {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.im-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 2px dashed var(--yellow-3);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: 13.5px;
}

.im-rule-k {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--green-deeper);
  background: var(--green-1);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
}

.im-rule-arrow {
  color: var(--amber);
  font-weight: 700;
}

.im-rule-v {
  color: var(--ink-2);
}

.im-auto-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-3);
}

.im-auto-photo {
  position: relative;
}

.im-auto-photo img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  width: 100%;
}

.im-photo-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
}

/* ---------- 板块三：访客旅程 ---------- */
.im-journey {
  background:
    radial-gradient(circle at 12% 20%, var(--green-1) 0, transparent 34%),
    var(--cream);
}

.im-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}

.im-flow-node {
  background: #fff;
  border-radius: var(--r-md);
  border: 2px solid var(--line);
  padding: 26px 22px;
  position: relative;
  transition: all 0.3s ease;
}

.im-flow-node:hover {
  border-color: var(--amber);
  transform: translateY(-6px);
}

.im-flow-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 8px 18px rgba(95, 133, 88, 0.3);
}

.im-flow-node h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.im-flow-node p {
  font-size: 13.5px;
  color: var(--ink-2);
}

.im-flow-note {
  margin-top: 30px;
  text-align: center;
  color: var(--ink-2);
  font-size: 14.5px;
}

/* ---------- 板块四：本地落地 ---------- */
.im-local {
  background: var(--cream-2);
}

.im-local-in {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 52px;
  align-items: center;
}

.im-local-photo img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  width: 100%;
}

.im-local-copy h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 16px;
}

.im-local-copy p {
  color: var(--ink-2);
  margin-bottom: 14px;
}

/* ---------- 板块五：收费说明 ---------- */
.im-price-note {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 2px dashed var(--green-3);
  border-radius: var(--r-lg);
  padding: 30px 36px;
}

.im-price-note p {
  color: var(--ink-2);
  margin-bottom: 12px;
}

.im-price-note p:last-child {
  margin-bottom: 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .im-hero-in {
    grid-template-columns: 1fr;
    gap: 70px;
  }
  .im-chat {
    width: 60%;
    left: 0;
  }
  .im-auto-in,
  .im-local-in {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 900px) {
  .im-way-grid {
    grid-template-columns: 1fr;
  }
  .im-flow {
    grid-template-columns: 1fr 1fr;
  }
  .im-chat {
    width: 78%;
    left: 0;
    bottom: -30px;
  }
}

@media (max-width: 640px) {
  .im-hero {
    padding: calc(var(--header-h) + 26px) 0 56px;
  }
  .im-flow {
    grid-template-columns: 1fr;
  }
  .im-chat {
    position: static;
    width: 100%;
    margin-top: 18px;
    animation: none;
  }
  .im-rule {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .im-price-note {
    padding: 22px 20px;
  }
}
