/* 科技蓝主题样式 */

:root {
  --primary-blue: #007bff;
  --secondary-blue: #0056b3;
  --light-blue: #e6f2ff;
  --dark-blue: #003366;
  --accent-blue: #00c3ff;
  --text-dark: #333;
  --text-light: #f8f9fa;
  --gradient-blue: linear-gradient(135deg, #007bff, #00c3ff);
}

/* 导航栏样式 */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: none;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0;
  background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-blue) !important;
  display: flex;
  align-items: center;
}

.navbar-brand::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-blue);
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 10px var(--accent-blue);
}

.navbar-nav > li > a {
  font-weight: 500;
  color: var(--text-dark) !important;
  position: relative;
  margin: 0 10px;
  padding: 10px 0 !important;
  transition: all 0.3s;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
  color: var(--primary-blue) !important;
}

.navbar-nav > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-blue);
  transition: width 0.3s ease;
}

.navbar-nav > li > a:hover::after {
  width: 100%;
}

/* 首页横幅 */
#home {
  background: var(--gradient-blue);
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

#home::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  transform: rotate(30deg);
}

#home h1 {
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  position: relative;
  z-index: 2;
}

#home p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.jumbotron {
  background: transparent;
}

/* 轮播图样式 */
.carousel {
  max-width: 800px;
  margin: 30px auto 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  z-index: 2;
}

.carousel-indicators li {
  background-color: rgba(255,255,255,0.5);
  border: none;
}

.carousel-indicators .active {
  background-color: white;
}

.carousel-control {
  background: transparent;
  text-shadow: none;
}

.carousel-control.left,
.carousel-control.right {
  background-image: none;
}

.carousel-control .glyphicon-chevron-left,
.carousel-control .glyphicon-chevron-right {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-block;
  margin-top: -10px;
}

.carousel-caption {
  background: rgba(0,0,0,0.5);
  padding: 20px;
  border-radius: 0 0 10px 10px;
}

/* 内容区域通用样式 */
section {
  padding: 80px 0;
}

section:nth-child(even) {
  background-color: var(--light-blue);
}

section h2 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 50px;
  color: var(--dark-blue);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

section h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--gradient-blue);
  border-radius: 3px;
}

/* 关于我们 */
#html5 {
  background: white;
}

/* 主要业务 */
#course {
  background: var(--light-blue);
}

#course img {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#course img:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* 合作伙伴 */
#partners {
  background: white;
}

#partners img {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#partners p {
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
}

/* 页脚 */
footer {
  background: var(--dark-blue);
  color: var(--text-light);
  padding: 30px 0;
}

footer a {
  color: var(--accent-blue);
  text-decoration: none;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

/* 按钮样式 */
.btn-primary {
  background: var(--primary-blue);
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,123,255,0.3);
}

.btn-primary:hover {
  background: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,123,255,0.4);
}

.btn-success {
  background: var(--accent-blue);
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,195,255,0.3);
}

.btn-success:hover {
  background: #00a2d9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,195,255,0.4);
}

/* 响应式调整 */
@media (max-width: 768px) {
  #home {
    padding: 60px 0;
  }
  
  #home h1 {
    font-size: 32px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .navbar-nav > li > a {
    margin: 0;
  }
  
  .navbar-brand {
    font-size: 20px;
  }
  
  .carousel-caption .btn {
    min-width: 100px;
    padding: 8px 15px;
    font-size: 14px;
  }
}