/* ============ AI 查档中心 · 全站样式与动效 ============ */

:root {
  --bg1: #0a0e2a;
  --bg2: #101645;
  --accent: #5b8cff;
  --accent2: #9b5bff;
  --cyan: #22d3ee;
  --text: #e8ecff;
  --muted: #9aa3c7;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: linear-gradient(160deg, var(--bg1) 0%, var(--bg2) 55%, #1a1f5e 100%);
  background-attachment: fixed;
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---------- 背景神经线（最底层，不遮挡内容） ---------- */
#neuralNet {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 6vw;
  background: transparent;
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
.nav.scrolled {
  background: rgba(10, 14, 42, .85);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  padding: 12px 6vw;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.25rem; font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-logo-img {
  width: 30px; height: 30px; border-radius: 8px; object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(91, 140, 255, .6));
  -webkit-background-clip: unset; background-clip: unset;
}
.nav-logo-emoji {
  -webkit-background-clip: unset; background-clip: unset;
  color: initial; font-size: 1.3rem;
}
.nav-link {
  color: var(--text); text-decoration: none;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(91, 140, 255, .5);
  transition: all .3s ease;
}
.nav-link:hover {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 20px rgba(91, 140, 255, .6);
  transform: translateY(-2px);
}

/* ---------- 欢迎语 Hero ---------- */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; padding: 0 6vw;
}
.hero-glow {
  position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%);
  width: 60vmin; height: 60vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,140,255,.25), rgba(155,91,255,.12) 55%, transparent 70%);
  animation: glowPulse 5s ease-in-out infinite;
  pointer-events: none;
}

/* 欢迎语上方图片 */
.hero-logo-wrap {
  margin-bottom: 26px;
  animation: heroLogoFloat 4s ease-in-out infinite;
}
.hero-logo-wrap img {
  width: clamp(90px, 18vw, 150px);
  border-radius: 24px;
  border: 1px solid rgba(91, 140, 255, .45);
  box-shadow: 0 0 30px rgba(91, 140, 255, .4), 0 10px 40px rgba(0, 0, 0, .4);
}
@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .8; }
  50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
