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

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
  background: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  color: #fff;
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
}

.logo span {
  color: #64b5f6;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 1rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size:18px;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.nav-links a:hover {
  background-color: #64b5f6;
  color: #0a192f;
}

/* 主要内容区域 */
.main-content {
  margin-top: 80px;
  min-height: calc(100vh - 160px);
}

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

/* 首页横幅 */
.hero {
  background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%230a192f"/><path d="M20,20 Q50,5 80,20 T80,80 Q50,95 20,80 T20,20 Z" fill="none" stroke="%2364b5f6" stroke-width="0.5"/></svg>');
  background-size: cover;
  color: white;
  text-align: center;
  padding: 5rem 1rem;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background: #64b5f6;
  color: #0a192f;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #64b5f6;
}

.btn:hover {
  background: transparent;
  color: #64b5f6;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 版块样式 */
.section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: #0a192f;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background: #64b5f6;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* 简介版块 */
.intro-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.intro-text {
  flex: 1;
  min-width: 300px;
}

.intro-text h3 {
  color: #0a192f;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.intro-image {
  flex: 1;
  min-width: 300px;
  height: 350px;
  background: linear-gradient(45deg, #172a45, #0a192f);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64b5f6;
  font-size: 1.2rem;
  text-align: center;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 新闻动态 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.news-content {
  padding: 1.5rem;
}

.news-content h3 {
  color: #0a192f;
  margin-bottom: 0.5rem;
}

.news-date {
  color: #64b5f6;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}

/* 业务范围 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
  font-size: 3rem;
  color: #64b5f6;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: #0a192f;
  margin-bottom: 1rem;
}

/* 成功案例 */
.cases-slider {
  position: relative;
  overflow: hidden;
  height: 400px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.case-item {
  height: 100%;
  background: linear-gradient(45deg, #172a45, #0a192f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 2rem;
}

/* 人才发展 */
.careers-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.careers-content h3 {
  color: #0a192f;
  margin-bottom: 1rem;
}

.job-list {
  list-style-type: none;
}

.job-item {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.job-item:last-child {
  border-bottom: none;
}

.job-item h4 {
  color: #0a192f;
  margin-bottom: 0.5rem;
}

/* 常见问题 */
.faq-item {
  background: white;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 1.2rem;
  background: #e3f2fd;
  cursor: pointer;
  font-weight: bold;
  color: #0a192f;
  position: relative;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.faq-answer {
  padding: 0 1.2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 1.2rem;
  max-height: 500px;
}

.faq-item.active .faq-question::after {
  content: '-';
}

/* 联系方式 */
.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.department {
  margin-bottom: 1.5rem;
}

.department:last-child {
  margin-bottom: 0;
}

.department h4 {
  color: #0a192f;
  margin-bottom: 0.5rem;
}

.contact-person {
  margin-bottom: 0.3rem;
}

/* 子页面通用样式 */
.page-header {
  background: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
  color: white;
  padding:8rem 0 4rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2.5rem;
}

.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb a {
  color: #64b5f6;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.content-section {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

/* 新闻列表 */
.news-list {
  list-style: none;
}

.news-list-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
}

.news-list-item:last-child {
  border-bottom: none;
}

.news-list-item h3 {
  color: #0a192f;
  margin-bottom: 0.5rem;
}

.news-list-item p {
  color: #666;
  margin-bottom: 0.5rem;
}

/* 产品网格 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 200px;
  background: linear-gradient(45deg, #bbdefb, #64b5f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a192f;
  font-weight: bold;
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  color: #0a192f;
  margin-bottom: 0.5rem;
}

/* 知识库 */
.knowledge-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-card {
  background: #e3f2fd;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-card:hover {
  background: #64b5f6;
  color: white;
}

.knowledge-articles {
  list-style: none;
}

.article-item {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.article-item:last-child {
  border-bottom: none;
}

/* 页脚 */
.footer {
  background: #0a192f;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-summary {
  margin-bottom: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
  }

  .nav-links {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links li {
    margin: 0.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .main-content {
    margin-top: 140px;
  }
}