/* ======================================
   1. 全局基础重置（必选，清除浏览器默认样式）
====================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}
a:hover {
  color: #0066cc;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ======================================
   2. 头部导航样式
====================================== */
.header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  color: #0066cc;
}
.nav-list {
  display: flex;
  gap: 30px;
}
.nav-list a {
  font-size: 16px;
  font-weight: 500;
  padding: 5px 0;
}
.nav-list a.active {
  color: #0066cc;
  border-bottom: 2px solid #0066cc;
}

/* ======================================
   3. 轮播图核心样式（修复：2/3/4张不显示）
====================================== */
.top-banner-slider {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #eee;
}
.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
/* 轮播项：默认透明，绝对定位叠加 */
.slider-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 0;
}
/* 激活项：显示 */
.slider-item.active {
  opacity: 1;
  z-index: 1;
}
.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.slider-text h2 {
  font-size: 36px;
  margin-bottom: 10px;
}
.slider-text p {
  font-size: 18px;
}
/* 轮播指示点 */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}
.slider-dots .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.3s ease;
}
.slider-dots .dot.active {
  background: #fff;
}

/* ======================================
   4. 面包屑导航
====================================== */
.breadcrumb {
  padding: 15px 0;
  font-size: 14px;
  color: #666;
  background: #fff;
  margin-bottom: 20px;
}

/* ======================================
   5. 主体内容区域
====================================== */
main {
  padding: 20px 0;
}
.hero {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.hero p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

/* 公告样式 */
.notice {
  background: #fff3cd;
  color: #856404;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #ffc107;
}

/* 内容布局：主体+侧边栏 */
.main-wrapper {
  display: flex;
  gap: 25px;
}
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ======================================
   6. 模块通用样式
====================================== */
.section {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.section-title {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
  color: #333;
}
.recommend {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.recommend-title {
  font-size: 18px;
  color: #0066cc;
  margin-bottom: 10px;
}

/* 精品栏目网格 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  text-align: center;
  padding: 20px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.news-card:hover {
  border-color: #0066cc;
  transform: translateY(-5px);
}
.news-card h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

/* 资讯列表 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.news-item {
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
}
.news-item:last-child {
  border-bottom: none;
}
.news-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.news-item p {
  font-size: 14px;
  color: #666;
}

/* 服务宗旨 */
.content-detail {
  margin-bottom: 8px;
  font-size: 15px;
  color: #555;
}

/* ======================================
   7. 侧边栏样式
====================================== */
.sidebar {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-widget {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.widget-title {
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}
/* 热门标签 */
.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hot-tags a {
  padding: 5px 12px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 14px;
}
.hot-tags a:hover {
  background: #0066cc;
  color: #fff;
}
/* 侧边栏导航 */
.sidebar-widget li {
  margin-bottom: 10px;
}
.sidebar-widget li:last-child {
  margin-bottom: 0;
}

/* ======================================
   8. 页脚样式
====================================== */
.footer {
  background: #2c2c2c;  /* ✅ 修正：补全6位十六进制颜色 */
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  gap: 50px;
  margin-bottom: 20px;
}
.footer-link-group {
  flex: 1;
}
.footer-link-group h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
}
/* 页脚内链横向排列 */
#quick-links, #clause-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
#quick-links a, #clause-links a {
  color: #ccc;
  font-size: 14px;
}
#quick-links a:hover, #clause-links a:hover {
  color: #fff;
}
.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 14px;
  color: #999;
}

/* ======================================
   9. 响应式适配（手机/平板）
====================================== */
@media (max-width: 1200px) {
  .container {
    width: 100%;
  }
}
@media (max-width: 992px) {
  .main-wrapper {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .nav-list {
    gap: 15px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    gap: 30px;
  }
  .slider-text h2 {
    font-size: 24px;
  }
  .top-banner-slider {
    height: 320px;
  }
}