/* ===== 全局变量 & 重置 ===== */
:root {
  --green: #18783a;
  --green-light: #45b984;
  --green-pale: #e8f5ee;
  --green-dark: #0f5228;
  --gray: #606060;
  --gray-light: #f2f4f5;
  --white: #fff;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  color: #333;
  background: #fff;
}

/* ===== 导航栏 ===== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  height: 68px;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 42px; }
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: 0;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 0 18px;
  line-height: 68px;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a { color: var(--green); }
.nav-menu > li.active > a {
  border-bottom: 3px solid var(--green);
}
/* 下拉菜单 */
.nav-menu > li > .dropdown {
  display: none;
  position: absolute;
  top: 68px; left: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 160px;
  border-top: 3px solid var(--green);
  z-index: 999;
}
.nav-menu > li:hover > .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: #444;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.dropdown a:hover { background: var(--green-pale); color: var(--green); }

/* 汉堡菜单 */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--green);
  transition: all 0.3s;
}

/* ===== 页面顶部横幅 ===== */
.page-banner {
  margin-top: 68px;
  height: 200px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--green-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.page-banner::after {
  content: '';
  position: absolute;
  left: 10%; bottom: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.page-banner-title {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 4px;
  position: relative;
  z-index: 1;
}
.page-banner-sub {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
  letter-spacing: 2px;
}

/* ===== 面包屑 ===== */
.breadcrumb-bar {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 10px 0;
}
.breadcrumb-bar .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #888;
}
.breadcrumb-bar a { color: var(--green); text-decoration: none; }
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar span { color: #bbb; }

/* ===== 内页布局 ===== */
.inner-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 30px;
  display: flex;
  gap: 40px;
}
.inner-sidebar {
  width: 220px;
  flex-shrink: 0;
}
.sidebar-menu {
  background: #fff;
  border: 1px solid #e8ede9;
  border-radius: 4px;
  overflow: hidden;
  position: sticky;
  top: 90px;
}
.sidebar-menu-title {
  background: var(--green);
  color: #fff;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
}
.sidebar-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
  background: var(--green-pale);
  color: var(--green);
  padding-left: 26px;
}
.sidebar-menu a:last-child { border-bottom: none; }
.inner-content { flex: 1; min-width: 0; }

/* ===== 通用区块 ===== */
.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--green);
  padding-bottom: 12px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--green-pale);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 26px;
  background: var(--green);
  border-radius: 2px;
}

/* ===== 内容文字 ===== */
.content-text {
  font-size: 15px;
  line-height: 2;
  color: #444;
}
.content-text p { margin-bottom: 16px; }

/* ===== 列表卡片 ===== */
.list-card {
  background: #fff;
  border: 1px solid #e8ede9;
  border-radius: 4px;
  margin-bottom: 16px;
  padding: 20px 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}
.list-card:hover {
  box-shadow: 0 4px 16px rgba(24,120,58,0.1);
  border-color: var(--green-light);
}
.list-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}
.list-card-meta {
  font-size: 13px;
  color: #999;
  display: flex;
  gap: 16px;
}

/* ===== 联系信息卡片 ===== */
.contact-card {
  background: var(--green-pale);
  border-left: 4px solid var(--green);
  padding: 24px 28px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 20px;
}
.contact-card h4 {
  color: var(--green);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.contact-card p {
  font-size: 14px;
  color: #555;
  line-height: 2;
  margin: 0;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
}
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 30px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { height: 36px; margin-bottom: 16px; }
.footer-brand p {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255,255,255,0.6);
  max-width: 240px;
}
.footer-col h5 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--green-light); }
.footer-bottom {
  background: rgba(0,0,0,0.2);
  text-align: center;
  padding: 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }

