/* ============================================================
   吉客π.AI自动化 — 首页样式
   ============================================================ */

/* hidden 属性兜底：类选择器设置 display 时会压过浏览器默认的
   [hidden]{display:none}，导致 toggle hidden 关不掉（如视频弹层） */
[hidden] { display: none !important; }

:root {
  --bg: #ffffff;
  --ink: #0f1319;
  --ink-soft: #2b3240;
  --muted: #6b7280;
  --muted-2: #9aa3b2;
  --line: #ecedf0;
  --line-strong: #dfe2e8;

  --hero-bg: #161d2c;
  --hero-bg-2: #1b2233;

  --accent: #6d5cf6;
  --accent-soft: #f1efff;
  --orange: #f59e0b;

  --container: 1680px;
  --gutter: clamp(24px, 3.2vw, 60px);
  --radius-lg: 18px;
  --radius-md: 14px;

  --shadow-sm: 0 1px 2px rgba(15, 19, 25, .05);
  --shadow-md: 0 10px 26px -12px rgba(15, 19, 25, .18);
  --shadow-lg: 0 24px 60px -24px rgba(15, 19, 25, .3);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
               sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================ HEADER ============================ */

.site-header {
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 18px;
}

.brand {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 19px;
  overflow: hidden;
  box-shadow: 0 6px 16px -6px rgba(255, 107, 139, .55);
  transition: transform .3s var(--ease);
}

.brand:hover .brand-logo { transform: rotate(-4deg) scale(1.03); }
.brand-logo svg { width: 100%; height: 100%; }

.brand-name {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-name em {
  font-style: normal;
  color: inherit;
}

/* --- social --- */

.socials {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.social-icon-img {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.social:hover .social-icon-img { transform: translateY(-2px); opacity: .85; }

.social-label {
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: .01em;
}

/* ============================ NAV ============================ */

.mainnav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: space-between;  /* 间距随可用宽度自适应撑开，避免写死间距在窄屏溢出 */
  gap: 2px;                        /* 最小间距兜底 */
  flex: 1;
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 4px;
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: -.01em;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}

.nav-link:hover { background: #f4f5f7; color: var(--ink); }

/* 当前页高亮：浅灰底 + 品牌色文字，清晰但不突兀 */
.nav-link.is-current {
  background: #f3f4f6;
  color: var(--accent);
  font-weight: 600;
}

.nav-link.is-pill {
  padding-left: 9px;
  padding-right: 9px;
  background: #f3f4f6;
}

.nav-link.is-pill:hover { background: #ebedf1; }

.chev { width: 11px; height: 11px; opacity: .55; transition: transform .18s var(--ease); }

/* 「AI自动化教学」下拉：与教程页筛选分类对应 */
.mainnav .has-menu { position: relative; }

.nav-drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 172px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 36px -18px rgba(15, 19, 25, .28);
  display: none;
  z-index: 90;
}

.nav-drop::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-drop a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  white-space: nowrap;
}

.nav-drop a:hover { background: #f5f6f8; color: var(--ink); }

.has-menu:hover .nav-drop,
.has-menu:focus-within .nav-drop,
.has-menu.is-open .nav-drop { display: block; }

.has-menu.is-open .chev { transform: rotate(180deg); }

.nav-login {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
  background: #f3f4f6;
  transition: background-color .18s var(--ease);
}

.nav-login:hover { background: #e8eaee; }

.nav-login-item { display: none; }

.nav-lang {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  padding: 3px;
  background: #f3f4f6;
  border-radius: 8px;
}

.nav-lang button {
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2, #5b5f6a);
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}

.nav-lang button:hover { color: var(--accent); }

.nav-lang button.is-active { background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(17, 24, 39, .12); }


.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================ HERO ============================ */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 360px at 50% 0%, rgba(96, 130, 255, .16), transparent 70%),
    linear-gradient(180deg, var(--hero-bg) 0%, var(--hero-bg-2) 100%);
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: auto -10% -55% -10%;
  height: 120%;
  background: radial-gradient(600px 260px at 50% 100%, rgba(124, 92, 255, .18), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 88px;
  padding-bottom: 94px;
}

.hero-title {
  width: 100%;
  max-width: 22em;
  font-size: clamp(29px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
  background: linear-gradient(100deg, #5eead4 0%, #45c9f5 26%, #4f83f7 54%, #8f7bfb 80%, #b39cfb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 22px;
  font-size: 14.5px;
  color: #98a2b4;
  letter-spacing: .02em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding: 11px 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .7);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8);
}

.cta-text { font-size: 13.5px; font-weight: 500; color: var(--ink); }

.cta-sep {
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}

.cta-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ============================ SECTIONS ============================ */

.section { padding: 68px 0 8px; }
.section-alt {
  margin-top: 44px;
  padding-top: 60px;
  padding-bottom: 32px;
  background: #fafbfc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.section-desc {
  margin-top: 7px;
  font-size: 13.5px;
  color: var(--muted);
}

.more-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
  transition: color .18s var(--ease), gap .18s var(--ease);
}

.more-link:hover { color: var(--accent); gap: 8px; }

/* --- cards --- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 56px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}

/* 整卡可点：覆盖一层透明链接，正文区域也能跳转 */
.card-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}
.card-hit:focus-visible { outline: 2px solid var(--brand, #6d5cf6); outline-offset: 2px; }
.card-title-txt { cursor: pointer; }

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.media-glyph {
  position: absolute;
  right: 10%;
  bottom: -18%;
  width: 46%;
  max-width: 150px;
  opacity: .5;
  transition: transform .5s var(--ease), opacity .3s var(--ease);
}

.media-glyph svg { width: 100%; height: auto; }
.card:hover .media-glyph { transform: translateY(-6px) scale(1.04); opacity: .62; }

/* 视频真实封面：定位覆盖在渐变占位之上，加载完成后淡入；失败则移除、保留渐变 */
.card-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.card-cover.is-loaded { opacity: 1; }

.media-a { background: linear-gradient(140deg, #1f2b4d, #2f4b8f 55%, #3f7bd6); }
.media-b { background: linear-gradient(140deg, #2b1f3f, #5b3a8c 55%, #8b5cf6); }
.media-c { background: linear-gradient(140deg, #10262b, #14635e 60%, #2dd4bf); }
.media-d { background: linear-gradient(140deg, #241d0f, #8a5a13 60%, #f0a334); }
.media-e { background: linear-gradient(140deg, #2a1526, #7d2b52 60%, #f472b6); }
.media-f { background: linear-gradient(140deg, #131c33, #27509c 60%, #60a5fa); }

.chip {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  backdrop-filter: blur(6px);
}

.chip-dark { background: rgba(15, 19, 25, .55); color: #fff; }

/* ---- 卡片视频组件（data-video）---- */
.chip-video {
  top: 12px;
  left: auto;
  right: 12px;
  background: rgba(15, 19, 25, .55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%) scale(.92);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  border-radius: 50%;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .25);
  pointer-events: none;
}
.video-play svg { width: 100%; height: 100%; display: block; }
.card.has-video:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
.card.has-video .card-media { cursor: pointer; }

/* ---- 视频弹窗播放器 ---- */
.vm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 12, 16, .78);
  backdrop-filter: blur(4px);
}
.vm-box {
  position: relative;
  width: min(960px, 100%);
  background: #0f1319;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}
.vm-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.vm-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.vm-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s ease;
}
.vm-close:hover { background: rgba(255, 255, 255, .28); }
.vm-cap {
  padding: 10px 16px 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .65);
}
.vm-cap a { color: #8db4ff; text-decoration: none; }
.vm-cap a:hover { text-decoration: underline; }

.vm-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
  color: rgba(255, 255, 255, .85);
  padding: 24px;
}
.vm-fb-icon { color: rgba(255, 255, 255, .5); }
.vm-fb-text { margin: 0; font-size: 14px; }
.vm-fb-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: #3f7bd6;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.vm-fb-btn:hover { background: #2f66bb; transform: translateY(-1px); }

@media (max-width: 640px) {
  .vm-overlay { padding: 10px; }
  .video-play { width: 44px; height: 44px; }
}

.card-body { padding: 16px 18px 18px; }

.card-title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.005em;
  min-height: 3em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted-2);
}

.dot { width: 3px; height: 3px; border-radius: 50%; background: #cfd3da; }

/* 视频卡右下角的「课程详情」入口 */
.card-more {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}

.card-more:hover { text-decoration: underline; }

/* --- agents --- */

.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 40px;
}

.agent {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}

.agent:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.agent-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
}

.agent-icon svg { width: 23px; height: 23px; }

.icon-orange { background: #fff4e5; color: #e8890c; }
.icon-violet { background: #f2efff; color: #7c5cff; }
.icon-teal { background: #e6faf7; color: #0d9488; }
.icon-blue { background: #eaf2ff; color: #2f74e0; }

.agent-text { flex: 1; min-width: 0; }
.agent-text h3 { font-size: 15px; font-weight: 600; }
.agent-text p { margin-top: 3px; font-size: 12.5px; color: var(--muted); }

.agent-arrow {
  flex: 0 0 auto;
  font-size: 15px;
  color: #c9ced8;
  transition: transform .22s var(--ease), color .22s var(--ease);
}

.agent:hover .agent-arrow { transform: translateX(3px); color: var(--accent); }

/* --- news --- */

.news-list {
  border-top: 1px solid var(--line);
  margin-bottom: 60px;
}

.news-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: start;
  gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color .2s var(--ease), padding-left .2s var(--ease);
}

.news-item:hover { background: #fafbfc; padding-left: 12px; }

.news-date {
  font-size: 12.5px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}

.news-title {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.005em;
}

.news-desc {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
}

.news-tag {
  padding: 4px 10px;
  border-radius: 7px;
  background: #f4f5f7;
  color: var(--ink-soft);
  font-size: 11.5px;
  white-space: nowrap;
}

/* ============================ CTA BAND ============================ */

.cta-band {
  padding: 44px 0 0;
  background: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 38px;
  padding-bottom: 38px;
  border-radius: 22px;
  background:
    radial-gradient(600px 200px at 12% 0%, rgba(109, 92, 246, .16), transparent 70%),
    linear-gradient(120deg, #f7f6ff, #f3f8ff 60%, #f6fffb);
  border: 1px solid #ecebf8;
  margin-bottom: 68px;
  padding-left: 36px;
  padding-right: 36px;
}

.cta-copy h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.cta-copy p {
  margin-top: 7px;
  font-size: 13.5px;
  color: var(--muted);
}

.cta-actions { display: flex; gap: 12px; flex: 0 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(15, 19, 25, .7);
}

.btn-primary:hover { background: #1c2430; }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover { background: #fafbfc; }

/* ============================ FOOTER ============================ */

.site-footer {
  background: #10151f;
  color: #c8cedb;
  padding-top: 56px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 44px;
}

.footer-brand .brand-name { font-size: 22px; color: #fff; }
.footer-brand p {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: #8b94a6;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 56px;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6c7689;
  margin-bottom: 2px;
}

.footer-col a {
  font-size: 13px;
  color: #b6bece;
  transition: color .18s var(--ease);
}

.footer-col a:hover { color: #fff; }

/* 关注 / 二维码 */
.footer-qr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  padding-top: 34px;
  padding-bottom: 34px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-qr-lead { max-width: 400px; }

.footer-qr-lead h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6c7689;
}

.footer-qr-lead p {
  margin-top: 11px;
  font-size: 13px;
  line-height: 1.8;
  color: #8b94a6;
  text-wrap: pretty;
}

.footer-qr-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.footer-qr-plate {
  display: block;
  width: 124px;
  height: 124px;
  padding: 0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.footer-qr-item:hover .footer-qr-plate {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .38);
}

.footer-qr-plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.footer-qr-cap {
  font-size: 12px;
  line-height: 1;
  color: #8b94a6;
  letter-spacing: .02em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
  color: #6c7689;
}

/* ============================ FLOATING WIDGET ============================ */

.fab-wrap {
  position: fixed;
  right: 24px;
  bottom: 26px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Knocket 客服气泡接管右下角后，隐藏重复的「更多」悬浮球（DOM 保留，改此行即可恢复） */
body.has-knocket .fab-wrap { display: none; }

.fab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.fab:hover { transform: translateY(-2px); }

.fab-label { font-size: 12.5px; font-weight: 500; color: var(--ink); }

.fab-badge {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.fab-panel {
  display: flex;
  flex-direction: column;
  min-width: 152px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: fabIn .2s var(--ease) both;
}

.fab-panel[hidden] { display: none; }

.fab-panel a {
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--ink-soft);
  transition: background-color .16s var(--ease);
}

.fab-panel a:hover { background: #f4f5f7; color: var(--ink); }

@keyframes fabIn {
  from { opacity: 0; transform: translateY(6px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================ REVEAL ============================ */

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}

html.js .reveal.in { opacity: 1; transform: none; }

/* ============================ RESPONSIVE ============================ */

/* 导航 15 个栏目：>1340 用 14px；1181–1340 降到 13px；≤1180 排不下一行，直接收进汉堡菜单 */
@media (max-width: 1340px) {
  .nav-link { font-size: 13px; padding: 7px 4px; letter-spacing: 0; }
  .nav-list { gap: 2px; }
  .nav-login { font-size: 13.5px; }
}

@media (max-width: 1180px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .brand { grid-column: 1; justify-self: start; }
  .socials { grid-column: 2; justify-self: end; }
  .nav-toggle { grid-column: 3; display: inline-flex; }
  .nav-inner { height: 0; padding-top: 0; padding-bottom: 0; }

  .brand-name { font-size: 29px; }
  .brand-logo { width: 56px; height: 56px; flex-basis: 56px; border-radius: 16px; }

  .nav-list {
    position: absolute;
    top: 100%;
    z-index: 70;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 12px var(--gutter) 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px -24px rgba(15, 19, 25, .4);
  }

  .mainnav.is-open { z-index: 100; }
  .mainnav.is-open .nav-list { display: flex; }
  .nav-link { padding: 10px 12px; font-size: 14px; }
  .nav-link.is-pill { background: #f3f4f6; }

  /* 汉堡菜单内的下拉：点击展开的缩进子列表，不响应 hover */
  .nav-drop {
    position: static;
    display: none;
    min-width: 0;
    padding: 2px 0 4px 14px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav-drop::before { display: none; }
  .has-menu:hover .nav-drop,
  .has-menu:focus-within .nav-drop { display: none; }
  .has-menu.is-open .nav-drop { display: block; }
  .nav-drop a { padding: 8px 10px; font-size: 13.5px; }

  .nav-login { display: none; }
  .nav-login-item { display: block; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 8px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 24px; }

  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-cols { gap: 32px; }
  .footer-qr { flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
  .footer-qr-lead { max-width: 420px; }
}

@media (max-width: 720px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "socials socials";
    row-gap: 12px;
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .brand { grid-column: auto; grid-area: brand; justify-self: start; gap: 10px; }
  .nav-toggle { grid-column: auto; grid-area: toggle; }
  .socials { grid-column: auto; grid-area: socials; justify-self: start; gap: 16px; }
  .brand-logo { width: 44px; height: 44px; flex-basis: 44px; border-radius: 13px; }
  .brand-name { font-size: 21px; }
  .social-icon-img { width: 22px; height: 22px; }
  .social-label { font-size: 9.5px; }

  .hero-inner { padding-top: 72px; padding-bottom: 76px; }
  .hero-title { font-size: 30px; }
  .hero-sub { margin-top: 16px; font-size: 13px; }
  .hero-cta { margin-top: 26px; padding: 10px 16px; gap: 9px; }
  .cta-text, .cta-link { font-size: 12.5px; }

  .section { padding-top: 48px; }
  .section-head { margin-bottom: 20px; }
  .section-title { font-size: 20px; }
  .card-grid { grid-template-columns: 1fr; gap: 18px; padding-bottom: 40px; }

  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .news-tag { justify-self: start; }
  .news-item:hover { padding-left: 4px; }

  .cta-inner { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .cta-actions { width: 100%; }
  .btn { flex: 1; }

  .footer-cols { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-qr-list { gap: 10px; justify-content: flex-start; }
  .footer-qr-plate { width: 92px; height: 92px; padding: 0; border-radius: 10px; }
  .footer-qr-cap { font-size: 11px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .fab-wrap { right: 16px; bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ======================= 首页：内容 + 右侧栏 ======================= */

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 84px;
  align-items: start;
}

.home-main { min-width: 0; }

.home-aside {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-bottom: 56px;
}

.aside-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.aside-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.005em;
}

.aside-more {
  font-size: 12.5px;
  color: var(--muted);
  transition: color .18s var(--ease);
}

.aside-more:hover { color: var(--ink); }

.aside-list {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
}

.aside-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: color .16s var(--ease);
}

.aside-list a:hover { color: var(--accent); }

.al-num {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.tool-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.tool-logo {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
}

.tool-logo svg { display: block; width: 100%; height: 100%; }

.tool-info { flex: 1; min-width: 0; }

.tool-name {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}

.tool-desc {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.tool-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.tool-logo:has(img) { background: #eef0f5; }

.tool-go {
  flex: 0 0 auto;
  align-self: center;
  margin-left: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color .16s var(--ease);
}

.tool-card:hover .tool-go { color: var(--accent); }

@media (max-width: 1180px) {
  .home-split { grid-template-columns: minmax(0, 1fr) 288px; gap: 32px; }
  .card-grid { gap: 20px; }
}

@media (max-width: 1024px) {
  .home-split { grid-template-columns: 1fr; gap: 6px; }
  .home-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
    padding-bottom: 40px;
  }
}

@media (max-width: 720px) {
  .home-aside { grid-template-columns: 1fr; gap: 26px; }
  .tool-card { padding: 12px; }
  .tool-logo { flex-basis: 46px; width: 46px; height: 46px; }
  .tool-name { font-size: 14px; }
}

/* ============== 页脚：链接与二维码同一行（对齐原站布局） ============== */

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 44px;
  padding-bottom: 44px;
}

.footer-brand { flex: 0 1 206px; min-width: 0; }

.footer-cols {
  flex: 0 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, auto));
  gap: 40px;
}

.footer-qr {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 0;
  border-top: 0;
}

.footer-qr h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6c7689;
}

.footer-qr-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 13px;
}

.footer-qr-plate {
  width: 94px;
  height: 94px;
  padding: 0;
  border-radius: 9px;
}

.footer-qr-cap {
  font-size: 11.5px;
  color: #8b94a6;
}

@media (max-width: 1180px) {
  .footer-top { gap: 32px; }
  .footer-brand { flex-basis: 200px; }
  .footer-cols { gap: 30px; }
  .footer-qr-plate { width: 80px; height: 80px; }
  .footer-qr-list { gap: 11px; }
}

@media (max-width: 1024px) {
  .footer-top { flex-direction: column; gap: 30px; padding-bottom: 34px; }
  .footer-brand { flex: 0 0 auto; max-width: 420px; }
  .footer-cols { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .footer-qr { gap: 14px; }
  .footer-qr-list { flex-wrap: wrap; gap: 16px; }
  .footer-qr-plate { width: 92px; height: 92px; }
}

@media (max-width: 720px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .footer-qr-plate { width: 84px; height: 84px; }
  .footer-qr-list { gap: 10px; }
}

/* 侧栏在平板/窄屏下的重排 */
.aside-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1024px) {
  .aside-list { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); column-gap: 28px; }
  .tool-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .aside-list { grid-template-columns: minmax(0, 1fr); }
  .tool-list { grid-template-columns: minmax(0, 1fr); }
}
