/* ============================================================
   小帆客服官网 · 绿色主题（取自品牌 logo 渐变 #4ee08a → #17a94e）
   ============================================================ */

:root {
  --green-300: #4ee08a;
  --green-500: #17a94e;
  --green-600: #129344;
  --green-50: #eafaf1;
  --ink-900: #101828;
  --ink-700: #344054;
  --ink-500: #667085;
  --ink-300: #98a2b3;
  --line: #e7ecf1;
  --bg-soft: #f6f9f7;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .07);
  --shadow-md: 0 10px 30px rgba(16, 24, 40, .09);
  --shadow-lg: 0 24px 60px rgba(18, 147, 68, .16);
  --radius: 16px;
  --grad: linear-gradient(135deg, var(--green-300), var(--green-500));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.container-narrow { width: min(820px, 92%); margin: 0 auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(23, 169, 78, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(23, 169, 78, .4); }
.btn-ghost {
  background: var(--white);
  color: var(--ink-700);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--green-500); color: var(--green-600); }
.btn-light { background: var(--white); color: var(--green-600); box-shadow: var(--shadow-md); }
.btn-light:hover { transform: translateY(-2px); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-xl { padding: 18px 42px; font-size: 18px; border-radius: 14px; }
.btn-nav { padding: 9px 20px; font-size: 14px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 36px; height: 36px; }
.brand-name { font-size: 19px; font-weight: 700; color: var(--ink-900); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a {
  color: var(--ink-700);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .15s ease;
}
.site-nav > a:not(.btn):hover { color: var(--green-600); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-900);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- 首屏 ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(78, 224, 138, .18), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(78, 224, 138, .12), transparent 60%),
    var(--white);
  padding: 84px 0 96px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--green-50);
  color: var(--green-600);
  border: 1px solid rgba(23, 169, 78, .25);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.5px;
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 22px 0 32px;
  font-size: 17px;
  color: var(--ink-500);
  max-width: 520px;
}
.hero-sub b { color: var(--green-600); font-weight: 700; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--ink-300);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-meta .dot { opacity: .6; }

/* 首屏手机模型 */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(360px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(1.5deg);
}
.phone-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--grad);
  color: var(--white);
}
.phone-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
  border: 2px solid rgba(255, 255, 255, .6);
}
.phone-title { display: flex; flex-direction: column; line-height: 1.3; }
.phone-title strong { font-size: 15px; }
.phone-title span { font-size: 12px; opacity: .9; }
.phone-status {
  margin-left: auto;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .5);
  font-size: 11px; font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .5px;
}
.phone-chat {
  background: #eef5f0;
  padding: 18px 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.msg time { display: block; font-size: 10.5px; color: var(--ink-300); margin-top: 5px; text-align: right; }
.msg-in {
  align-self: flex-start;
  background: var(--white);
  border-bottom-left-radius: 4px;
}
.msg-out {
  align-self: flex-end;
  background: #d9f6e4;
  border-bottom-right-radius: 4px;
}
.msg-trans {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed rgba(16, 24, 40, .14);
  font-size: 12.5px;
  color: var(--ink-500);
}
.msg-trans::before { content: "译 "; font-size: 10.5px; color: var(--green-600); font-weight: 700; }
.file-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
}
.float-tag {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  color: var(--ink-700);
  animation: floaty 4s ease-in-out infinite;
}
.tag-1 { top: 8%; right: 2%; animation-delay: .6s; }
.tag-2 { bottom: 6%; left: 0; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-tag { animation: none; }
}

