/* ========== 全局重置与变量 ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --text-main: #0f172a;
  --text-sub: #475569;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-light: #e2e8f0;
  --radius: 16px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(37, 99, 235, 0.12);
}

body {
  font-family: system-ui, -apple-system, "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  line-height: 1.7;
  background-color: var(--bg-white);
}

a { text-decoration: none; color: inherit; }
.container { width: min(1140px, 92%); margin: 0 auto; }

/* ========== 滚动淡入动画 ========== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-item { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.is-visible .reveal-item { opacity: 1; transform: translateY(0); }
.reveal.is-visible .reveal-item:nth-child(1) { transition-delay: 0.1s; }
.reveal.is-visible .reveal-item:nth-child(2) { transition-delay: 0.2s; }
.reveal.is-visible .reveal-item:nth-child(3) { transition-delay: 0.3s; }
.reveal.is-visible .reveal-item:nth-child(4) { transition-delay: 0.4s; }

/* ========== 导航栏 ========== */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-light); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { display: flex; align-items: baseline; white-space: nowrap; font-weight: 800; font-size: 22px; color: var(--text-main); letter-spacing: -0.5px; }
.logo span { color: var(--primary); }
.logo small { font-size: 12px; color: var(--text-sub); margin-left: 8px; font-weight: 400; }
.menu-toggle { display: none; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--text-main); }
.navbar nav a { margin-left: 32px; font-weight: 500; color: var(--text-sub); transition: color 0.2s; }
.navbar nav a:hover { color: var(--primary); }

/* ========== Hero 区域 ========== */
.hero { position: relative; padding: 140px 0 120px; overflow: hidden; background: linear-gradient(135deg, #0f172a, #1e40af); color: white; text-align: center; }
.hero-glow { position: absolute; top: 50%; left: 50%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, rgba(0,0,0,0) 70%); transform: translate(-50%, -50%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; }
.badge { display: inline-block; padding: 8px 24px; border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); font-size: 14px; margin-bottom: 24px; backdrop-filter: blur(10px); }
.hero h1 { font-size: 54px; line-height: 1.2; margin-bottom: 24px; font-weight: 800; letter-spacing: -1px; }
.hero p { font-size: 18px; color: #cbd5e1; margin-bottom: 40px; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* 按钮风格 */
.btn { display: inline-block; padding: 14px 32px; border-radius: 10px; font-weight: 700; font-size: 16px; transition: all 0.25s ease; cursor: pointer; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 10px 25px -5px rgba(37,99,235,0.5); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 15px 30px -5px rgba(37,99,235,0.6); }
.btn-outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: #f1f5f9; transform: translateY(-2px); }
.btn-lg { padding: 18px 48px; font-size: 18px; }

/* ========== 通用区块 ========== */
.section { padding: 90px 0; }
.section.light-blue { background-color: var(--primary-light); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.section-header p { color: var(--text-sub); font-size: 17px; }

/* ========== 卡片通用 ========== */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--bg-white); padding: 32px; border-radius: var(--radius); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); transition: all 0.3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #bfdbfe; }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--text-sub); font-size: 15px; }
.service-card .card-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 24px; }

/* ========== 数据统计 ========== */
.stats-section { padding: 60px 0; border-bottom: 1px solid var(--border-light); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item h3 { font-size: 40px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.stat-item p { color: var(--text-sub); font-size: 15px; font-weight: 500; }

/* ========== 精选作品横向拖拽滑块（v1.1.0） ========== */
.works-wrapper { position: relative; }

.works-slider { 
  display: flex; 
  flex-wrap: nowrap; 
  overflow-x: auto; 
  gap: 24px; 
  padding: 8px 4px 20px 4px; 
  -webkit-overflow-scrolling: touch; 
  scrollbar-width: none; 
  cursor: grab; 
  scroll-behavior: smooth;
}
.works-slider::-webkit-scrollbar { display: none; }
.works-slider:active { cursor: grabbing; }

/* 卡片宽度 500px，一屏约 2 个 */
.works-slider .work-card { 
  flex: 0 0 500px; 
  width: 500px; 
}

.work-video { 
  width: 100%; 
  aspect-ratio: 16 / 9; 
  object-fit: cover; 
  border-radius: 12px; 
  margin-bottom: 20px; 
  background: #000; 
  display: block; 
}

/* 左右箭头按钮 */
.works-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  padding: 0 0 4px 0;
  font-family: Arial, sans-serif;
}
.works-arrow:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}
.works-arrow-left { left: -20px; }
.works-arrow-right { right: -20px; }

