/*
  humoguard static site styles
  - Clean, modern, responsive
  - No external network dependencies (safe for offline preview)
*/

:root {
  --bg: #0b0d12;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #e6eaf2;
  --muted: #a7b0c0;
  --primary: #6aa6ff;
  --primary-2: #8a73ff;
  --accent: #20d6a7;
  --danger: #ff6a72;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: 
    /* 统一的网格背景 */
    linear-gradient(rgba(106,166,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(106,166,255,0.02) 1px, transparent 1px),
    /* 统一的基础背景 */
    #0b0d12;
  background-size: 
    40px 40px,
    40px 40px,
    100% 100%;
  background-position:
    0 0,
    0 0,
    0 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "PingFang SC", "Microsoft Yahei", "Noto Sans CJK SC", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* 统一的背景装饰元素 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle 400px at 20% 20%, rgba(106,166,255,0.03), transparent 60%),
    radial-gradient(circle 300px at 80% 80%, rgba(32,214,167,0.02), transparent 60%);
  pointer-events: none;
  z-index: -1;
  animation: backgroundFloat 30s ease-in-out infinite;
}

@keyframes backgroundFloat {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg);
    opacity: 1;
  }
  33% { 
    transform: translate(-10px, -15px) rotate(1deg);
    opacity: 0.8;
  }
  66% { 
    transform: translate(10px, -10px) rotate(-1deg);
    opacity: 0.9;
  }
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* 新增不同宽度的容器 */
.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.container-wide {
  max-width: 1600px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* 添加区块装饰 */
.section-decorator {
  position: relative;
  overflow: hidden;
}

.section-decorator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(106,166,255,0.3), transparent);
}

.section-decorator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(106,166,255,0.02), transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 0;
  background: rgba(11,13,18,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--panel-strong);
  transition: all 0.3s ease;
}

/* 滚动时的导航栏效果 */
.site-header.scrolled {
  background: rgba(11,13,18,0.98);
  backdrop-filter: blur(25px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border-bottom-color: rgba(106,166,255,0.2);
}

.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-logo { height: 56px; width: auto; }
.brand-text { display: none; }
.brand-text .divider { display: none; }

.nav { display: flex; align-items: center; gap: 10px; position: relative; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--panel-strong);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 10px;
}
.nav-list { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--muted); padding: 8px 10px; border-radius: 10px; }
.nav-list a:hover { color: var(--text); background: var(--panel); }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 0 60px;
  margin-top: 80px;
}

/* 动态“极光”光带（更炫酷） */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg at 70% 10%, rgba(106,166,255,0.18), rgba(32,214,167,0.14), transparent 30%),
              radial-gradient(900px 500px at 15% 20%, rgba(106,166,255,0.10), transparent 60%),
              radial-gradient(800px 420px at 85% 25%, rgba(32,214,167,0.10), transparent 65%);
  filter: blur(28px) saturate(120%);
  pointer-events: none;
  animation: auroraSpin 26s linear infinite;
  opacity: 0.9;
}

@keyframes auroraSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.02); }
  100% { transform: rotate(360deg) scale(1); }
}

.hero-content { 
  max-width: 900px; 
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin: 0 0 24px 0;
  font-size: clamp(40px, 6.8vw, 72px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #e6eaf2 25%, #6aa6ff 60%, #20d6a7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 6px 40px rgba(106,166,255,0.28);
}

/* 霓虹下划线动画 */
.hero h1::after {
  content: '';
  display: block;
  width: 76px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #6aa6ff, #20d6a7);
  box-shadow: 0 0 16px rgba(106,166,255,0.6), 0 0 24px rgba(32,214,167,0.45);
  animation: underlinePulse 2.8s ease-in-out infinite;
}

@keyframes underlinePulse {
  0%, 100% { transform: translateY(0) scaleX(1); opacity: 1; }
  50% { transform: translateY(1px) scaleX(1.08); opacity: 0.85; }
}

.subtitle { 
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 28px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.cta { 
  display: flex; 
  gap: 16px; 
  margin: 40px 0 32px; 
  justify-content: center;
  flex-wrap: wrap;
}

.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  padding: 14px 28px; 
  border-radius: 16px; 
  border: 1px solid var(--panel-strong); 
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.btn.primary { 
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none; 
  color: #08111a; 
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(106,166,255,0.3), 0 0 0 1px rgba(32,214,167,0.2) inset;
}

.btn.ghost { 
  background: rgba(255,255,255,0.05); 
  border-color: rgba(106,166,255,0.28);
}

.btn:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.btn:hover::before {
  left: 100%;
}

.btn.primary:hover {
  box-shadow: 0 14px 44px rgba(106,166,255,0.5), 0 0 0 2px rgba(32,214,167,0.25) inset, 0 0 28px rgba(32,214,167,0.25);
  filter: saturate(110%);
}

.hero-badges { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 12px; 
  margin-top: 24px; 
  justify-content: center;
}

.badge { 
  font-size: 13px; 
  color: var(--text); 
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)); 
  border: 1px solid rgba(106,166,255,0.2); 
  padding: 10px 18px; 
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  background-image: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
                    linear-gradient(90deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.0) 100%);
  background-size: auto, 200% 100%;
  background-position: center, -100% 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.badge:hover {
  background: linear-gradient(135deg, rgba(106,166,255,0.15), rgba(138,115,255,0.1));
  border-color: rgba(106,166,255,0.4);
  transform: translateY(-2px);
  background-position: center, 100% 0;
}

