/* ============================================================
   高顿智能营销体系 — 设计系统 / 样式
   风格：简约 · 高级 · 优雅 · 企业级
   主色：高顿亮橙 #FF6A00 ｜ 辅助：天蓝 #1E9BE6 ｜ 暖中性 + 纯白底
   ============================================================ */

:root {
  /* 品牌色 */
  --brand: #FF6A00;
  --brand-strong: #E85D00;
  --brand-soft: #FFF3EA;
  --brand-line: #FFD9BE;
  --blue: #1E9BE6;
  --blue-soft: #EAF5FD;

  /* 暖中性（避免纯黑纯灰） */
  --ink: #211E1B;
  --ink-2: #5C574F;
  --ink-3: #938C82;
  --line: #ECE7E0;
  --line-soft: #F3EFE9;
  --surface: #FFFFFF;
  --surface-2: #FAF8F5;
  --surface-3: #F4F0EB;

  /* 字体 */
  --font: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* 间距（4pt 体系） */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* 圆角 */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px;

  /* 阴影（克制） */
  --sh-sm: 0 1px 2px rgba(33,30,27,.04), 0 2px 10px rgba(33,30,27,.04);
  --sh-md: 0 4px 18px rgba(33,30,27,.06), 0 14px 40px rgba(33,30,27,.05);
  --sh-lg: 0 10px 40px rgba(33,30,27,.10), 0 30px 80px rgba(33,30,27,.08);

  /* 动效 */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 300ms;

  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-5); }

/* ---------- 排版 ---------- */
.h-display { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.3; font-weight: 700; }
.h3 { font-size: 1.15rem; font-weight: 700; }
.lead { font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--ink-2); }
.muted { color: var(--ink-3); }

/* 小标签 / 章節眉 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  color: var(--brand-strong); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }

/* ---------- 顶部导航（logo+站名居最左 · 导航拉通至屏幕最右） ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex; align-items: center; gap: var(--s-5);
  height: 56px;
  width: 100%;
  padding: 0 30px; /* 左右边距一致：logo 左边距 = 导航最右字符右边距，均预留 30px 不硬靠边 */
}
.brand { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.brand-logo { height: 18px; width: auto; display: block; }
.brand-name { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; white-space: nowrap; }

.nav {
  display: flex; align-items: center; flex: 0 1 auto; height: 100%;
  justify-content: flex-end; /* 导航区整体推到最右侧 */
  min-width: 0; overflow: visible;
  margin-left: auto; /* 剩余空间全部留在 brand 与 nav 之间 */
}
/* 补偿最后一个 Tab 的 8px 内边距，让最后一个字精确对齐 18px 右边距 */
.nav-group:last-child .nav-link:last-child { margin-right: -8px; }
.nav-group { display: flex; align-items: center; height: 100%; }
.nav-group + .nav-group { position: relative; margin-left: 16px; padding-left: 16px; }
.nav-group + .nav-group::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 25%; background: var(--line); /* 1/4 高（约14px）居中分割线，进一步弱化视觉存在感 */
}
.nav-link {
  position: relative; display: inline-flex; align-items: center; height: 100%;
  padding: 0 8px; font-size: .92rem; font-weight: 600;
  color: var(--ink-2); white-space: nowrap;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-link + .nav-link { margin-left: 1px; }
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link.active { color: var(--brand-strong); }
/* 当前 Tab：亮橙文字 + 底部亮橙横条（贴齐导航栏底边） */
.nav-link.active::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px;
  background: var(--brand); border-radius: 3px 3px 0 0;
}

/* 移动端菜单按钮 */
.nav-toggle { display: none; }

/* ---------- 区块通用（适度间距 · 兼顾屏效比与美观） ---------- */
.section { padding: clamp(32px, 4.2vw, 52px) 0; }
/* 每个页面的首个板块（功能页「功能概述」等）顶距对齐首页 home-hero */
main > .section:first-child { padding-top: var(--s-5); }
.section.alt { background: var(--surface-2); }
.section-head { max-width: 760px; margin-bottom: var(--s-4); }
.section-head .h1 { margin: 10px 0 8px; }

