/* ==========================================================
   盖世智慧园区 · 子页面统一样式（对应新门户首页设计语言）
   纯 ASCII，UTF-8 存储，与 GBK 页面共用无编码风险
   ========================================================== */

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

:root {
  --ink: #0b1c2c;
  --blue: #015cb5;
  --gold: #d79630;
  --line: #e2e8ee;
  --txt: #22303c;
  --muted: #6c7d8c;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #22303c;
  background: #fbfcfd;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

/* ---------- 顶部品牌条 ---------- */
.px-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 16px;
  padding: 0 22px;
  min-height: 60px;
  background: #0b1c2c;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

@media (min-width: 900px) {
  .px-topbar { height: 68px; padding: 0 40px; flex-wrap: nowrap; }
}

.px-brand { display: flex; align-items: center; gap: 11px; min-width: 0; height: 60px; }
@media (min-width: 900px) { .px-brand { gap: 14px; height: auto; } }

.px-brand img { height: 30px; width: auto; display: block; }
@media (min-width: 900px) { .px-brand img { height: 38px; } }

.px-brand .sep {
  width: 1px; height: 24px; flex: 0 0 1px;
  background: linear-gradient(180deg, transparent, rgba(215,150,48,.7), transparent);
}
@media (min-width: 900px) { .px-brand .sep { height: 30px; } }

.px-brand .name {
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .05em;
  line-height: 1.35; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.px-brand .name small {
  display: block; font-size: 10px; font-weight: 400; letter-spacing: .12em;
  color: rgba(255,255,255,.5); margin-top: 1px;
}
@media (min-width: 900px) {
  .px-brand .name { font-size: 15px; }
  .px-brand .name small { font-size: 11px; }
}

.px-nav {
  order: 3; width: 100%;
  display: flex; justify-content: flex-start; align-items: center;
  overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none;
  border-top: 1px solid rgba(255,255,255,.07); height: 44px;
}
.px-nav::-webkit-scrollbar { display: none; }

@media (min-width: 900px) {
  .px-nav {
    order: 0; width: auto; height: auto; justify-content: center;
    border-top: 0; overflow: visible; gap: 4px;
  }
}

.px-nav a {
  position: relative; display: flex; align-items: center; height: 44px;
  padding: 0 15px; color: rgba(255,255,255,.72); font-size: 13px;
  letter-spacing: .06em; white-space: nowrap; transition: color .18s;
}
@media (min-width: 900px) { .px-nav a { height: auto; padding: 8px 16px; font-size: 14px; } }

.px-nav a:hover { color: #d79630; }
.px-nav a.on { color: #fff; }
.px-nav a.on::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 0;
  height: 2px; background: #d79630;
}
@media (min-width: 900px) { .px-nav a.on::after { left: 16px; right: 16px; bottom: 3px; } }

.px-topinfo {
  display: none; align-items: center; gap: 26px;
  color: rgba(255,255,255,.5); font-size: 12px; letter-spacing: .04em;
}
@media (min-width: 768px) { .px-topinfo { display: flex; } }

.px-topinfo span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.px-topinfo i {
  width: 5px; height: 5px; background: #d79630;
  transform: rotate(45deg); display: inline-block; font-style: normal;
}
.px-topinfo b { color: rgba(255,255,255,.78); font-weight: 500; }

/* ---------- 内容区 ---------- */
/* common:form 输出的 <form> 是 body 直接子元素，必须一起参与纵向伸展 */
body > form {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  margin: 0;
}
body > form > .px-main { flex: 1 0 auto; }

.px-main {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  flex: 1 0 auto;
  padding: 26px 22px 40px;
}
@media (min-width: 900px) { .px-main { padding: 32px 44px 48px; } }

.px-head h1 {
  font-size: 22px; font-weight: 700; color: #0b1c2c;
  letter-spacing: .02em; display: flex; align-items: center; gap: 11px; margin: 0;
}
.px-head h1 b { width: 4px; height: 19px; background: #d79630; display: block; border-radius: 1px; }

.px-crumb { margin-top: 7px; font-size: 12px; color: #6c7d8c; letter-spacing: .05em; }
.px-crumb i { font-style: normal; color: #bcc8d3; margin: 0 6px; }
.px-crumb a:hover { color: #d79630; }

.px-body { margin-top: 22px; }

/* 正文段落 */
.px-prose p { margin: 0 0 14px; font-size: 14px; line-height: 1.9; color: #41525f; }
.px-prose h3 {
  font-size: 16px; font-weight: 700; color: #0b1c2c;
  margin: 26px 0 10px; display: flex; align-items: center; gap: 9px;
}
.px-prose h3 s { text-decoration: none; width: 6px; height: 6px; background: #d79630; transform: rotate(45deg); display: block; }

.px-goal { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.px-goal li {
  display: grid; grid-template-columns: 22px minmax(0, 1fr);
  font-size: 14px; line-height: 1.85; color: #41525f;
}
.px-goal li span { color: #d79630; font-weight: 600; font-variant-numeric: tabular-nums; }

/* 列表（新闻） */
.px-list { border-top: 1px solid #e2e8ee; margin: 0; }
.px-list .row {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px;
  align-items: center; padding: 14px 4px; border-bottom: 1px solid #e2e8ee;
}
@media (max-width: 600px) { .px-list .row { grid-template-columns: minmax(0, 1fr); gap: 5px; } }

.px-list .row .date {
  font-size: 12px; color: #93a2ae; font-variant-numeric: tabular-nums; letter-spacing: .05em;
  white-space: nowrap;
}
.px-list .row .ti { font-size: 14.5px; line-height: 1.55; transition: color .16s; min-width: 0; }
.px-list .row:hover .ti { color: #d79630; }
.px-list .row:hover .date { color: #015cb5; }

/* 软件服务卡片 */
.px-svc {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: #e2e8ee; border: 1px solid #e2e8ee; margin-top: 4px;
}
@media (min-width: 720px) { .px-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.px-svc .item { background: #fff; padding: 20px 18px; }
.px-svc .item h4 {
  margin: 0; font-size: 14.5px; font-weight: 600; color: #0b1c2c;
  letter-spacing: .03em; display: flex; align-items: center; gap: 9px;
}
.px-svc .item h4 s {
  text-decoration: none; width: 6px; height: 6px; background: #d79630;
  transform: rotate(45deg); display: block; flex: 0 0 6px;
}
.px-svc .item p { margin: 9px 0 0; font-size: 13px; line-height: 1.8; color: #54646f; }

/* 联系我们卡片 */
.px-contact {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: #e2e8ee; border: 1px solid #e2e8ee;
}
@media (min-width: 720px) { .px-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.px-contact .card { background: #fff; padding: 26px 22px; }
.px-contact .card .k { font-size: 11.5px; letter-spacing: .14em; color: #93a2ae; }
.px-contact .card .v {
  margin-top: 8px; font-size: 19px; color: #0b1c2c; font-weight: 600;
  letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.px-contact .card .n { margin-top: 6px; font-size: 12px; color: #6c7d8c; }

/* 服务范围标签区 */
.px-scope { margin-top: 30px; }
.px-scope .t {
  font-size: 15px; font-weight: 600; color: #0b1c2c;
  display: flex; align-items: center; gap: 9px; margin-bottom: 14px;
}
.px-scope .t::before {
  content: ""; width: 6px; height: 6px; background: #d79630;
  transform: rotate(45deg); display: block;
}
.px-scope .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.px-scope .tags a {
  font-size: 13px; letter-spacing: .04em; color: #41525f;
  border: 1px solid #e2e8ee; background: #fff;
  padding: 7px 15px; transition: all .18s;
}
.px-scope .tags a:hover { border-color: #d79630; color: #d79630; background: #fffdf8; }
.px-scope .tip { margin-top: 14px; font-size: 12.5px; color: #6c7d8c; line-height: 1.8; }

/* 搜索框 */
.px-search {
  margin-top: 22px; padding: 14px 16px; background: #fff;
  border: 1px solid #e2e8ee; display: flex; flex-wrap: wrap;
  align-items: center; gap: 10px;
}
.px-search label { font-size: 13px; color: #6c7d8c; letter-spacing: .05em; }
.px-search input[type="text"] {
  flex: 1 1 200px; min-width: 0; font: inherit; font-size: 16px; color: #0b1c2c;
  border: 0; border-bottom: 1.5px solid #e2e8ee; background: transparent;
  padding: 6px 2px; outline: none; transition: border-color .2s;
}
.px-search input[type="text"]:focus { border-bottom-color: #d79630; }
.px-search button {
  font: inherit; font-size: 13px; letter-spacing: .1em; cursor: pointer;
  background: #d79630; color: #fff; border: 0; padding: 9px 20px;
  transition: background .18s;
}
.px-search button:hover { background: #c7871f; }

/* 分页脚注 */
.px-footnote {
  margin-top: 16px; font-size: 12px; color: #6c7d8c;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- 页脚 ---------- */
.px-footer {
  background: #081522; color: rgba(255,255,255,.38);
  font-size: 11.5px; letter-spacing: .04em;
  padding: 14px 22px; display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.06);
}
@media (min-width: 900px) { .px-footer { padding: 14px 32px; } }
.px-footer .l { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- 老结构兜底（若仍有旧的 #top/#middle/#bottom） ---------- */
#bottom {
  background: #081522; color: rgba(255,255,255,.38) !important;
  font-size: 11.5px !important; letter-spacing: .04em; text-align: left !important;
  padding: 14px 22px !important; border-top: 1px solid rgba(255,255,255,.06);
}


/* ==========================================================
   IE10/11 兼容补丁（仅对 -ms-high-contrast 生效，现代浏览器不受影响）
   IE 不支持 CSS 变量、CSS Grid，也不支持 flex 的 gap
   ========================================================== */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {

  /* --- 顶栏 --- */
  .px-topbar { -ms-flex-wrap: wrap; flex-wrap: wrap; }
  .px-brand { margin-right: 16px; }
  .px-nav a { margin-right: 4px; }
  .px-topinfo span { margin-left: 22px; }
  .px-topinfo span:first-child { margin-left: 0; }

  /* --- 标题与面包屑 --- */
  .px-head h1 b { margin-right: 11px; }

  /* --- 目标列表：grid 两列 -> 序号定宽 + 文本列 inline-block --- */
  .px-goal { display: block; }
  .px-goal li { display: block; margin-bottom: 10px; font-size: 0; }
  .px-goal li span {
    display: inline-block; width: 26px; vertical-align: top; font-size: 14px;
  }
  .px-goal li div {
    display: inline-block; width: calc(100% - 26px); vertical-align: top;
    font-size: 14px; line-height: 1.85; color: #41525f;
  }

  /* --- 新闻列表：grid 两列 -> 日期定宽 + 标题占余 --- */
  .px-list .row { display: block; padding: 14px 4px; }
  .px-list .row .date {
    display: inline-block; width: 104px; vertical-align: top; padding-right: 18px;
  }
  .px-list .row .ti {
    display: inline-block; width: calc(100% - 126px); vertical-align: top;
  }

  /* --- 软件服务 / 联系我们：grid 两列 -> 50% inline-block --- */
  /* 容器 font-size:0 吃掉 inline-block 之间的源码空白，item 内再还原字号；
     box-sizing:border-box 让 50% 含 padding 与边框，恰好两列 */
  .px-svc { display: block; font-size: 0; background: #fff; }
  .px-svc .item {
    display: inline-block; width: 50%; vertical-align: top;
    box-sizing: border-box; font-size: 14px;
    border-right: 1px solid #e2e8ee; border-bottom: 1px solid #e2e8ee;
  }
  .px-svc .item h4 s { margin-right: 9px; }

  .px-contact { display: block; font-size: 0; background: #fff; }
  .px-contact .card {
    display: inline-block; width: 50%; vertical-align: top;
    box-sizing: border-box; font-size: 14px;
    border-right: 1px solid #e2e8ee; border-bottom: 1px solid #e2e8ee;
  }

  /* --- 服务范围标签：flex gap -> margin --- */
  .px-scope .tags a { display: inline-block; margin: 0 8px 8px 0; }
  .px-scope .t::before { display: inline-block; margin-right: 9px; vertical-align: middle; }

  /* --- 搜索框 --- */
  .px-search { display: block; }
  .px-search label { display: inline-block; margin-right: 10px; }
  .px-search input[type="text"] { width: 72%; }
  .px-search button { margin-left: 10px; }

  /* --- 页脚 --- */
  .px-footer { display: block; }
  .px-footer .l span { display: inline-block; margin-right: 18px; }

  /* --- 正文小标题前的菱形 --- */
  .px-prose h3 s { display: inline-block; margin-right: 9px; vertical-align: middle; }

  /* --- 返回链接 --- */
  .px-back s { display: inline-block; margin-right: 7px; vertical-align: middle; }
}
