/* Global Variables and Base Styles */
:root {
  --primary: #4f6ef7;
  --bg: #f7f8fb;
  --card: #fff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  border-radius: 14px
}

a {
  text-decoration: none;
  color: inherit
}

/* Header & Navigation */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  max-width: 1200px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
}

.brand img {
  width: 34px
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-select {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
}

/* Base Elements */
section {
  max-width: 1200px;
  margin: auto;
  padding: 80px 20px;
}

h1 {
  font-size: 40px;
  margin-bottom: 20px
}

h2 {
  font-size: 32px;
  margin-bottom: 16px
}

h3 {
  margin-bottom: 10px
}

p {
  color: var(--muted);
  line-height: 1.7
}

/* Grid System */
.grid {
  display: grid;
  gap: 32px
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
}

.hero-actions {
  margin-top: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #4f7cff, #6aa6ff);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(79, 124, 255, 0.25);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79, 124, 255, 0.35);
  background: linear-gradient(135deg, #3f6df0, #5c9cff);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(79, 124, 255, 0.25);
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tag {
  background: #eef2ff;
  color: #4338ca;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

/* Architecture */
.architecture-wrapper {
  margin-top: 32px;
  background: linear-gradient(180deg,
      #f9fafb 0%,
      #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

.architecture-img {
  width: 100%;
  border-radius: 16px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Feature Lists Styles */
.feature-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #f8f9ff;
  border-radius: 12px;
  border: 1px solid #e8ebff;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 124, 255, 0.08);
  border-color: #d0d6ff;
}

.feature-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f7cff, #6aa6ff);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(79, 124, 255, 0.15);
}

.feature-content {
  flex: 1;
}

.feature-content h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.feature-content p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* Mindmap Grid Layout */
.mindmap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 24px;
}

.mindmap-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mindmap-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.mindmap-image {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

/* Capability/Feature Card Styles */
.capability-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.capability-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.capability-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: #d0d6ff;
}

.capability-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 20px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4ff, #e8eeff);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(79, 124, 255, 0.08);
}

.capability-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.capability-content h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.capability-content p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

/* Privacy Security List */
.privacy-feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

/* Footer */
footer {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  padding: 64px 20px 48px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-logo span {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.footer-description {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f4ff;
  color: var(--primary);
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 20px;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.footer-copyright p:first-child {
  margin-bottom: 4px;
}

/* Support Widget */
.support-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
}

.support-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #4f7cff, #6aa6ff);
  box-shadow: 0 10px 30px rgba(79, 124, 255, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.support-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(79, 124, 255, 0.45);
}

.support-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 280px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.support-panel.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.support-header {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
}

.support-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qrcode-item {
  text-align: center;
}

.support-body img {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

.support-body p {
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
}

.qrcode-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 0;
}

/* Bots Page Specific Styles */
.bot-hero {
  text-align: center;
  padding-bottom: 80px;
}

.bot-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.bot-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #f1f5ff;
  color: #4f7cff;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #e0e7ff;
  transition: all 0.25s ease;
}

.bot-pill:hover {
  background: #e9efff;
  transform: translateY(-1px);
}

.bot-pill.active {
  background: #4f7cff;
  color: #ffffff;
  border-color: #4f7cff;
}

.bot-pill.active .bot-icon {
  filter: brightness(2);
}

.bot-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.bot-showcase {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.bot-showcase-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.bot-showcase-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

.bot-showcase-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 16px;
}

.bot-showcase-item h4 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.bot-showcase-item p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

.scenario {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.scenario img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
}

/* Responsive Design */
@media(max-width:900px) {
  .hero {
    grid-template-columns: 1fr
  }

  h1 {
    font-size: 32px
  }

  .mindmap-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Lazy Loading Enhancements */
.lazy-load {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.lazy-load.loaded {
  opacity: 1;
}

.lazy-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.lazy-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  z-index: 1;
}

.lazy-image-container.loaded::before {
  animation: fadeOut 0.3s ease-out forwards;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Smooth scroll behavior for better UX */
html {
  scroll-behavior: smooth;
}

/* Performance optimizations */
img {
  will-change: opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .scenario {
    grid-template-columns: 1fr;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .bot-showcase {
    grid-template-columns: 1fr;
  }

  .scenario {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-main {
    padding: 48px 20px 32px;
  }
}