/* 主体样式 */
* {
  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(to right, #0d4c8c, #1a6dbc);
  color: white;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 1px;
}

.logo span {
  color: #ffd700;
}

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

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

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 {
  height: 500px;
  background: linear-gradient(rgba(13, 76, 140, 0.8), rgba(26, 109, 188, 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="%230d4c8c"/><path d="M20,20 Q50,5 80,20 T80,80 Q50,95 20,80 T20,20 Z" fill="none" stroke="%231a6dbc" stroke-width="0.5"/></svg>');
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

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

.banner-content p {
  font-size: 22px;
  margin-bottom: 30px;
  max-width: 800px;
}

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

.btn:hover {
  background-color: transparent;
  color: #ffd700;
}

/* 内容区域 */
.content-section {
  padding: 60px 0;
  background-color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 36px;
  color: #0d4c8c;
  display: inline-block;
  padding-bottom: 15px;
}

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

/* 首页介绍 */
.intro {
  display: flex;
  gap: 40px;
  align-items: center;
}

.intro-text {
  flex: 1;
}

.intro-text h3 {
  font-size: 28px;
  color: #0d4c8c;
  margin-bottom: 20px;
}

.intro-text p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

.intro-image {
  flex: 1;
  height: 350px;
  background-color: #e9ecef;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 18px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 新闻动态 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.news-card {
  background-color: #fff;
  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.15);
}

.news-image {
  height: 200px;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
}

.news-content {
  padding: 20px;
}

.news-content .date {
  color: #1a6dbc;
  font-size: 14px;
  margin-bottom: 10px;
}

.news-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0d4c8c;
}

.news-content p {
  color: #666;
  margin-bottom: 15px;
}

.read-more {
  color: #1a6dbc;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.read-more:hover {
  color: #0d4c8c;
}

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

.service-card {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.service-card:hover {
  background-color: #0d4c8c;
  color: white;
  transform: translateY(-10px);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: #1a6dbc;
}

.service-card:hover .service-icon {
  color: #ffd700;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

/* 案例展示 */
.cases-slider {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  padding: 20px 0;
  scrollbar-width: thin;
}

.case-card {
  min-width: 300px;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  flex: 0 0 auto;
}

.case-image {
  height: 200px;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
}

.case-content {
  padding: 20px;
}

.case-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0d4c8c;
}

/* 人才发展 */
.careers-content {
  display: flex;
  gap: 40px;
}

.career-text {
  flex: 1;
}

.career-text ul {
  padding-left: 20px;
  margin: 20px 0;
}

.career-text ul li {
  margin-bottom: 10px;
  position: relative;
}

.career-text ul li::before {
  content: "•";
  color: #1a6dbc;
  font-weight: bold;
  position: absolute;
  left: -20px;
}

.career-image {
  flex: 1;
  height: 400px;
  background-color: #e9ecef;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 底部 */
footer {
  background-color: #0d4c8c;
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-column h3 {
  font-size: 22px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: #ffd700;
  bottom: 0;
  left: 0;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
  float: left;
  width: 33%;
}

.footer-column ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #ffd700;
}

.contact-info div {
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #ffd700;
  color: #0d4c8c;
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #aaa;
}

/* 子页面样式 */
.page-header {
  background: linear-gradient(rgba(13, 76, 140, 0.8), rgba(26, 109, 188, 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="%230d4c8c"/><circle cx="50" cy="50" r="40" fill="none" stroke="%231a6dbc" stroke-width="0.5"/></svg>');
  background-size: cover;
  padding: 60px 0;
  text-align: center;
  color: white;
}

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

.page-header p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
}

.breadcrumb {
  background-color: #e9ecef;
  padding: 15px 0;
  font-size: 14px;
}

.breadcrumb a {
  color: #1a6dbc;
  text-decoration: none;
}

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

.page-content {
  padding: 60px 0;
  background-color: white;
}

.page-content h4 {
  font-size: 1.3rem;
}

.sidebar {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar h3 {
  color: #0d4c8c;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #1a6dbc;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 12px;
}

.sidebar ul li a {
  color: #333;
  text-decoration: none;
  display: block;
  padding: 8px 12px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
  background-color: #0d4c8c;
  color: white;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.news-item {
  padding-bottom: 25px;
  border-bottom: 1px solid #eee;
}

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

.news-item h3 {
  color: #0d4c8c;
  margin-bottom: 10px;
}

.news-item .date {
  color: #1a6dbc;
  font-size: 14px;
  margin-bottom: 10px;
  display: block;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

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

.product-card:hover {
  transform: translateY(-10px);
}

.product-image {
  height: 200px;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  color: #0d4c8c;
  margin-bottom: 10px;
}

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

.faq-item {
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  background-color: #f8f9fa;
  padding: 20px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  color: #0d4c8c;
}

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

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

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

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

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-details h3 {
  color: #0d4c8c;
  margin-bottom: 20px;
}

.contact-person {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eee;
}

.contact-person:last-child {
  border-bottom: none;
}

.contact-person h4 {
  color: #1a6dbc;
  margin-bottom: 5px;
}

.contact-person p {
  color: #666;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

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

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

  .banner-content h1 {
    font-size: 36px;
  }

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

  .intro,
  .careers-content {
    flex-direction: column;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .news-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
}