﻿/* ========== CSS 变量 ========== */
:root {
  --blue-deep: #0A2E5C;
  --blue-mid: #144272;
  --blue-light: #2E86DE;
  --coral: #FF6B35;
  --coral-light: #FF8C5A;
  --green: #10AC84;
  --gray-100: #F5F7FA;
  --gray-200: #E8ECF1;
  --gray-300: #C4CCD8;
  --gray-500: #8395A7;
  --gray-700: #576574;
  --gray-900: #222F3E;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(10,46,92,0.08);
  --shadow-md: 0 4px 20px rgba(10,46,92,0.12);
  --shadow-lg: 0 8px 40px rgba(10,46,92,0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--gray-900);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ========== 容器 ========== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ========== 导航栏 ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.nav-container {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: var(--white);
  transition: var(--transition);
}
.navbar.scrolled .nav-logo { color: var(--blue-deep); }
.logo-icon { width: 36px; height: 36px; }
.logo-text { letter-spacing: 1px; }
.nav-links {
  display: flex; gap: 32px;
}
.nav-links a {
  font-size: 15px; color: rgba(255,255,255,0.8);
  transition: var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--coral);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.navbar.scrolled .nav-links a { color: var(--gray-700); }
.navbar.scrolled .nav-links a:hover { color: var(--blue-deep); }
.nav-cta {
  padding: 8px 24px; background: var(--coral); color: var(--white);
  border-radius: 24px; font-size: 14px; font-weight: 600;
  transition: var(--transition);
}
.nav-cta:hover { background: var(--coral-light); transform: translateY(-1px); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; padding: 4px 0;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .nav-toggle span { background: var(--blue-deep); }

/* ========== Hero ========== */
.hero {
  position: relative; min-height: 100vh;
  background: linear-gradient(160deg, #061B38 0%, var(--blue-deep) 40%, var(--blue-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 120px 24px 80px;
}
.hero-waves {
  position: absolute; bottom: 0; left: 0; width: 100%; pointer-events: none;
}
.wave { position: absolute; bottom: 0; left: 0; width: 100%; }
.wave-1 { animation: waveFloat 8s ease-in-out infinite; }
.wave-2 { animation: waveFloat 12s ease-in-out infinite reverse; }
.wave-3 { animation: waveFloat 16s ease-in-out infinite; }
@keyframes waveFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
.hero-content {
  position: relative; z-index: 2; text-align: center; max-width: 720px;
}
.hero-slogan {
  font-size: clamp(36px, 6vw, 64px); font-weight: 800;
  color: var(--white); letter-spacing: 4px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, var(--coral-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(16px, 2.5vw, 22px); color: rgba(255,255,255,0.85);
  letter-spacing: 3px; margin-bottom: 16px;
}
.hero-desc {
  font-size: 16px; color: rgba(255,255,255,0.6);
  max-width: 560px; margin: 0 auto 36px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* 粒子 */
.hero-particles {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.particle {
  position: absolute; border-radius: 50%;
  background: rgba(255,107,53,0.3);
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 36px; border-radius: 28px; font-size: 16px;
  font-weight: 600; transition: var(--transition);
}
.btn-primary {
  background: var(--coral); color: var(--white);
  box-shadow: 0 4px 16px rgba(255,107,53,0.4);
}
.btn-primary:hover { background: var(--coral-light); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,107,53,0.5); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.4); color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-full { width: 100%; }

/* ========== 通用区块 ========== */
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  color: var(--blue-deep); margin-bottom: 12px;
}
.section-subtitle { font-size: 17px; color: var(--gray-500); max-width: 560px; margin: 0 auto; }

/* ========== 核心能力卡片 ========== */
.capabilities { background: var(--gray-100); }
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.card {
  background: var(--white); border-radius: var(--radius); padding: 36px 28px;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-light));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--white);
}
.card-icon svg { width: 32px; height: 32px; }
.card h3 {
  font-size: 20px; font-weight: 700; color: var(--blue-deep);
  margin-bottom: 12px;
}
.card > p { font-size: 15px; color: var(--gray-700); margin-bottom: 16px; line-height: 1.7; }
.card-features li {
  font-size: 14px; color: var(--gray-500); padding: 4px 0;
  padding-left: 20px; position: relative;
}
.card-features li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral);
}

