/* 现代简约风格游戏安全网站样式 */

:root {
  /* 颜色方案 */
  --primary-color: #1a73e8;
  --secondary-color: #34a853;
  --accent-color: #fbbc04;
  --dark-color: #202124;
  --light-color: #f8f9fa;
  --gray-color: #5f6368;
  --light-gray: #dadce0;
  --white-color: #ffffff;
  --success-color: #34a853;
  --warning-color: #fbbc04;
  --error-color: #ea4335;
  
  /* 间距 */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;
  
  /* 边框 */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-full: 50%;
  
  /* 阴影 */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.1);
  
  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

/* 容器样式 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--white-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar-brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--dark-color);
}

.brand-logo {
  height: 50px;
  width: auto;
}

.navbar-menu ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
}

.navbar-menu a {
  text-decoration: none;
  color: var(--gray-color);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-menu a:hover {
  color: var(--primary-color);
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-fast);
}

.navbar-menu a:hover::after {
  width: 100%;
}

.navbar-cta .btn-primary {
  text-decoration: none;
}

/* 按钮样式 */
.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: var(--border-radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #1557b0;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 英雄区样式 */
.hero {
  padding: 120px 0 var(--spacing-xxl);
  background-color: var(--white-color);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.05), rgba(52, 168, 83, 0.05));
  border-radius: 50% 0 0 50%;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--spacing-xxl);
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--dark-color);
}

.hero-content p {
  font-size: 18px;
  color: var(--gray-color);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.security-shield {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius-full);
  position: relative;
  box-shadow: var(--shadow-xl);
}

.security-shield::before {
  content: '🛡️';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 120px;
}

/* 服务方案样式 */
.services {
  padding: var(--spacing-xxl) 0;
  background-color: var(--light-color);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--dark-color);
}

.section-header p {
  font-size: 18px;
  color: var(--gray-color);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.service-card {
  background-color: var(--white-color);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(26, 115, 232, 0.1);
  border-radius: var(--border-radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto var(--spacing-md);
  font-size: 32px;
  color: var(--primary-color);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--dark-color);
}

.service-card p {
  color: var(--gray-color);
  line-height: 1.6;
}

/* 核心优势样式 */
.features {
  padding: var(--spacing-xxl) 0;
  background-color: var(--white-color);
}

.features-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-lg);
}

.feature-number {
  font-size: 48px;
  font-weight: 700;
  color: rgba(26, 115, 232, 0.1);
  line-height: 1;
  min-width: 80px;
}

.feature-details {
  flex: 1;
}

.feature-details h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--dark-color);
}

.feature-details p {
  color: var(--gray-color);
  line-height: 1.6;
}

/* 合作伙伴样式 */
.partners {
  padding: var(--spacing-xxl) 0;
  background-color: var(--light-color);
}

.marquee-container {
  position: relative;
  overflow: hidden;
  margin-top: var(--spacing-xl);
  white-space: nowrap;
}

.marquee {
  display: flex;
  animation: marquee 20s linear infinite;
}

.marquee-content {
  display: flex;
  gap: var(--spacing-xl);
  padding: var(--spacing-lg) 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 鼠标悬停时暂停动画 */
.marquee-container:hover .marquee {
  animation-play-state: paused;
}

.partner-logo {
  flex: 0 0 200px;
  height: 100px;
  background-color: var(--white-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-normal);
}

.partner-logo:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.partner-logo img {
  max-width: 80%;
  max-height: 60%;
  object-fit: contain;
}

/* 成功案例样式 */
.cases {
  padding: var(--spacing-xxl) 0;
  background-color: var(--white-color);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--spacing-lg);
}

.case-card {
  background-color: var(--white-color);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.case-header {
  padding: var(--spacing-md);
  background-color: rgba(26, 115, 232, 0.05);
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-color);
}

.case-tag {
  padding: 4px 12px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: var(--border-radius-full);
  font-size: 12px;
  font-weight: 500;
}

.case-content {
  padding: var(--spacing-md);
}

.case-content p {
  color: var(--gray-color);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.case-metrics {
  display: flex;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
}

.metric {
  flex: 1;
}

.metric-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.metric-label {
  display: block;
  font-size: 14px;
  color: var(--gray-color);
}

/* 关于我们样式 */
.about {
  padding: var(--spacing-xxl) 0;
  background-color: var(--light-color);
}

.about-content {
  display: flex;
  gap: var(--spacing-xxl);
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--dark-color);
}

.about-text p {
  color: var(--gray-color);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.about-info {
  margin-top: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--gray-color);
}

.info-item i {
  color: var(--primary-color);
  font-size: 18px;
}

.about-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.team-illustration {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.1), rgba(52, 168, 83, 0.1));
  border-radius: var(--border-radius-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 120px;
}

.team-illustration::before {
  content: '👥';
}

/* 联系我们样式 */
.contact {
  padding: var(--spacing-xxl) 0;
  background-color: var(--white-color);
}

.contact-content {
  display: flex;
  gap: var(--spacing-xxl);
  margin-top: var(--spacing-xl);
}

.contact-form {
  flex: 1;
  background-color: var(--light-color);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--dark-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius-md);
  font-size: 16px;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--dark-color);
}

.contact-info ul {
  list-style: none;
  margin-bottom: var(--spacing-lg);
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  color: var(--gray-color);
  line-height: 1.6;
}

.contact-info li i {
  color: var(--primary-color);
  font-size: 18px;
  margin-top: 2px;
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--light-color);
  border-radius: var(--border-radius-full);
  color: var(--gray-color);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 页脚样式 */
.footer {
  padding: var(--spacing-xxl) 0 var(--spacing-xl);
  background-color: var(--dark-color);
  color: var(--white-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: var(--spacing-sm);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.footer-brand .social-links {
  margin-top: var(--spacing-md);
}

.footer-brand .social-links a {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
}

.footer-brand .social-links a:hover {
  background-color: var(--primary-color);
}

.footer-links h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--white-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white-color);
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-terms {
  display: flex;
  gap: var(--spacing-md);
}

.footer-terms a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-terms a:hover {
  color: var(--white-color);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-visual {
    order: 1;
  }
  
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-content {
    flex-direction: column;
  }
}

@media (max-width: 992px) {
  .navbar-menu {
    display: none;
  }
  
  .hero-content h1 {
    font-size: 36px;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-number {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 var(--spacing-xl);
  }
  
  .hero-content h1 {
    font-size: 28px;
  }
  
  .hero-content p {
    font-size: 16px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .security-shield {
    width: 300px;
    height: 300px;
  }
  
  .security-shield::before {
    font-size: 90px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .cases-grid {
    grid-template-columns: 1fr;
  }
  
  .about-visual {
    display: none;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .hero-content h1 {
    font-size: 24px;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .section-header h2 {
    font-size: 24px;
  }
  
  .service-card {
    padding: var(--spacing-lg);
  }
  
  .feature-details h3 {
    font-size: 20px;
  }
  
  .partner-logo {
    flex: 0 0 150px;
  }
  
  .contact-form {
    padding: var(--spacing-lg);
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-color);
}

::-webkit-scrollbar-thumb {
  background: var(--light-gray);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-color);
}
