/* ==========================================================================
   经典风格模板（复刻旧站 mui954） —— 主色 #3ab034
   ========================================================================== */
:root {
  --primary: #3ab034;
  --primary-dark: #2f9629;
  --text: #333;
  --text-light: #999;
  --border: #e6e6e6;
  --bg-soft: #f0f0f0;
  --bg-footer: #f7f8fa;
  --header-h: 60px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  background: #fff;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .25s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; }
p { margin: 0 0 12px; }
.container { width: 1200px; max-width: 100%; margin: 0 auto; padding: 0 15px; }
.clearfix::after { content: ''; display: table; clear: both; }
.text-primary { color: var(--primary); }
.muted { color: var(--text-light); }

/* ---------------------------- 顶部导航 ---------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h); background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.site-header .container { height: var(--header-h); display: flex; align-items: center; }
.site-logo { display: flex; align-items: center; height: var(--header-h); }
.site-logo img { max-height: 50px; }
.site-logo .logo-text { font-size: 20px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.site-logo .logo-mobile { display: none; }

.main-nav { margin-left: auto; display: flex; align-items: center; height: var(--header-h); }
.main-nav > li { position: relative; height: var(--header-h); }
.main-nav > li > a {
  display: flex; align-items: center; height: var(--header-h);
  padding: 0 20px; font-size: 16px; color: #000; position: relative;
}
.main-nav > li > a::after {
  content: ''; position: absolute; left: 50%; right: 50%; top: 0; height: 2px;
  background: var(--primary); transition: all .4s;
}
.main-nav > li:hover > a, .main-nav > li.active > a { color: var(--primary); }
.main-nav > li:hover > a::after, .main-nav > li.active > a::after { left: 0; right: 0; }
.main-nav .caret { margin-left: 4px; font-size: 12px; opacity: .7; }

.sub-nav {
  position: absolute; left: 50%; top: var(--header-h);
  min-width: 160px; background: #fff; padding: 6px 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12); border-radius: 0 0 4px 4px;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px);
  transition: all .28s; white-space: nowrap;
}
.main-nav > li:hover .sub-nav { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.sub-nav a { display: block; padding: 9px 22px; font-size: 14px; color: #444; }
.sub-nav a:hover { background: #f5fbf4; color: var(--primary); }

.header-search { position: relative; margin-left: 18px; }
.header-search input {
  width: 150px; height: 34px; padding: 0 34px 0 12px; font-size: 13px;
  border: 1px solid var(--border); border-radius: 17px; outline: none; transition: all .3s;
}
.header-search input:focus { width: 190px; border-color: var(--primary); }
.header-search button {
  position: absolute; right: 4px; top: 3px; width: 28px; height: 28px;
  border: 0; background: transparent; cursor: pointer; color: var(--text-light); font-size: 15px;
}
.header-search button:hover { color: var(--primary); }

.nav-toggle { display: none; margin-left: auto; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #333; margin: 5px 0; transition: all .3s; }

/* ---------------------------- Banner ---------------------------- */
.banner { position: relative; overflow: hidden; background: #ddd; }
.banner-list { position: relative; height: 460px; }
.banner-item {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0; transition: opacity .8s;
  background-size: cover; background-position: center;
}
.banner-item.active { opacity: 1; }
.banner-item img { width: 100%; height: 460px; object-fit: cover; display: block; }
.banner-text {
  position: absolute; left: 0; right: 0; bottom: 60px; color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}
.banner-text h2 { font-size: 34px; margin-bottom: 8px; }
.banner-text p { font-size: 16px; opacity: .92; }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; z-index: 3; }
.banner-dots i {
  display: inline-block; width: 10px; height: 10px; margin: 0 5px; border-radius: 50%;
  background: rgba(255, 255, 255, .55); cursor: pointer; transition: all .3s;
}
.banner-dots i.active { background: #fff; width: 24px; border-radius: 5px; }
.banner-arrow {
  position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; z-index: 3;
  border: 0; cursor: pointer; background: rgba(0, 0, 0, .25); color: #fff;
  font-size: 20px; opacity: 0; transition: all .3s;
}
.banner:hover .banner-arrow { opacity: 1; }
.banner-arrow:hover { background: var(--primary); }
.banner-arrow.prev { left: 20px; }
.banner-arrow.next { right: 20px; }

/* ---------------------------- 首页区块 ---------------------------- */
.home-blocks { background: var(--bg-soft); padding: 60px 0 30px; }
.block-row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.block-col { width: 50%; padding: 0 15px 30px; }
.block { background: #fff; padding: 26px 28px 20px; height: 100%; }
.block-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; border-bottom: 1px solid var(--border); padding-bottom: 12px;
}
.block-head h2 { font-size: 20px; position: relative; padding-left: 14px; }
.block-head h2::before {
  content: ''; position: absolute; left: 0; top: 50%; margin-top: -9px;
  width: 4px; height: 18px; background: var(--primary); border-radius: 2px;
}
.block-more { font-size: 13px; color: var(--text-light); }
.block-more:hover { color: var(--primary); }
.news-ul li { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed #eee; }
.news-ul li:last-child { border-bottom: 0; }
.news-ul .n-title { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 16px; }
.news-ul .n-date { color: var(--text-light); font-size: 13px; flex-shrink: 0; }
.empty-tip { text-align: center; color: var(--text-light); padding: 30px 0; }

/* ---------------------------- 列表 / 详情布局 ---------------------------- */
.page-main { padding: 30px 0 60px; }
.layout { display: flex; margin: 0 -15px; }
.layout-side { width: 260px; padding: 0 15px; flex-shrink: 0; }
.layout-body { flex: 1; padding: 0 15px; min-width: 0; }

.page-banner { background: #e9ecef center/cover no-repeat; }
.page-banner .pb-inner {
  height: 220px; display: flex; align-items: center; justify-content: center;
  color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.page-banner h2 { font-size: 30px; }

.side-nav { border: 1px solid var(--border); background: #fff; margin-bottom: 20px; }
.side-nav .side-title { background: var(--primary); color: #fff; padding: 14px 20px; font-size: 17px; }
.side-nav ul li a { display: block; padding: 12px 20px; border-bottom: 1px solid #f2f2f2; font-size: 14px; }
.side-nav ul li a:hover { background: #f5fbf4; color: var(--primary); }
.side-nav ul li a.active {
  color: var(--primary); background: #f5fbf4; font-weight: 600;
  border-left: 3px solid var(--primary);
}

.side-box { border: 1px solid var(--border); background: #fff; margin-bottom: 20px; }
.side-box .side-title { padding: 12px 20px; font-size: 16px; border-bottom: 1px solid var(--border); }
.side-box .side-body { padding: 12px 20px 18px; }
.side-box .side-body li { padding: 7px 0; border-bottom: 1px dashed #eee; font-size: 13px; }
.side-box .side-body li:last-child { border-bottom: 0; }

.breadcrumb { padding: 0 0 16px; color: var(--text-light); font-size: 13px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 6px; }

.panel { background: #fff; border: 1px solid var(--border); }
.panel-head { padding: 16px 22px; border-bottom: 1px solid var(--border); font-size: 18px; }
.panel-body { padding: 10px 22px 30px; }

.list-news li { display: flex; align-items: center; padding: 15px 0; border-bottom: 1px dashed #e8e8e8; }
.list-news li:last-child { border-bottom: 0; }
.list-news .li-date {
  width: 62px; text-align: center; flex-shrink: 0; margin-right: 18px;
  border-right: 1px solid #eee;
}
.list-news .li-date b { display: block; font-size: 22px; color: var(--primary); font-weight: 600; line-height: 1.2; }
.list-news .li-date span { font-size: 12px; color: var(--text-light); }
.list-news .li-main { flex: 1; min-width: 0; }
.list-news .li-title { font-size: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.list-news .li-desc { color: var(--text-light); font-size: 13px; margin-top: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.list-news .li-meta { font-size: 12px; color: var(--text-light); margin-top: 6px; }
.list-news .li-meta span { margin-right: 14px; }


/* ---------------------------- 详情页 ---------------------------- */
.article { background: #fff; border: 1px solid var(--border); padding: 30px 40px 40px; }
.article-title { font-size: 26px; line-height: 1.5; text-align: center; margin-bottom: 16px; }
.article-meta {
  text-align: center; color: var(--text-light); font-size: 13px;
  padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.article-meta span { margin: 0 10px; }
.article-content { font-size: 15px; line-height: 2; word-wrap: break-word; overflow-wrap: break-word; }
.article-content img { max-width: 100% !important; height: auto !important; }
.article-content table { max-width: 100% !important; }
.article-content table td { padding: 4px; }
.article-content p { margin-bottom: 14px; }
.article-content h1, .article-content h2, .article-content h3 { margin: 18px 0 10px; font-weight: 600; }
.article-content ul, .article-content ol { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.article-content ol { list-style: decimal; }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content iframe { max-width: 100%; }
.article-pager {
  margin-top: 30px; padding-top: 18px; border-top: 1px dashed var(--border);
  color: var(--text-light); font-size: 14px;
}
.article-pager div { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 5px 0; }
.article-pager a:hover { color: var(--primary); }
.article-attach { margin-top: 20px; padding: 14px 18px; background: #f8faf8; border: 1px solid #e2efe1; font-size: 14px; }
.article-attach a { color: var(--primary); }

/* 单页面 */
.single-page { background: #fff; border: 1px solid var(--border); padding: 26px 34px 36px; }
.single-page .sp-title { font-size: 22px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }

/* ---------------------------- 分页 ---------------------------- */
.pager { text-align: center; padding: 28px 0 8px; }
.pager a, .pager span {
  display: inline-block; min-width: 34px; height: 34px; line-height: 32px;
  padding: 0 10px; margin: 0 3px; border: 1px solid var(--border);
  background: #fff; font-size: 14px; color: #555;
}
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager span.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager span.disabled { color: #ccc; }
.pager .pager-ellipsis { border: 0; background: transparent; }

/* ---------------------------- 表单 ---------------------------- */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; margin-bottom: 6px; font-size: 14px; }
.form-row label .req { color: #e2574c; margin-left: 3px; }
.form-control {
  width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 3px;
  font-size: 14px; font-family: inherit; outline: none; transition: border-color .25s;
}
.form-control:focus { border-color: var(--primary); }
textarea.form-control { min-height: 130px; resize: vertical; }
.btn {
  display: inline-block; padding: 9px 28px; border: 1px solid var(--primary);
  background: var(--primary); color: #fff; border-radius: 3px; cursor: pointer;
  font-size: 15px; font-family: inherit; transition: all .25s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.alert { padding: 12px 18px; border-radius: 3px; margin-bottom: 18px; font-size: 14px; }
.alert-success { background: #f0f9ef; border: 1px solid #cde9cb; color: #2f7c2a; }
.alert-error { background: #fdf2f2; border: 1px solid #f3d0d0; color: #b33a3a; }

/* ---------------------------- 页脚 ---------------------------- */
.site-footer { background: var(--bg-footer); border-top: 1px solid var(--border); padding: 48px 0 0; }
.footer-row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.footer-col { padding: 0 15px 30px; }
.footer-col.about { flex: 1 1 46%; }
.footer-col.nav { flex: 0 0 22%; }
.footer-col.contact { flex: 0 0 32%; }
.footer-title { font-size: 16px; margin-bottom: 14px; position: relative; padding-bottom: 10px; }
.footer-title::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--primary);
}
.footer-about { color: #666; font-size: 13px; line-height: 1.9; }
.footer-nav li { display: inline-block; width: 48%; padding: 6px 0; font-size: 14px; color: #555; }
.footer-contact { color: #555; font-size: 14px; line-height: 2; }
.footer-contact .qr img { width: 88px; margin-right: 10px; border: 1px solid #eee; }
.footer-bottom {
  border-top: 1px solid #e6e6e6; padding: 16px 0; text-align: center;
  color: var(--text-light); font-size: 13px; background: #fff;
}
.footer-links { padding-bottom: 18px; font-size: 13px; }
.footer-links a { margin-right: 16px; color: #666; }

.back-top {
  position: fixed; right: 22px; bottom: 90px; width: 44px; height: 44px; z-index: 999;
  background: var(--primary); color: #fff; border: 0; border-radius: 3px; cursor: pointer;
  font-size: 18px; opacity: 0; visibility: hidden; transition: all .3s;
}
.back-top.show { opacity: .9; visibility: visible; }
.back-top:hover { background: var(--primary-dark); }


/* ---------------------------- 响应式 ---------------------------- */
@media (max-width: 1200px) {
  .footer-col.about { flex: 1 1 100%; }
  .footer-col.nav { flex: 0 0 45%; }
  .footer-col.contact { flex: 0 0 55%; }
}
@media (max-width: 992px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; display: block; margin: 0; padding: 10px 0;
    overflow-y: auto; transform: translateX(-100%); transition: transform .3s; height: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > li { height: auto; }
  .main-nav > li > a { height: auto; padding: 13px 22px; border-bottom: 1px solid #f2f2f2; }
  .main-nav > li > a::after { display: none; }
  .sub-nav {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    padding: 0 0 0 26px; display: none;
  }
  .main-nav > li.expand .sub-nav { display: block; }
  .header-search { display: none; }
  .layout { display: block; }
  .layout-side { width: 100%; margin-bottom: 20px; }
  .block-col { width: 100%; }
  .banner-list, .banner-item img { height: 300px; }
  .page-banner .pb-inner { height: 160px; }
  .article { padding: 20px; }
  .article-title { font-size: 20px; }
}
@media (max-width: 576px) {
  .container { padding: 0 12px; }
  .home-blocks { padding: 30px 0 10px; }
  .block { padding: 18px; }
  .footer-col.nav, .footer-col.contact { flex: 0 0 100%; }
  .list-news .li-date { display: none; }
}