/* ---------- Home 整体介绍大图 ---------- */
.home-hero { padding-top: var(--s-5); }
.home-hero-img {
  width: 77%; margin: 0 auto; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--sh-md); border: 1px solid var(--line);
  background: var(--surface-2); cursor: zoom-in;
}
.home-hero-img img { width: 100%; height: auto; }

/* ---------- 产品矩阵 ---------- */
.product-cat { font-size: .82rem; font-weight: 800; letter-spacing: .06em; color: var(--ink-3); margin: var(--s-5) 0 12px; text-transform: uppercase; }
.product-cat:first-of-type { margin-top: var(--s-4); }

/* ---------- 三大矩阵颜色主题：AIGC=亮橙 / Ai数智员工=红 / Ai工具=天空蓝 ---------- */
.product-cat.t-orange { color: var(--brand-strong); }
.product-cat.t-red    { color: #D62F2F; }
.product-cat.t-blue   { color: #1E9BE6; }

/* 卡片内分类小标同色 */
.product-card.t-red  .pc-cat  { color: #D62F2F; }
.product-card.t-blue .pc-cat  { color: #1E9BE6; }

/* 实心按钮同色系（t-orange 保持默认亮橙） */
.product-card.t-red .btn-primary {
  background: #E03A3A; box-shadow: 0 6px 18px rgba(224,58,58,.28);
}
.product-card.t-red .btn-primary:hover {
  background: #C42B2B; box-shadow: 0 10px 26px rgba(224,58,58,.34);
}
.product-card.t-blue .btn-primary {
  background: #1E9BE6; box-shadow: 0 6px 18px rgba(30,155,230,.28);
}
.product-card.t-blue .btn-primary:hover {
  background: #157FC2; box-shadow: 0 10px 26px rgba(30,155,230,.34);
}
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 6px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--brand-line); }
.product-card .pc-cat { font-size: .74rem; font-weight: 700; color: var(--brand-strong); letter-spacing: .05em; }
.product-card .pc-name { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; }
.product-card .pc-desc { color: var(--ink-2); font-size: .9rem; flex: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(255,106,0,.28); }
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255,106,0,.34); }
.btn-ghost { background: var(--surface); color: var(--brand-strong); border: 1px solid var(--brand-line); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Ai 问答模块 ---------- */
.chat {
  margin-top: var(--s-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-md); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto;
  height: 620px; max-height: 78vh;
}
.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #25C26E; box-shadow: 0 0 0 4px rgba(37,194,110,.16); }
.chat-head .title { font-weight: 800; }
.chat-head .sub { font-size: .8rem; color: var(--ink-3); }
.chat-head .new-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--ink-2); transition: all var(--dur) var(--ease);
}
.chat-head .new-btn:hover { border-color: var(--brand-line); color: var(--brand-strong); }

/* 联网搜索开关 */
.web-search-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--ink-2); transition: all var(--dur) var(--ease);
  cursor: pointer; user-select: none;
}
.web-search-toggle:hover { border-color: var(--brand-line); color: var(--brand-strong); }
.web-search-toggle.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.web-search-toggle .toggle-icon { font-size: 14px; }

