/* 全局样式重置 */
* {
  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;
}

/* 链接样式 */
a {
  text-decoration: none;
  color: #007bff;
}

a:hover {
  text-decoration: underline;
}

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

/* 头部样式 */
header {
  background: linear-gradient(135deg, #003366 0%, #0066cc 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 {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 1px;
}

.logo span {
  color: #ffcc00;
}

/* 导航菜单 */
nav ul {
  display: flex;
  list-style: none;
}

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

nav ul li a {
  color: white;
  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);
  text-decoration: none;
}

/* 主要内容区域 */
main {
  padding: 0;
}

.grid2 {
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)) !important;
}

.grid3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
}

/* 首页部分样式 */
.hero {
  background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.9)), url('../assets/hero-bg.svg');
  color: white;
  text-align: center;
  padding: 80px 0;
  margin-bottom: 40px;
  border-radius: 0 0 10px 10px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  background-color: #ffcc00;
  color: #003366;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid #ffcc00;
}

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

/* 首页各板块通用样式 */
.section {
  margin-bottom: 60px;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.section-title {
  text-align: center;
  margin-bottom: 30px;
  color: #003366;
  position: relative;
  padding-bottom: 15px;
}

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

.section-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-item,
.case-item,
.service-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 4px solid #007bff;
}

.news-item:hover,
.case-item:hover,
.service-item:hover {
  background: #e9f4ff;
  transform: translateX(5px);
}

.news-item h3,
.case-item h3,
.service-item h3 {
  color: #003366;
  margin-bottom: 10px;
}

/* 联系我们样式 */
.contact-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.contact-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  border-top: 4px solid #007bff;
}

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

.contact-card h3 {
  color: #003366;
  margin-bottom: 10px;
}

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

/* 子页面通用样式 */
.page-header {
  background: linear-gradient(135deg, #003366 0%, #0066cc 100%);
  color: white;
  text-align: center;
  padding: 80px 0;
  margin-bottom: 40px;
  border-radius: 0 0 10px 10px;
}

.page-header h1 {
  font-size: 36px;
  letter-spacing: 1px;
}

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

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

.news-list li {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

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

.news-list h3 {
  color: #003366;
  margin-bottom: 10px;
}

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

/* 产品列表样式 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.product-card {
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

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

.product-info {
  padding: 20px;
}

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

/* 知识库样式 */
.kb-category {
  margin-bottom: 30px;
}

.kb-category h2 {
  color: #003366;
  padding-bottom: 10px;
  border-bottom: 2px solid #007bff;
  margin-bottom: 20px;
}

.kb-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.kb-article {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.kb-article:hover {
  background: #e9f4ff;
  transform: translateX(5px);
}

.kb-article h3 {
  color: #003366;
  margin-bottom: 10px;
}

/* 常见问题样式 */
.faq-item {
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

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

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

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

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

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

/* 页脚样式 */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 40px;
}

.gsjj p,
.rcfz p {
  text-indent: 2em;
  margin-top: 15px;
}

/* 响应式设计 */
@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;
  }

  .hero h1 {
    font-size: 32px;
  }

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

  .section-content {
    grid-template-columns: 1fr;
  }
}