/* 魔方网络 2026 内页换肤：把旧版 DedeCMS 模板统一到首页风格
   只做视觉覆盖，不动原有布局骨架，加载在旧 CSS 之后生效 */
:root{
  --mf-blue:#2B5BD7;
  --mf-blue-deep:#18367F;
  --mf-orange:#F58220;
  --mf-ink:#0F1B33;
  --mf-ink-soft:#41537A;
  --mf-muted:#6B7C9E;
  --mf-line:rgba(24,54,127,.10);
  --mf-paper:#F6F8FF;
  --mf-shadow-sm:0 2px 6px rgba(18,42,99,.05), 0 10px 24px rgba(18,42,99,.06);
  --mf-shadow-md:0 10px 28px rgba(18,42,99,.10), 0 28px 60px rgba(18,42,99,.10);
  --mf-font:"HarmonyOS Sans SC","PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;
}

/* ---------- global typography ---------- */
body{
  font-family:var(--mf-font);
  color:var(--mf-ink);
  background:var(--mf-paper);
  font-size:16px;
  line-height:1.75;
}
body *{font-family:inherit}
h1,h2,h3,h4,h5,h6{font-weight:800;color:var(--mf-ink);letter-spacing:-.01em}
a{transition:color .2s ease,background .2s ease,border-color .2s ease}
.container{width:min(1180px,92vw);max-width:1180px;padding-inline:0}
img{border-radius:6px}
.tit_1 h3,.tit_1_5 h3{font-size:14px;letter-spacing:.22em;text-transform:uppercase;color:var(--mf-blue);font-weight:600}
.tit_1 h4,.tit_1_5 h4{font-weight:800}