.chat-body { overflow-y: auto; padding: var(--s-5); display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.msg { max-width: 86%; display: flex; gap: 10px; }
.msg .ava { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.msg.bot .ava { background: linear-gradient(135deg, var(--brand), #FF8A33); }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.user .ava { background: #2B2B2B; }
.bubble { padding: 12px 16px; border-radius: 14px; font-size: .95rem; line-height: 1.65; }
.msg.bot .bubble { background: var(--surface-2); border: 1px solid var(--line); border-top-left-radius: 4px; }
.msg.user .bubble { background: var(--brand); color: #fff; border-top-right-radius: 4px; }
.bubble a { color: var(--brand-strong); text-decoration: underline; font-weight: 600; }
.msg.user .bubble a { color: #fff; }
.chat-empty { margin: auto; text-align: center; color: var(--ink-3); max-width: 360px; }
.chat-empty .big { font-size: 2.2rem; margin-bottom: 8px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite both; }
.typing span:nth-child(2){ animation-delay: .2s; } .typing span:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,80%,100%{ opacity:.25; transform: translateY(0);} 40%{ opacity:1; transform: translateY(-3px);} }
.chat-input { display: flex; align-items: flex-end; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-input textarea {
  flex: 1; resize: none; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  font-family: inherit; font-size: .95rem; line-height: 1.5; max-height: 120px; outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.chat-input textarea:focus { border-color: var(--brand-line); box-shadow: 0 0 0 4px var(--brand-soft); }
.chat-send, .chat-stop {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--brand); color: #fff; transition: all var(--dur) var(--ease);
}
.chat-send:hover { background: var(--brand-strong); transform: translateY(-2px); }
.chat-stop { background: #2B2B2B; display: none; }
.chat-stop.show { display: grid; }
.chat-hint { font-size: .76rem; color: var(--ink-3); text-align: center; padding: 0 16px 12px; background: var(--surface); }
.chat-hint a { color: var(--brand-strong); font-weight: 600; }

/* ---------- 功能 Tab 布局 ---------- */
.feature-hero { position: relative; width: 77%; margin: 0 auto; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); border: 1px solid var(--line); background: var(--surface-2); cursor: zoom-in; }
.carousel { position: relative; }
.carousel-track { display: flex; transition: transform 600ms var(--ease); }
.carousel-track img { width: 100%; flex-shrink: 0; object-fit: cover; }
.carousel-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.carousel-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.6); transition: all var(--dur) var(--ease); }
.carousel-dots button.active { background: #fff; width: 26px; border-radius: 6px; }
.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.85); display: grid; place-items: center; box-shadow: var(--sh-sm); opacity: 0; transition: opacity var(--dur) var(--ease); font-size: 24px; line-height: 1; font-weight: 700; color: var(--ink); padding-bottom: 3px; /* 箭头字号放大 1.5 倍（16px→24px），加粗更醒目；微调基线使 ‹ › 光学居中 */ }
.feature-hero:hover .carousel-nav { opacity: 1; }
.carousel-nav.prev { left: 16px; } .carousel-nav.next { right: 16px; }

/* 立即体验 大按钮（宽度与大图一致 77% 居中；上距拉开、下距收窄以不增加首屏总高） */
.cta-bar { width: 77%; margin: 28px auto 6px; }
/* 按钮下方空白缩短为原来的 3/5：含按钮的板块底部内边距同步收窄 */
.section:has(.cta-bar) { padding-bottom: clamp(19px, 2.5vw, 31px); }
.cta-bar .btn-primary { width: 100%; padding: 15px; font-size: 1.05rem; box-shadow: 0 10px 30px rgba(255,106,0,.3); }

/* 使用方法 子Tab */
.subtabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-3); border-radius: 999px; margin-bottom: var(--s-4); }
.subtab { padding: 8px 20px; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--ink-2); transition: all var(--dur) var(--ease); }
.subtab.active { background: var(--surface); color: var(--brand-strong); box-shadow: var(--sh-sm); }
.panel { display: none; animation: fade .4s var(--ease); }
.panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 图文流（严格按原始文档段落与图片顺序） ---------- */
.doc-flow { max-width: 960px; }
.doc-flow .doc-h {
  font-size: 1.05rem; font-weight: 800; color: var(--ink);
  margin: var(--s-4) 0 var(--s-2); padding-left: 10px;
  border-left: 3px solid var(--brand);
}
.doc-flow .doc-h:first-child { margin-top: 0; }
.doc-flow .doc-p { color: var(--ink-2); margin: 6px 0; line-height: 1.75; }

/* 内嵌视频块（如：Ai销售对客实际效果） */
.doc-video { margin: 14px 0 6px; }
.doc-video video {
  display: block; width: 77%; margin: 0; /* 靠左与正文内容对齐 */
  border-radius: var(--r-md); border: 1px solid var(--line);
  background: #000; box-shadow: var(--sh-md);
}
@media (max-width: 860px) { .doc-video video { width: 100%; } }

