/* ==========================================================================
   远齐云 企业官网自定义样式
   ========================================================================== */
:root {
  --brand-900: #0b2559;
  --brand-700: #12409e;
  --brand: #1f5eff;
  --brand-400: #5b8bff;
  --brand-100: #e7eeff;
  --accent: #06b6d4;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6eaf2;
  --soft: #f5f7fb;
  --radius-lg: 18px;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 22px 50px rgba(15, 23, 42, .14);

  --bs-primary: #1f5eff;
  --bs-primary-rgb: 31, 94, 255;
  --bs-body-color: #334155;
  --bs-body-font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--bs-body-font-family);
  color: var(--ink-2);
  background: #fff;
  overflow-x: hidden;
}

body[data-page="home"] {
  padding-top: 0 !important;
}

h1, h2, h3, h4, h5, h6, .fw-900 { color: var(--ink); font-weight: 700; letter-spacing: -.2px; }
a { text-decoration: none; }
img { max-width: 100%; }

.text-brand { color: var(--brand) !important; }
.bg-soft { background: var(--soft) !important; }
.bg-brand { background: var(--brand) !important; }
.bg-gradient-brand { background: linear-gradient(120deg, var(--brand-700), var(--brand) 55%, var(--accent)) !important; }
.text-muted-2 { color: var(--muted) !important; }

/* ---------- 通用按钮 ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .62rem 1.5rem; transition: .25s; }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(31, 94, 255, .28); }
.btn-brand:hover { background: var(--brand-700); color: #fff; transform: translateY(-2px); }
.btn-outline-brand { border: 1.5px solid var(--brand); color: var(--brand); background: transparent; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-outline-brand-ghost { border: 1.5px solid #fff; color: #fff; background: transparent; }
.btn-outline-brand-ghost:hover { background: var(--brand); color: #fff; }
.btn-ghost-light { border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--brand-700); }
.btn-sm { padding: .38rem 1rem; font-size: .875rem; }

/* ---------- 顶部导航 ---------- */
.navbar-site {
  transition: background-color .3s, box-shadow .3s, padding .3s;
  padding: .85rem 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
  z-index: 1040;
}
.navbar-site .navbar-brand { font-size: 1.35rem; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: .55rem; }
.navbar-site .brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(31, 94, 255, .35);
}
.navbar-site .brand-sub { font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: 2px; display: block; margin-top: -2px; }
.navbar-site .brand-logo { height: 40px; width: auto; }
.navbar-site .brand-logo.logo-white { filter: brightness(0) invert(1); }
.navbar-site .footer-logo { height: 36px; width: auto; }
.navbar-site .nav-link {
  color: var(--ink-2); font-weight: 600; margin: 0 .25rem; padding: .5rem .85rem !important;
  border-radius: 999px; position: relative;
}
.navbar-site .nav-link:hover { color: var(--brand); }
.navbar-site .nav-link.active { color: var(--brand); background: var(--brand-100); }
.navbar-site .navbar-toggler { border: 0; padding: .25rem .4rem; font-size: 1.5rem; color: var(--ink); }
.navbar-site .navbar-toggler:focus { box-shadow: none; }