/* ========== 行业优势 ========== */
.adv-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.adv-item {
  text-align: center; padding: 40px 24px;
  border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--gray-200); transition: var(--transition);
}
.adv-item:hover { border-color: var(--coral); box-shadow: var(--shadow-md); }
.adv-number {
  font-size: 56px; font-weight: 800; color: var(--coral);
  line-height: 1; margin-bottom: 8px;
}
.adv-number span { font-size: 20px; font-weight: 600; }
.adv-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  color: var(--blue-deep);
}
.adv-icon svg { width: 100%; height: 100%; }
.adv-item h3 {
  font-size: 18px; font-weight: 700; color: var(--blue-deep);
  margin-bottom: 10px;
}
.adv-item p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* ========== 解决方案 Tab ========== */
.solutions { background: var(--gray-100); }
.tab-nav {
  display: flex; gap: 8px; justify-content: center;
  margin-bottom: 40px; flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 28px; border-radius: 24px; font-size: 15px;
  color: var(--gray-700); background: var(--white);
  border: 1px solid var(--gray-200); transition: var(--transition);
}
.tab-btn:hover { border-color: var(--blue-light); }
.tab-btn.active {
  background: var(--blue-deep); color: var(--white);
  border-color: var(--blue-deep);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.solution-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.solution-info h3 {
  font-size: 24px; font-weight: 700; color: var(--blue-deep);
  margin-bottom: 16px;
}
.solution-info > p { font-size: 15px; color: var(--gray-700); margin-bottom: 20px; line-height: 1.8; }
.solution-list li {
  font-size: 15px; color: var(--gray-700); padding: 8px 0;
  border-bottom: 1px solid var(--gray-200); line-height: 1.7;
}
.solution-list li:last-child { border-bottom: none; }
.solution-list strong { color: var(--blue-deep); }

/* Mock Chart 通用 */
.mock-chart {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden;
  border: 1px solid var(--gray-200);
}
.mock-chart-header {
  padding: 14px 20px; font-size: 14px; font-weight: 600;
  color: var(--blue-deep); border-bottom: 1px solid var(--gray-200);
  background: var(--gray-100);
}
.mock-chart-body { padding: 24px 20px; min-height: 200px; }
.mock-chart-footer {
  padding: 10px 20px; font-size: 12px; color: var(--gray-500);
  border-top: 1px solid var(--gray-200); background: var(--gray-100);
}

/* 柱状图 */
.mock-bar-group { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mock-bar-label { font-size: 13px; color: var(--gray-700); min-width: 52px; text-align: right; }
.mock-bar {
  height: 24px; border-radius: 4px;
  background: var(--bar-color);
  width: var(--bar-width);
  animation: barGrow 1s ease-out;
}
@keyframes barGrow { from { width: 0; } }

/* 甜甜圈 */
.mock-donut { display: flex; justify-content: center; margin-bottom: 16px; }
.mock-donut svg { width: 160px; height: 160px; }
.mock-legend { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-700); }
.legend-item i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* 折线图 */
.mock-line-chart { margin-bottom: 12px; }
.line-svg { width: 100%; height: auto; }

/* 环形指标 */
.mock-metrics { display: flex; gap: 28px; justify-content: center; padding: 12px 0; }
.mock-metric { text-align: center; }
.metric-ring {
  width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 8px;
  background: conic-gradient(var(--color) var(--progress), var(--gray-200) var(--progress));
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.metric-ring::before {
  content: ''; width: 70px; height: 70px; border-radius: 50%;
  background: var(--white); position: absolute;
}
.metric-ring span {
  position: relative; z-index: 1; font-size: 18px;
  font-weight: 700; color: var(--blue-deep);
}
.metric-label { font-size: 13px; color: var(--gray-500); }

/* ========== 平台预览 ========== */
.preview {
  background: linear-gradient(180deg, var(--blue-deep) 0%, #061B38 100%);
  color: var(--white);
}
.preview .section-title { color: var(--white); }
.preview .section-subtitle { color: rgba(255,255,255,0.6); }

.preview-dashboard {
  max-width: 960px; margin: 0 auto;
  background: #1A1F36; border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.dash-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: #12162B;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 10px; height: 10px; border-radius: 50%; }
.dash-dots span:nth-child(1) { background: #FF5F56; }
.dash-dots span:nth-child(2) { background: #FFBD2E; }
.dash-dots span:nth-child(3) { background: #27CA40; }
.dash-title { font-size: 13px; color: rgba(255,255,255,0.5); flex: 1; text-align: center; }
.dash-time { font-size: 12px; color: rgba(255,255,255,0.3); }

.dash-body { display: flex; min-height: 340px; }
.dash-sidebar {
  width: 140px; padding: 16px 0; background: #12162B;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.dash-nav-item {
  padding: 10px 20px; font-size: 13px;
  color: rgba(255,255,255,0.4); transition: var(--transition);
}
.dash-nav-item.active {
  color: var(--coral); background: rgba(255,107,53,0.08);
  border-right: 2px solid var(--coral);
}

.dash-main { flex: 1; padding: 20px; }
.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.dash-kpi {
  background: rgba(255,255,255,0.04); border-radius: 8px;
  padding: 12px; border: 1px solid rgba(255,255,255,0.06);
}
.kpi-label { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.kpi-value { font-size: 22px; font-weight: 700; color: var(--white); }
.kpi-value small { font-size: 12px; color: rgba(255,255,255,0.4); font-weight: 400; }
.kpi-change { font-size: 12px; margin-top: 4px; font-weight: 600; }
.kpi-change.down { color: #10AC84; }
.kpi-change.up { color: var(--coral); }

.dash-chart-area {
  background: rgba(255,255,255,0.03); border-radius: 8px;
  padding: 16px; border: 1px solid rgba(255,255,255,0.06);
}
.dash-chart-placeholder { height: 100px; }
.area-chart { width: 100%; height: 100%; }

/* ========== 联系我们 ========== */
.contact { background: var(--gray-100); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 360px; gap: 48px;
  align-items: start;
}
.contact-form {
  background: var(--white); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--blue-deep); margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: 15px;
  font-family: inherit; transition: var(--transition);
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(46,134,222,0.15);
}
.form-group textarea { resize: vertical; }

.contact-info { display: flex; flex-direction: column; gap: 24px; padding-top: 12px; }
.info-item {
  display: flex; gap: 16px; align-items: flex-start;
}
.info-item svg { width: 24px; height: 24px; color: var(--coral); flex-shrink: 0; margin-top: 2px; }
.info-item h4 { font-size: 16px; font-weight: 600; color: var(--blue-deep); margin-bottom: 2px; }
.info-item p { font-size: 14px; color: var(--gray-500); }

/* ========== 页脚 ========== */
.footer {
  background: var(--blue-deep); color: rgba(255,255,255,0.5);
  padding: 32px 0;
}
.footer-content {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-weight: 600; font-size: 16px;
}
.footer-logo-icon { width: 28px; height: 28px; }
.footer-copy { font-size: 13px; }

/* ========== 滚动动画 ========== */
[data-animate] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
  opacity: 1; transform: translateY(0);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-layout { grid-template-columns: 1fr; }
  .solution-visual { order: -1; }
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(255,255,255,0.98); padding: 20px 24px;
    box-shadow: var(--shadow-md); gap: 16px;
  }
  .nav-links.open a { color: var(--gray-700); font-size: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .hero-slogan { letter-spacing: 2px; }
  .mock-metrics { gap: 16px; }
  .metric-ring { width: 72px; height: 72px; }
  .metric-ring::before { width: 56px; height: 56px; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 16px 60px; }
  .container { padding: 0 16px; }
  .dash-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi-value { font-size: 18px; }
}
