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

/* 头部样式 */
header {
  background: linear-gradient(135deg, #003366 0%, #006699 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

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

nav ul li {
  margin-left: 1rem;
}

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

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

/* 主要内容区域 */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

section {
  background: white;
  margin-bottom: 2rem;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

section h2 {
  color: #003366;
  border-bottom: 2px solid #006699;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* 首页特色区域 */
.hero {
  background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 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="%23003366"/><circle cx="20" cy="20" r="5" fill="%23006699" opacity="0.3"/><circle cx="50" cy="50" r="8" fill="%23006699" opacity="0.3"/><circle cx="80" cy="80" r="6" fill="%23006699" opacity="0.3"/></svg>');
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

.btn {
  display: inline-block;
  background-color: #ff6600;
  color: white;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #e65c00;
}

/* 新闻动态 */
.news-list {
  list-style: none;
}

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

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

.news-item h3 {
  color: #003366;
}

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

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

.product-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-card h3 {
  background-color: #003366;
  color: white;
  padding: 1rem;
  text-align: center;
}

.product-card p {
  padding: 1rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
}

/* 联系信息 */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.department {
  background-color: #f1f8ff;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #006699;
}

.department h3 {
  color: #003366;
  margin-bottom: 1rem;
}

.department p {
  margin: 0.5rem 0;
}

/* 页脚 */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

/* 子页面样式 */
.page-header {
  background: linear-gradient(135deg, #003366 0%, #006699 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

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

/* 知识库 */
.kb-category {
  margin-bottom: 2rem;
}

.kb-category h3 {
  color: #003366;
  margin-bottom: 1rem;
}

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

.kb-articles li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
}

.kb-articles li a {
  color: #006699;
  text-decoration: none;
}

.kb-articles li a:hover {
  text-decoration: underline;
}

/* 常见问题 */
.faq-item {
  margin-bottom: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  background-color: #f1f8ff;
  padding: 1rem;
  font-weight: bold;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1rem;
}

.faq-answer {
  padding: 1rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

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

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

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

  nav ul li {
    margin: 0.3rem;
  }

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

  main {
    padding: 0 1rem;
  }
}