:root {
  --app-bg: #0a0b0f;
  --app-border: rgba(255, 255, 255, 0.08);
  --app-border-hover: rgba(108, 92, 231, 0.45);
  --app-primary: #6c5ce7;
  --app-primary-light: #a29bfe;
  --app-accent: #00cec9;
  --app-text: #e8eaf0;
  --app-text-muted: #8b90a5;
  --app-radius: 14px;
  --app-radius-sm: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--app-bg);
  color: var(--app-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ambient-1 {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -80px;
  background: rgba(108, 92, 231, 0.18);
}

.ambient-2 {
  width: 360px;
  height: 360px;
  bottom: -80px;
  left: -60px;
  background: rgba(0, 206, 201, 0.1);
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.website {
  position: relative;
  z-index: 1;
}

.site-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10, 11, 15, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--app-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--app-text);
  font-weight: 600;
  font-size: 15px;
  flex-shrink: 0;
}

.logo-icon,
.logo-icon.small {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.25), rgba(0, 206, 201, 0.12));
  border: 1px solid rgba(108, 92, 231, 0.35);
  color: var(--app-primary-light);
}

.logo-icon-img {
  display: block;
  flex-shrink: 0;
  border-radius: 6px;
}

.logo-icon-img.small {
  border-radius: 5px;
}

.logo-icon.small { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--app-text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--app-text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--app-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 15px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--app-primary) 0%, #8b5cf6 100%);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.4);
}

.btn-ghost {
  color: var(--app-text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--app-border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary {
  color: var(--app-text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--app-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Hero */
.hero { padding: 72px 0 96px; }

.hero-inner {
  display: flex;
  justify-content: center;
}

.hero-content {
  max-width: 720px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--app-primary-light);
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.25);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--app-primary-light) 55%, var(--app-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  margin: 0 auto 32px;
  max-width: 540px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--app-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-item strong { font-size: 1.25rem; }
.stat-item span { font-size: 13px; color: var(--app-text-muted); }

/* Sections */
.section { padding: 88px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--app-primary-light);
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 999px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--app-text-muted);
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px 24px;
  background: rgba(18, 20, 28, 0.72);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  border-color: var(--app-border-hover);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 18px;
}

.feature-icon.purple {
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.3);
  color: var(--app-primary-light);
}

.feature-icon.teal {
  background: rgba(0, 206, 201, 0.12);
  border: 1px solid rgba(0, 206, 201, 0.28);
  color: var(--app-accent);
}

.feature-card h3 { margin: 0 0 10px; font-size: 1.05rem; }

.feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--app-text-muted);
}

.workflow {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--app-border);
  border-bottom: 1px solid var(--app-border);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.workflow-step {
  padding: 28px 24px;
  background: rgba(18, 20, 28, 0.72);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
}

.step-index {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--app-primary-light);
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.25);
}

.step-body h3 { margin: 0 0 8px; font-size: 1.05rem; }

.step-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--app-text-muted);
}

.security-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.security-content h2 {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.security-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.security-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--app-text-muted);
}

.security-list .check {
  color: var(--app-accent);
  font-weight: 700;
  flex-shrink: 0;
}

.security-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.security-layer {
  padding: 20px;
  background: rgba(18, 20, 28, 0.72);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
}

.security-layer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--app-primary-light);
}

.security-layer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--app-text-muted);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.scenario-card {
  padding: 32px 24px;
  border-radius: var(--app-radius);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 206, 201, 0.06));
  border: 1px solid var(--app-border);
}

.scenario-card h3 { margin: 0 0 10px; font-size: 1.1rem; }

.scenario-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--app-text-muted);
}

/* Platform */
.platform {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--app-border);
  border-bottom: 1px solid var(--app-border);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.platform-card {
  padding: 28px 24px;
  background: rgba(18, 20, 28, 0.72);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.platform-card:hover {
  border-color: var(--app-border-hover);
  transform: translateY(-4px);
}

.platform-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 16px;
}

.platform-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.platform-card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--app-text-muted);
}

.platform-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-tags li {
  padding: 4px 10px;
  font-size: 12px;
  color: var(--app-primary-light);
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.22);
  border-radius: 999px;
}

.platform-tech {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.platform-tech-item {
  padding: 18px 16px;
  border-radius: var(--app-radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--app-border);
}

.platform-tech-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--app-accent);
}

.platform-tech-item span {
  font-size: 12px;
  line-height: 1.5;
  color: var(--app-text-muted);
}

