/* ============================================================
   MyAgent 官网样式（深色科技风 · 玻璃拟态 · 光效动效）
   ============================================================ */

:root {
  /* 色彩 */
  --bg: #070b16;
  --bg-alt: #0a0f1e;
  --card: rgba(22, 29, 46, 0.55);
  --card-solid: #131a2c;
  --card-border: rgba(79, 140, 255, 0.14);
  --text: #e8ecf5;
  --text-muted: #8b94a7;
  --accent: #4f8cff;
  --accent-strong: #6ea2ff;
  --accent-purple: #7c5cff;
  --success: #4ade80;
  --danger: #ff6b6b;
  --gradient: linear-gradient(135deg, #4f8cff 0%, #7c5cff 100%);
  --gradient-text: linear-gradient(120deg, #ffffff 20%, #7cb3ff 60%, #a98cff 100%);

  /* 圆角 / 阴影 */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 12px 40px rgba(79, 140, 255, 0.18);
  --glow: 0 0 24px rgba(79, 140, 255, 0.45);

  /* 字体与动效 */
  --font: "Segoe UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: Consolas, "Courier New", monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(79, 140, 255, 0.12);
  color: var(--accent-strong);
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
}

.muted {
  color: var(--text-muted);
}

/* ============================================================
   背景装饰层：网格纹理 + 顶部光晕 + 浮动光斑
   ============================================================ */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-grid {
  position: absolute;
  inset: 0;
  /* 细网格纹理（CSS 渐变绘制） */
  background-image:
    linear-gradient(rgba(79, 140, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 140, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.25) 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.25) 60%, transparent);
}

.bg-glow {
  position: absolute;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 700px;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(79, 140, 255, 0.22), transparent 70%);
}

/* 浮动光斑 */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: orbFloat 16s var(--ease) infinite alternate;
}

.orb-1 {
  width: 340px;
  height: 340px;
  top: 12%;
  left: -120px;
  background: radial-gradient(circle, rgba(79, 140, 255, 0.5), transparent 70%);
}

.orb-2 {
  width: 300px;
  height: 300px;
  top: 38%;
  right: -110px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.42), transparent 70%);
  animation-delay: -5s;
}

.orb-3 {
  width: 260px;
  height: 260px;
  bottom: -80px;
  left: 30%;
  background: radial-gradient(circle, rgba(46, 190, 255, 0.35), transparent 70%);
  animation-delay: -10s;
}

@keyframes orbFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(40px, -50px, 0) scale(1.12);
  }
}

/* ============================================================
   导航栏
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--duration) ease, border-color var(--duration) ease, box-shadow var(--duration) ease;
}

/* 滚动后：加深背景 + 渐变细边 + 投影 */
.nav.scrolled {
  background: rgba(7, 11, 22, 0.92);
  border-bottom-color: var(--card-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-logo {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 6px rgba(79, 140, 255, 0.6));
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

/* hover 渐变下划线 */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(79, 140, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(79, 140, 255, 0.55);
}

.btn-lg {
  flex-direction: column;
  padding: 18px 52px;
  font-size: 1.15rem;
  line-height: 1.3;
  border-radius: 14px;
  /* 按钮光晕呼吸动画 */
  animation: btnBreathe 3.2s ease-in-out infinite;
}

@keyframes btnBreathe {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(79, 140, 255, 0.35), 0 0 0 0 rgba(79, 140, 255, 0.35);
  }
  50% {
    box-shadow: 0 6px 30px rgba(79, 140, 255, 0.55), 0 0 28px 2px rgba(79, 140, 255, 0.3);
  }
}

.btn-sub {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.85;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 4px;
}

.link-btn:hover {
  text-decoration: underline;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 110px 24px 80px;
  text-align: center;
  position: relative;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* 徽章：渐变边框发光 */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--gradient) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 20px rgba(79, 140, 255, 0.15);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: dotPulse 2.2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.8);
  }
}

.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 4.2rem);
  font-weight: 800;
  line-height: 1.22;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* 标题微光 */
  text-shadow: 0 0 60px rgba(79, 140, 255, 0.18);
}

.hero-sub {
  max-width: 660px;
  margin: 24px auto 40px;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.9;
}