/* 移除旧的hero-visual，使用新的居中布局 */

.dashboard-mockup {
  position: absolute;
  inset: 5% 2% 5% 8%;
  background: linear-gradient(180deg, rgba(11,13,18,0.85), rgba(11,13,18,0.75));
  border: 1px solid var(--panel-strong);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  z-index: 2;
  animation: fadeInUp 800ms ease-out both;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--panel-strong);
}

.dashboard-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent);
}

.status-indicator::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.dashboard-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: calc(100% - 60px);
}

.metric-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--panel);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  opacity: 0.6;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.metric-card:hover {
  transform: scale(1.02);
  background: rgba(255,255,255,0.1);
}

.metric-card:hover::before {
  transform: scaleX(1);
}

.metric-card.critical {
  border-color: rgba(255, 106, 114, 0.4);
  background: rgba(255, 106, 114, 0.12);
  color: var(--danger);
}

.metric-card.warning {
  border-color: rgba(255, 193, 7, 0.4);
  background: rgba(255, 193, 7, 0.12);
  color: #ffc107;
}

.metric-card.normal {
  border-color: rgba(32, 214, 167, 0.4);
  background: rgba(32, 214, 167, 0.12);
  color: var(--accent);
}

.metric-number {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2px;
}

.metric-card.critical .metric-number { color: var(--danger); }
.metric-card.warning .metric-number { color: #ffc107; }
.metric-card.normal .metric-number { color: var(--accent); }

.metric-label {
  font-size: 10px;
  color: var(--muted);
}

.alert-chart {
  flex: 1;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--panel);
  border-radius: 8px;
  padding: 12px;
}

.chart-title {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 60px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  border-radius: 2px 2px 0 0;
  height: var(--height);
  opacity: 0.8;
  animation: chartRise 600ms ease-out both;
}

.chart-bar:nth-child(1) { animation-delay: 100ms; }
.chart-bar:nth-child(2) { animation-delay: 200ms; }
.chart-bar:nth-child(3) { animation-delay: 300ms; }
.chart-bar:nth-child(4) { animation-delay: 400ms; }
.chart-bar:nth-child(5) { animation-delay: 500ms; }
.chart-bar:nth-child(6) { animation-delay: 600ms; }

.recent-alerts {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--panel);
  border-radius: 8px;
  padding: 8px;
  max-height: 80px;
  overflow: hidden;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 11px;
}