.platform-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.compare-col {
  padding: 24px;
  border-radius: var(--app-radius);
  border: 1px solid var(--app-border);
}

.compare-col h4 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.compare-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-col li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--app-text-muted);
  padding-left: 18px;
  position: relative;
}

.compare-col li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--app-text-muted);
}

.compare-old {
  background: rgba(255, 255, 255, 0.02);
}

.compare-old h4 { color: var(--app-text-muted); }

.compare-new {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(0, 206, 201, 0.06));
  border-color: rgba(108, 92, 231, 0.3);
}

.compare-new h4 { color: var(--app-primary-light); }

.compare-new li::before { color: var(--app-accent); content: '✓'; left: 0; }

.cta { padding-bottom: 96px; }

.cta-inner {
  text-align: center;
  padding: 56px 32px;
  border-radius: calc(var(--app-radius) + 4px);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.18), rgba(0, 206, 201, 0.08));
  border: 1px solid rgba(108, 92, 231, 0.25);
}

.cta-inner h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-inner p {
  margin: 0 0 28px;
  color: var(--app-text-muted);
}

.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--app-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--app-text-muted);
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .security-inner { grid-template-columns: 1fr; }
  .feature-grid,
  .workflow-steps,
  .scenario-grid,
  .platform-grid { grid-template-columns: 1fr; }
  .platform-tech { grid-template-columns: 1fr 1fr; }
  .platform-compare { grid-template-columns: 1fr; }
  .security-panel { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
  .header-actions .btn-ghost { display: none; }
  .platform-tech { grid-template-columns: 1fr; }
}

.devtools-blank-screen {
  background: #fff;
  pointer-events: auto;
}

.site-devtools-blank {
  position: fixed;
  inset: 0;
  z-index: 100000;
  width: 100vw;
  height: 100vh;
}

/* WeChat contact widget */
.contact-widget {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.contact-fab-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.contact-fab-hint {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: #07c160;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: contact-hint-bounce 1.6s ease-in-out infinite;
}

.contact-fab-hint::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  margin-left: 40px;
  background: #fff;
  transform: rotate(45deg);
}

.contact-fab-wrap .contact-fab-hint {
  position: relative;
}

.contact-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 20px 10px 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #19d56a 0%, #07c160 55%, #06ad56 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    0 0 0 6px rgba(7, 193, 96, 0.18),
    0 14px 36px rgba(7, 193, 96, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: visible;
}

.contact-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 0 0 8px rgba(7, 193, 96, 0.22),
    0 18px 40px rgba(7, 193, 96, 0.55);
}

.contact-fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(7, 193, 96, 0.55);
  animation: contact-pulse 1.8s ease-out infinite;
  pointer-events: none;
}

.contact-fab-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.contact-fab-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.contact-fab-text strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.contact-fab-text em {
  margin-top: 2px;
  font-size: 12px;
  font-style: normal;
  opacity: 0.92;
  font-weight: 500;
}

.contact-panel {
  position: relative;
  width: min(380px, calc(100vw - 32px));
  background: #fff;
  color: #1f2937;
  border-radius: 18px;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  border: 2px solid rgba(7, 193, 96, 0.35);
  animation: contact-panel-in 0.28s ease;
}

.contact-panel[hidden] {
  display: none !important;
}

.contact-panel-badge {
  padding: 8px 16px;
  background: linear-gradient(90deg, #e8fff2, #f0fff7);
  color: #07c160;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(7, 193, 96, 0.15);
}

.contact-panel-close {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.contact-panel-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 20px;
}

.contact-qr-wrap {
  flex-shrink: 0;
  padding: 8px;
  background: #f3f4f6;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(7, 193, 96, 0.12);
}

.contact-qr {
  display: block;
  width: 132px;
  height: 132px;
  object-fit: contain;
  border-radius: 6px;
}

.contact-panel-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.contact-panel-info p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #4b5563;
}

.contact-panel-tip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  background: #07c160;
  font-weight: 700;
}

@keyframes contact-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.18);
    opacity: 0;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

@keyframes contact-hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes contact-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .contact-widget {
    right: 14px;
    bottom: 14px;
  }

  .contact-panel-body {
    flex-direction: column;
    text-align: center;
  }

  .contact-fab {
    min-height: 54px;
    padding: 10px 16px 10px 14px;
  }

  .contact-fab-text strong {
    font-size: 15px;
  }

  .contact-qr {
    width: 148px;
    height: 148px;
  }
}