/* 文档超链接：经典蓝色 + 下划线，一眼可识别可点击 */
.doc-link {
  color: #1568D3; text-decoration: underline; text-underline-offset: 3px;
  font-weight: 600; word-break: break-all; cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.doc-link:hover { color: #0E4FA8; text-decoration-thickness: 2px; }
.doc-link:visited { color: #5A4FB8; }
.doc-flow .doc-img {
  margin: var(--s-3) 0; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; background: var(--surface); cursor: zoom-in; max-width: 820px;
  transition: box-shadow var(--dur) var(--ease);
}
.doc-flow .doc-img:hover { box-shadow: var(--sh-md); }
.doc-flow .doc-img img { width: 100%; height: auto; }
.doc-figrow { display: grid; gap: var(--s-3); margin: var(--s-3) 0; }
.doc-figrow.cols-1 { grid-template-columns: 1fr; max-width: 820px; }
.doc-figrow.cols-2 { grid-template-columns: repeat(2, 1fr); }
.doc-fig {
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  background: var(--surface); cursor: zoom-in; display: flex; flex-direction: column;
  transition: box-shadow var(--dur) var(--ease);
}
.doc-fig:hover { box-shadow: var(--sh-md); }
.doc-fig figcaption {
  padding: 8px 12px; font-size: .86rem; font-weight: 600; color: var(--ink-2);
  background: var(--surface-2); border-bottom: 1px solid var(--line-soft); line-height: 1.5;
}
.doc-fig img { width: 100%; height: auto; }
.doc-note {
  margin: var(--s-2) 0; padding: 10px 14px; background: var(--blue-soft);
  border-left: 3px solid var(--blue); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: #14507e; font-size: .9rem; line-height: 1.6;
}

/* ---------- 灯箱 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,18,16,.92); display: none; align-items: center; justify-content: center; padding: var(--s-6); }
.lightbox.show { display: flex; animation: fade .25s var(--ease); }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: var(--r-md); box-shadow: var(--sh-lg); }
.lightbox .close { position: absolute; top: 24px; right: 28px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; display: grid; place-items: center; }
.lightbox .close:hover { background: rgba(255,255,255,.26); }

/* ---------- 页脚（原版四栏 · 压缩高度） ---------- */
.footer { background: #1c1a17; color: #cfc8bf; padding: var(--s-6) 0 var(--s-4); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: var(--s-5); justify-content: space-between; }
.footer .f-brand { font-weight: 800; color: #fff; font-size: 1rem; }
.footer a { color: #cfc8bf; }
.footer a:hover { color: #fff; }
.footer .f-note { font-size: .8rem; color: #8d877e; max-width: 400px; margin-top: 6px; line-height: 1.6; }
.footer .f-links { display: flex; gap: var(--s-6); flex-wrap: wrap; }
.footer .f-links h4 { color: #fff; font-size: .85rem; margin-bottom: 4px; }
.footer .f-links a { display: block; font-size: .82rem; padding: 1px 0; line-height: 1.7; }
.footer .copy { width: 100%; border-top: 1px solid #34302b; margin-top: var(--s-3); padding-top: var(--s-3); font-size: .76rem; color: #8d877e; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
  .nav { margin-left: var(--s-5); flex: 1; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .nav-group:last-child .nav-link:last-child { margin-right: 0; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-group + .nav-group { margin-left: var(--s-4); padding-left: var(--s-4); }
}
@media (max-width: 860px) {
  .header-bar { height: auto; flex-wrap: wrap; padding: 8px 14px; gap: 8px; }
  .nav { order: 3; width: 100%; margin-left: 0; height: auto; }
  .nav-group { height: auto; }
  .nav-link { height: auto; padding: 8px 10px; }
  .nav-group + .nav-group { margin-left: var(--s-3); padding-left: var(--s-3); }
  .home-hero-img, .feature-hero { width: 100%; }
  .cta-bar { width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .doc-figrow.cols-2 { grid-template-columns: 1fr; }
  .chat { height: 78vh; }
  .footer .wrap { flex-direction: column; gap: var(--s-4); }
}
@media (max-width: 520px) {
  .brand-name { font-size: .92rem; }
  .wrap { padding: 0 var(--s-4); }
}

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