.alert-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.alert-dot.critical { background: var(--danger); }
.alert-dot.warning { background: #ffc107; }
.alert-dot.normal { background: var(--accent); }

.alert-text {
  flex: 1;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-time {
  color: var(--muted);
  font-size: 10px;
}

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

@keyframes chartRise {
  from { height: 0; }
  to { height: var(--height); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

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

/* Card entrance animations */
.card, .feature-card, .mini-card {
  animation: fadeInUp 0.6s ease-out both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.15s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.25s; }
.card:nth-child(5) { animation-delay: 0.3s; }
.card:nth-child(6) { animation-delay: 0.35s; }
.card:nth-child(7) { animation-delay: 0.4s; }
.card:nth-child(8) { animation-delay: 0.45s; }
.card:nth-child(9) { animation-delay: 0.5s; }
.card:nth-child(10) { animation-delay: 0.55s; }
.card:nth-child(11) { animation-delay: 0.6s; }
.card:nth-child(12) { animation-delay: 0.65s; }
.card:nth-child(13) { animation-delay: 0.7s; }
.card:nth-child(14) { animation-delay: 0.75s; }

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.3s; }
.feature-card:nth-child(3) { animation-delay: 0.4s; }
.feature-card:nth-child(4) { animation-delay: 0.5s; }

.mini-card:nth-child(1) { animation-delay: 0.1s; }
.mini-card:nth-child(2) { animation-delay: 0.2s; }
.mini-card:nth-child(3) { animation-delay: 0.3s; }

.section { 
  padding: 80px 0; 
  position: relative;
  background: transparent;
}

.section h2 { 
  margin: 0 0 20px 0; 
  font-size: clamp(28px, 4vw, 42px); 
  font-weight: 700;
  text-align: center;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc { 
  color: var(--muted); 
  margin: 0 auto 48px; 
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  max-width: 600px;
}

.integrations { 
  padding: 80px 0; 
}

/* 移除特殊间距，使用统一间距 */
.integrations + .features { padding-top: 80px; }

/* 为每个主要区块添加装饰线（与内容宽度对齐） */
.section > .container::before,
.section > .container-narrow::before,
.section > .container-wide::before {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin: 0 auto 24px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.integrations .logo-list { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
  gap: 16px; 
  list-style: none; 
  padding: 0; 
  margin: 32px 0 0; 
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.card { 
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)); 
  border: 1px solid var(--panel-strong); 
  border-radius: 12px; 
  padding: 16px 14px; 
  text-align: center; 
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.card:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border-color: rgba(106,166,255,0.3);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15), 0 0 0 1px rgba(106,166,255,0.1);
}

.card:hover::before {
  left: 100%;
}

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

.features-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 24px; 
  max-width: 1300px;
  margin: 0 auto;
}
.feature-card { 
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)); 
  border: 1px solid var(--panel-strong); 
  border-radius: 16px; 
  padding: 20px; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border-color: rgba(106,166,255,0.4);
  box-shadow: 0 16px 46px rgba(0,0,0,0.25), 0 0 0 1px rgba(106,166,255,0.18), 0 0 28px rgba(32,214,167,0.12);
}

