/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft Yahei", Arial, sans-serif;
}

body {
  background-color: #f8f8f8;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

/* 容器样式 */
.container {
  width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 面包屑导航 */
.breadcrumb {
  padding: 15px 0;
  font-size: 14px;
  color: #666;
  border-bottom: 1px solid #eee;
  background-color: #fff;
}

.breadcrumb span {
  margin: 0 5px;
}

.breadcrumb a {
  color: #e53935;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* 主导航栏 */
.nav-main {
  background-color: #333;
  margin-bottom: 20px;
}

.nav-main .container {
  display: flex;
}

.nav-main a {
  display: inline-block;
  padding: 15px 25px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s;
}

.nav-main a:hover,
.nav-main a[style*="background-color"] {
  background-color: #e53935;
}

/* Hero区域 */
.hero {
  background-color: #fff;
  padding: 40px 0;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hero h1 {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
}

.hero p {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
}

.hero a {
  color: #e53935;
  text-decoration: none;
}

.hero a:hover {
  text-decoration: underline;
}

/* 轮播图 */
.carousel {
  position: relative;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.carousel-item {
  display: none;
}

.carousel-item.active {
  display: block;
}

.carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}

.carousel-caption h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

/* 主内容区域 */
.main-content {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.content-left {
  width: 70%;
}

.content-right {
  width: 30%;
}

/* 内容块 */
.content-block {
  background-color: #fff;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.content-block h2 {
  font-size: 22px;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e53935;
}

/* 文章列表 */
.article-list {
  list-style: none;
}

.article-item {
  padding: 15px 0;
  border-bottom: 1px dashed #eee;
}

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

.article-title a {
  font-size: 18px;
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.article-title a:hover {
  color: #e53935;
}

.article-excerpt {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

.article-excerpt a {
  color: #e53935;
  text-decoration: none;
}

.article-excerpt a:hover {
  text-decoration: underline;
}

/* 侧边栏 */
.sidebar-block {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-block h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.sidebar-block ul {
  list-style: none;
}

.sidebar-block li {
  padding: 8px 0;
  border-bottom: 1px dashed #f0f0f0;
}

.sidebar-block li:last-child {
  border-bottom: none;
}

.sidebar-block a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.sidebar-block a:hover {
  color: #e53935;
}

/* 友情链接 */
.friend-link-item {
  display: inline-block;
  padding: 5px 10px;
  margin: 0 5px 8px 0;
  background-color: #f5f5f5;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
}

.friend-link-item:hover {
  background-color: #e53935;
  color: #fff;
}

/* 页脚 */
.footer {
  background-color: #333;
  color: #ccc;
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #444;
}

.footer-column {
  width: 23%;
}

.footer-column h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  padding: 6px 0;
}

.footer-column a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #e53935;
}

.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: #999;
  padding-top: 20px;
}

.footer-bottom a {
  color: #999;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #e53935;
}

/* 内链样式 */
.internal-link {
  color: #e53935 !important;
  font-weight: 500;
  text-decoration: underline;
}

/* 响应式适配 */
@media (max-width: 1200px) {
  .container {
    width: 95%;
  }
}

@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
  
  .content-left, .content-right {
    width: 100%;
  }
  
  .footer-top {
    flex-wrap: wrap;
  }
  
  .footer-column {
    width: 48%;
    margin-bottom: 20px;
  }
  
  .carousel-item img {
    height: 250px;
  }
  
  .nav-main .container {
    flex-wrap: wrap;
  }
  
  .nav-main a {
    padding: 10px 15px;
    font-size: 14px;
  }
} 