/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* 导航栏样?*/
nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 5%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

.main-menu {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.main-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-menu a:hover {
  color: #4CAF50;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-left: -450px;
  width: 900px;
  padding: 30px 40px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  z-index: 1000;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-width: 95vw;
  overflow-x: hidden;
}

.dropdown:hover .dropdown-content {
  display: flex;
  justify-content: space-between;
  opacity: 1;
  transform: translateY(0);
}

.submenu {
  flex: 1;
  padding: 0 15px;
}

.submenu h4 {
  color: #2c3e50;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 8px;
}

.submenu h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: #3498db;
}

.submenu ul {
  list-style: none;
  padding: 0;
}

.submenu li {
  margin: 12px 0;
}

.submenu a {
  color: #4a5568;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  padding-left: 18px;
}

.submenu a::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #3498db;
  opacity: 0;
  transition: all 0.3s ease;
}

.submenu a:hover {
  color: #3498db;
  transform: translateX(5px);
}

.submenu a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.divider {
  width: 1px;
  background: rgba(0,0,0,0.08);
  margin: 0 10px;
}

.banner-title {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  font-size: 3em;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

/* 封面容器 */
.cover-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 新闻内容区域 */
.news-content {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 50px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
}

.news-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.5;
  margin-bottom: 35px;
  padding-bottom: 20px;
  border-bottom: 3px solid #3498db;
  position: relative;
  text-align: center;
}

.news-content h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #4fd1c5);
}

/* 文章标签 */
.article-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.article-tag {
  padding: 6px 18px;
  background: rgba(52, 152, 219, 0.1);
  color: #3498db;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(52, 152, 219, 0.2);
}

/* 文章图片 */
.article-image {
  margin: 30px auto;
  text-align: center;
  display: block;
  width: fit-content;
  max-width: 100%;
}

.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.image-caption {
  margin-top: 12px;
  font-size: 14px;
  color: #aaa;
  text-align: center;
  font-style: italic;
  opacity: 0.8;
  display: block;
  width: 100%;
}

/* 文章装饰元素 */
.news-content::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.news-content::after {
  content: '';
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(79, 209, 197, 0.1), transparent);
  border-radius: 50%;
  pointer-events: none;
}

/* 正文样式 */
.news-content p {
  font-size: 16px;
  line-height: 2;
  color: #4a5568;
  margin-bottom: 20px;
  text-align: justify;
  text-indent: 2em;
}

/* 阅读进度指示器 */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #4fd1c5);
  z-index: 9999;
  transition: width 0.3s ease;
}

/* 页脚样式 */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 60px 0;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1;
  min-width: 300px;
  margin-bottom: 30px;
}

.footer-content {
  max-width: 400px;
}

.footer-logo h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #3498db;
}

.footer-logo p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav {
  flex: 2;
}

.footer-links {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.footer-link-group {
  margin: 0 20px 30px;
}

.footer-link-group h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 600;
}

.footer-link-group ul {
  list-style: none;
  padding: 0;
}

.footer-link-group li {
  margin: 10px 0;
}

.footer-link-group a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 16px;
  position: relative;
}

.footer-link-group a:hover {
  color: #3498db;
}

/* 响应式设计 */
@media (max-width: 900px) {
  .banner-title {
    font-size: 2em;
    left: 5%;
  }
  
  .news-content {
    margin: 40px 20px;
    padding: 30px 25px;
  }
  
  .news-content h2 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .banner-title {
    font-size: 1.8em;
    left: 5%;
  }
  
  .cover-container {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .banner-title {
    font-size: 1.4em;
    left: 5%;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}