/* ========== 全局变量 ========== */
:root {
  --primary-dark: #0a0e27;
  --primary: #1a237e;
  --accent: #00b4d8;
  --accent-glow: #00d4ff;
  --light: #f8f9fa;
  --gray-light: #e9ecef;
  --gray: #6c757d;
  --dark: #212529;
  --gradient-1: linear-gradient(135deg, #0a0e27 0%, #1a237e 100%);
  --gradient-accent: linear-gradient(90deg, #00b4d8 0%, #0096c7 100%);
  --glass-bg: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.1);
  --shadow-sm: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 100px 0;
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10,14,39,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.logo h1 {
  font-size: 28px;
  font-weight: 700;
  color: white;
}
.logo h1 span { color: var(--accent); }
.logo-tagline {
  font-size: 12px;
  color: var(--gray-light);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-link {
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.lang-btn.active {
  color: var(--accent);
}
.lang-divider {
  color: rgba(255,255,255,0.3);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}
.hamburger span {
  width: 28px;
  height: 2px;
  background: white;
  transition: var(--transition);
}

/* ========== Hero 主视觉区（主页专用） ========== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-1);
}
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-content {
  color: white;
}
.hero-badge {
  display: inline-block;
  background: rgba(0,180,216,0.2);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 24px;
  border: 1px solid rgba(0,180,216,0.3);
  animation: fadeInUp 1s ease;
}
.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, #00b4d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeInUp 1s ease 0.2s both;
}
.hero-desc {
  font-size: 20px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 32px;
  animation: fadeInUp 1s ease 0.4s both;
}
.hero-btn {
  display: inline-block;
  background: var(--gradient-accent);
  border: none;
  padding: 14px 42px;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  animation: fadeInUp 1s ease 0.6s both;
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,180,216,0.3);
}
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(30px); }
  to { opacity:1; transform:translateY(0); }
}
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 25px;
  z-index: 2;
}
.scroll-indicator span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: white;
  border-radius: 2px;
  animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
  0% { opacity:1; transform:translateX(-50%) translateY(0); }
  100% { opacity:0; transform:translateX(-50%) translateY(20px); }
}

/* ========== 通用页面头部 ========== */
.page-header {
  background: var(--gradient-1);
  color: white;
  padding: 160px 0 80px;
  text-align: center;
}
.page-header h1 {
  font-size: 48px;
  margin-bottom: 20px;
}
.page-header p {
  font-size: 18px;
  opacity: 0.8;
  max-width: 700px;
  margin: 0 auto;
}

/* ========== 通用 section 样式 ========== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.section-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
}
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  margin: 0 auto 20px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

/* ========== 卡片样式 ========== */
.about-grid, .benefits-grid, .datacenter-grid, 
.solutions-grid, .team-grid, .media-grid {
  display: grid;
  gap: 30px;
}
.about-grid { grid-template-columns: repeat(2,1fr); }
.benefits-grid { grid-template-columns: repeat(4,1fr); }
.datacenter-grid { grid-template-columns: repeat(4,1fr); }
.solutions-grid { grid-template-columns: repeat(3,1fr); }
.team-grid { grid-template-columns: repeat(4,1fr); }
.media-grid { grid-template-columns: repeat(3,1fr); }

.about-card, .benefit-card, .region-card, 
.solution-card, .team-card, .media-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}
.about-card:hover, .benefit-card:hover, .region-card:hover,
.solution-card:hover, .team-card:hover, .media-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.about-icon, .benefit-icon, .solution-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(0,180,216,0.1) 0%, rgba(0,150,199,0.05) 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.about-icon i, .benefit-icon i, .solution-icon i {
  font-size: 28px;
  color: var(--accent);
}
.benefit-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 24px;
}
.benefit-icon i {
  font-size: 32px;
}

.region-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-light);
}
.region-header i { font-size: 28px; color: var(--accent); }
.region-header h3 { font-size: 22px; font-weight: 600; }
.region-list {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px 0;
}
.dc-name { font-weight: 700; color: var(--primary-dark); }
.dc-spec { font-size: 13px; color: var(--gray); }

.team-card {
  padding: 0;
  overflow: hidden;
}
.team-avatar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  width: 100%;
  height: 280px;          /* 固定高度，根据实际照片比例调整 */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* 填满容器，可能裁剪 */
  object-position: center top; /* 从顶部开始裁剪，保留头部 */
  display: block;
}
/* 如果没有图片，保留原来的图标样式（作为后备） */
.team-avatar i {
  font-size: 80px;
  color: rgba(255,255,255,0.8);
}
.team-avatar i { font-size: 80px; color: rgba(255,255,255,0.8); }
.team-info { padding: 24px; }
.team-info h3 { font-size: 20px; margin-bottom: 4px; }
.team-role { font-size: 14px; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.team-info p { font-size: 14px; color: var(--gray); }

.media-card { padding: 24px; }
.media-date { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.media-card h3 { font-size: 18px; margin-bottom: 12px; line-height: 1.4; }
.media-card p { font-size: 14px; color: var(--gray); }

/* ========== Footer ========== */
.footer {
  background: var(--primary-dark);
  color: white;
  padding: 60px 0 30px;
  margin-top: 60px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.footer-logo h2 span { color: var(--accent); }
.footer-logo p { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-copyright p { font-size: 14px; color: rgba(255,255,255,0.5); }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .benefits-grid, .datacenter-grid, .solutions-grid, .team-grid, .media-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--primary-dark);
    transition: left 0.3s ease;
    z-index: 999;
  }
  .nav-menu.active { left: 0; }
  .nav-links {
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    gap: 30px;
  }
  .hamburger { display: flex; }
  .hero-title { font-size: 40px; }
  .hero-desc { font-size: 16px; }
  .section-title { font-size: 32px; }
  .benefits-grid, .datacenter-grid, .solutions-grid, .team-grid, .media-grid {
    grid-template-columns: 1fr;
  }
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .page-header h1 { font-size: 36px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .hero-btn { padding: 12px 28px; font-size: 14px; }
}