/* ==========================================================================
   微信数字员工 — 样式
   结构照秒哒模版「NestSpace 全屋储物」；在模版骨架上加了配色点缀
   主深色 #356069 ｜ 绿 #047857 ｜ 橙 #d97706 ｜ 靛 #4f46e5 ｜ 页底 #f5f6f4
   ========================================================================== */

:root {
  --bg:        #f5f6f4;
  --card:      #ffffff;
  --line:      #e8eae7;
  --line-2:    #dfe3df;
  --ink:       #273530;
  --ink-2:     #59645d;
  --muted:     #6f7772;

  --brand:     #356069;
  --brand-2:   #2b4f57;

  --g-50: #f8fdfb;  --g-100: #d1fae5; --g-200: #a7f3d0; --g-600: #059669; --g-700: #047857;
  --o-50: #fffcf7;  --o-100: #fef3c7; --o-200: #fde4b8; --o-600: #d97706; --o-700: #b45309;
  --i-50: #fafaff;  --i-100: #e0e7ff; --i-200: #c7d2fe; --i-600: #4f46e5; --i-700: #4338ca;
  --t-600: #0d9488;

  --radius:    26px;
  --radius-sm: 18px;
  --shadow:    0 1px 3px rgba(24, 40, 34, .05);
  --maxw:      1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 顶部彩色渐变条 */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 100;
  pointer-events: none;
  background: linear-gradient(90deg, #047857, #059669 20%, #0d9488 40%, #356069 62%, #4f46e5 82%, #d97706);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease,
              border-color .16s ease, filter .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .ico { width: 18px; height: 18px; flex: none; }

.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-2); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: #c6cfc9; }

.btn-sm { padding: 10px 18px; font-size: 14.5px; }

/* ===================== 顶部导航 ===================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.2px;
  flex: none;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 10px;
  flex: 1;
  min-width: 0;
}
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease;
}
.nav a svg { width: 16px; height: 16px; flex: none; color: var(--navi, var(--ink-2)); }
.nav a:hover { color: var(--ink); background: #f0f2f0; }
.nav a.active { background: #e9ecea; color: var(--ink); font-weight: 700; }

/* 给每个导航项一个点缀色 */
.nav a:nth-child(1) { --navi: #356069; }
.nav a:nth-child(2) { --navi: #047857; }
.nav a:nth-child(3) { --navi: #4f46e5; }
.nav a:nth-child(4) { --navi: #d97706; }
.nav a:nth-child(5) { --navi: #0d9488; }
.nav a:nth-child(6) { --navi: #e11d48; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: auto;
}

/* 联系微信按钮（淡绿） */
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 19px;
  border-radius: 999px;
  border: 1px solid #b9ead0;
  background: #ecfaf2;
  color: var(--g-700);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.contact-btn svg { width: 17px; height: 17px; flex: none; }
.contact-btn:hover { background: #d9f4e6; border-color: #8adcb4; transform: translateY(-1px); }

/* 立即下载卡片（渐变） */
.dl-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 22px 8px 10px;
  border-radius: 999px;
  min-width: 196px;
  background: linear-gradient(120deg, #047857 0%, #0d9488 52%, #356069 100%);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(4, 120, 87, .6);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.dl-card:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 13px 26px -8px rgba(4, 120, 87, .66); }
.dl-card-ico {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-card-ico svg { width: 19px; height: 19px; color: #fff; }
.dl-card-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.dl-card-txt b { font-size: 15px; font-weight: 800; letter-spacing: .2px; white-space: nowrap; }
.dl-card-txt i { font-style: normal; font-size: 11px; letter-spacing: .1px; opacity: .88; margin-top: 3px; white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); }

/* ===================== 首屏卡 ===================== */
main { padding: 28px 0 0; }

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(168deg, #ffffff 0%, #fbfdfc 52%, #f4fbf8 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(24, 40, 34, .05), 0 20px 44px -34px rgba(4, 120, 87, .55);
  padding: 40px 44px 36px;
  scroll-margin-top: 100px;
}
.hero::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(13, 148, 136, .13), rgba(13, 148, 136, 0) 72%);
  pointer-events: none;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid #c3ebd8;
  background: linear-gradient(90deg, #eafaf1, #e9f5f9);
  color: var(--g-700);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .3px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g-600);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .16);
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -.6px;
  line-height: 1.25;
}
.hero-copy p {
  margin: 0;
  max-width: 600px;
  color: var(--muted);
  font-size: 15px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: none;
  min-width: 176px;
}

.hero-divider {
  height: 1px;
  background: linear-gradient(90deg, #d8ece3, var(--line) 45%, #e0e8ef);
  margin: 30px 0 26px;
}

/* —— 数据条：模版里是首屏卡内部的一行四格，这里每格给了个点缀色 —— */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  border: 1px solid var(--stbd, transparent);
  border-radius: var(--radius-sm);
  background: var(--stbg, #f3f5f3);
  padding: 16px 14px 18px;
  text-align: center;
}
.stat:nth-child(1) { --st: #356069; --stbg: #eef6f7; --stbd: #cfe4e7; }
.stat:nth-child(2) { --st: #047857; --stbg: #eefbf4; --stbd: #bdf0d6; }
.stat:nth-child(3) { --st: #b45309; --stbg: #fff8ec; --stbd: #fbe3b6; }
.stat:nth-child(4) { --st: #4f46e5; --stbg: #f2f3ff; --stbd: #d3d8ff; }

.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}
.stat strong {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -.4px;
  color: var(--st, var(--ink));
}

/* ===================== 区块通用 ===================== */
.block {
  margin-top: 46px;
  scroll-margin-top: 92px;
}
.block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.block-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 800;
  letter-spacing: -.4px;
}
.block-head h2::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 3px;
  background: var(--acc, #047857);
  flex: none;
}
.block-head p {
  margin: 0 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}
.head-link {
  flex: none;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 2px;
  transition: color .16s ease;
}
.head-link em { font-style: normal; }
.head-link:hover { color: var(--acc, var(--brand)); }

#capability { --acc: #047857; }
#ai         { --acc: #4f46e5; }
#addfriend  { --acc: #d97706; }
#more       { --acc: #0d9488; }

/* ===================== 三张彩色能力卡 ===================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  border-radius: 22px;
  border: 1px solid;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(24, 40, 34, .04);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.card-icon svg { width: 23px; height: 23px; }

.card-badge {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.card h3 {
  margin: 20px 0 9px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.3px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
}
.card-divider { height: 1px; margin: 20px 0 18px; }

.card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: stretch;
  padding: 12px 22px;
  border-radius: 999px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  transition: filter .16s ease, transform .16s ease;
}
.card-btn em { font-style: normal; }
.card-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }

/* 绿色卡 */
.card-green  { background: var(--g-50); border-color: var(--g-200); }
.card-green .card-icon  { background: var(--g-100); color: var(--g-700); }
.card-green .card-badge { background: var(--g-100); border-color: var(--g-200); color: var(--g-700); }
.card-green .card-divider { background: var(--g-200); }
.card-green .card-btn { background: linear-gradient(135deg, #047857, #059669); }

/* 橙色卡 */
.card-orange { background: var(--o-50); border-color: var(--o-200); }
.card-orange .card-icon  { background: var(--o-100); color: var(--o-700); }
.card-orange .card-badge { background: var(--o-100); border-color: var(--o-200); color: var(--o-700); }
.card-orange .card-divider { background: var(--o-200); }
.card-orange .card-btn { background: linear-gradient(135deg, #d97706, #f59e0b); }

/* 靛紫卡 */
.card-indigo { background: var(--i-50); border-color: var(--i-200); }
.card-indigo .card-icon  { background: var(--i-100); color: var(--i-700); }
.card-indigo .card-badge { background: var(--i-100); border-color: var(--i-200); color: var(--i-700); }
.card-indigo .card-divider { background: var(--i-200); }
.card-indigo .card-btn { background: linear-gradient(135deg, #4f46e5, #6366f1); }

/* ===================== 四列小格 ===================== */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tile {
  background: var(--tbg, var(--card));
  border: 1px solid var(--tbd, var(--line));
  border-radius: 18px;
  padding: 18px 19px 20px;
  box-shadow: var(--shadow);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.tile:hover {
  transform: translateY(-2px);
  border-color: var(--tc, var(--line-2));
  box-shadow: 0 10px 22px -14px rgba(24, 40, 34, .35);
}
.tile b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
}
.tile b::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tc, var(--g-700));
  flex: none;
}
.tile span { color: var(--muted); font-size: 13px; line-height: 1.55; }

.tile:nth-child(4n+1) { --tc: #047857; --tbg: #f3fbf7; --tbd: #d8efe3; }
.tile:nth-child(4n+2) { --tc: #0d9488; --tbg: #f1fbfa; --tbd: #d2eeea; }
.tile:nth-child(4n+3) { --tc: #d97706; --tbg: #fffaf1; --tbd: #f6e5c6; }
.tile:nth-child(4n+4) { --tc: #4f46e5; --tbg: #f6f6ff; --tbd: #dfe1fb; }

/* ===================== 更多模块：虚线区 ===================== */
.ghost-box {
  border: 1.5px dashed #cfdcd5;
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfdfc, #f5faf7);
  padding: 34px 28px 32px;
  text-align: center;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 800px;
  margin: 0 auto 22px;
}
.chips li {
  padding: 7px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
}
.chips li:nth-child(4n+1) { background: #f2fbf6; border-color: #c9eed8; color: var(--g-700); }
.chips li:nth-child(4n+2) { background: #f0fbfa; border-color: #bdeae5; color: #0f766e; }
.chips li:nth-child(4n+3) { background: #fffaf1; border-color: #fbdfb4; color: var(--o-700); }
.chips li:nth-child(4n+4) { background: #f4f4ff; border-color: #d5d7fb; color: var(--i-700); }

.ghost-text {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}
.ghost-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ===================== 页脚 ===================== */
.footer {
  margin-top: 54px;
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13.5px;
  flex-wrap: wrap;
}
.footer-left a { font-weight: 700; color: var(--g-700); cursor: pointer; }
.footer-left a:hover { text-decoration: underline; }

.footer-tags {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-tags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13.5px;
}
.footer-tags svg { width: 16px; height: 16px; }
.footer-tags li:nth-child(1) svg { color: var(--g-700); }
.footer-tags li:nth-child(2) svg { color: var(--i-600); }
.footer-tags li:nth-child(3) svg { color: #0d9488; }

/* 备案信息预留区：只留位置，备案号待填写（网站备案 + 公安备案各一条）
   填内容后自动撑开，无需改样式 */
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  min-height: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 20px;
  color: var(--muted);
  text-align: center;
}
.footer-legal .legal-item { display: inline-block; }
.footer-legal a { color: inherit; transition: color .16s ease; }
.footer-legal a:hover { color: var(--g-700); }

/* ===================== 悬浮加微信 ===================== */
.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #047857, #0d9488);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(4, 120, 87, .7);
  transition: transform .16s ease, filter .16s ease;
}
.fab:hover { transform: translateY(-2px); filter: brightness(1.07); }
.fab svg { width: 19px; height: 19px; }

/* ===================== 二维码弹窗 ===================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 28, .5);
  backdrop-filter: blur(2px);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 326px;
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(20, 32, 28, .28);
  animation: pop .2s ease;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.modal-panel > img {
  width: 100%;
  max-width: 236px;
  margin: 0 auto 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.modal-title { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.modal-hint { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f1;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: #e6e9e6; }

/* ===================== 响应式 ===================== */
/* 导航放不下就收进汉堡菜单：
   容器宽 1200（内容区 1152），导航满配约需 1130px，留些余量，断点定在 1200px */
@media (max-width: 1200px) {
  .topbar-inner { position: relative; }
  .nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px 20px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(24, 40, 34, .08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 14px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 1040px) {
  .cards { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  /* 窄屏：联系微信收成圆形图标按钮，下载卡片去掉副标题 */
  .contact-btn { width: 42px; height: 42px; padding: 0; }
  .dl-card { min-width: 0; }
  .contact-btn span { display: none; }
  .dl-card-txt i { display: none; }
}

@media (max-width: 820px) {
  .hero { padding: 26px 22px 24px; }
  .hero-top { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero-cta { flex-direction: row; flex-wrap: wrap; min-width: 0; width: 100%; }
  .hero-divider { margin: 24px 0 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat { padding: 14px 10px 15px; }
  .block-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-tags { gap: 14px; }
  .ghost-box { padding: 26px 18px 26px; }
  .fab { right: 16px; bottom: 16px; padding: 11px 17px; }
}

@media (max-width: 460px) {
  .brand span { font-size: 16px; }
  .topbar-inner { gap: 8px; }
  .dl-card { padding: 7px 16px 7px 8px; gap: 9px; }
  .dl-card-ico { width: 30px; height: 30px; }
  .btn { padding: 11px 18px; }
  .grid-4 { grid-template-columns: 1fr; }
  .modal-panel { max-width: 100%; }
}
