/* ===== 灵动首页 - 流线型活力风格 ===== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --gradient-1: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --gradient-2: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
  --gradient-3: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.navbar-brand { display: flex; align-items: center; gap: 10px; }
.navbar-brand img { height: 34px; width: auto; }
.navbar-brand span {
  font-size: 20px; font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.navbar-menu { display: flex; align-items: center; gap: 6px; }
.navbar-menu a {
  padding: 8px 18px;
  font-size: 14px; font-weight: 600;
  color: var(--text-secondary);
  border-radius: 50px;
  transition: var(--transition);
}
.navbar-menu a:hover { color: var(--primary); background: rgba(37,99,235,0.06); }

.navbar-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border: none; border-radius: 50px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.4); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(37,99,235,0.04); }
.btn-ghost {
  background: transparent; color: var(--text-secondary); padding: 10px 18px;
}
.btn-ghost:hover { color: var(--primary); }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 4px; transition: var(--transition); }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(160deg, #eef2ff 0%, #f0f9ff 40%, #fefce8 100%);
  position: relative;
  overflow: hidden;
}
.hero-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-deco-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(37,99,235,0.06), transparent 70%); top: -200px; right: -100px; }
.hero-deco-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(124,58,237,0.05), transparent 70%); bottom: -150px; left: -100px; }
.hero-deco-3 { width: 200px; height: 200px; background: radial-gradient(circle, rgba(245,158,11,0.08), transparent 70%); top: 40%; left: 50%; }

.hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  padding-top: 100px; padding-bottom: 80px;
}

.hero h1 {
  font-size: 52px; font-weight: 800;
  line-height: 1.1; letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero h1 .gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 17px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn { padding: 14px 32px; font-size: 15px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-top: 40px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat { text-align: left; }
.hero-stat .num { font-size: 28px; font-weight: 800; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stat .label { font-size: 13px; color: var(--text-light); margin-top: 2px; }

.hero-visual { display: flex; justify-content: center; align-items: center; }

.hero-illustration {
  position: relative;
  width: 100%; max-width: 480px;
  aspect-ratio: 1;
}

/* Hero 圆形装饰动画 */
.hero-circle {
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}
.hero-circle:nth-child(1) {
  width: 180px; height: 180px;
  background: var(--gradient-1);
  top: 5%; right: 10%;
  opacity: 0.9;
  animation-delay: 0s;
}
.hero-circle:nth-child(2) {
  width: 120px; height: 120px;
  background: var(--gradient-2);
  bottom: 15%; left: 5%;
  opacity: 0.8;
  animation-delay: 2s;
}
.hero-circle:nth-child(3) {
  width: 80px; height: 80px;
  background: var(--gradient-3);
  top: 40%; right: 35%;
  opacity: 0.7;
  animation-delay: 4s;
}
.hero-circle:nth-child(4) {
  width: 40px; height: 40px;
  border: 3px solid var(--accent);
  background: transparent;
  top: 15%; left: 25%;
  animation-delay: 1s;
}
.hero-circle:nth-child(5) {
  width: 60px; height: 60px;
  border: 3px solid var(--primary-light);
  background: transparent;
  bottom: 30%; right: 25%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-dots {
  position: absolute; width: 100%; height: 100%;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
}

/* ===== 特性区域 ===== */
.features { padding: 100px 0; background: var(--bg); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.section-header .badge {
  display: inline-block;
  background: rgba(37,99,235,0.08);
  color: var(--primary);
  padding: 5px 14px; border-radius: 50px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header h2 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 16px; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-1);
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card:hover::after { opacity: 1; }
.feature-card:nth-child(2)::after { background: var(--gradient-2); }
.feature-card:nth-child(3)::after { background: var(--gradient-3); }
.feature-card:nth-child(4)::after { background: linear-gradient(135deg, #10b981, #059669); }
.feature-card:nth-child(5)::after { background: linear-gradient(135deg, #ec4899, #db2777); }
.feature-card:nth-child(6)::after { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.feature-icon.f1 { background: #dbeafe; color: #2563eb; }
.feature-icon.f2 { background: #fae8ff; color: #7c3aed; }
.feature-icon.f3 { background: #fef3c7; color: #f59e0b; }
.feature-icon.f4 { background: #d1fae5; color: #10b981; }
.feature-icon.f5 { background: #fce7f3; color: #ec4899; }
.feature-icon.f6 { background: #ede9fe; color: #8b5cf6; }

.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* ===== 数据统计 ===== */
.counters {
  padding: 80px 0;
  background: var(--gradient-1);
  position: relative;
  overflow: hidden;
}
.counters::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  top: -100px; right: -50px;
}
.counters::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  bottom: -150px; left: -100px;
}
.counters .container { position: relative; z-index: 1; }
.counters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.counter-item { padding: 20px; }
.counter-item .num { font-size: 40px; font-weight: 800; color: #fff; line-height: 1; }
.counter-item .label { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 8px; }

/* ===== 新闻 ===== */
.news { padding: 100px 0; background: var(--bg-alt); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card-img {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.news-card-img a {
  color: #fff;
  font-weight: 700; font-size: 16px;
  padding: 6px 20px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  transition: var(--transition);
}
.news-card-img a:hover { background: rgba(255,255,255,0.35); }

.news-card-body { padding: 16px 20px; }
.news-card-body li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.news-card-body li:last-child { border-bottom: none; }
.news-card-body li a {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; font-weight: 500;
  transition: var(--transition);
}
.news-card-body li a:hover { color: var(--primary); }
.news-card-body li span { font-size: 12px; color: var(--text-light); display: block; margin-top: 2px; }

.news-card-foot { text-align: center; padding: 10px 20px; border-top: 1px solid var(--border); }
.news-card-foot a { font-size: 13px; color: var(--primary); font-weight: 600; transition: var(--transition); }
.news-card-foot a:hover { color: var(--primary-dark); }

/* ===== CTA ===== */
.cta { padding: 80px 0; background: var(--bg); }
.cta-box {
  background: linear-gradient(160deg, #eef2ff 0%, #f0f9ff 100%);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  border: 1px solid rgba(37,99,235,0.08);
}
.cta-box h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.cta-box p { color: var(--text-secondary); margin-bottom: 28px; font-size: 16px; }
.cta-box .btn { padding: 14px 40px; font-size: 16px; }

/* ===== 页脚 ===== */
.footer {
  background: #0f172a;
  color: var(--text-light);
  padding: 48px 0 36px;
}
.footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer p { font-size: 14px; }
.footer a { color: #e2e8f0; font-weight: 500; transition: var(--transition); }
.footer a:hover { color: var(--primary-light); }
.footer .sep { color: #334155; margin: 0 8px; }

/* ===== 公告弹窗 ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
}
.modal-box {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 44px 40px;
  width: 380px;
  max-width: 90vw;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.8) translateY(30px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-box h3 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.modal-box .content { font-size: 15px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 28px; }
.modal-box .btn-close {
  padding: 12px 56px;
  background: var(--gradient-1);
  color: #fff;
  border: none; border-radius: 50px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.modal-box .btn-close:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.4); }

/* ===== 回到顶部 ===== */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 46px; height: 46px;
  background: var(--gradient-1);
  color: #fff;
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
  transition: var(--transition);
  z-index: 100;
  opacity: 0; transform: translateY(20px);
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(37,99,235,0.5); }
.back-to-top svg { width: 20px; height: 20px; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 50px; }
  .hero-stats { justify-items: center; }
  .hero-stat { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-illustration { max-width: 340px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .counters-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero h1 { font-size: 42px; }
}
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center;
    gap: 16px;
  }
  .navbar-menu.open { display: flex; }
  .navbar-menu a { font-size: 20px; padding: 12px 24px; }
  .mobile-toggle { display: flex; }
  .hero h1 { font-size: 34px; }
  .features-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-box { padding: 40px 24px; }
  .footer .container { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .navbar-actions .btn-outline { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}