* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Microsoft YaHei", sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.7;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 导航 */
.header {
  background: #2a3b55;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo img {
  height: 44px;
}
.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
}
.nav-menu a:hover {
  color: #ff4757;
}
.kf-box {
  position: relative;
  cursor: pointer;
}
.kf-box:hover .kf-hover {
  display: block;
}
.kf-hover {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  color: #333;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  width: 160px;
  text-align: center;
}
.kf-hover img {
  width: 100%;
  margin-top: 6px;
  border-radius: 4px;
}

/* 顶部横幅 —— 完全统一 */
.hero {
  background: #2c3e50;
  color: #fff;
  padding: 60px 0;
  text-align: center;
  border-radius: 16px;
  margin: 30px 0;
}
.hero h1 {
  font-size: 32px;
  margin-bottom: 12px;
}
.hero p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* 主布局 */
.main {
  display: flex;
  gap: 30px;
  margin-bottom: 60px;
}
.main-left {
  width: 75%;
}
.main-right {
  width: 25%;
}

/* 文章列表：一整块大容器 */
.article-wrapper {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.article-wrapper h2.section-title {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f2f4f6;
  position: relative;
}
.article-wrapper h2.section-title::after {
  content: "";
  width: 60px;
  height: 2px;
  background: #ff5555;
  position: absolute;
  left: 0;
  bottom: -2px;
}

/* 单篇文章：图文排版 */
.article-item {
  display: flex;
  gap: 25px;
  padding: 20px 0;
  border-bottom: 1px dashed #eee;
  align-items: center;
}
.article-item:last-child {
  border-bottom: none;
}
.article-item:hover .article-title {
  color: #ff5555;
}
.article-pic {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: #f2f4f6;
}
.article-info {
  flex: 1;
}
.article-title {
  font-size: 19px;
  font-weight: 500;
  color: #2c3e50;
  text-decoration: none;
  margin-bottom: 10px;
  display: block;
  transition: color 0.3s;
}
.article-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-meta {
  font-size: 13px;
  color: #999;
  display: flex;
  gap: 25px;
}

/* 右侧卡片 */
.side-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.side-card h3 {
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f2f4f6;
  position: relative;
}
.side-card h3::after {
  content: "";
  width: 45px;
  height: 2px;
  background: #ff5555;
  position: absolute;
  left: 0;
  bottom: -2px;
}
.side-list a {
  display: block;
  padding: 12px 0;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px dashed #eee;
  transition: padding 0.3s;
}
.side-list a:hover {
  color: #ff5555;
  padding-left: 8px;
}

/* 分页 */
.pages {
  margin: 30px 0;
  text-align: center;
}
.pages a {
  display: inline-block;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #e4e7ed;
  color: #333;
  margin: 0 4px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s;
}
.pages a:hover,
.pages a.active {
  background: #2a3b55;
  color: #fff;
  border-color: #2a3b55;
}

/* 底部 */
.footer {
  background: #fff;
  padding: 25px;
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-top: 40px;
  border-top: 1px solid #eee;
}

/* 底部版权链接颜色统一 */
.footer p,
.footer p a {
  color: #666;       /* 统一颜色 */
  text-decoration: none; /* 去掉链接下划线 */
}

/* 移动端 */
@media (max-width: 768px) {
  .view-wrap {
    flex-direction: column;
  }
  .view-left, .view-right {
    width: 100%;
  }
  .view-info {
    flex-direction: column;
  }
  .info-left-img {
    width: 100%;
    height: auto;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-title {
    font-size: 18px;
  }
}