/* ========== 合作流程 ========== */
.steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px 40px; max-width: 900px; margin: 0 auto; }
.step-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.step-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.step-card:nth-child(3) { grid-column: 2; grid-row: 2; }
.step-card:nth-child(4) { grid-column: 1; grid-row: 2; }
.step-card { position: relative; padding: 40px 32px; display: flex; flex-direction: column; align-items: flex-start; }
.step-num { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; font-size: 20px; font-weight: 700; margin-bottom: 20px; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.step-card:nth-child(1)::after { content: "→"; position: absolute; right: -30px; top: 50%; transform: translateY(-50%); font-size: 28px; color: var(--primary); opacity: 0.5; font-weight: 300; font-family: Arial, sans-serif; }
.step-card:nth-child(2)::after { content: "↓"; position: absolute; bottom: -45px; left: 50%; transform: translateX(-50%); font-size: 28px; color: var(--primary); opacity: 0.5; font-weight: 300; font-family: Arial, sans-serif; }
.step-card:nth-child(3)::after { content: "←"; position: absolute; left: -30px; top: 50%; transform: translateY(-50%); font-size: 28px; color: var(--primary); opacity: 0.5; font-weight: 300; font-family: Arial, sans-serif; }
.step-card:nth-child(4)::after { display: none; }

/* ========== 客户评价 ========== */
.quote-card { border-left: 4px solid var(--primary); background: white; }
.quote-card p { font-style: italic; color: var(--text-main); margin-bottom: 16px; }
.quote-author { font-size: 14px; color: var(--text-sub); font-weight: 600; }

/* ========== 底部 CTA ========== */
.cta-section { text-align: center; background: linear-gradient(135deg, #0f172a, #1e3a8a); color: white; }
.cta-section h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.cta-section p { color: #cbd5e1; margin-bottom: 32px; font-size: 17px; }

/* ========== 页脚 ========== */
.footer { background: #0f172a; color: #94a3b8; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: white; font-size: 16px; margin-bottom: 16px; }
.footer p { margin-bottom: 8px; font-size: 14px; }
.footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 14px; }

/* ========== 服务详情页专属样式 ========== */
.service-detail-block { display: flex; gap: 40px; align-items: center; margin-bottom: 80px; }
.service-detail-block:nth-child(even) { flex-direction: row-reverse; }
.service-detail-text { flex: 1; }
.service-detail-text h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; color: var(--text-main); }
.service-detail-text p { color: var(--text-sub); font-size: 16px; margin-bottom: 20px; }
.service-detail-text ul { list-style: none; padding: 0; }
.service-detail-text li { position: relative; padding-left: 24px; margin-bottom: 12px; color: var(--text-main); font-weight: 500; }
.service-detail-text li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: bold; }
.service-detail-visual { flex: 1; height: 320px; background: linear-gradient(135deg, #eff6ff, #bfdbfe); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 80px; }

/* ========== 关于页面的优势网格 ========== */
.advantage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 900px; margin: 0 auto; }

/* ========== 响应式适配 ========== */
@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail-block { flex-direction: column !important; }
  .service-detail-visual { width: 100%; height: 200px; }
}

@media (max-width: 768px) {
  .logo small { display: none; }
  .menu-toggle { display: block; }
  .navbar nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(12px); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border-light); box-shadow: 0 10px 20px rgba(0,0,0,0.05); align-items: flex-start; gap: 16px; }
  .navbar nav.open { display: flex; }
  .navbar nav a { margin-left: 0; font-size: 16px; width: 100%; }
  
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 28px; }
  
  .services-grid { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: 1fr; }

  /* 手机端卡片宽度自适应屏幕 */
  .works-slider .work-card { flex: 0 0 80vw; width: 80vw; }
  /* 手机端隐藏左右箭头（手指滑动更自然） */
  .works-arrow { display: none; }

  .steps-grid { grid-template-columns: 1fr; gap: 40px; }
  .step-card:nth-child(1), .step-card:nth-child(2), .step-card:nth-child(3), .step-card:nth-child(4) { grid-column: auto; grid-row: auto; }
  .step-card { align-items: center; text-align: center; padding: 20px 0; }
  .step-num { margin: 0 auto 16px auto; }
  .step-card:nth-child(1)::after, .step-card:nth-child(2)::after, .step-card:nth-child(3)::after { content: "↓"; position: absolute; bottom: -35px; left: 50%; top: auto; right: auto; transform: translateX(-50%); }
}