/* 低动效偏好时自动降级 */
@media (prefers-reduced-motion: reduce) {
  .hero::after, .hero h1::after {
    animation: none !important;
  }
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card h3 { 
  margin: 0 0 10px 0; 
  font-size: 18px; 
  font-weight: 600;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-card p { 
  margin: 0 0 12px 0; 
  color: var(--muted); 
  line-height: 1.5;
}

.feature-card ul { 
  margin: 0; 
  padding-left: 18px; 
  color: var(--text); 
}

.feature-card li {
  margin: 6px 0;
  position: relative;
}

.feature-card li::marker {
  color: var(--primary);
}

.visualization { 
  position: relative; 
  padding: 80px 0; 
}
.viz-content { max-width: 1080px; margin: 0 auto; }
/* 视觉协调：收紧本区块段落间距 */
.visualization .section-desc { margin: 0 auto 28px; max-width: 720px; }
.visualization + .section { padding-top: 80px; }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.chart-title { font-size: 14px; color: var(--muted); }
.legend { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.legend .dot { width: 10px; height: 10px; border-radius: 999px; background: linear-gradient(180deg, var(--primary), var(--primary-2)); display: inline-block; }
.viz-demo { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 10px; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric-value { font-size: 22px; font-weight: 700; line-height: 1.2; }
.metric-label { font-size: 12px; color: var(--muted); }
.metric-trend { 
  font-size: 11px; 
  font-weight: 600; 
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 8px;
  display: inline-block;
}
.metric-trend.up { 
  color: var(--accent); 
  background: rgba(32, 214, 167, 0.15);
}
.metric-trend.down { 
  color: var(--primary); 
  background: rgba(106, 166, 255, 0.15);
}

@keyframes rise {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-card { 
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)); 
  border: 1px solid var(--panel-strong); 
  border-radius: 14px; 
  padding: 16px 12px; 
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.mini-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.mini-card:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border-color: rgba(106,166,255,0.3);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.mini-card:hover::after {
  transform: scaleX(1);
}

.mini-card .metric-value {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-section { 
  text-align: center; 
  background: linear-gradient(135deg, rgba(106,166,255,0.05), rgba(138,115,255,0.03));
  border-radius: 24px;
  margin: 40px auto;
  max-width: 800px;
  padding: 60px 40px;
  border: 1px solid rgba(106,166,255,0.1);
}

.cta-section h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: 16px;
}

.cta-section .section-desc {
  margin-bottom: 32px;
  font-size: 16px;
}

/* 页脚基础样式 */
.site-footer { 
  border-top: 1px solid var(--panel-strong); 
  padding: 40px 24px 24px; 
  background: rgba(11,13,18,0.95);
  backdrop-filter: blur(10px);
}

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

/* 品牌区域 */
.footer-brand {
  text-align: center;
  margin-bottom: 40px;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin: 0 auto 16px;
  display: block;
}

.footer-tagline {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  max-width: 300px;
  margin: 0 auto;
}

/* 联系信息卡片 */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-card {
  background: var(--panel);
  border: 1px solid var(--panel-strong);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(106,166,255,0.1), transparent);
  transition: left 0.5s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  background: var(--panel-strong);
  border-color: rgba(106,166,255,0.3);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.contact-card:hover::before {
  left: 100%;
}

.contact-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #08111a;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info h5 {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  word-break: break-all;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--primary);
}

/* 版权信息 */
.footer-bottom {
  border-top: 1px solid var(--panel-strong);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 0 0 8px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.footer-bottom p:last-child {
  margin-bottom: 0;
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

@media (max-width: 1080px) {
  .container, .container-narrow, .container-wide { 
    padding-left: 24px; 
    padding-right: 24px; 
  }
  /* 降低首屏特效强度，保证中屏流畅 */
  .hero::after {
    filter: blur(22px) saturate(110%);
    opacity: 0.6;
  }
  .hero h1 {
    font-size: clamp(34px, 7vw, 56px);
    text-shadow: 0 4px 28px rgba(106,166,255,0.22);
  }
  .hero h1::after {
    width: 64px;
    margin-top: 16px;
  }
  .integrations .logo-list { 
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); 
  }
  .features-grid { 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  }
  .viz-demo { 
    grid-template-columns: 1fr; 
  }
  .section {
    padding: 60px 0;
  }
  .visualization { 
    padding: 60px 0; 
  }
  .hero {
    padding: 60px 0 40px;
    min-height: calc(100svh - 64px);
  }

  /* 中等屏幕徽章优化 */
  .hero-badges {
    margin-top: 20px;
    gap: 10px;
  }

  .badge {
    font-size: 12px;
    padding: 7px 14px;
  }
}

@media (max-width: 720px) {
  .container, .container-narrow, .container-wide { 
    padding-left: 18px; 
    padding-right: 18px; 
  }
  
  .hero { 
    padding: 60px 0 30px; 
    min-height: 100vh;
    margin-top: 70px;
  }
  /* 移动端动画降级与尺寸优化 */
  .hero::after {
    opacity: 0.4;
    filter: blur(18px) saturate(105%);
    animation: none;
  }
  
  .hero h1 {
    font-size: clamp(28px, 8.8vw, 44px);
    text-shadow: 0 3px 18px rgba(106,166,255,0.2);
  }
  .hero h1::after {
    width: 56px;
    margin-top: 14px;
    box-shadow: 0 0 12px rgba(106,166,255,0.5), 0 0 18px rgba(32,214,167,0.35);
  }
  
  .subtitle {
    font-size: 16px;
    max-width: 90%;
  }
  
  .cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .brand-logo { height: 44px; width: auto; }
  .nav-toggle { 
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 18px;
    transition: all 0.3s ease;
    border-radius: 12px;
  }
  
  .nav-toggle:hover {
    background: var(--panel);
    transform: scale(1.05);
  }
  
  .nav-toggle:active {
    transform: scale(0.95);
  }
  
  .nav-list { 
    position: fixed; 
    top: calc(70px + env(safe-area-inset-top)); /* 避开固定页眉并适配刘海安全区 */
    right: 0; 
    bottom: auto;
    left: auto;
    width: min(72vw, 300px);
    flex-direction: column; 
    background: linear-gradient(180deg, rgba(11,13,18,0.98), rgba(11,13,18,0.95)); 
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--panel-strong); 
    border-radius: 16px 0 0 16px; 
    padding: 14px 10px; 
    display: flex; 
    z-index: 1000; 
    box-shadow: -14px 0 28px rgba(0,0,0,0.38), 0 0 0 1px rgba(106,166,255,0.06);
    transform: translateX(100%);
    opacity: 0; /* 关闭时完全不可见 */
    visibility: hidden; /* 避免产生模糊的虚影 */
    pointer-events: none; /* 关闭时不拦截点击 */
    will-change: transform, opacity;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    /* 防止内部链接的伪元素光带溢出到抽屉外，导致左侧出现“虚化横杠” */
    overflow: hidden;
    /* 不全屏：限定最大高度，内部滚动 */
    height: auto;
    max-height: calc(100svh - (70px + env(safe-area-inset-top)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
  
  .nav-list.open { 
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  .nav-list a { 
    padding: 14px 16px; 
    font-size: 16px; 
    font-weight: 500;
    border-radius: 12px; 
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  /* 移动端不需要链接抛光光带，避免产生溢出条纹 */
  .nav-list a::before {
    content: none;
  }
  
  /* 移动端去除 hover/点击位移动画，避免误触视觉效果 */
  .nav-list a:hover {
    background: none;
    color: inherit;
    transform: none;
  }
  
  .nav-list a:hover::before {
    left: 100%;
  }
  
  .nav-list a:active { 
    background: none;
    transform: none;
  }
  
  .nav-list a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    background: var(--panel);
    color: var(--primary);
  }
  
  .nav-toggle:focus { 
    outline: 2px solid var(--primary); 
    outline-offset: 2px; 
  }

  /* 打开菜单时，禁止页面滚动并增加半透明遮罩，提升可用性 */
  body.nav-open { overflow: hidden; }
  body.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  /* 关闭菜单项进入动画，避免左侧出现随动画闪烁的条纹 */
  .nav-list.open a {
    animation: none;
  }
  
  .nav-list.open a:nth-child(1) { animation-delay: 0.1s; }
  .nav-list.open a:nth-child(2) { animation-delay: 0.15s; }
  .nav-list.open a:nth-child(3) { animation-delay: 0.2s; }
  .nav-list.open a:nth-child(4) { animation-delay: 0.25s; }
  
  @keyframes slideInFromLeft {
    from {
      opacity: 0;
      transform: translateX(20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .section {
    padding: 50px 0;
  }
  .visualization { 
    padding: 50px 0; 
  }
  
  .section h2 {
    font-size: clamp(24px, 6vw, 32px);
  }
  
  .section-desc {
    font-size: 16px;
  }
  
  .integrations .logo-list { 
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); 
    gap: 12px;
  }
  
  .features-grid { 
    grid-template-columns: 1fr; 
    gap: 20px;
  }
  
  .cta-section {
    padding: 40px 24px;
    margin: 20px auto;
  }

  /* 移动端页脚优化 */
  .site-footer {
    padding: 32px 18px 20px;
  }
  
  .footer-brand {
    margin-bottom: 32px;
  }
  
  .footer-logo {
    height: 44px;
    margin-bottom: 12px;
  }
  
  .footer-tagline {
    font-size: 13px;
    max-width: 260px;
  }
  
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
  }
  
  .contact-card {
    padding: 16px 14px;
  }
  
  .contact-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
  }
  
  .contact-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .contact-info h5 {
    font-size: 12px;
    margin-bottom: 6px;
  }
  
  .contact-info a {
    font-size: 13px;
  }
  
  .footer-bottom {
    padding-top: 16px;
  }
  
  .footer-bottom p {
    font-size: 11px;
    margin-bottom: 6px;
  }

  /* Mobile card optimizations */
  .card {
    padding: 12px 10px;
    font-size: 12px;
  }

  .feature-card {
    padding: 20px 18px;
  }

  .feature-card h3 {
    font-size: 18px;
  }

  .mini-card {
    padding: 14px 10px;
  }

  .metric-card {
    padding: 10px 6px;
  }

  .metric-number {
    font-size: 16px;
  }

  .metric-label {
    font-size: 9px;
  }

  /* 移动端徽章优化 */
  .hero-badges {
    margin-top: 20px;
    gap: 10px;
    padding: 0 8px;
  }

  .badge {
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 18px;
    line-height: 1.3;
    white-space: nowrap;
    min-width: fit-content;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 中等手机屏幕优化 */
  @media (max-width: 600px) {
    .hero-badges {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 18px;
      padding: 0 8px;
    }

    .badge {
      font-size: 12px;
      padding: 10px 12px;
      text-align: center;
      min-height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 18px;
    }
  }

  /* 小屏手机进一步优化 */
  @media (max-width: 480px) {
    .hero-badges {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 16px;
      padding: 0 6px;
    }

    .badge {
      font-size: 11px;
      padding: 8px 10px;
      border-radius: 16px;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      min-height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  /* 超小屏手机优化 */
  @media (max-width: 360px) {
    .hero-badges {
      gap: 6px;
      padding: 0 4px;
    }

    .badge {
      font-size: 10px;
      padding: 6px 8px;
      min-height: 36px;
      border-radius: 14px;
    }
  }
}