/* ===== 首页特殊样式 ===== */
.hero {
  margin-top: 68px;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f0f9f4 0%, #e0f2e9 100%);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content:'';
  position:absolute;
  right: -100px; top: 50%;
  transform: translateY(-50%);
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24,120,58,0.07) 0%, transparent 70%);
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 30px;
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-text { flex: 1; }
.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 46px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.3;
  margin-bottom: 24px;
}
.hero-title span { color: var(--green); }
.hero-desc {
  font-size: 17px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 14px;
}
.hero-sub {
  font-size: 14px;
  color: #888;
  line-height: 1.9;
  margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary-green {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 15px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary-green:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-outline-green {
  border: 2px solid var(--green);
  color: var(--green);
  padding: 12px 32px;
  font-size: 15px;
  border-radius: 3px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.btn-outline-green:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.hero-image { flex: 0 0 440px; display: flex; justify-content: center; }
.hero-image img { width: 440px; animation: floatY 4s ease-in-out infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* 首页: 使命板块 */
.mission-bar {
  background: var(--green);
  padding: 50px 0;
}
.mission-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}
.mission-quote {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  line-height: 1.9;
  text-align: center;
  margin-bottom: 40px;
}
.mission-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.mission-card {
  padding: 36px 40px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.mission-card + .mission-card {
  border-left: 1px solid rgba(255,255,255,0.2);
}
.mission-card-icon { flex-shrink: 0; }
.mission-card-text h4 {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.mission-card-text p {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
}

/* 首页: 关于 + 架构 */
.about-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.about-icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.about-icon-title h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  margin: 0;
}
.about-list { list-style: none; padding: 0; margin: 0; }
.about-list li {
  font-size: 15px;
  line-height: 2.2;
  color: #444;
  padding-left: 20px;
  position: relative;
}
.about-list li::before {
  content: '●';
  color: var(--green);
  font-size: 10px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.org-img { width: 100%; max-width: 420px; }

/* 首页: 业务范围 */
.business-section { background: var(--gray-light); padding: 70px 0; }
.business-inner { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.bs-section-head { text-align: center; margin-bottom: 50px; }
.bs-section-head h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}
.bs-section-head p { font-size: 14px; color: #888; }
.bs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.bs-card {
  background: #fff;
  border-radius: 6px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.bs-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(24,120,58,0.12); }
.bs-card img { height: 54px; margin-bottom: 16px; }
.bs-card p { font-size: 14px; color: #555; line-height: 1.9; margin: 0; }

/* 首页: 公益宣言 */
.pledge-section {
  background: url('../icon13.svg') center center no-repeat;
  background-size: cover;
  padding: 90px 30px;
  text-align: center;
}
.pledge-section p {
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  line-height: 2.2;
  color: #444;
  text-indent: 2em;
}

/* ===== 信息公示页 ===== */
.info-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 30px;
}
.info-tab {
  padding: 10px 24px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s;
}
.info-tab.active, .info-tab:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ===== 项目展示卡片 ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  border: 1px solid #e8ede9;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.project-card:hover { box-shadow: 0 6px 20px rgba(24,120,58,0.1); }
.project-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--green-pale), #d4edde);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card-img img { height: 80px; opacity: 0.5; }
.project-card-body { padding: 20px; }
.project-card-title { font-size: 16px; font-weight: 600; color: #222; margin-bottom: 8px; }
.project-card-desc { font-size: 13px; color: #777; line-height: 1.8; }
.project-card-footer {
  padding: 12px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
}
.project-card-footer a {
  font-size: 13px;
  color: var(--green);
  text-decoration: none;
}

/* ===== 党建页 ===== */
.party-banner {
  background: linear-gradient(135deg, #8b0000 0%, #cc1111 50%, #e63030 100%);
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .bs-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-image { display: none; }
  .about-section { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .mission-cards { grid-template-columns: 1fr; }
  .mission-card + .mission-card { border-left: none; border-top: 1px solid rgba(255,255,255,0.2); }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
  .nav-menu.open { 
    display: flex; 
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 10px 0;
    z-index: 999;
  }
  .nav-menu.open > li > a { line-height: 2.5; padding: 0 24px; }
  .nav-menu.open .dropdown { position: static; box-shadow: none; border-top: none; background: var(--green-pale); }
  .nav-menu.open .dropdown a { padding-left: 36px; }
  .nav-menu.open > li:hover > .dropdown { display: block; }
  .inner-layout { flex-direction: column; }
  .inner-sidebar { width: 100%; }
  .sidebar-menu { position: static; }
  .hero-title { font-size: 30px; }
  .footer-top { grid-template-columns: 1fr; }
  .page-banner { height: 140px; }
  .page-banner-title { font-size: 24px; }
}

/* ── 导航栏增强动画 ── */
.site-nav {
  transition: box-shadow 0.3s, background 0.3s;
}
.site-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.nav-menu > li > a {
  position: relative;
  transition: color 0.2s;
}
.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 18px; right: 18px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: center;
}
.nav-menu > li > a:hover::after,
.nav-menu > li.active > a::after {
  transform: scaleX(1);
}
.nav-menu > li.active > a { border-bottom: none; }

/* ── Banner入场 ── */
.page-banner-title {
  animation: fadeUp 0.7s 0.1s both;
}
.page-banner-sub {
  animation: fadeUp 0.7s 0.25s both;
}

/* ── 侧边栏链接动画 ── */
.sidebar-menu a {
  position: relative;
  overflow: hidden;
}
.sidebar-menu a::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--green-pale);
  transition: width 0.2s ease;
  z-index: -1;
}
.sidebar-menu a:hover::before,
.sidebar-menu a.active::before { width: 100%; }

/* ── List card 动画 ── */
.list-card {
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}
.list-card:hover {
  transform: translateX(4px);
}

/* ── Section title 装饰线动画 ── */
.section-title {
  overflow: hidden;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  transition: width 0.8s cubic-bezier(0.22,1,0.36,1);
}
.section-title.visible::after,
.reveal.visible .section-title::after { width: 100%; }

/* ── 按钮波纹 ── */
.btn-primary-green, .btn-outline-green {
  position: relative;
  overflow: hidden;
}
.btn-primary-green::after, .btn-outline-green::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  transform: scale(0);
  border-radius: 50%;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}
.btn-primary-green:active::after, .btn-outline-green:active::after {
  transform: scale(3);
  opacity: 0;
  transition: 0s;
}

/* ── 证书卡片 ── */
.cert-card {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease;
}
.cert-card:hover {
  transform: translateY(-6px) scale(1.01);
}

/* ── Doc row hover ── */
.doc-row {
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.doc-row:hover {
  transform: translateX(4px);
}