/* 首页顶部透明态 */
body[data-page="home"] .navbar-site:not(.scrolled) { background: transparent; box-shadow: none; padding: 1.35rem 0; }
body[data-page="home"] .navbar-site:not(.scrolled) .navbar-brand,
body[data-page="home"] .navbar-site:not(.scrolled) .nav-link,
body[data-page="home"] .navbar-site:not(.scrolled) .navbar-toggler { color: #fff; }
body[data-page="home"] .navbar-site:not(.scrolled) .brand-sub { color: rgba(255, 255, 255, .75); }
body[data-page="home"] .navbar-site:not(.scrolled) .nav-link.active { background: rgba(255, 255, 255, .18); color: #fff; }
body[data-page="home"] .navbar-site:not(.scrolled) .btn-brand { background: #fff; color: var(--brand-700); }
body[data-page="home"] .navbar-site.menu-open { background: #fff !important; box-shadow: var(--shadow-sm) !important; }
body[data-page="home"] .navbar-site.menu-open .navbar-brand,
body[data-page="home"] .navbar-site.menu-open .nav-link,
body[data-page="home"] .navbar-site.menu-open .navbar-toggler { color: var(--ink-2); }
body[data-page="home"] .navbar-site.menu-open .navbar-brand { color: var(--ink); }
body[data-page="home"] .navbar-site.menu-open .nav-link.active { color: var(--brand); background: var(--brand-100); }
body[data-page="home"] .navbar-site.menu-open .btn-brand { background: var(--brand); color: #fff; }

@media (max-width: 991.98px) {
  .navbar-site .navbar-collapse {
    background: #fff; margin-top: .8rem; border-radius: var(--radius);
    padding: .6rem; box-shadow: var(--shadow);
  }
  .navbar-site .nav-link { margin: .1rem 0; }
  .navbar-site .navbar-nav .btn { width: 100%; margin-top: .5rem; }
}

/* 内页顶部占位 */
.page-head {
  padding: 148px 0 66px;
  background: linear-gradient(120deg, var(--brand-900), var(--brand-700) 55%, #1c58d9);
  color: #fff; position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 320px at 82% 12%, rgba(6, 182, 212, .38), transparent 60%),
    radial-gradient(700px 320px at 8% 92%, rgba(91, 139, 255, .35), transparent 60%);
}
.page-head > .container { position: relative; z-index: 2; }
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-head p { color: rgba(255, 255, 255, .82); max-width: 640px; margin-bottom: 0; }
.page-head .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); margin: 0 0 .9rem; }
.page-head .breadcrumb a { color: rgba(255, 255, 255, .8); }
.page-head .breadcrumb a:hover { color: #fff; }
.page-head .breadcrumb-item.active { color: rgba(255, 255, 255, .62); }

/* ---------- Hero 轮播 ---------- */
.hero .carousel-item { height: 100vh; min-height: 580px; max-height: 900px; }
.hero .hero-slide { height: 100%; position: relative; display: flex; align-items: center; }
.hero .hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1100px 460px at 78% 18%, rgba(6, 182, 212, .40), transparent 62%),
    radial-gradient(760px 420px at 6% 88%, rgba(255, 255, 255, .16), transparent 60%);
}
.hero .hero-slide::after {
  content: ""; position: absolute; inset: 0; opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 70% 40%, #000, transparent 72%);
}
.hero .slide-1 { background: linear-gradient(115deg, #071d47, #12409e 48%, #1f5eff); }
.hero .slide-2 { background: linear-gradient(115deg, #06263f, #0b5d7a 45%, #0891b2); }
.hero .slide-3 { background: linear-gradient(115deg, #16123f, #3a2a8f 48%, #5b3fd8); }
.hero .hero-inner { position: relative; z-index: 3; color: #fff; max-width: 720px; }
.hero .hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .38rem 1rem; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .26);
  font-size: .85rem; letter-spacing: .5px; backdrop-filter: blur(6px); margin-bottom: 1.2rem;
}
.hero h2 { color: #fff; font-size: clamp(2rem, 5.2vw, 3.7rem); line-height: 1.18; margin-bottom: 1.1rem; }
.hero p.lead { color: rgba(255, 255, 255, .86); font-size: clamp(.98rem, 1.6vw, 1.18rem); margin-bottom: 1.9rem; }
.hero .carousel-item.active .hero-inner > * { animation: heroUp .8s cubic-bezier(.2, .7, .3, 1) both; }
.hero .carousel-item.active .hero-inner > *:nth-child(2) { animation-delay: .12s; }
.hero .carousel-item.active .hero-inner > *:nth-child(3) { animation-delay: .24s; }
.hero .carousel-item.active .hero-inner > *:nth-child(4) { animation-delay: .36s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero .carousel-indicators { bottom: 2.2rem; }
.hero .carousel-indicators [data-bs-target] { width: 30px; height: 4px; border-radius: 4px; opacity: .45; }
.hero .carousel-indicators .active { opacity: 1; width: 46px; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 7%; opacity: .55; }
 

/* ---------- 区块 ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 62px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--brand);
  background: var(--brand-100); padding: .34rem .9rem; border-radius: 999px; margin-bottom: .9rem;
}
.section-title { font-size: clamp(1.55rem, 3.2vw, 2.3rem); margin-bottom: .8rem; }
.section-desc { color: var(--muted); }
.section-head-center .section-desc { margin-left: auto; margin-right: auto; }

/* ---------- 卡片 ---------- */
.card-soft {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  transition: .3s; height: 100%; overflow: hidden;
}
.card-soft:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(31, 94, 255, .35); }
.icon-box {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.5rem; color: var(--brand); background: var(--brand-100); flex: none;
}
.icon-box.cyan { color: #0891b2; background: #e0f7fb; }
.icon-box.violet { color: #7c3aed; background: #f0e9ff; }
.icon-box.amber { color: #d97706; background: #fef3c7; }
.icon-box.green { color: #059669; background: #d9f7ec; }
.icon-box.rose { color: #e11d48; background: #ffe4ea; }

.media-box {
  height: 190px; position: relative; display: grid; place-items: center; color: #fff; overflow: hidden;
}
.media-box::after {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 34px 34px;
}
.media-box i { font-size: 3rem; position: relative; z-index: 2; opacity: .95; }
/* 新闻/内容配图：铺满媒体盒，网格遮罩与标签叠在其上 */
.media-box .news-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.media-box .media-tag {
  position: absolute; z-index: 3; left: 14px; top: 14px; background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .3); padding: .2rem .7rem; border-radius: 999px; font-size: .76rem;
  backdrop-filter: blur(4px);
}
.g1 { background: linear-gradient(135deg, #1f5eff, #06b6d4); }
.g2 { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.g3 { background: linear-gradient(135deg, #0891b2, #22c55e); }
/* 产品图片盒 */
.product-thumb { height: 170px; overflow: hidden; position: relative; border-radius: var(--radius) var(--radius) 0 0; background: #f5f7fa; }
.product-thumb img { width: 100%; object-fit: cover; transition: transform .4s ease; }
.product-thumb:hover img { transform: scale(1.04); }
.product-thumb .media-tag { background: rgba(31, 94, 255, .85); color: #fff; border: 0; }
.g4 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.g5 { background: linear-gradient(135deg, #0f172a, #1f5eff); }
.g6 { background: linear-gradient(135deg, #059669, #0891b2); }

.tag-pill {
  display: inline-block; font-size: .75rem; padding: .2rem .65rem; border-radius: 999px;
  background: var(--soft); color: var(--muted); border: 1px solid var(--line); margin: 0 .3rem .3rem 0;
}

/* 产品分类标签 */
.filter-tabs { display: flex; flex-wrap: wrap; gap: .6rem; }
.filter-tabs .btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600;
}
.filter-tabs .btn.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(31, 94, 255, .25); }

/* ---------- 数字统计 ---------- */
.stat-num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--brand); line-height: 1; }

/* ---------- 发展历程 ---------- */
.timeline { position: relative; padding-left: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--brand), var(--accent)); }
.timeline li { position: relative; padding: 0 0 1.9rem 2.2rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
}
.timeline .year { font-weight: 800; color: var(--brand); font-size: 1.05rem; }

/* ---------- 团队 ---------- */
.team-avatar {
  width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.7rem; font-weight: 700; color: #fff; margin: 0 auto 1rem;
}

/* ---------- 新闻 ---------- */
.news-item { display: flex; gap: 1.1rem; padding: 1.1rem 0; border-bottom: 1px dashed var(--line); }
.news-date {
  flex: none; width: 78px; text-align: center; border-radius: 12px; background: var(--soft);
  padding: .55rem .2rem; border: 1px solid var(--line);
}
.news-date .d { font-size: 1.4rem; font-weight: 800; color: var(--brand); line-height: 1; }
.news-date .m { font-size: .74rem; color: var(--muted); }
.article-body { font-size: 1.02rem; line-height: 2; color: var(--ink-2); }
.article-body h3 { font-size: 1.2rem; margin: 1.8rem 0 .8rem; padding-left: .7rem; border-left: 4px solid var(--brand); }
.article-body p { margin-bottom: 1rem; }
.article-body blockquote { border-left: 3px solid var(--brand-400); background: var(--soft); padding: .9rem 1.1rem; border-radius: 0 10px 10px 0; color: var(--ink-2); }
.article-content { padding: 1.6rem 0; }
/* ---------- 联系我们 ---------- */
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; background: #fff; height: 100%; transition: .3s; }
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.form-control, .form-select {
  border-radius: 12px; border: 1px solid var(--line); padding: .72rem .95rem; background: #fff;
}
.form-control:focus, .form-select:focus { border-color: var(--brand-400); box-shadow: 0 0 0 .22rem rgba(31, 94, 255, .12); }
.form-label { font-weight: 600; color: var(--ink); font-size: .92rem; }
#map { width: 100%; height: 420px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 767.98px) { #map { height: 300px; } }

/* ---------- 联系我们：留言板与位置两栏等高 ---------- */
.contact-col { display: flex; }
.contact-col > * { width: 100%; min-width: 0; }
.loc-card {
  height: 100%; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; padding: 1.6rem;
}
.loc-card .loc-head { margin-bottom: 1.1rem; }
.loc-card .section-title { margin-bottom: 0; }
.loc-card #map {
  flex: 1 1 auto; height: auto; min-height: 360px;
  border-radius: var(--radius); background: var(--soft);
}
.loc-meta {
  list-style: none; margin: 1.1rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem;
}
.loc-meta-item {
  display: flex; align-items: flex-start; gap: .55rem;
  background: var(--soft); border: 1px solid var(--line); border-radius: 12px;
  padding: .7rem .75rem; transition: .25s;
}
.loc-meta-item:hover { background: #fff; border-color: rgba(31, 94, 255, .35); box-shadow: var(--shadow-sm); }
.loc-meta-item > i { flex: none; color: var(--brand); font-size: 1.05rem; line-height: 1.3; }
.loc-meta-item span { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .5px; }
.loc-meta-item strong { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); line-height: 1.45; }
@media (max-width: 767.98px) {
  .loc-card #map { min-height: 300px; }
  .loc-meta { grid-template-columns: 1fr; }
}

/* ---------- 知识库文档中心 ---------- */
.docs-wrap { padding: 34px 0 70px; background: var(--soft); min-height: 60vh; }
.docs-sidebar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem;
  position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow-y: auto;
}
.docs-sidebar::-webkit-scrollbar { width: 6px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: #d6dced; border-radius: 6px; }
.cat-btn {
  width: 100%; display: flex; align-items: center; gap: .6rem; border: 0; background: transparent;
  padding: .65rem .7rem; border-radius: 11px; font-weight: 700; color: var(--ink); text-align: left;
}
.cat-btn:hover { background: var(--soft); }
.cat-btn .bi-chevron-down { margin-left: auto; transition: .25s; font-size: .8rem; color: var(--muted); }
.cat-btn.collapsed .bi-chevron-down { transform: rotate(-90deg); }
.cat-count { font-size: .72rem; color: var(--muted); font-weight: 600; }
.doc-link {
  display: block; padding: .48rem .7rem .48rem 2.1rem; border-radius: 9px; color: var(--ink-2);
  font-size: .92rem; position: relative; transition: .2s;
}
.doc-link::before { content: ""; position: absolute; left: 1.15rem; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #c8d0e0; transform: translateY(-50%); }
.doc-link:hover { background: var(--brand-100); color: var(--brand); }
.doc-link.active { background: var(--brand); color: #fff; font-weight: 600; }
.doc-link.active::before { background: #fff; }

.docs-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem 2rem 2.4rem; }
@media (max-width: 575.98px) { .docs-panel { padding: 1.2rem 1.1rem 1.8rem; } }
.doc-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; transition: .25s; height: 100%; background: #fff; }
.doc-card:hover { border-color: var(--brand-400); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.doc-card h6 { margin-bottom: .35rem; }

.doc-content { font-size: 1rem; line-height: 1.95; color: var(--ink-2); }
.doc-content h2 {
  font-size: 1.25rem; margin: 2.1rem 0 .9rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.doc-content h2:first-child { margin-top: .6rem; }
.doc-content h3 { font-size: 1.05rem; margin: 1.3rem 0 .6rem; color: var(--brand-700); }
.doc-content p { margin-bottom: .9rem; }
.doc-content ul, .doc-content ol { padding-left: 1.3rem; margin-bottom: 1rem; }
.doc-content li { margin-bottom: .35rem; }
.doc-content table { width: 100%; border-collapse: collapse; margin: .6rem 0 1.2rem; font-size: .93rem; }
.doc-content th, .doc-content td { border: 1px solid var(--line); padding: .6rem .8rem; }
.doc-content th { background: var(--soft); color: var(--ink); text-align: left; }
.doc-content code { background: #f1f4fb; color: #b3277a; padding: .12rem .38rem; border-radius: 5px; font-size: .9em; }
.doc-content pre {
  background: #0f172a; color: #e2e8f0; padding: 1rem 1.1rem; border-radius: 12px; overflow-x: auto;
  font-size: .86rem; line-height: 1.7; margin-bottom: 1.2rem;
}
.doc-content pre code { background: transparent; color: inherit; padding: 0; }
.doc-content .note {
  border-left: 4px solid var(--brand); background: var(--brand-100); padding: .8rem 1rem;
  border-radius: 0 10px 10px 0; margin-bottom: 1.1rem;
}
.doc-toc { position: sticky; top: 92px; border-left: 2px solid var(--line); padding-left: 1rem; }
.doc-toc a { display: block; font-size: .88rem; color: var(--muted); padding: .3rem 0; }
.doc-toc a:hover, .doc-toc a.active { color: var(--brand); font-weight: 600; }

/* ---------- AI 助手悬浮窗 ---------- */
.ai-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 1055; width: 60px; height: 60px; border-radius: 50%;
  border: 0; color: #fff; font-size: 1.6rem; display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 14px 30px rgba(31, 94, 255, .45); transition: .3s;
}
.ai-fab:hover { transform: scale(1.07) translateY(-2px); }
.ai-fab::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(31, 94, 255, .45);
  animation: fabPulse 2.4s infinite;
}
@keyframes fabPulse { 0% { transform: scale(.9); opacity: .8; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
.ai-fab .badge-dot {
  position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: #22c55e; border: 2px solid #fff;
}

.ai-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 1056; width: 390px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 130px); background: #fff; border-radius: 20px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(18px) scale(.96); opacity: 0; pointer-events: none; transition: .28s cubic-bezier(.2, .7, .3, 1);
  border: 1px solid var(--line);
}
.ai-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.ai-head { background: linear-gradient(120deg, var(--brand-700), var(--brand) 60%, var(--accent)); color: #fff; padding: .95rem 1.1rem; display: flex; align-items: center; gap: .7rem; }
.ai-head .avatar { width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 1.2rem; }
.ai-head .t { font-weight: 700; line-height: 1.2; }
.ai-head .s { font-size: .75rem; color: rgba(255, 255, 255, .8); }
.ai-head .btn-icon { background: rgba(255, 255, 255, .16); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.ai-head .btn-icon:hover { background: rgba(255, 255, 255, .3); }

.ai-body { flex: 1; overflow-y: auto; padding: 1rem; background: var(--soft); }
.ai-body::-webkit-scrollbar { width: 6px; }
.ai-body::-webkit-scrollbar-thumb { background: #d6dced; border-radius: 6px; }
.msg { display: flex; gap: .55rem; margin-bottom: .9rem; align-items: flex-end; }
.msg .av { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: .9rem; color: #fff; }
.msg.ai .av { background: linear-gradient(135deg, var(--brand), var(--accent)); }
.msg.user { flex-direction: row-reverse; }
.msg.user .av { background: var(--ink); }
.bubble {
  max-width: 78%; padding: .68rem .9rem; border-radius: 14px; font-size: .92rem; line-height: 1.7;
  box-shadow: var(--shadow-sm); word-break: break-word;
}
.msg.ai .bubble { background: #fff; color: var(--ink-2); border-top-left-radius: 4px; }
.msg.user .bubble { background: var(--brand); color: #fff; border-top-right-radius: 4px; }
.bubble a { color: var(--brand); font-weight: 600; }
.msg.user .bubble a { color: #fff; text-decoration: underline; }
.bubble .src {
  display: block; margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed var(--line); font-size: .8rem; color: var(--muted);
}
.quick-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .4rem 2.15rem; }
.quick-chips button {
  border: 1px solid var(--brand-100); background: #fff; color: var(--brand); font-size: .8rem;
  padding: .25rem .7rem; border-radius: 999px; transition: .2s;
}
.quick-chips button:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #9fb0cc; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.ai-foot { border-top: 1px solid var(--line); padding: .7rem .8rem; background: #fff; }
.ai-foot .input-group { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ai-foot .form-control { border: 0; box-shadow: none; padding: .6rem .8rem; font-size: .92rem; resize: none; }
.ai-foot .btn-send { background: var(--brand); color: #fff; border: 0; padding: 0 1rem; }
.ai-foot .btn-send:disabled { opacity: .5; }
.ai-foot .tip { font-size: .72rem; color: var(--muted); text-align: center; margin: .45rem 0 0; }

@media (max-width: 575.98px) {
  .ai-panel { right: 10px; left: 10px; bottom: 86px; width: auto; height: calc(100vh - 150px); }
  .ai-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; font-size: 1.4rem; }
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed; right: 96px; bottom: 32px; z-index: 1050; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--brand); border-color: var(--brand-400); }
@media (max-width: 575.98px) { .to-top { right: 80px; bottom: 24px; width: 38px; height: 38px; } }

/* ---------- 页脚 ---------- */
.site-footer { background: #0b1428; color: #94a3b8; padding-top: 66px; }
.site-footer h6 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.site-footer a { color: #94a3b8; transition: color .2s, transform .2s; }
.site-footer a:hover { color: #fff; transform: translateX(3px); }
.site-footer .f-brand { color: #fff; font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; }
.site-footer .f-brand .brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; }
.site-footer .footer-logo { height: 38px; width: auto; }
.site-footer .social a {
  width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .07);
  display: inline-grid; place-items: center; margin-right: .5rem; color: #cbd5e1;
}
.site-footer .social a:hover { background: var(--brand); color: #fff; padding-left: 0; }
.site-footer .copyright {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .09); margin-top: 46px; padding: 1.15rem 0;
  font-size: .84rem; line-height: 1.9; color: #7d8ea8;
}
.site-footer .copyright-info { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .45rem; }
.site-footer .copyright-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem 1rem; margin-left: auto; }
.site-footer .copyright a { color: #b8c4d6; }
.site-footer .copyright a:hover { color: #fff; transform: none; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .copyright .copyright-dot { color: rgba(255, 255, 255, .22); }
.site-footer .copyright-police { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.site-footer .copyright-police img { width: 16px; height: 16px; flex: 0 0 auto; opacity: .9; }
@media (max-width: 767.98px) {
  .site-footer .copyright { justify-content: center; text-align: center; }
  .site-footer .copyright-links { justify-content: center; margin-left: 0; }
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .6rem; font-size: .93rem; }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* 打印/无障碍 */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ai-fab::after { animation: none; }
}
/*产品页*/ 
.point-list p {
    margin-bottom: 0.5rem;
    color: var(--muted, #64748b);
}
.point-list ul {
    margin:15px 0;
    padding:0;
    list-style: none;
}
.point-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.2rem;
    line-height: 1.55;
}
.point-list li::before {
    content: "\F26A";
    font-family: bootstrap-icons !important;
    position: absolute;
    left: 0;
    top: 0;
    color: #5b8bff;
}

/* ---------- 分页 ---------- */
.pagination{
  display: flex; justify-content: center; gap: .5rem;
  margin-top: 2rem;
}
.pagination-wrap {
            margin-top: 48px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
        }
        .pagination-item {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 44px;
            height: 44px;
            padding: 0 12px;
            border-radius: 999px;
            border: 1px solid #E5E7EB;
            background: #FFFFFF;
            color: #4B5563;
            font-size: 14px;
            transition: all 0.24s ease;
            text-decoration: none;
            box-shadow: 0 1px 2px rgba(0,0,0,0.04);
        }
        .pagination-item:hover:not(.disabled):not(.active) {
            border-color: var(--bs-primary,#1f5eff);
            color: var(--bs-primary,#1f5eff);
            box-shadow: 0 2px 8px rgba(31, 94, 255, 0.15);
        }
        .pagination-item.active {
            background: var(--bs-primary,#1f5eff);
            border-color: var(--bs-primary,#1f5eff);
            color: #fff;
            box-shadow: 0 2px 8px rgba(31, 94, 255, 0.25);
        }
        .pagination-item.disabled {
            background: #F9FAFB;
            color: #9CA3AF;
            cursor: not-allowed;
        }
        .pagination-info {
            margin-left: 12px;
            color: #6B7280;
            font-size: 14px;
        }