.download-panel {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.download-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  gap: 72px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   区块通用
   ============================================================ */
.section {
  padding: 96px 24px;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.6), rgba(10, 15, 30, 0.9));
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  text-align: center;
}

/* 小字英文标签 */
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 10px;
  opacity: 0.85;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

/* 标题下渐变短横线 */
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 3px;
  background: var(--gradient);
  box-shadow: 0 0 12px rgba(79, 140, 255, 0.5);
}

.section-sub {
  color: var(--text-muted);
  margin: 14px 0 48px;
}

/* ============================================================
   玻璃拟态卡片体系
   ============================================================ */
.feature-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  text-align: left;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.feature-card,
.step,
.stat-card {
  position: relative;
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

/* 顶部渐变高光细线 */
.feature-card::before,
.step::before,
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 140, 255, 0.5), transparent);
  opacity: 0.6;
}

.feature-card:hover,
.step:hover,
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 140, 255, 0.45);
  box-shadow: var(--shadow-hover);
}

.feature-card {
  padding: 30px 26px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.18), rgba(124, 92, 255, 0.18));
  border: 1px solid rgba(79, 140, 255, 0.25);
  margin-bottom: 18px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 18px rgba(79, 140, 255, 0.35);
}

.feature-card h3,
.step h3 {
  font-size: 1.06rem;
  margin-bottom: 10px;
}

.feature-card p,
.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================================
   案例展示
   ============================================================ */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  text-align: left;
}

.showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

.showcase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 140, 255, 0.5);
  box-shadow: var(--shadow-hover);
}

/* 封面区：16:10 图片 + hover 放大 + 渐变遮罩 */
.showcase-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0f1e;
}

.showcase-cover img,
.showcase-cover svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.showcase-card:hover .showcase-cover img,
.showcase-card:hover .showcase-cover svg {
  transform: scale(1.06);
}

.showcase-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 11, 22, 0.75), transparent 45%);
}

/* 标签徽章（技术栈） */
.showcase-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.showcase-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-strong);
  background: rgba(7, 11, 22, 0.72);
  border: 1px solid rgba(79, 140, 255, 0.3);
  border-radius: 999px;
  padding: 3px 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* 封面角标（类型） */
.showcase-type {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  font-size: 0.72rem;
  color: rgba(232, 236, 245, 0.9);
  background: rgba(7, 11, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 3px 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* 信息区 */
.showcase-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.showcase-body h3 {
  font-size: 1.08rem;
}

.showcase-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

/* 在线体验按钮 */
.showcase-link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-strong);
  transition: gap 0.2s var(--ease), color 0.2s ease;
}

.showcase-link:hover {
  gap: 10px;
  color: var(--text);
}

.showcase-link .arrow {
  transition: transform 0.2s var(--ease);
}

.showcase-link:hover .arrow {
  transform: translateX(2px);
}

/* ============================================================
   快速开始
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  text-align: left;
}

.step {
  padding: 30px 26px;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(79, 140, 255, 0.4);
}

/* ============================================================
   更新日志
   ============================================================ */
.changelog {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.changelog-item {
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 18px;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.changelog-item:hover {
  border-color: rgba(79, 140, 255, 0.4);
  transform: translateY(-2px);
}

.changelog-item h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.changelog-item time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.changelog-item ul {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.changelog-item li {
  margin-bottom: 4px;
}

.version-tag {
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.2), rgba(124, 92, 255, 0.2));
  border: 1px solid rgba(79, 140, 255, 0.3);
  color: var(--accent-strong);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

/* ============================================================
   数据
   ============================================================ */
.stat-card {
  padding: 34px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-card-num {
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 48px 24px;
  background: rgba(7, 11, 22, 0.6);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-note,
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.78rem;
  opacity: 0.75;
}

/* ============================================================
   滚动渐入动画
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .bg-orb,
  .btn-lg,
  .badge-dot {
    animation: none;
  }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .feature-grid,
  .steps,
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .hero {
    padding: 80px 20px 64px;
  }

  .hero-stats {
    gap: 40px;
  }

  .feature-grid,
  .steps,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .section {
    padding: 72px 20px;
  }
}
