/* ==========================================================================
   通用页面模块（板块引擎）样式  —— 由 inc/pages.php 渲染，后台可管理
   前缀 pg- 避免与站点原有样式冲突
   ========================================================================== */
:root {
  --pg-pri: #e63c25;
  --pg-pri2: #ff8a3d;
  --pg-dark: #1b1f33;
  --pg-ink: #23262f;
  --pg-mut: #6b7280;
  --pg-line: #e8eaef;
  --pg-bg: #f6f7f9;
}
.pg-wrap { background: #fff; color: var(--pg-ink); }
.pg-wrap * { box-sizing: border-box; }
.pg-wrap img { max-width: 100%; }

/* ---------- 轮播 ---------- */
.pg-slider { position: relative; background: #14161f; }
.pg-slider-inner { position: relative; padding-bottom: 33.85%; height: 0; overflow: hidden; }
.pg-slide { position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center; opacity: 0; transition: opacity .9s ease; }
.pg-slide.on { opacity: 1; }
.pg-dots { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; z-index: 3; }
.pg-dots i { display: inline-block; width: 34px; height: 4px; margin: 0 5px; background: rgba(255,255,255,.45);
  border-radius: 3px; cursor: pointer; transition: background .3s; }
.pg-dots i.on { background: #fff; }

/* ---------- 首屏 ---------- */
.pg-hero { padding: 84px 20px 76px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #1b1f33 0%, #262c47 55%, #3a2136 100%); }
.pg-hero-light { background: linear-gradient(135deg, #f4f6fa 0%, #eaedf5 100%); color: var(--pg-ink); }
.pg-hero-img { background-size: cover; background-position: center; position: relative; }
.pg-hero-img:before { content: ''; position: absolute; inset: 0; background: rgba(16,18,30,.62); }
.pg-hero-in { position: relative; max-width: 900px; margin: 0 auto; z-index: 2; }
.pg-badge { display: inline-block; border: 1px solid rgba(255,138,61,.85); color: #ffb27d;
  border-radius: 20px; padding: 4px 16px; font-size: 13px; letter-spacing: 2px; margin-bottom: 20px; }
.pg-hero-light .pg-badge { border-color: rgba(230,60,37,.4); color: var(--pg-pri); }
.pg-hero h1 { font-size: 40px; line-height: 1.35; margin: 0 0 16px; font-weight: 700; letter-spacing: .5px; }
.pg-hero p { font-size: 17px; line-height: 1.9; color: rgba(255,255,255,.82); max-width: 780px; margin: 0 auto 28px; }
.pg-hero-light p { color: #5a6072; }
.pg-hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.pg-btn { display: inline-block; background: linear-gradient(135deg, var(--pg-pri) 0%, var(--pg-pri2) 100%);
  color: #fff !important; border: 0; border-radius: 26px; padding: 13px 40px; font-size: 16px;
  text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px rgba(230,60,37,.28); transition: opacity .2s, transform .2s; }
.pg-btn:hover { opacity: .92; transform: translateY(-1px); }
.pg-btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.5); color: #fff !important; box-shadow: none; }
.pg-hero-light .pg-btn.ghost { color: var(--pg-pri) !important; border-color: rgba(230,60,37,.45); }

/* ---------- 通用区块 ---------- */
.pg-sec { max-width: 1180px; margin: 0 auto; padding: 68px 20px 6px; }
.pg-hd { text-align: center; margin-bottom: 40px; }
.pg-hd h2 { font-size: 30px; margin: 0 0 12px; font-weight: 700; letter-spacing: .5px; }
.pg-hd .pg-sub { font-size: 15px; color: var(--pg-mut); margin: 0; line-height: 1.9; }
.pg-band { background: var(--pg-bg); max-width: none; padding-left: 0; padding-right: 0; }
.pg-band > .pg-hd, .pg-band > .pg-cards, .pg-band > .pg-stats,
.pg-band > .pg-steps, .pg-band > .pg-cases, .pg-band > .pg-logos,
.pg-band > .pg-table-wrap, .pg-band > .pg-rich, .pg-band > .pg-faq { max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.pg-empty { text-align: center; color: var(--pg-mut); padding: 40px 0; }

/* ---------- 数据 ---------- */
.pg-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pg-stat { background: #fff; border: 1px solid var(--pg-line); border-radius: 14px; padding: 26px 18px; text-align: center; }
.pg-band .pg-stat { background: #fff; }
.pg-stat strong { display: block; font-size: 34px; font-weight: 700; color: var(--pg-pri); line-height: 1.2; }
.pg-stat span { display: block; margin-top: 6px; font-size: 15px; font-weight: 600; }
.pg-stat em { display: block; margin-top: 8px; font-size: 13px; color: var(--pg-mut); font-style: normal; line-height: 1.7; }

/* ---------- 卡片 ---------- */
.pg-cards { display: grid; gap: 18px; }
.pg-cards.c2 { grid-template-columns: repeat(2, 1fr); }
.pg-cards.c3 { grid-template-columns: repeat(3, 1fr); }
.pg-cards.c4 { grid-template-columns: repeat(4, 1fr); }
.pg-cards.c5 { grid-template-columns: repeat(5, 1fr); }
.pg-card { display: block; background: var(--pg-bg); border-radius: 14px; padding: 28px 24px;
  text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s, background .25s; }
a.pg-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(20,25,45,.09); background: #fff; }
.pg-card-img { margin: -28px -24px 18px; border-radius: 14px 14px 0 0; overflow: hidden; }
.pg-card-img img { display: block; width: 100%; height: 170px; object-fit: cover; }
.pg-ic { font-size: 32px; line-height: 1; margin-bottom: 14px; }
.pg-tag { display: inline-block; font-size: 12px; color: var(--pg-pri); background: rgba(230,60,37,.08);
  border-radius: 4px; padding: 2px 9px; margin-bottom: 10px; }
.pg-card h3 { font-size: 17px; margin: 0 0 10px; font-weight: 600; line-height: 1.5; }
.pg-card p { font-size: 13.5px; color: var(--pg-mut); line-height: 1.8; margin: 0; }
.pg-more { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--pg-pri); }
.pg-plain .pg-card { background: #fff; border: 1px solid var(--pg-line); }

/* ---------- 左右对比 ---------- */
.pg-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pg-cmp-col { border-radius: 14px; padding: 26px 28px; }
.pg-cmp-col.old { background: var(--pg-bg); border: 1px solid var(--pg-line); }
.pg-cmp-col.new { background: #fff5f1; border: 1px solid rgba(230,60,37,.28); }
.pg-cmp-col h3 { font-size: 18px; margin: 0 0 16px; }
.pg-cmp-col.new h3 { color: var(--pg-pri); }
.pg-cmp-col ul { margin: 0; padding: 0; list-style: none; }
.pg-cmp-col li { position: relative; padding: 0 0 0 24px; margin-bottom: 16px; font-size: 15px; line-height: 1.7; }
.pg-cmp-col li:before { position: absolute; left: 0; top: 0; font-size: 15px; }
.pg-cmp-col.old li:before { content: '×'; color: #b9bec9; }
.pg-cmp-col.new li:before { content: '✓'; color: var(--pg-pri); font-weight: 700; }
.pg-cmp-col li em { display: block; font-style: normal; font-size: 13.5px; color: var(--pg-mut); margin-top: 3px; }

/* ---------- 对比表 ---------- */
.pg-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pg-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14.5px; }
.pg-table th, .pg-table td { border: 1px solid var(--pg-line); padding: 15px 18px; text-align: left; vertical-align: top; line-height: 1.75; }
.pg-table thead th { background: var(--pg-bg); font-weight: 600; font-size: 15px; }
.pg-table th.hi { background: rgba(230,60,37,.07); color: var(--pg-pri); }
.pg-table td.dim { font-weight: 600; width: 120px; background: #fcfcfd; }
.pg-table td.hi { background: rgba(230,60,37,.04); color: #33363f; }
.pg-table td.mut { color: var(--pg-mut); }

/* ---------- 步骤 ---------- */
.pg-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pg-step { text-align: center; padding: 0 6px; }
.pg-step .no { width: 48px; height: 48px; line-height: 48px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--pg-pri) 0%, var(--pg-pri2) 100%); color: #fff; font-size: 17px; font-weight: 700; }
.pg-step h3 { font-size: 15.5px; margin: 0 0 8px; font-weight: 600; }
.pg-step p { font-size: 13px; color: var(--pg-mut); line-height: 1.75; margin: 0; }

/* ---------- FAQ ---------- */
.pg-faq { max-width: 880px; margin: 0 auto; }
.pg-faq details { border: 1px solid var(--pg-line); border-radius: 10px; margin-bottom: 12px; background: #fff; }
.pg-faq summary { cursor: pointer; padding: 17px 22px; font-size: 15.5px; font-weight: 600; list-style: none; position: relative; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary:after { content: '+'; position: absolute; right: 22px; top: 15px; font-size: 20px; color: var(--pg-pri); font-weight: 400; }
.pg-faq details[open] summary:after { content: '–'; }
.pg-faq .ans { padding: 0 22px 20px; font-size: 14.5px; color: var(--pg-mut); line-height: 1.95; }

/* ---------- 案例 ---------- */
.pg-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pg-case { background: #fff; border: 1px solid var(--pg-line); border-radius: 14px; overflow: hidden;
  transition: transform .25s, box-shadow .25s; }
.pg-case:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(20,25,45,.09); }
.pg-case-img img { display: block; width: 100%; height: 180px; object-fit: cover; }
.pg-case-bd { padding: 22px 24px 26px; }
.pg-case .ind { display: inline-block; font-size: 12px; color: var(--pg-pri); background: rgba(230,60,37,.08);
  border-radius: 4px; padding: 3px 10px; margin-bottom: 12px; }
.pg-case h3 { font-size: 18px; margin: 0 0 10px; font-weight: 600; }
.pg-case p { font-size: 13.5px; color: var(--pg-mut); line-height: 1.85; margin: 0; }
.pg-case .svc { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--pg-line); font-size: 12.5px; color: #9aa0ad; }

/* ---------- 伙伴 / logo ---------- */
.pg-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pg-logo { display: flex; align-items: center; justify-content: center; min-height: 74px;
  background: var(--pg-bg); border-radius: 10px; padding: 12px; text-align: center; }
.pg-logo img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.pg-logo:hover img { filter: none; opacity: 1; }
.pg-logo span { font-size: 14.5px; color: #545a68; font-weight: 600; }

/* ---------- 富文本 ---------- */
.pg-rich { max-width: 980px; margin: 0 auto; font-size: 15.5px; line-height: 2.05; color: #4a4f5c; }
.pg-rich p { margin: 0 0 18px; }
.pg-rich h3 { font-size: 19px; color: var(--pg-ink); margin: 26px 0 12px; }
.pg-rich b, .pg-rich strong { color: var(--pg-pri); }

/* ---------- CTA 横条 ---------- */
.pg-ctaband { max-width: 1180px; margin: 64px auto 0; padding: 40px 40px; border-radius: 16px;
  background: linear-gradient(120deg, #1b1f33 0%, #34213a 100%); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.pg-ctaband h3 { font-size: 23px; margin: 0 0 8px; }
.pg-ctaband p { margin: 0; color: rgba(255,255,255,.78); font-size: 14.5px; line-height: 1.8; }
.pg-ctaband .pg-btn { flex: none; }

/* ---------- 新闻 ---------- */
.pg-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pg-news-item { display: block; background: #fff; border: 1px solid var(--pg-line); border-radius: 14px;
  overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.pg-news-item:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(20,25,45,.09); }
.pg-news-item .cov { height: 168px; overflow: hidden; background: var(--pg-bg); }
.pg-news-item .cov img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-news-item .pg-nocov { display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #262c47 0%, #43263a 100%); color: rgba(255,255,255,.85); font-size: 15px; letter-spacing: 1px; }
.pg-news-item .bd { padding: 20px 22px 24px; }
.pg-news-item h3 { font-size: 16.5px; line-height: 1.6; margin: 0 0 10px; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pg-news-item p { font-size: 13.5px; color: var(--pg-mut); line-height: 1.8; margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pg-news-item .dt { font-size: 12.5px; color: #9aa0ad; }
.pg-pager { text-align: center; margin: 36px 0 4px; }
.pg-pager a { display: inline-block; min-width: 38px; height: 38px; line-height: 36px; margin: 0 4px;
  border: 1px solid var(--pg-line); border-radius: 8px; text-decoration: none; color: #4a4f5c; font-size: 14px; }
.pg-pager a.on, .pg-pager a:hover { border-color: var(--pg-pri); color: var(--pg-pri); }
.pg-pager .gap { color: #9aa0ad; margin: 0 4px; }

/* ---------- 表单 ---------- */
.pg-formsec { padding-bottom: 72px; }
.pg-form { max-width: 780px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: var(--pg-bg); border: 1px solid var(--pg-line); border-radius: 16px; padding: 34px 36px; }
.pg-form .row { display: flex; flex-direction: column; }
.pg-form .row.full, .pg-form .pg-btn { grid-column: 1 / -1; }
.pg-form label { font-size: 14px; margin-bottom: 8px; color: #3d424f; }
.pg-form label i { color: var(--pg-pri); font-style: normal; }
.pg-form input, .pg-form textarea { border: 1px solid #dfe3ea; border-radius: 8px; padding: 12px 14px;
  font-size: 14.5px; font-family: inherit; color: var(--pg-ink); background: #fff; outline: none; transition: border-color .2s; }
.pg-form input:focus, .pg-form textarea:focus { border-color: var(--pg-pri); }
.pg-form textarea { resize: vertical; }
.pg-form .pg-btn { justify-self: center; min-width: 220px; margin-top: 4px; }
.pg-alert { max-width: 780px; margin: 0 auto 22px; padding: 14px 20px; border-radius: 10px; font-size: 14.5px; }
.pg-alert.ok { background: #eefaf1; border: 1px solid #b7e6c4; color: #216e39; }
.pg-alert.bad { background: #fdf1f0; border: 1px solid #f3c2bd; color: #a92b1c; }

/* ---------- 详情页（新闻） ---------- */
.pg-article { max-width: 880px; margin: 0 auto; padding: 48px 20px 20px; }
.pg-article h1 { font-size: 30px; line-height: 1.5; margin: 0 0 16px; }
.pg-article .meta { font-size: 13px; color: #9aa0ad; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--pg-line); }
.pg-article .body { font-size: 16px; line-height: 2.1; color: #3d424f; }
.pg-article .body p { margin: 0 0 20px; }
.pg-crumb { font-size: 13.5px; color: #9aa0ad; margin-bottom: 18px; }
.pg-crumb a { color: #9aa0ad; text-decoration: none; }
.pg-crumb a:hover { color: var(--pg-pri); }
.pg-related { max-width: 880px; margin: 40px auto 0; padding: 0 20px 72px; }
.pg-related h3 { font-size: 17px; margin: 0 0 16px; }
.pg-related ul { list-style: none; margin: 0; padding: 0; }
.pg-related li { padding: 12px 0; border-bottom: 1px dashed var(--pg-line); }
.pg-related a { color: #3d424f; text-decoration: none; font-size: 14.5px; }
.pg-related a:hover { color: var(--pg-pri); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .pg-cards.c5, .pg-cards.c4 { grid-template-columns: repeat(3, 1fr); }
  .pg-steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .pg-logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .pg-cards.c3, .pg-cards.c4, .pg-cards.c5 { grid-template-columns: repeat(2, 1fr); }
  .pg-cases, .pg-news { grid-template-columns: repeat(2, 1fr); }
  .pg-stats { grid-template-columns: repeat(2, 1fr); }
  .pg-hero h1 { font-size: 32px; }
  .pg-hd h2 { font-size: 25px; }
  .pg-slider-inner { padding-bottom: 46%; }
}
@media (max-width: 640px) {
  .pg-hero { padding: 56px 18px 50px; }
  .pg-hero h1 { font-size: 25px; }
  .pg-hero p { font-size: 15px; }
  .pg-sec { padding: 46px 16px 4px; }
  .pg-hd h2 { font-size: 21px; }
  .pg-cards.c2, .pg-cards.c3, .pg-cards.c4, .pg-cards.c5,
  .pg-cases, .pg-news, .pg-stats, .pg-cmp { grid-template-columns: 1fr; }
  .pg-steps { grid-template-columns: 1fr; }
  .pg-logos { grid-template-columns: repeat(2, 1fr); }
  .pg-form { grid-template-columns: 1fr; padding: 24px 20px; }
  .pg-ctaband { padding: 28px 22px; margin-top: 46px; }
  .pg-ctaband h3 { font-size: 19px; }
  .pg-slider-inner { padding-bottom: 62%; }
  .pg-article h1 { font-size: 23px; }
}

/* ==================== 一级导航的二级下拉菜单 ====================
 * 主题自带 bootstrap 的 .dropdown-menu（默认 display:none，靠 .open 显示），
 * 但前台 tpl/header.php 并未引入 bootstrap.min.js，data-toggle="dropdown"
 * 不会生效 —— 导航里的二级菜单点不开。这里改用纯 CSS :hover 展开，
 * 零 JS 依赖，后台新增二级页面后即可直接生效。
 */
.ey-nav .nav-item.dropdown { position: relative; }
.ey-nav .nav-item.dropdown > .dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 178px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background-color: #fff;
  border: 1px solid #e4eaec;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  -webkit-box-shadow: 0 8px 22px rgba(0, 0, 0, .13);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .13);
  z-index: 1300;
}
/* 用一块透明区域补住菜单与导航条之间的空隙，避免鼠标下移时闪断 */
.ey-nav .nav-item.dropdown > .dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}
.ey-nav .nav-item.dropdown:hover > .dropdown-menu,
.ey-nav .nav-item.dropdown.open > .dropdown-menu { display: block; }
.ey-nav .nav-item.dropdown > .dropdown-menu > li { margin: 0; }
.ey-nav .nav-item.dropdown > .dropdown-menu > li > a {
  display: block;
  padding: 9px 16px;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #555;
  white-space: nowrap;
  text-decoration: none;
  -webkit-transition: background-color .15s, color .15s;
  transition: background-color .15s, color .15s;
}
.ey-nav .nav-item.dropdown > .dropdown-menu > li > a:hover,
.ey-nav .nav-item.dropdown > .dropdown-menu > li > a.active {
  color: #fff;
  background-color: #ff6f06;
}
/* 移动端导航为纵向折叠列表：下拉改为常驻内联展开，避免绝对定位错位 */
@media (max-width: 767px) {
  .ey-nav .nav-item.dropdown > .dropdown-menu {
    display: block;
    position: static;
    float: none;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    -webkit-box-shadow: none;
    box-shadow: none;
  }
  .ey-nav .nav-item.dropdown > .dropdown-menu > li { float: none; }
  .ey-nav .nav-item.dropdown > .dropdown-menu::before { display: none; }
  .ey-nav .nav-item.dropdown > .dropdown-menu > li > a { padding: 8px 15px 8px 32px; font-size: 13px; }
}
