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

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

/* 页面容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部样式 */
header {
  background: linear-gradient(135deg, #004aad 0%, #0077b6 100%);
  color: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 28px;
  font-weight: 700;
}

.logo span {
  color: #ffd700;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 4px;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 首页横幅 */
.banner {
  background: linear-gradient(rgba(0, 74, 173, 0.8), rgba(0, 119, 182, 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="%23004aad"/><circle cx="20" cy="20" r="5" fill="%23ffffff" opacity="0.2"/><circle cx="50" cy="50" r="8" fill="%23ffffff" opacity="0.2"/><circle cx="80" cy="80" r="6" fill="%23ffffff" opacity="0.2"/></svg>');
  height: 500px;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

.banner-content {
  width: 100%;
}

.banner h2 {
  font-size: 42px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  background: #ffd700;
  color: #004aad;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  border: 2px solid #ffd700;
}

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

/* 主要内容区域 */
.main-content {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.content-section {
  background: white;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
  color: #004aad;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0077b6;
}

/* 首页各板块样式 */
.intro,
.services,
.cases,
.news {
  width: 100%;
  margin-bottom: 40px;
}

.intro-text {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
}

.services-grid,
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.service-card,
.case-card {
  background: #f0f8ff;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e1f0fa;
}

.service-card:hover,
.case-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 74, 173, 0.1);
  border-color: #0077b6;
}

.service-card i,
.case-card i {
  font-size: 40px;
  color: #0077b6;
  margin-bottom: 15px;
}

.service-card h3,
.case-card h3 {
  color: #004aad;
  margin-bottom: 10px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-card-img {
  height: 180px;
  background: linear-gradient(45deg, #0077b6, #004aad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
}

.news-card-content {
  padding: 20px;
}

.news-card h3 {
  color: #004aad;
  margin-bottom: 10px;
}

.news-card p {
  color: #666;
  margin-bottom: 15px;
  font-size: 14px;
}

.news-card .date {
  color: #0077b6;
  font-weight: bold;
  font-size: 13px;
}

/* 子页面样式 */
.page-header {
  background: linear-gradient(135deg, #004aad 0%, #0077b6 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.page-content {
  background: white;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-content ul{
	margin-left:20px;
}
.page-content h2 {
  color: #004aad;
  margin: 25px 0 15px;
}

.page-content p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #555;
}

/* 联系方式样式 */
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.contact-card {
  background: #f0f8ff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  border: 1px solid #e1f0fa;
}

.contact-card h4 {
  color: #004aad;
  margin-bottom: 10px;
}

.contact-card p {
  margin: 5px 0;
  color: #555;
}

.email-link {
  color: #0077b6;
  text-decoration: none;
}

.email-link:hover {
  text-decoration: underline;
}

/* 底部样式 */
footer {
  background: #002147;
  color: #ddd;
  padding: 30px 0;
  text-align: center;
}

.footer-content p {
  margin: 10px 0;
}

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

  nav ul {
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    margin: 5px 10px;
  }

  .banner {
    height: 400px;
  }

  .banner h2 {
    font-size: 32px;
  }

  .banner p {
    font-size: 18px;
  }

  .main-content {
    flex-direction: column;
  }

  .intro,
  .services,
  .cases,
  .news {
    width: 100%;
  }
}