/* ---------- new header ---------- */
.mf-header{
  position:sticky;top:0;z-index:60;background:rgba(246,248,255,.86);
  backdrop-filter:blur(16px);border-bottom:1px solid var(--mf-line);
  transition:box-shadow .3s ease,background .3s ease;
}
.mf-header.pinned{background:rgba(255,255,255,.94);box-shadow:0 10px 30px rgba(18,42,99,.08)}
.mf-header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px}
.mf-brand img{height:36px;width:auto;border-radius:0}
.mf-nav{display:flex;align-items:center;gap:2px}
.mf-nav > a,.mf-nav .mf-parent > a{
  padding:10px 14px;border-radius:999px;font-size:15px;font-weight:600;color:var(--mf-ink-soft);display:inline-block;
}
.mf-nav > a:hover,.mf-nav > a.active,.mf-nav .mf-parent:hover > a{color:var(--mf-blue);background:#EAF0FF}
.mf-parent{position:relative}
.mf-parent > a::after{content:"▾";font-size:10px;margin-left:6px;opacity:.65}
.mf-sub{
  position:absolute;top:calc(100% + 10px);left:0;min-width:200px;background:#fff;border:1px solid var(--mf-line);
  border-radius:16px;padding:8px;display:grid;gap:2px;box-shadow:var(--mf-shadow-md);
  opacity:0;visibility:hidden;transform:translateY(-6px);transition:all .22s cubic-bezier(.22,.68,.24,1);
}
.mf-parent:hover .mf-sub,.mf-parent:focus-within .mf-sub{opacity:1;visibility:visible;transform:none}
.mf-sub a{padding:9px 12px;border-radius:10px;font-size:14px;color:var(--mf-ink-soft)}
.mf-sub a:hover{background:#EAF0FF;color:var(--mf-blue)}
.mf-header-cta{display:flex;align-items:center;gap:10px}
.mf-btn{
  display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:999px;font-weight:700;font-size:15px;
  border:1px solid transparent;cursor:pointer;white-space:nowrap;
}
.mf-btn-primary{background:linear-gradient(135deg,var(--mf-blue),#3B7BFF);color:#fff;box-shadow:0 12px 26px rgba(43,91,215,.28)}
.mf-btn-primary:hover{color:#fff;transform:translateY(-1px)}
.mf-nav-toggle{display:none;background:#fff;border:1px solid rgba(43,91,215,.28);border-radius:12px;color:var(--mf-blue);padding:9px 14px;font-weight:700}

/* ---------- page banners (kept, restyled) ---------- */
.banner_2,.banner_3{position:relative}
.banner_2 .img,.banner_3 .img{position:relative}
.banner_2 .img::after,.banner_3 .img::after{
  content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(24,54,127,.72),rgba(43,91,215,.5) 55%,rgba(245,130,32,.35));
}
.banner_2 .tit_1,.banner_3 .tit_1{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;text-align:center}
.banner_2 .tit_1 h3,.banner_3 .tit_1 h3{color:rgba(255,255,255,.82)}
.banner_2 .tit_1 h4,.banner_3 .tit_1 h4{color:#fff;font-size:clamp(1.5rem,2.6vw,2.2rem)}

/* ---------- cards / lists ---------- */
.c_0100_1,.c_0100_2,.c_0100_3,.c_0100_4,.c_0100_5,.c_0100_6,.c_0100_7,.c_0100_8,.c_0100_9{background:transparent}
.ul_4 li,.z_ul1 li,.z_ul2 li{
  background:#fff;border:1px solid var(--mf-line);border-radius:18px;box-shadow:var(--mf-shadow-sm);
  transition:transform .3s cubic-bezier(.22,.68,.24,1),box-shadow .3s ease,border-color .3s ease;
}
.ul_4 li:hover,.z_ul1 li:hover,.z_ul2 li:hover{transform:translateY(-6px);box-shadow:var(--mf-shadow-md);border-color:rgba(43,91,215,.3)}

/* ---------- pagination (分页按钮) ---------- */
.loading, .a_more, .dede_pages, .pagelist, .page_list{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center;padding:26px 0 6px}
.loading a,.a_more a,.dede_pages a,.pagelist a,.page_list a,.loading span{
  display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 16px;
  border-radius:999px;background:#fff;border:1px solid var(--mf-line);color:var(--mf-ink-soft);
  font-weight:700;font-size:14px;box-shadow:var(--mf-shadow-sm);
}
.loading a:hover,.a_more a:hover,.dede_pages a:hover,.pagelist a:hover,.page_list a:hover{
  color:var(--mf-blue);border-color:rgba(43,91,215,.35);transform:translateY(-2px);
}
.loading a.actice,.a_more a.actice,.dede_pages a.actice,.pagelist a.actice,.page_list a.actice,
.loading .thisclass,.pagelist .thisclass{
  background:linear-gradient(135deg,var(--mf-blue),#3B7BFF);color:#fff;border-color:transparent;
  box-shadow:0 10px 22px rgba(43,91,215,.28);
}

/* ---------- generic buttons ---------- */
.btn_1,.btn_2,.more_1,.z_721_b a,.a_more_btn{
  border-radius:999px;
}

/* ---------- new footer ---------- */
.mf-footer{background:#fff;border-top:1px solid var(--mf-line);margin-top:40px;padding:44px 0 34px;font-family:var(--mf-font)}
.mf-footer-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:30px}
.mf-footer h4{margin:0 0 14px;font-size:14px;font-weight:800;color:var(--mf-ink)}
.mf-footer img.mf-footer-logo{height:34px;margin-bottom:14px;border-radius:0}
.mf-footer p{color:var(--mf-muted);font-size:14px;margin:0 0 6px}
.mf-footer a{color:var(--mf-muted)}
.mf-footer a:hover{color:var(--mf-blue)}
.mf-footer-links{display:grid;gap:9px}
.mf-footer-links a{font-size:14px}
.mf-footer-bottom{
  margin-top:30px;padding-top:20px;border-top:1px solid var(--mf-line);
  display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;font-size:13px;color:var(--mf-muted);
}
.mf-float{position:fixed;right:22px;bottom:26px;z-index:55;display:grid;gap:10px}
.mf-float a{
  display:inline-flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--mf-line);
  border-radius:999px;padding:10px 16px;font-size:14px;font-weight:700;color:var(--mf-ink-soft);
  box-shadow:var(--mf-shadow-md);
}
.mf-float a:hover{color:var(--mf-blue);transform:translateX(-4px)}

/* ---------- responsive ---------- */
@media (max-width:1080px){
  .mf-footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:860px){
  .mf-nav-toggle{display:inline-block}
  .mf-nav{
    display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--mf-line);
    padding:12px 14px;gap:2px;flex-direction:column;align-items:stretch;box-shadow:var(--mf-shadow-md);
  }
  .mf-nav.open{display:flex}
  .mf-nav .mf-sub{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;padding-left:12px}
  .mf-header-inner{position:relative}
  .mf-header-cta .mf-btn-primary{display:none}
  .mf-footer-grid{grid-template-columns:1fr}
  .mf-float a span{display:none}
}

/* ============================================================
   内页主体换肤：横幅 / 搜索 / 列表卡 / 分页 / 侧栏
   （加载在旧模板 CSS 之后，用覆盖的方式统一到首页风格）
   ============================================================ */

/* ---------- 页面横幅 ---------- */
.banner_2, .banner_3 {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  max-width: 1180px;
  margin: 20px auto 34px;
  box-shadow: var(--mf-shadow-md);
}
.banner_2 .img, .banner_3 .img { position: relative; }
.banner_2 img.banner_img, .banner_3 img.banner_img {
  display: block;
  width: 100%;
  height: clamp(190px, 22vw, 300px);
  object-fit: cover;
}
.banner_2 .tit_1, .banner_3 .tit_1 {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  z-index: 2;
}
.banner_2 .tit_1 h3, .banner_3 .tit_1 h3 { display: none; }   /* 旧模板的红字小英文，直接去掉 */
.banner_2 .tit_1 h4, .banner_3 .tit_1 h4 {
  color: #fff !important;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 900;
  letter-spacing: -.02em;
  text-shadow: 0 2px 18px rgba(6,18,45,.35);
  margin: 0;
}

/* ---------- 搜索框 ---------- */
.news_search, .sidebar-search-wrap, .search_box {
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--mf-shadow-sm);
  margin-bottom: 22px;
}
form.sidebar-search { display: flex; gap: 10px; margin: 0; }
input.newsInput {
  flex: 1;
  border: 1px solid rgba(24,54,127,.14);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  color: var(--mf-ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input.newsInput::placeholder { color: #9AA9C4; }
input.newsInput:focus { border-color: var(--mf-blue); box-shadow: 0 0 0 4px rgba(43,91,215,.12); }
input.newsSubmit {
  border: 0;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--mf-blue), #3B7BFF);
  box-shadow: 0 12px 26px rgba(43,91,215,.26);
  transition: transform .25s cubic-bezier(.22,.68,.24,1);
}
input.newsSubmit:hover { transform: translateY(-1px); }

/* ---------- 文章 / 案例列表卡片 ---------- */
ul.ul_marticle, ul.ul_2.ul_marticle {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
ul.ul_marticle > li {
  list-style: none;
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: var(--mf-shadow-sm);
  transition: transform .3s cubic-bezier(.22,.68,.24,1), box-shadow .3s ease, border-color .3s ease;
}
ul.ul_marticle > li:hover {
  transform: translateY(-5px);
  box-shadow: var(--mf-shadow-md);
  border-color: rgba(43,91,215,.28);
}
ul.ul_marticle li a { display: block; }
ul.ul_marticle .img { border-radius: 14px; overflow: hidden; margin-bottom: 14px; background: linear-gradient(135deg,#EDF2FF,#FFF4E8); }
ul.ul_marticle .img img { width: 100%; height: 168px; object-fit: cover; display: block; border-radius: 14px; }
ul.ul_marticle h5, ul.ul_marticle .text h5, ul.ul_marticle .name {
  font-size: 17px;
  font-weight: 800;
  color: var(--mf-ink);
  line-height: 1.5;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
ul.ul_marticle .p, ul.ul_marticle .text .p, ul.ul_marticle .ds {
  color: var(--mf-muted);
  font-size: 14.5px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
ul.ul_marticle .time { color: #9AA9C4; font-size: 13px; margin-top: 10px; }
ul.ul_marticle .ico img { width: 22px; height: 22px; opacity: .75; }

/* 侧栏 / 信息卡 / 二维码 */
.pz_SideLayer_1 .z_tc2, .pz_SideLayer .z_tc2, .z_tc2,
.z_ewm, .r_ewm, .wap_mess, .tc_930, .tc_2 {
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: 20px;
  box-shadow: var(--mf-shadow-sm);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.z_ewm img, .r_ewm img { border-radius: 12px; }

/* 侧栏里那种堆关键词的老式列表 → 收成干净的标签 */
.pz_SideLayer ul, .z_tc2 ul, .ul_2:not(.ul_marticle) { list-style: none; margin: 0; padding: 0; }
.z_tc2 ul li, .ul_2:not(.ul_marticle) li {
  display: inline-block;
  margin: 0 8px 8px 0;
  border-radius: 999px;
  background: #EDF2FF;
  border: 1px solid rgba(43,91,215,.16);
}
.z_tc2 ul li a, .ul_2:not(.ul_marticle) li a {
  display: inline-block;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mf-blue);
}

/* ---------- 表单（在线留言） ---------- */
form.elegant-aero { background: transparent; }
form.elegant-aero label span { color: var(--mf-ink-soft); font-size: 14px; }
form.elegant-aero input[type="text"], form.elegant-aero textarea {
  border: 1px solid rgba(24,54,127,.14) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  color: var(--mf-ink) !important;
  box-shadow: none !important;
  outline: none !important;
}
form.elegant-aero input[type="text"]:focus, form.elegant-aero textarea:focus {
  border-color: var(--mf-blue) !important;
  box-shadow: 0 0 0 4px rgba(43,91,215,.12) !important;
}
form.elegant-aero input[type="submit"] {
  border: 0; border-radius: 999px; padding: 12px 30px; font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--mf-blue), #3B7BFF);
  box-shadow: 0 12px 26px rgba(43,91,215,.26);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  ul.ul_marticle { grid-template-columns: 1fr; }
  .banner_2, .banner_3 { border-radius: 18px; margin: 14px 12px 24px; }
  form.sidebar-search { flex-direction: column; }
  input.newsSubmit { width: 100%; }
}

/* ============================================================
   内页重新排版：页面标题 / 面包屑 / 内容区 / 正文 / 侧栏
   ============================================================ */

/* 页面外壳 */
.pz_main { background: transparent; }
.pz_main > .container, .pz_main > .container-fluid {
  width: min(1180px, 92vw); max-width: 1180px; margin-inline: auto; padding-inline: 0;
}
.pz_main.mt_210 { margin-top: 0 !important; }
.h_50, .h_80 { height: 0 !important; }

/* 横幅里的页面标题（已提升为 H1） */
.banner_2 .tit_1 .mf-page-title, .banner_3 .tit_1 .mf-page-title {
  color: #fff !important; font-size: clamp(26px, 3vw, 38px); font-weight: 900;
  letter-spacing: -.02em; margin: 0; line-height: 1.2;
  text-shadow: 0 2px 18px rgba(6,18,45,.35);
}

/* 面包屑 */
.mf-crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  width: min(1180px, 92vw); margin: 22px auto 6px;
  font-size: 13.5px; color: var(--mf-muted);
}
.mf-crumb a { color: var(--mf-blue); font-weight: 600; }
.mf-crumb a:hover { text-decoration: underline; }
.mf-crumb span { opacity: .45; }

/* 内容区节奏 */
.content1, .content2, .content3, .content4, .z_neiye { padding: clamp(30px, 4vw, 56px) 0; }
.content1 .container, .content2 .container, .content3 .container, .content4 .container { width: 100%; }
.content1 .tit_1, .content3 .tit_1 { text-align: center; margin-bottom: clamp(20px, 2.6vw, 34px); }
.content1 .tit_1 h4, .content3 .tit_1 h4, .content1 .tit_1 h2, .content3 .tit_1 h2 {
  font-size: clamp(22px, 2.5vw, 32px); font-weight: 900; color: var(--mf-ink);
}
.content3_box {
  background: #fff; border: 1px solid var(--mf-line); border-radius: 24px;
  padding: clamp(22px, 3vw, 40px); box-shadow: var(--mf-shadow-sm);
}
.z_721 h5 { font-size: 16px; color: var(--mf-ink-soft); line-height: 1.95; font-weight: 500; margin: 0 0 12px; }
.z_721 .p p { color: var(--mf-muted); line-height: 1.9; }
.z_721_b ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin: 22px 0 0; padding: 0; }
.z_721_b li {
  background: linear-gradient(160deg, #F7F9FF, #FFFFFF); border: 1px solid var(--mf-line);
  border-radius: 18px; padding: 18px 20px; box-shadow: var(--mf-shadow-sm);
}
.z_721_b h1 { font-size: clamp(26px, 2.6vw, 36px); color: var(--mf-blue); font-weight: 900; margin: 0 0 6px; }
.z_721_b h5 { font-size: 14px; color: var(--mf-muted); margin: 0; font-weight: 600; }

/* 时间轴（关于我们） */
.content2 .z_div, .content2 .list_1 li {
  background: #fff; border: 1px solid var(--mf-line); border-radius: 16px;
  box-shadow: var(--mf-shadow-sm);
}

/* 文章 / 详情页正文 */
.zbox {
  background: #fff; border: 1px solid var(--mf-line); border-radius: 22px;
  padding: clamp(22px, 2.8vw, 40px); box-shadow: var(--mf-shadow-sm);
  margin: 0 0 20px; width: 100% !important; float: none !important;
}
.zbox h5, .zbox h6, .zbox .title { color: var(--mf-ink); }
.text, .text p, .zbox .p {
  font-size: 16.5px; line-height: 2; color: #33456B;
}
.text p { margin: 0 0 16px; }
.text img, .zbox img { max-width: 100%; height: auto; border-radius: 14px; }
.text h2 { font-size: 22px; margin: 26px 0 12px; }
.text h3 { font-size: 19px; margin: 22px 0 10px; }
.text ul, .text ol { padding-left: 22px; line-height: 2; color: #33456B; }
.text blockquote {
  margin: 18px 0; padding: 14px 20px; background: #F4F7FF;
  border-left: 3px solid var(--mf-blue); border-radius: 0 12px 12px 0; color: #3C4E74;
}
.text table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.text table td, .text table th { border: 1px solid var(--mf-line); padding: 10px 12px; font-size: 15px; }
.text table th { background: #F4F7FF; }

/* 右侧栏卡片 + 二维码 */
.z_ewm, .z_tc2, .pf_right .box, .pz_SideLayer_1 {
  background: #fff; border: 1px solid var(--mf-line); border-radius: 20px;
  padding: 18px 20px; box-shadow: var(--mf-shadow-sm); margin-bottom: 18px;
}
.z_ewm img, .r_ewm img { border-radius: 12px; }
.pf_right, .pz_SideLayer, .pz_SideLayer_1 { position: sticky; top: 96px; }

/* 响应式 */
@media (max-width: 900px) {
  .z_721_b ul { grid-template-columns: 1fr; }
  .mf-crumb { margin-top: 16px; }
  .pz_main > .container, .pz_main > .container-fluid { width: 92vw; }
}

/* ============================================================
   居中修正：新页面（案例 / 资讯）和旧内页共用同一个容器规则
   ============================================================ */
.container, .container-fluid {
  width: min(1180px, 92vw) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.cas-hero, .cas-grid, .cas-cta, .zx-list, .zx-article, .zx-page { margin-left: auto; margin-right: auto; }
body > .container, body > .container-fluid { display: block; }
