﻿/* ============================================
   custom.css — CzWebSite supplementary styles
   微调补充样式（不覆盖原版 NewWebSite CSS 核心）
   ============================================ */

/* --- Logo area: text logo for 德商村镇银行 --- */
.main-header { padding: 16px 0; }
.main-header .logo-text h1 {
  font-size: 26px;
  color: #006837;
  letter-spacing: 3px;
}
.main-header .logo-icon {
  background: #006837;
}
.main-header .logo-text p {
  color: #999;
  font-size: 11px;
  letter-spacing: 1px;
}

/* --- Nav bar: keep silver-gray, green active accent --- */
.main-nav { background: #b0b0b0; }
.nav-list .nav-item.active > a { color: #006837; }
.nav-list .nav-item > a:hover { color: #006837; }
.nav-list .nav-item .sub-menu a:hover { color: #006837; background: #f0f7f4; }

/* --- Sidebar title: green accent --- */
.sidebar-title { background: #006837; }
.sidebar-nav > li.active > a { color: #006837; border-left-color: #006837; background: #f0f7f4; }
.sb-sub li.active a { color: #006837; background: #f0f7f4; }
.sb-sub li a:hover { color: #006837; background: #f0f7f4; }
.sb-sub li a:hover::before { background: #006837; }
.sb-sub li.active a::before { background: #006837; }

/* --- Section title: green left border --- */
.section-title { border-left-color: #006837; }

/* --- Buttons --- */
.btn-primary { background: #006837; }
.btn-primary:hover { background: #004d28; }
.btn-outline { border-color: #006837; color: #006837; }
.btn-outline:hover { background: #006837; color: #fff; }
.back-to-top { background: #006837; }
.back-to-top:hover { background: #004d28; }

/* --- Banner placeholder gradient (green) --- */
.banner-placeholder {
  width: 100%;
  height: 420px;
  background: linear-gradient(135deg, #004d28 0%, #006837 40%, #4a9d6f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.banner-placeholder::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.banner-placeholder::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.banner-placeholder-text {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}
.banner-placeholder-text h2 {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  letter-spacing: 4px;
}
.banner-placeholder-text p {
  font-size: 18px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  letter-spacing: 2px;
}

/* --- Home quick service grid fallback icons --- */
.quick-svc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.quick-svc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #374151;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.25s;
  background: #fff;
}
.quick-svc-item:hover {
  background: #f0f7f4;
  border-color: #006837;
  color: #006837;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,104,55,0.1);
}
.quick-svc-item svg {
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  color: #006837;
}

/* --- Home channel group cards --- */
.channel-group-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.channel-group-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: #333;
  transition: all 0.25s;
}
.channel-group-card:hover {
  border-color: #006837;
  box-shadow: 0 8px 24px rgba(0,104,55,0.1);
  transform: translateY(-3px);
}
.channel-group-card svg {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  color: #006837;
}
.channel-group-card span {
  font-size: 15px;
  font-weight: 500;
}

/* --- Home product entry grid --- */
.product-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-entry-card {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: #333;
  transition: all 0.25s;
}
.product-entry-card:hover {
  border-color: #006837;
  box-shadow: 0 8px 24px rgba(0,104,55,0.1);
  transform: translateY(-3px);
}
.product-entry-card h4 {
  font-size: 16px;
  color: #1f2937;
  margin-bottom: 8px;
}
.product-entry-card p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

/* --- Search summary and results --- */
.search-results { margin-top: 10px; }

/* --- Pagination link color --- */
.pagination a:hover { border-color: #006837; color: #006837; }
.pagination .active { background: #006837; border-color: #006837; }

/* --- Article list item bullet --- */
.article-list-page .list-item .item-title::before { background: #006837; }

/* --- Detail body links --- */
.detail-body a { color: #006837; }

/* --- Empty data placeholder --- */
.empty-data {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
  font-size: 14px;
}
.empty-data svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* --- Member bank placeholder section --- */
.member-bank-section {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.member-bank-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.member-bank-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  color: #9ca3af;
  font-size: 14px;
  background: #f9fafb;
}

/* --- Page content table override for green header --- */
.page-content .detail-body table th,
.detail-body table th {
  background: #006837;
  border-color: #006837;
}

/* ============================================
   首页布局修正（对齐源站 www.dsczbank.com 渲染）
   ============================================ */

/* 成员行：原站 index.css 按 content-box 书写，而 base.css 的全局
   box-sizing: border-box 重置使 dd a 内容区只剩 89px（105-16），
   8 字银行名折行成两行，整块被撑高约 140px。
   对成员行结构恢复 content-box 后与原站一致：每个名称单行 28px。 */
.members ul,
.members ul li,
.members ul li dd a {
  box-sizing: content-box;
}

/* 首页 banner：原站将 770px 宽图拉伸到 1025px 铺满容器，
   base.css 的全局 img{max-width:100%} 会把它卡在 770px 露出右侧灰底，
   这里放开 max-width 限制以对齐原站效果。 */
.banner .bd li img {
  max-width: none;
}

/* ============================================
   源站页脚样式（对齐 www.dsczbank.com footer）
   ============================================ */
.footer {
  width: 100%;
  height: 95px;
  background: url(../images/bg_15.jpg) repeat-x;
  margin-top: 30px;
}
.foot-conter {
  width: 1440px;
  max-width: calc(100% - 48px);
  height: 73px;
  margin: 0 auto;
  position: relative;
  padding-top: 22px;
  box-sizing: border-box;
}
.foot-link a {
  font-size: 12px;
  line-height: 14px;
  color: #24739a;
  display: inline-block;
}
.foot-link a:hover { text-decoration: underline; }
.foot-bottom {
  overflow: hidden;
  padding-top: 11px;
}
.foot-bottom li {
  font-size: 12px;
  line-height: 18px;
  color: #555;
  float: left;
  margin-right: 10px;
  list-style: none;
}
.foot-bottom li span img {
  vertical-align: middle;
}
.foot-bottom a { color: #555; }
.foot-bottom a:hover { color: #24739a; }

/* --- Footer green accent --- */
.site-footer { border-top: 3px solid #006837; }

/* ============================================
   源站头部样式（对齐 www.dsczbank.com head-top）
   ============================================ */
.head-wrap { position: relative; }
/* 与源站一致的 1024px 宽容器 */
.w1024 { width: 1024px; margin: 0 auto; }
.account { width: 100%; margin: 0 auto; }
.main { width: 1440px; max-width: calc(100% - 48px); margin: 0 auto; }
.head-line {
  width: 100%;
  height: 2px;
  display: block;
  background: url(../images/bg_01.jpg) no-repeat center bottom;
  box-shadow: 0 2px 5px #b3c2c7;
  position: absolute;
  bottom: 0;
  left: 0;
}
.head-top {
  width: 1440px;
  max-width: calc(100% - 48px);
  height: 99px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}
.head-left { float: left; }
.head-left .logo img {
  display: block;
  float: left;
  padding-top: 5px;
}
.head-left span {
  width: 133px;
  height: 41px;
  display: none;
  padding-top: 38px;
  float: left;
}
.head-left span img { width: 133px; height: 41px; display: block; }
.head-right { padding-top: 32px; float: right; }
.head-right .head-contact {
  font-size: 12px;
  line-height: 18px;
  color: #4c6eae;
  float: left;
  margin-right: 14px;
  padding-top: 4px;
}
.head-right .head-contact img {
  display: inline-block;
  vertical-align: middle;
}
.head-right .head-search { float: left; }
.head-right .head-search .search-form {
  display: flex;
  align-items: center;
  border: 1px solid #c9d4e8;
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
}
.head-right .head-search input {
  width: 200px;
  height: 28px;
  border: none;
  outline: none;
  padding: 0 10px;
  font-size: 12px;
  color: #333;
}
.head-right .head-search .search-btn {
  width: 34px;
  height: 28px;
  border: none;
  background: #4c6eae;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.head-right .head-search .search-btn:hover { background: #3a5a94; }
.head-right::after { content: ''; display: block; clear: both; }

/* --- 关爱版切换按钮（默认模式小号，关爱模式下由 care-mode.css 放大高亮）
   height 30px 与右侧搜索框（28px input + 2px 边框）等高对齐，margin 0 14px 留出呼吸间距 --- */
.care-toggle {
  display: block;
  float: left;
  margin: 0 14px;
  padding: 0 14px;
  height: 30px;
  line-height: 28px;
  font-size: 13px;
  font-weight: bold;
  color: #f97316;
  background: #fff;
  border: 1px solid #f97316;
  border-radius: 3px;
  text-decoration: none;
}
.care-toggle:hover { background: #f97316; color: #fff; text-decoration: none; }

/* --- 搜索条（main-header 保留搜索，去 logo） --- */
.main-header { padding: 12px 0 16px; background: #fff; }
.main-header .header-inner { display: flex; justify-content: flex-end; }
.main-header .header-search { width: 320px; }

