/* 全局重置+基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft Yahei", Arial, sans-serif;
}
body {
  color: #333;
  line-height: 1.6;
  background-color: #f8f9fa;
}
a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}
a:hover {
  color: #e63946;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 面包屑导航 */
.breadcrumb {
  padding: 15px 0;
  font-size: 14px;
  color: #666;
}
.breadcrumb a {
  color: #666;
}
.breadcrumb a:last-child {
  color: #e63946;
  pointer-events: none;
}
.breadcrumb span {
  margin: 0 5px;
}

/* 主导航栏 */
.navbar {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  color: #e63946;
}
.nav-list {
  display: flex;
  list-style: none;
}
.nav-list li {
  margin-left: 30px;
}
.nav-list a {
  font-size: 16px;
  font-weight: 500;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover {
  border-bottom: 2px solid #e63946;
}

/* Hero区域（与轮播分离） */
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("https://cdn.example.com/hero-bg.jpg") center/cover no-repeat;
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.hero h1 {
  font-size: 40px;
  margin-bottom: 20px;
}
.hero p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
}

/* 轮播图 */
.carousel {
  background-color: #fff;
  padding: 30px 0;
}
.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.carousel-slide {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-item {
  min-width: 100%;
}
.carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
}
.prev-btn {
  left: 20px;
}
.next-btn {
  right: 20px;
}

/* 核心内容区 - 70%左 + 30%右 黄金SEO布局 */
.content-wrapper {
  display: flex;
  gap: 20px;
  padding: 30px 0;
}
.main-content {
  width: 70%;
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.sidebar {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.sidebar-card h3 {
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
/* 友情链接样式 */
.links-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.links-list li {
  flex: 0 0 calc(50% - 5px);
}
.links-list a {
  display: block;
  padding: 8px 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
  font-size: 14px;
  /* Nofollow权重隔离 - SEO核心 */
  rel: "nofollow";
}
/* 热门推荐样式 */
.hot-recommend {
  list-style: none;
}
.hot-recommend li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #eee;
}
.hot-recommend li:last-child {
  border-bottom: none;
}

/* 页脚样式 */
.footer {
  background-color: #333;
  color: #fff;
  padding: 40px 0 20px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}
.footer-column {
  width: 23%;
}
.footer-column h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #fff;
}
.footer-column ul {
  list-style: none;
}
.footer-column li {
  margin-bottom: 8px;
}
.footer-column a {
  color: #ccc;
  /* Nofollow防止权重流失 */
  rel: "nofollow";
}
.footer-column a:hover {
  color: #fff;
}
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #ccc;
}
.footer-bottom a {
  color: #ccc;
  rel: "nofollow";
}
.footer-bottom a:hover {
  color: #fff;
}

/* 响应式适配 - 移动端优化 */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }
  .main-content, .sidebar {
    width: 100%;
  }
  .footer-top {
    flex-wrap: wrap;
  }
  .footer-column {
    width: 48%;
    margin-bottom: 20px;
  }
}