/* ============================================
   零象智能体 — Official Website
   ============================================ */

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:          #0a0a0f;
  --bg-alt:      #0f0f17;
  --surface:     #14141d;
  --surface-2:   #1a1a26;
  --border:      #25253a;
  --border-soft: #1e1e2e;

  --text:        #e8e8f0;
  --text-soft:   #a0a0b8;
  --text-muted:  #6c6c85;

  --purple:      #863bff;
  --purple-light:#a05cff;
  --purple-dark: #6b1fdb;
  --purple-glow: rgba(134, 59, 255, 0.35);

  --blue:        #47bfff;
  --cyan:        #4dd4d4;
  --pink:        #ff6bac;
  --green:       #4ade80;
  --orange:      #fb923c;

  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   24px;

  --max-width:   1140px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
          'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  font-family: var(--font);
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--purple-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--purple-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--purple);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--purple);
  color: var(--purple-light);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
  box-shadow: none;
  transform: none;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.9);
  border-bottom-color: var(--border-soft);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  background: var(--purple);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-cta:hover {
  background: var(--purple-light);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}
.glow-1 {
  width: 600px; height: 600px;
  background: var(--purple);
  top: -200px; left: 50%;
  transform: translateX(-50%);
  animation: float-glow 8s ease-in-out infinite;
}
.glow-2 {
  width: 400px; height: 400px;
  background: var(--blue);
  bottom: -100px; right: 10%;
  opacity: 0.2;
  animation: float-glow 10s ease-in-out infinite reverse;
}
@keyframes float-glow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-30px); }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(134, 59, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 59, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 28px;
  animation: fade-up 0.6s ease both;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fade-up 0.7s ease 0.1s both;
}
.gradient-text {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 36px;
  animation: fade-up 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fade-up 0.7s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  animation: fade-up 0.7s ease 0.4s both;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Trust Bar ===== */
.trust-bar {
  padding: 48px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt);
}
.trust-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
}
.trust-item {
  font-size: 1rem;
  color: var(--text-soft);
  font-weight: 600;
  transition: color 0.2s;
}
.trust-item:hover { color: var(--text); }

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}
.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--purple-glow);
  border: 1px solid rgba(134, 59, 255, 0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--purple-light);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--text-soft);
}

/* ===== Feature Cards ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.icon-purple { background: rgba(134, 59, 255, 0.15); }
.icon-blue   { background: rgba(71, 191, 255, 0.15); }
.icon-cyan   { background: rgba(77, 212, 212, 0.15); }
.icon-pink   { background: rgba(255, 107, 172, 0.15); }
.icon-green  { background: rgba(74, 222, 128, 0.15); }
.icon-orange { background: rgba(251, 146, 60, 0.15); }

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===== Tools Grid ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.tool-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  transition: all 0.25s;
}
.tool-item:hover {
  border-color: var(--purple);
  background: var(--surface-2);
}
.tool-emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}
.tool-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.tool-info p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ===== Memory System ===== */
.memory-layers {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.memory-card {
  flex: 1;
  min-width: 260px;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
}
.memory-level {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: 'Consolas', monospace;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  flex-shrink: 0;
  padding-top: 2px;
}
.memory-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.memory-body p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.memory-connector {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.memory-connector::after {
  content: '';
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  opacity: 0.4;
}

.memory-note {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
  padding: 16px 28px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.memory-note p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ===== Modes ===== */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.mode-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
}
.mode-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
}
.mode-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.mode-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.mode-card p {
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* ===== Tech Layout ===== */
.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.tech-side {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.tech-side-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.tech-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.92rem;
  color: var(--text-soft);
}
.tech-list li:last-child { border-bottom: none; }
.tech-list strong {
  color: var(--text);
  font-weight: 600;
}

.tech-highlights {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.tech-highlight {
  text-align: center;
}
.hl-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hl-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Download CTA ===== */
.section-download {
  padding: 80px 0 100px;
}
.download-card {
  position: relative;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  overflow: hidden;
}
.download-bg-glow {
  position: absolute;
  width: 500px; height: 500px;
  background: var(--purple);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}
.download-card > *:not(.download-bg-glow) {
  position: relative;
  z-index: 1;
}
.download-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.download-desc {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 32px;
}
.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.download-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.download-meta .dot { margin: 0 8px; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  padding: 64px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.footer-brand {
  max-width: 320px;
}
.footer-tagline {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-soft);
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--purple-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-version {
  font-family: 'Consolas', monospace;
}
.footer-icp {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-icp:hover {
  color: var(--purple-light);
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .tech-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-toggle { display: flex; }

  .section { padding: 64px 0; }
  .section-header { margin-bottom: 44px; }

  .hero-stats { gap: 16px; }
  .stat-num { font-size: 1.5rem; }
  .stat-divider { display: none; }

  .memory-card { flex-direction: column; max-width: 100%; }
  .memory-connector {
    width: 2px; height: 32px;
  }
  .memory-connector::after {
    width: 2px; height: 100%;
    background: linear-gradient(180deg, var(--purple), var(--blue));
  }

  .footer-top { flex-direction: column; }
  .footer-links { gap: 32px; }

  .tech-highlights { gap: 28px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .download-buttons { flex-direction: column; }
  .download-buttons .btn { width: 100%; }
}

/* ===== 公告条 ===== */
.announcement-bar {
  position: relative;
  text-align: center;
  padding: 10px 48px;
  font-size: 14px;
  background: linear-gradient(90deg, rgba(99,102,241,0.12), rgba(168,85,247,0.12));
  color: #6366f1;
  border-bottom: 1px solid rgba(99,102,241,0.15);
}
.announcement-bar a { color: #6366f1; font-weight: 600; text-decoration: none; }
.announcement-bar a:hover { text-decoration: underline; }
.announcement-close {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  border: none; background: none; font-size: 20px; cursor: pointer;
  color: #6366f1; opacity: 0.5; line-height: 1;
}
.announcement-close:hover { opacity: 1; }
