/* ========================
   Lexwise Website Styles
   Inspired by aivigate.cn
   ======================== */

:root {
  --bg: #0b0c10;
  --bg-elevated: #12141a;
  --bg-card: #161922;
  --surface: #1c1f29;
  --text-primary: #f5f7ff;
  --text-secondary: #a7aec7;
  --text-muted: #6c7693;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-gradient-start: #6366f1;
  --accent-gradient-end: #8b5cf6;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

/* 导航 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 12, 16, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.site-header.scrolled {
  border-color: var(--border);
  background: rgba(11, 12, 16, 0.9);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.main-nav a {
  transition: color var(--transition);
}

.main-nav a:hover {
  color: var(--text-primary);
}

.main-nav .nav-cta {
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.main-nav .nav-cta:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
}

.orb-1 {
  width: 600px;
  height: 600px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.6), transparent 70%);
  animation: float 10s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  bottom: -160px;
  left: -140px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 70%);
  animation: float 12s ease-in-out infinite reverse;
}

.grid-pattern {
  position: absolute;
  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: 60px 60px;
  mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 70%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
}

.hero-badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-light), #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
}

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

.stat-number {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-light), #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* 通用 section */
.section {
  padding: 120px 0;
  position: relative;
}

.section-light {
  background: var(--bg-elevated);
}

.section-dark {
  background: var(--bg);
}

.section-gradient {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, #151725 50%, var(--bg-elevated) 100%);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-header.light .section-title,
.section-header.light .section-desc {
  color: var(--text-primary);
}

.section-eyebrow {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 卡片网格 */
.cards-grid {
  display: grid;
  gap: 24px;
}

.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(99, 102, 241, 0.25);
}

.card-index {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

/* 服务标签页 */
.service-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.service-tab {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.service-tab:hover {
  color: var(--text-primary);
  border-color: rgba(99, 102, 241, 0.4);
}

.service-tab.active {
  background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.service-panels {
  position: relative;
}

.service-panel {
  display: none;
}

.service-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
}

.panel-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 18px;
}

.panel-text p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.check-list {
  list-style: none;
  margin-bottom: 28px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 15px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  font-size: 11px;
  font-weight: 700;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-light);
  font-weight: 600;
  font-size: 15px;
  transition: gap var(--transition);
}

.link-arrow:hover {
  gap: 10px;
}

.panel-visual {
  display: flex;
  justify-content: center;
}

.visual-card {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #1e2230, #161922);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.visual-caption {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

/* mini map */
.mini-map {
  width: 160px;
  height: 100px;
  border-radius: 50%;
  border: 2px dashed rgba(99, 102, 241, 0.35);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-map .pin {
  position: absolute;
  font-size: 18px;
  animation: pinPulse 2s ease-in-out infinite;
}

.mini-map .pin:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.mini-map .pin:nth-child(2) { top: 25%; right: 22%; animation-delay: 0.4s; }
.mini-map .pin:nth-child(3) { bottom: 20%; right: 30%; animation-delay: 0.8s; }
.mini-map .pin:nth-child(4) { bottom: 18%; left: 28%; animation-delay: 1.2s; }

.pulse {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6);
  animation: pulse 2s infinite;
}

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

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* doc preview */
.doc-preview {
  width: 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-line {
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.doc-line.risk-high { background: rgba(239, 68, 68, 0.6); width: 100%; }
.doc-line.risk-medium { background: rgba(245, 158, 11, 0.6); width: 85%; }
.doc-line.risk-low { background: rgba(34, 197, 94, 0.6); width: 70%; }

/* ip shield */
.ip-shield {
  width: 100px;
  height: 100px;
  color: var(--accent-light);
}

/* compliance rings */
.compliance-rings {
  position: relative;
  width: 120px;
  height: 120px;
}

.compliance-rings span {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  animation: ringExpand 3s ease-out infinite;
}

.compliance-rings span:nth-child(2) { animation-delay: 1s; }
.compliance-rings span:nth-child(3) { animation-delay: 2s; }

@keyframes ringExpand {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* 关于我们 */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .section-title {
  text-align: left;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 18px;
  line-height: 1.8;
}

.about-metrics {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}

.metric-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.globe-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.globe {
  width: 200px;
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring {
  position: absolute;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 50%;
}

.ring-1 {
  width: 100%;
  height: 100%;
  animation: rotate 12s linear infinite;
  border-top-color: var(--accent-light);
}

.ring-2 {
  width: 70%;
  height: 70%;
  animation: rotate 10s linear infinite reverse;
  border-right-color: var(--accent-light);
}

.ring-3 {
  width: 40%;
  height: 40%;
  animation: rotate 8s linear infinite;
  border-bottom-color: var(--accent-light);
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.globe-caption {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.globe-caption strong {
  color: var(--text-primary);
}

/* 价值主张 */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all var(--transition);
}

.value-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  color: var(--accent-light);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.value-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

/* why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.why-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-light);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
}

.why-item h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.why-item p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* CTA */
.section-cta {
  background: linear-gradient(135deg, #1c1b4d 0%, #151725 50%, #0b0c10 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.2), transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 18px;
}

.cta-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cta-note {
  color: var(--text-muted);
  font-size: 14px;
}

.cta-note a {
  color: var(--accent-light);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: #07080a;
  padding: 72px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 64px;
  margin-bottom: 56px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 16px;
  font-size: 14px;
}

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

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

/* 响应式 */
@media (max-width: 1024px) {
  .three-cols,
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-layout,
  .panel-content {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: -1;
  }

  .globe-card {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 72px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 72px);
    background: rgba(11, 12, 16, 0.98);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transition: right var(--transition);
    align-items: flex-start;
  }

  .main-nav.open {
    right: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    gap: 32px;
  }

  .three-cols,
  .value-grid,
  .why-grid,
  .footer-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .service-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .service-tab {
    white-space: nowrap;
  }

  .panel-content {
    padding: 28px;
  }

  .about-layout {
    gap: 48px;
  }

  .about-metrics {
    gap: 24px;
  }

  .footer-grid,
  .footer-links {
    gap: 40px;
  }

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

/* 备案号样式 */
.footer-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-beian {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.footer-beian a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-beian a:hover {
  color: var(--primary);
}
.footer-beian-sep {
  color: var(--text-muted);
  opacity: 0.5;
}
.footer-beian-gongan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.footer-gongan-icon {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
}
@media (max-width: 720px) {
  .footer-meta {
    flex-direction: column;
    gap: 6px;
  }
}

/* ========================
   产品能力模块（A版新增）
   ======================== */
.capability-block {
  margin-bottom: 72px;
}

.capability-block:last-child {
  margin-bottom: 0;
}

.cap-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.cap-label {
  font-size: 14px;
  font-weight: 700;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
}

.cap-header h3 {
  font-size: 24px;
  font-weight: 700;
}

.cap-blue .cap-label { background: linear-gradient(135deg, #3b82f6, #1e5cb3); }
.cap-teal .cap-label { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.cap-indigo .cap-label { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.cap-copper .cap-label { background: linear-gradient(135deg, #e8d5a3, #c8a25c); color: #1a1f2e; }

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

.cap-grid-reverse {
  grid-template-columns: 1fr 1fr;
}

.cap-grid-reverse .cap-cols {
  order: 2;
}

.cap-grid-reverse .cap-screenshot,
.cap-grid-reverse .cap-screenshots-grid,
.cap-grid-reverse .cap-visual-placeholder {
  order: 1;
}

.cap-cols {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cap-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  border-top: 3px solid;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cap-col:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cap-col h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cap-col p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.cap-blue .cap-col { border-top-color: #3b82f6; }
.cap-teal .cap-col { border-top-color: #14b8a6; }
.cap-indigo .cap-col { border-top-color: #6366f1; }
.cap-copper .cap-col { border-top-color: #c8a25c; }

.cap-screenshot {
  text-align: center;
}

.cap-screenshot img {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cap-screenshot-label {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.cap-screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cap-screenshots-grid img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.cap-visual-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 280px;
}

.cap-visual-placeholder p {
  color: var(--text-muted);
  font-size: 14px;
}

.knowledge-graph {
  position: relative;
  width: 180px;
  height: 140px;
}

.knowledge-graph .node {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(99, 102, 241, 0.1));
  border: 2px solid rgba(99, 102, 241, 0.5);
  animation: nodePulse 3s ease-in-out infinite;
}

.knowledge-graph .node-1 { top: 0; left: 50%; transform: translateX(-50%); }
.knowledge-graph .node-2 { top: 40%; left: 0; }
.knowledge-graph .node-3 { top: 40%; right: 0; }
.knowledge-graph .node-4 { bottom: 0; left: 25%; }
.knowledge-graph .node-5 { bottom: 0; right: 25%; animation-delay: 1.5s; }

@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(99, 102, 241, 0); }
}

/* ========================
   部署方式表格
   ======================== */
.deploy-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.deploy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 600px;
}

.deploy-table thead th {
  background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
  color: #fff;
  font-weight: 600;
  padding: 18px 24px;
  text-align: left;
  font-size: 15px;
}

.deploy-table tbody td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.6;
}

.deploy-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.deploy-table tbody tr:last-child td {
  border-bottom: none;
}

.deploy-key {
  color: var(--text-primary) !important;
  font-weight: 700;
}

/* ========================
   安全合规
   ======================== */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.security-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.security-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.sec-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.security-badge h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.security-badge p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

/* 两列卡片 */
.two-cols {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card增值 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card增值:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(99, 102, 241, 0.25);
}

.card-emoji {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card增值 h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card增值 p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-light);
  font-weight: 500;
}

/* 响应式补充 */
@media (max-width: 1024px) {
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cap-grid,
  .cap-grid-reverse {
    grid-template-columns: 1fr;
  }

  .cap-grid-reverse .cap-cols {
    order: 1;
  }

  .cap-grid-reverse .cap-screenshot,
  .cap-grid-reverse .cap-screenshots-grid,
  .cap-grid-reverse .cap-visual-placeholder {
    order: 2;
  }
}

@media (max-width: 768px) {
  .security-grid,
  .two-cols {
    grid-template-columns: 1fr;
  }

  .cap-screenshots-grid {
    grid-template-columns: 1fr;
  }

  .deploy-table {
    font-size: 13px;
  }

  .deploy-table thead th,
  .deploy-table tbody td {
    padding: 12px 16px;
  }
}

/* ========================
   Hero 视频背景
   ======================== */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
  filter: hue-rotate(220deg) saturate(0.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,12,16,0.55) 0%, rgba(11,12,16,0.7) 100%);
  z-index: 1;
}

.hero-bg .grid-pattern,
.hero-bg .gradient-orb {
  z-index: 2;
}

.hero-content {
  z-index: 3;
}

/* 产品能力视频 */
.cap-video {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
  background: #000;
}

/* ========================
   出海业务专长
   ======================== */
.expertise-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 80px;
}

.expertise-card {
  position: relative;
  padding: 40px 32px;
}

.expertise-tag {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 36px;
  font-weight: 700;
  color: rgba(99, 102, 241, 0.15);
  line-height: 1;
}

.expertise-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-primary);
}

.expertise-subtitle {
  font-size: 13px;
  color: var(--accent-light);
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.expertise-card .check-list li {
  font-size: 14px;
  margin-bottom: 8px;
}

/* 2025 自测清单 */
.checklist-wrap {
  margin-top: 40px;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.checklist-item {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition);
}

.checklist-item:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

.checklist-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2));
  color: var(--accent-light);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
}

.checklist-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.checklist-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================
   FAQ
   ======================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 28px;
  transition: border-color var(--transition);
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(99, 102, 241, 0.4);
}

.faq-item summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent-light);
  transition: transform var(--transition);
  font-weight: 300;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.faq-answer strong {
  color: var(--text-primary);
}

/* FAQ 响应式 */
@media (max-width: 768px) {
  .expertise-grid,
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================
   业务咨询弹窗
   ======================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 12, 0.78);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.25s ease;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  color: #1a1f2e;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  display: grid;
  place-items: center;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}

.modal-close:hover {
  background: #f1f5f9;
  color: #1a1f2e;
}

.modal-body {
  padding: 44px 40px 36px;
}

.modal-tag {
  display: inline-block;
  border: 1.5px solid #5eead4;
  color: #0d9488;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  background: #f0fdfa;
}

.modal-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1f2e;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.modal-subtitle {
  color: #4a5568;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1f2e;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-field .required {
  color: #ef4444;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
  color: #1a1f2e;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #94a3b8;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.form-field input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #ef4444;
}

.form-field textarea {
  resize: vertical;
  min-height: 90px;
}

.char-counter {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 12px;
  color: #94a3b8;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  padding: 0 4px;
}

.modal-submit {
  margin-top: 8px;
  width: 100%;
  padding: 14px;
  background: #14532d;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.5px;
}

.modal-submit:hover {
  background: #166534;
}

.modal-submit:active {
  transform: translateY(1px);
}

.modal-success {
  text-align: center;
  color: #0d9488;
  font-size: 14px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  padding: 14px;
  margin-top: 6px;
}

@media (max-width: 540px) {
  .modal-body {
    padding: 36px 24px 28px;
  }
  .modal-title {
    font-size: 26px;
  }
}

/* ========================
   图片轮播组件
   ======================== */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #000;
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  transform: translateX(0);
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  position: relative;
  display: block;
  background: #000;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  background: #000;
  margin: 0 auto;
}

.carousel-caption {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 12px 16px;
  margin: 0;
  background: rgba(17, 24, 39, 0.6);
  border-top: 1px solid var(--border);
}

/* 仅一张图时隐藏控制按钮 */
.carousel-single .carousel-btn,
.carousel-single .carousel-dots {
  display: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(11, 12, 16, 0.75);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  z-index: 10;
  backdrop-filter: blur(4px);
  padding: 0;
}

.carousel-btn:hover {
  background: var(--primary, #6366f1);
  color: #fff;
  border-color: var(--primary, #6366f1);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  bottom: 56px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary, #6366f1);
  transform: scale(1.25);
}

@media (max-width: 768px) {
  .carousel-slide img {
    max-height: 320px;
  }
  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .carousel-prev {
    left: 8px;
  }
  .carousel-next {
    right: 8px;
  }
  .carousel-dots {
    bottom: 48px;
  }
}

/* ========================
   WPS 金山表单嵌入容器（自适应高度 + 加载态）
   ======================== */
.wps-form-wrap {
  position: relative;
  width: 100%;
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  min-height: 580px;
}

.wps-form-wrap iframe {
  display: block;
  width: 100%;
  /* JS 会根据 WPS 表单内容动态调整这个高度 */
  height: 900px;
  min-height: 900px;
  border: none;
  background: #ffffff;
}

.wps-form-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #64748b;
  font-size: 14px;
  z-index: 2;
  gap: 14px;
  transition: opacity 0.4s ease;
}

.wps-form-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.wps-form-loading .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: wps-spin 0.8s linear infinite;
}

@keyframes wps-spin {
  to { transform: rotate(360deg); }
}

.modal-footer-note {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted, #94a3b8);
}

.modal-footer-note strong {
  color: var(--primary, #6366f1);
  font-weight: 600;
}

@media (max-width: 540px) {
  .modal-dialog {
    max-width: 100%;
    max-height: 95vh;
  }
  .wps-form-wrap {
    min-height: auto;
  }
  .wps-form-wrap iframe {
    /* 移动端不设固定高度，让内容自然撑开 */
    height: 700px;
    min-height: 700px;
  }
}
