/* 控云科技官网样式 */

/* 全局样式 */
:root {
  --primary-color: #0078D7;
  --secondary-color: #2c3e50;
  --accent-color: #FF8C00;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --text-color: #333;
  --text-light: #6c757d;
  --border-color: #dee2e6;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
  position: relative;
}

.section-title h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  margin: 15px auto 0;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* 顶部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.header.scrolled {
  padding: 10px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: auto;
  width: 200px;
  object-fit: contain;
}

.logo h1 {
  margin-left: 10px;
  font-size: 1.8rem;
  color: var(--secondary-color);
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  list-style: none;
  margin-left: 30px;
}

.nav-menu a {
  color: var(--secondary-color);
  font-weight: 500;
  position: relative;
}

.nav-menu a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-menu a:hover:after, 
.nav-menu a.active:after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') no-repeat center center/cover;
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* 服务板块 */
.services {
  background-color: var(--light-color);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-content {
  padding: 25px;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.service-content p {
  margin-bottom: 20px;
  color: var(--text-light);
}

/* 关于我们 */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  align-items: center;
}

.about-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-img img {
  width: 100%;
  display: block;
}

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.about-content p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.about-features {
  margin-top: 30px;
}

.feature-item {
  display: flex;
  margin-bottom: 15px;
}

.feature-item i {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 1.2rem;
}

/* CTA 区域 */
.cta {
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  color: white;
  text-align: center;
  padding: 60px 0;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.cta-btn {
  background-color: white;
  color: var(--primary-color);
  border: 2px solid white;
}

.cta-btn:hover {
  background-color: transparent;
  color: white;
}

/* 页脚 */
.footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-info h3,
.footer-links h3,
.footer-contact h3 {
  position: relative;
  font-size: 1.3rem;
  margin-bottom: 25px;
  padding-bottom: 10px;
}

.footer-info h3:after,
.footer-links h3:after,
.footer-contact h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-info p {
  margin-bottom: 15px;
  color: #ddd;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #ddd;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  color: #ddd;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary-color);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .logo img {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    transition: var(--transition);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 0 0 25px 0;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .logo img {
    width: 160px;
  }
}

@media (max-width: 576px) {
  .section-title h2 {
    font-size: 2rem;
  }
  
  .hero {
    min-height: 500px;
  }
  
  .logo img {
    width: 140px;
  }
} 