/* ============================================
   西遇云官网 - 共享样式
   主题色：科技蓝
   ============================================ */

:root {
  --primary: #1e40af;        /* 主蓝（深海蓝） */
  --primary-light: #3b82f6;  /* 亮蓝 */
  --primary-dark: #1e3a8a;   /* 深蓝 */
  --accent: #06b6d4;         /* 青色点缀 */
  --accent-light: #67e8f9;
  --dark: #0f172a;           /* 深灰蓝（标题） */
  --gray: #475569;           /* 副标题/正文 */
  --gray-light: #94a3b8;     /* 辅助文字 */
  --cream: #f8fafc;          /* 米白背景 */
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 16px rgba(30, 64, 175, 0.08);
  --shadow-hover: 0 12px 32px rgba(30, 64, 175, 0.15);
}

/* 全局重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--dark);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   导航栏
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.brand-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 700;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.navbar-links a {
  color: var(--gray);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.navbar-links a.active,
.navbar-links a:hover {
  color: var(--primary);
}

.navbar-links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* ============================================
   按钮
   ============================================ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.25);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* ============================================
   Hero 区域
   ============================================ */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 64, 175, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: white;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
  letter-spacing: 3px;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--accent-light);
  margin-bottom: 36px;
  font-weight: 500;
  letter-spacing: 2px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}
.hero .btn-primary:hover {
  background: var(--accent-light);
  color: var(--dark);
}

.hero .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: white;
}
.hero .btn-outline:hover {
  background: white;
  color: var(--primary);
}

/* ============================================
   通用 Section
   ============================================ */
.section { padding: 100px 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-dark {
  background: var(--dark);
  color: white;
}

.section-header { text-align: center; margin-bottom: 56px; }

.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 0.78rem;
  letter-spacing: 4px;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-dark .section-label { color: var(--accent-light); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.section-dark .section-title { color: white; }

.section-desc {
  color: var(--gray);
  font-size: 0.98rem;
  max-width: 640px;
  margin: 0 auto;
}

.section-dark .section-desc { color: rgba(255,255,255,0.75); }

/* ============================================
   服务卡片（首页）
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-card-img {
  height: 220px;
  overflow: hidden;
  background: var(--cream);
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 28px 24px;
}

.service-card-body h3 {
  font-size: 1.2rem;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card-body h3 .num {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.service-card-body p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.service-card-body ul {
  list-style: none;
  padding: 0;
}

.service-card-body ul li {
  color: var(--gray);
  font-size: 0.88rem;
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.service-card-body ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ============================================
   数据条
   ============================================ */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .num {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 1px;
}

.stat-item .label {
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  letter-spacing: 2px;
  margin-top: 6px;
}

/* ============================================
   关于摘要（首页）
   ============================================ */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-teaser-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-teaser-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}

.about-teaser-text h2 em {
  color: var(--primary);
  font-style: normal;
}

.about-teaser-text p {
  color: var(--gray);
  font-size: 0.96rem;
  line-height: 2;
  margin-bottom: 14px;
}

/* ============================================
   页脚
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .brand-name {
  font-size: 1.2rem;
  color: white;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.6);
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  font-size: 0.88rem;
  padding: 4px 0;
  color: rgba(255,255,255,0.6);
}

.footer-col ul li a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: var(--accent-light);
}

.footer-bottom a:hover {
  color: white;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 900px) {
  .navbar-links { gap: 18px; font-size: 0.88rem; }
  .services-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-teaser,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; text-align: center; }
}