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

/* 容器 */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 面包屑导航 */
.breadcrumb {
  padding: 15px 0;
  font-size: 14px;
  color: #666;
}
.breadcrumb a {
  color: #333;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #2c8f2c;
}
.breadcrumb span {
  margin: 0 5px;
}

/* 主导航栏 */
.navbar {
  background-color: #2c8f2c;
  padding: 15px 0;
}
.navbar .nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
}
.navbar .nav-list a {
  color: #fff;
  text-decoration: none;
  padding: 8px 15px;
  font-size: 16px;
}
.navbar .nav-list a:hover {
  background-color: #1f6e1f;
  border-radius: 4px;
}

/* Hero区域 */
.hero {
  background: #f5f9f5;
  padding: 40px 0;
  text-align: center;
}
.hero h1 {
  color: #2c8f2c;
  font-size: 28px;
  margin-bottom: 15px;
}
.hero p {
  color: #666;
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto;
}

/* 轮播图 */
.carousel {
  margin: 20px 0;
  overflow: hidden;
  height: 400px;
  position: relative;
}
.carousel-item {
  display: none;
  width: 100%;
  height: 100%;
}
.carousel-item.active {
  display: block;
}
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  cursor: pointer;
}
.carousel-prev {
  left: 10px;
}
.carousel-next {
  right: 10px;
}

/* 黄金布局：左70% + 右30% */
.main-content {
  display: flex;
  gap: 20px;
  margin: 30px 0;
}
.content-left {
  width: 70%;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.content-right {
  width: 30%;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 友情链接样式 */
.friend-links h3 {
  color: #2c8f2c;
  margin-bottom: 15px;
  border-bottom: 2px solid #f5f9f5;
  padding-bottom: 8px;
}
.friend-links ul {
  list-style: none;
}
.friend-links li {
  margin: 8px 0;
}
.friend-links a {
  color: #333;
  text-decoration: none;
}
.friend-links a:hover {
  color: #2c8f2c;
  text-decoration: underline;
}

/* 页脚样式 */
.footer {
  background: #333;
  color: #fff;
  padding: 30px 0;
  margin-top: 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.footer-top div {
  width: 23%;
}
.footer-top h4 {
  margin-bottom: 15px;
  font-size: 16px;
  color: #f5f9f5;
}
.footer-top a {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin: 5px 0;
}
.footer-top a:hover {
  color: #fff;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 14px;
}
.footer-bottom a {
  color: #ccc;
  text-decoration: none;
  margin: 0 10px;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
  .content-left, .content-right {
    width: 100%;
  }
  .footer-top {
    flex-wrap: wrap;
  }
  .footer-top div {
    width: 48%;
    margin-bottom: 20px;
  }
  .carousel {
    height: 250px;
  }
}