/* ---------- 数据条 ---------- */
.stats { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 0;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 14px; color: var(--ink-500); }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.4px; }
.section-head p { margin-top: 10px; color: var(--ink-500); font-size: 16.5px; }

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad);
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 6px 14px rgba(23, 169, 78, .26);
}
.card-icon svg { width: 26px; height: 26px; color: #fff; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--ink-500); }

/* ---------- 联系咨询 ---------- */
.contact {
  background:
    radial-gradient(700px 340px at 50% -20%, rgba(78, 224, 138, .22), transparent 65%),
    var(--bg-soft);
  text-align: center;
}
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.contact > .container > p { margin-top: 12px; color: var(--ink-500); }
.qr-card {
  margin: 32px auto 0;
  width: min(300px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.qr-card img {
  width: 200px; height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.qr-card strong { margin-top: 12px; font-size: 16.5px; }
.qr-card span { font-size: 13px; color: var(--ink-300); }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow .15s ease;
}
.faq-item[open] { box-shadow: var(--shadow-md); border-color: rgba(23, 169, 78, .35); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--green-600);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; color: var(--ink-500); font-size: 15px; }

/* ---------- 底部 CTA ---------- */
.cta-band {
  background: var(--grad);
  padding: 64px 0;
  color: var(--white);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-inner h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; }
.cta-inner p { margin-top: 6px; opacity: .92; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0d1f15;
  color: rgba(255, 255, 255, .82);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand strong { font-size: 17px; color: var(--white); }
.footer-brand p { font-size: 13.5px; opacity: .75; }
.footer-copy { margin-top: 6px; font-size: 12.5px; opacity: .55; }
.footer-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.footer-qr img {
  width: 88px; height: 88px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
  padding: 5px;
}
.footer-qr span { font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.footer-qr:hover span { color: #fff; }

/* ---------- 文章页 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.article-wrap { width: min(800px, 92%); margin: 0 auto; padding: 46px 0 72px; }
.breadcrumb { font-size: 13.5px; color: var(--ink-300); margin-bottom: 24px; }
.breadcrumb a { color: var(--green-600); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article h1 { font-size: clamp(25px, 3.4vw, 34px); line-height: 1.38; letter-spacing: -.3px; }
.article-meta { margin: 14px 0 32px; font-size: 13.5px; color: var(--ink-300); }
.article h2 { font-size: 21px; margin: 40px 0 14px; padding-left: 12px; border-left: 4px solid var(--green-500); line-height: 1.45; }
.article h3 { font-size: 17px; margin: 26px 0 10px; }
.article p, .article li { font-size: 15.5px; color: var(--ink-700); line-height: 1.92; }
.article p { margin: 0 0 14px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 16px; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--ink-900); }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 14.5px; }
.article th, .article td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article th { background: var(--green-50); color: var(--ink-900); }
.article-cta {
  margin-top: 46px;
  padding: 28px 24px;
  background: linear-gradient(135deg, rgba(78, 224, 138, .12), rgba(23, 169, 78, .10));
  border: 1px solid rgba(23, 169, 78, .25);
  border-radius: 16px;
  text-align: center;
}
.article-cta p { font-size: 16.5px; font-weight: 700; color: var(--ink-900); margin-bottom: 16px; }
.article-more { margin-top: 38px; }
.article-more h3 { font-size: 16px; margin-bottom: 6px; }
.article-more a {
  display: block;
  padding: 12px 0;
  color: var(--ink-700);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px dashed var(--line);
}
.article-more a:hover { color: var(--green-600); }
.article-card { display: block; text-decoration: none; }
.article-card h3 { color: var(--ink-900); }
.article-card .read-more { display: inline-block; margin-top: 12px; color: var(--green-600); font-size: 14px; font-weight: 600; }

/* ---------- 功能详情页 ---------- */
.feature-visual { display: flex; justify-content: center; margin: 34px 0 14px; position: relative; }
.mock-tag {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  color: var(--ink-700);
}
.subfeatures { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0 8px; }
.subfeature { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow-sm); }
.subfeature h3 { font-size: 16.5px; margin-bottom: 8px; }
.subfeature p { font-size: 14.5px; color: var(--ink-500); margin: 0; line-height: 1.8; }
.usecase { margin: 28px 0; padding: 22px 24px; background: var(--green-50); border-radius: 14px; }
.usecase h3 { font-size: 16.5px; margin-bottom: 10px; color: var(--green-600); }
.usecase p { margin: 0 0 10px; }
.usecase p:last-child { margin-bottom: 0; }
.feature-faq dt { font-weight: 700; margin-top: 20px; font-size: 15.5px; color: var(--ink-900); }
.feature-faq dd { margin: 6px 0 0; color: var(--ink-500); font-size: 15px; line-height: 1.85; }
.doc-mock { width: min(430px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 24px; }
@media (min-width: 900px) {
  .doc-mock, .list-mock { margin-left: 110px; }
}
.doc-mock h4 { font-size: 17px; border-bottom: 2px solid var(--ink-900); padding-bottom: 10px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.doc-mock h4 small { font-size: 12px; color: var(--ink-300); font-weight: 400; }
.doc-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.doc-row span:first-child { color: var(--ink-300); flex-shrink: 0; }
.doc-row span:last-child { font-weight: 600; text-align: right; }
.list-mock { width: min(430px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px; }
.list-mock h4 { font-size: 13px; color: var(--ink-300); padding: 4px 6px 10px; font-weight: 600; letter-spacing: .5px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.list-row:last-child { border-bottom: none; }
.list-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--green-50); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.list-row strong { display: block; font-size: 14px; line-height: 1.4; }
.list-row small { color: var(--ink-300); font-size: 12px; }
.badge { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--green-50); color: var(--green-600); flex-shrink: 0; }
.badge.blue { background: #eaf2fe; color: #2f6df6; }
.badge.orange { background: #fef3e6; color: #c97a10; }
.badge.gray { background: #f1f4f8; color: var(--ink-500); }
.feature-card { display: block; text-decoration: none; }
.feature-card h3 { color: var(--ink-900); }
.feature-card .read-more { display: inline-block; margin-top: 12px; color: var(--green-600); font-size: 14px; font-weight: 600; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 980px) {
  .hero { padding: 56px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-sub { max-width: none; }
  .hero-visual { transform: scale(.96); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 26px 0; }
  .section { padding: 64px 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 4vw 18px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { padding: 13px 6px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .btn-nav { margin-top: 14px; justify-content: center; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .subfeatures { grid-template-columns: 1fr; }
  .mock-tag { display: none; }
  .float-tag { display: none; }
  .phone { transform: none; }
  .cta-inner { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}