.welcome {
  position: relative;
  font-size: clamp(1.9rem, 6vw, 4rem);
  font-weight: 800; letter-spacing: 2px; line-height: 1.3;
  min-height: 1.3em;
  background: linear-gradient(120deg, #ffffff 10%, #9cc3ff 40%, #c39bff 70%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: textShine 4s linear infinite;
}
@keyframes textShine {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
.caret {
  display: inline-block; width: 3px; height: 1em;
  background: var(--cyan); vertical-align: -0.15em;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.subtitle {
  margin-top: 22px;
  font-size: clamp(.95rem, 2.5vw, 1.3rem);
  color: var(--muted); letter-spacing: 4px;
  animation: fadeUp 1s ease .4s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 向上滑动提示 */
.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: .8rem; letter-spacing: 2px;
}
.mouse {
  width: 24px; height: 38px; border: 2px solid var(--muted);
  border-radius: 14px; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 6px;
}
.wheel {
  width: 3px; height: 8px; border-radius: 2px; background: var(--cyan);
  animation: wheelUp 1.6s ease-in-out infinite;
}
/* 滚轮点从下往上滑动，与“向上滑动”文字一致 */
@keyframes wheelUp {
  0%   { transform: translateY(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(-18px); opacity: 0; }
}
.up-arrow {
  display: inline-block;
  animation: arrowUp 1.6s ease-in-out infinite;
  color: var(--cyan); font-weight: 700;
}
@keyframes arrowUp {
  0%, 100% { transform: translateY(2px); opacity: .4; }
  50%      { transform: translateY(-4px); opacity: 1; }
}

/* ---------- 滚动进入动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity .9s cubic-bezier(.2,.7,.3,1), transform .9s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* 视差：滚动时 hero 内容轻微上浮 */
.hero.parallax .welcome,
.hero.parallax .subtitle {
  transform: translateY(calc(var(--scroll, 0) * -0.25));
  transition: transform .15s linear;
}

/* ---------- 通用区块 ---------- */
section { position: relative; z-index: 1; }
.section-title {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700; text-align: center; margin-bottom: 10px;
}
.section-desc {
  text-align: center; color: var(--muted); margin-bottom: 40px; font-size: .95rem;
}

/* ---------- AI 对话窗口 ---------- */
.chat-section { padding: 90px 6vw 60px; }
.phone {
  max-width: 400px; margin: 0 auto;
  background: linear-gradient(180deg, #141a48, #0d1133);
  border: 1px solid rgba(91, 140, 255, .35);
  border-radius: 26px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(91, 140, 255, .15);
}
.phone-head {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 18px;
  background: rgba(91, 140, 255, .12);
  border-bottom: 1px solid rgba(91, 140, 255, .25);
}
.phone-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.phone-head .dot:nth-child(1) { background: #ff5f57; }
.phone-head .dot:nth-child(2) { background: #febc2e; }
.phone-head .dot:nth-child(3) { background: #28c840; }
.phone-title { margin-left: 8px; font-size: .85rem; color: var(--muted); }

.chat-body {
  height: 380px; padding: 18px 14px;
  overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(91,140,255,.4) transparent;
}

/* 聊天气泡 */
.bubble {
  max-width: 78%; padding: 10px 14px;
  font-size: .9rem; line-height: 1.55; word-break: break-word;
  border-radius: 16px;
  animation: bubblePop .45s cubic-bezier(.2,.9,.3,1.4) both;
}
@keyframes bubblePop {
  from { opacity: 0; transform: translateY(16px) scale(.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.bubble.ai {
  align-self: flex-start;
  background: rgba(91, 140, 255, .16);
  border: 1px solid rgba(91, 140, 255, .35);
  border-bottom-left-radius: 4px;
}
.bubble.user {
  align-self: flex-end;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  border-bottom-right-radius: 4px;
}

/* AI 正在输入 */
.typing {
  align-self: flex-start;
  display: inline-flex; gap: 5px; align-items: center;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(91, 140, 255, .16);
  border: 1px solid rgba(91, 140, 255, .35);
  border-bottom-left-radius: 4px;
}
.typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  animation: dotJump 1s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dotJump {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30%           { transform: translateY(-6px); opacity: 1; }
}

/* ---------- 宣传区 ---------- */
.banner-section { padding: 70px 6vw 40px; text-align: center; }
.banner-img-wrap {
  max-width: 820px; margin: 0 auto 40px;
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(91, 140, 255, .35);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .45);
}
.banner-img-wrap img { width: 100%; display: block; }
.intro-text {
  max-width: 760px; margin: 18px auto 0;
  color: var(--muted); line-height: 2; font-size: .98rem;
  white-space: pre-line;
}

/* ---------- 特性卡片 ---------- */
.features-section { padding: 50px 6vw 30px; }
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px; max-width: 1000px; margin: 0 auto;
}
.card {
  padding: 30px 24px; text-align: center;
  background: rgba(20, 26, 72, .6);
  border: 1px solid rgba(91, 140, 255, .25);
  border-radius: 18px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card:hover {
  transform: translateY(-10px);
  border-color: var(--cyan);
  box-shadow: 0 18px 45px rgba(34, 211, 238, .18);
}
.card .icon { font-size: 2.6rem; display: block; margin-bottom: 14px; }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .88rem; line-height: 1.7; }

/* ---------- 公告 ---------- */
.announce { padding: 30px 6vw; }
.announce-inner {
  max-width: 820px; margin: 0 auto; text-align: center;
  padding: 16px 22px; border-radius: 14px;
  background: rgba(255, 254, 190, .08);
  border: 1px solid rgba(254, 188, 46, .4);
  color: #ffe9a8; font-size: .95rem;
  animation: glowBorder 2.5s ease-in-out infinite;
}
@keyframes glowBorder {
  0%, 100% { box-shadow: 0 0 12px rgba(254, 188, 46, .15); }
  50%      { box-shadow: 0 0 30px rgba(254, 188, 46, .4); }
}

/* ---------- 跳转按钮 ---------- */
.cta { padding: 90px 6vw 110px; text-align: center; }
.cta-btn {
  display: inline-block; margin-top: 34px;
  padding: 16px 56px; font-size: 1.15rem; font-weight: 700;
  color: #fff; text-decoration: none;
  border-radius: 999px; position: relative;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  background-size: 200% 100%;
  transition: all .4s ease;
  animation: btnShine 3s linear infinite;
}
.cta-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 40px rgba(91, 140, 255, .65);
}
.cta-btn::after {
  content: ""; position: absolute; inset: -4px; border-radius: 999px;
  border: 2px solid rgba(34, 211, 238, .5);
  animation: pulseRing 2s ease-out infinite; pointer-events: none;
}
@keyframes pulseRing {
  0%   { transform: scale(.98); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}
@keyframes btnShine {
  from { background-position: 0 0; }
  to   { background-position: 200% 0; }
}

/* ---------- 页脚 ---------- */
.footer {
  position: relative; z-index: 1;
  text-align: center; padding: 26px;
  color: #5b628c; font-size: .82rem;
  border-top: 1px solid rgba(91, 140, 255, .15);
}

/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
  .chat-body { height: 320px; }
  .cta-btn { padding: 14px 40px; font-size: 1rem; }
}
