/* =========================================================
   创鸿网站 公共样式 common.css
   - CSS 变量、reset、字体
   - 页头（欢迎条 + 导航 + 搜索 + 中英文切换）
   - 页尾（信息区 + 版权区）
   - 响应式适配（PC ≥1200 / Pad 768-1199 / iPhone <768）
   ========================================================= */

/* ---------- 1. CSS 变量 ---------- */
:root {
  --color-primary: #178645;
  --color-primary-21: rgba(23, 134, 69, 0.21);
  --color-text-main: #333333;
  --color-text-sub: #666666;
  --color-text-white: #ffffff;
  --color-bg-light: #f8f8f8;
  --color-bg-light2: #f5f5f5;
  --color-mask-30: rgba(24, 24, 24, 0.35);
  --color-mask-50: rgba(0, 0, 0, 0.5);
  --color-divider: #d3d3d3;

  --header-welcome-h: 32px;
  --header-nav-h: 80px;
  --header-total-h: calc(var(--header-welcome-h) + var(--header-nav-h));

  --container-max: 1400px;

  --font-zh: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --font-zh-bold: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;

  --transition-base: all 0.3s ease;
}

/* ---------- 2. Reset & Base ---------- */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-zh);
  font-size: 14px;
  color: var(--color-text-main);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; border: 0; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus { color: var(--color-primary); text-decoration: none; outline: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { background: none; border: 0; cursor: pointer; font-family: inherit; }
input { font-family: inherit; }

 h1, h2, h3{
  margin:0;
 }

body {
  padding-top: var(--header-total-h); /* 给吸顶 header 让位 */
}

.mar-B-60{
  margin-bottom:60px;
}

/* ---------- 3. 通用容器 ---------- */
.ch-container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------- 4. 页头 Header ---------- */
.ch-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.3s ease;
}
.ch-header.is-sticky {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* 4.1 欢迎条 */
.ch-welcome {
  background: var(--color-primary);
  color: var(--color-text-white);
  height: var(--header-welcome-h);
  line-height: var(--header-welcome-h);
  font-size: 13px;
}
.ch-welcome .ch-welcome-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ch-lang { display: inline-flex; align-items: center; }
.ch-lang a {
  color: rgba(255, 255, 255, 0.7);
  padding: 0 4px;
  font-size: 13px;
  transition: var(--transition-base);
}
.ch-lang a.is-active,
.ch-lang a:hover {
  color: #fff;
  text-decoration:underline;
}
.ch-lang .ch-lang-sep {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 4px;
}

/* 4.2 导航 */
.ch-nav {
  height: var(--header-nav-h);
}
.ch-nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ch-logo img {
  height: 48px;
  width: auto;
}
.ch-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.ch-menu a {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
  position: relative;
  padding: 6px 0;
  transition: var(--transition-base);
}
.ch-menu li.active a,
.ch-menu a:hover {
  color: var(--color-primary);
}
.ch-menu li.active a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 28px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* 4.3 搜索 */
.ch-search {
  position: relative;
  display: flex;
  align-items: center;
}
.ch-search-btn img {
  width: 22px;
  height: auto;
}
.ch-search-box {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  background: #fff;
  border: 1px solid var(--color-divider);
  border-radius: 4px;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 280px;
}
.ch-search-box.is-open { display: flex; }
.ch-search-box input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 6px 8px;
  font-size: 14px;
}
.ch-search-box button {
  background: var(--color-primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 13px;
}

/* 4.4 移动端汉堡按钮 */
.ch-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 6px;
  position: relative;
}
.ch-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-main);
  margin: 5px 0;
  transition: var(--transition-base);
  transform-origin: center;
}
.ch-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ch-toggle.is-open span:nth-child(2) { opacity: 0; }
.ch-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. 页尾 Footer ---------- */
.ch-footer {
  background: var(--color-primary);
  color: var(--color-text-white);
  padding: 60px 0 0;
}
.ch-footer a { color: rgba(255, 255, 255, 0.85); }
.ch-footer a:hover { color: #fff; }

.ch-footer-main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px 50px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.ch-footer-col { flex: 1; min-width: 220px; }
.ch-footer-col h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 18px;
  color: #fff;
}
.ch-footer-info p {
  font-size: 14px;
  line-height: 28px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight:500;
}
.ch-footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 30px;
}
.ch-footer-nav a {
  font-size: 14px;
  line-height: 28px;
  display: inline-block;
  font-weight:500;
}
.ch-footer-qr {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.ch-footer-qr .qr-item { text-align: center; }
.ch-footer-qr img {
  width: 110px;
  height: 110px;
  background: #fff;
  padding: 4px;
  border-radius: 4px;
}
.ch-footer-qr p {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.ch-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 18px 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}
.ch-copyright a { color: rgba(255, 255, 255, 0.9); }

/* ---------- 6. 通用标题区 ---------- */
.ch-section-title {
  text-align: center;
  padding: 60px 0 36px;
}
.ch-section-title .zh {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.3;
}
.ch-section-title .en {
  font-size: 18px;
  color: var(--color-text-sub);
  margin-top: 6px;
  line-height: 1.4;
  text-transform: capitalize;
}



/*分页器【start】*/
.ins-temp-page{padding-top:60px;}
.ins-temp-page .temp-page-item{width:100% !important;float:none !important;font-size:14px;color:#666;}
.ins-temp-page .temp-page-item > *{
  vertical-align:middle;
}
.ins-temp-page .temp-page-item + .temp-page-item{margin-top:5px;font-size:0;}
.ins-temp-page .temp-page-item a,
.ins-temp-page .temp-page-item span{display:inline-block;vertical-align:middle;border: 1px solid #ddd;line-height: 1.5;padding: 5px 12px;margin-left: -1px;margin-right:0 !important;font-size:14px;}
.ins-temp-page .temp-page-item a{background-color:#eee;color:#666;}
.ins-temp-page .temp-page-item span,
.ins-temp-page .temp-page-item a[href]{background-color:white;color:#333;}
.ins-temp-page .temp-page-item span,
.ins-temp-page .temp-page-item a[href]:hover{color:white;}
.ins-temp-page .temp-page-item input[type=text]{width:40px !important;border:1px solid #ccc;height:32px;padding:0 5px;font-size:14px;margin-left:10px;}
.ins-temp-page .temp-page-item input[type=button]{height:32px;padding:0 10px;color:white;border:1px solid #ccc;font-size:14px;border-top-right-radius:3px;border-bottom-right-radius:3px;}
.ins-temp-page .temp-page-item input[type=button]:active{opacity:.8;}

.ins-temp-page .temp-page-item span,
.ins-temp-page .temp-page-item a[href]:hover,
.ins-temp-page .temp-page-item input[type=button]{border-color:var(--color-primary);}

.ins-temp-page .temp-page-item span,
.ins-temp-page .temp-page-item a[href]:hover,
.ins-temp-page .temp-page-item input[type=button]{background-color:var(--color-primary);}
/*分页器【end】*/



/*视频放大播放-组件【start】*/
.Ac-video-enlarge{position:fixed;left:0;right:0;top:0;bottom:0;background-color:rgba(0,0,0,0.8);z-index:100;}
.Ac-video-enlarge-close,
.Ac-video-enlarge-cot{position:absolute;}
.Ac-video-enlarge-close{right:0;top:10px;cursor:hand;cursor:pointer;z-index:10;}
.Ac-video-enlarge-cot{top:30px;bottom:20px;left:20px;right:20px;background-color:#CCCCCC;}
.Ac-video-enlarge-cot iframe{border:none;}
/*视频放大播放-组件【end】*/


/* ---------- 7. 响应式 ---------- */
/* Pad (768 ~ 1199) */
@media (max-width: 1199px) {
  :root { --header-nav-h: 68px; }
  .ch-menu { gap: 18px; }
  .ch-menu a { font-size: 14px; }
  .ch-logo img { height: 42px; }
  .ch-section-title { padding: 50px 0 28px; }
  .ch-section-title .zh { font-size: 28px; }
  .ch-section-title .en { font-size: 16px; }
}

/* iPhone (<768) */
@media (max-width: 767px) {
  :root {
    --header-welcome-h: 28px;
    --header-nav-h: 56px;
  }
  body { padding-top: var(--header-total-h); }

  .ch-welcome { font-size: 12px; }
  .ch-welcome .ch-welcome-inner { padding: 0 12px; }
  .ch-welcome-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 8px;
  }

  .ch-nav-inner { padding: 0 12px; }
  .ch-logo img { height: 36px; }

  .ch-toggle { display: block; order: 3; }
  .ch-search { order: 2; margin-right: 4px; }
  .ch-logo { order: 1; }

  /* 移动端菜单：抽屉式，从右侧滑入 */
  .ch-menu {
    position: fixed;
    top: var(--header-total-h);
    bottom: 0;
    left: 0;
    width: 75%;
    max-width: 320px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 24px;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.12);
    transform: translateX(-100%);
    transition: transform 0.32s ease;
    z-index: 50;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
  }
  .ch-menu.is-open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .ch-menu li { width: 100%; }
  .ch-menu a {
    display: block;
    padding: 14px 22px;
    border-bottom: 1px solid var(--color-bg-light2);
    font-size: 15px;
    color: var(--color-text-main);
    font-weight: 500;
    transition: var(--transition-base);
  }
  .ch-menu a:hover { background: var(--color-bg-light2); color: var(--color-primary); }
  .ch-menu li.active a::after { display: none; }
  .ch-menu li.active a {
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
  }
  .ch-menu li.active a:hover { background: var(--color-primary); color: #fff; }

  /* 菜单遮罩 */
  .ch-menu-backdrop {
    position: fixed;
    inset: var(--header-total-h) 0 0 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .ch-menu-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }
  body.has-mobile-menu-open { overflow: hidden; }

  .ch-search-box {
    position: fixed;
    top: calc(var(--header-total-h) + 4px);
    left: 12px;
    right: 12px;
    width: auto;
  }

  .ch-footer { padding-top: 36px; }
  .ch-footer-main { padding: 0 20px 30px; gap: 24px; }
  .ch-footer-col { flex: 0 0 100%; min-width: 0; }
  .ch-footer-col h4 { font-size: 16px; margin-bottom: 12px; }
  .ch-footer-nav { grid-template-columns: 1fr 1fr; }
  .ch-footer-qr { gap: 16px; }
  .ch-footer-qr img { width: 96px; height: 96px; }

  .ch-section-title { padding: 36px 0 20px; }
  .ch-section-title .zh { font-size: 22px; }
  .ch-section-title .en { font-size: 14px; }
}
