/* ==========================================================================
   51PC 静态站 · 页头/页尾模板样式（template 版）
   --------------------------------------------------------------------------
   设计要点：
   1) 全部使用独立类名 .s51-*，完全隔离源站 CSS 的固定宽高约束
      （源站 #nav{width:1300px;height:56px}、#nav .mui-table-view{width:85%}、
        #nav > div{width:15%}、.box{width:100%} 会裁掉超出栏目）
   2) 视觉风格还原 51pc 源站：深灰 #333 顶条 + 白底导航条 + 橙色 #fc8301 强调
   3) 导航使用 flex + 自适应宽度 + 允许换行，任何屏宽都不裁切栏目
   ========================================================================== */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  color: #333;
  background: #fff;
}

/* ======================= 页头 ======================= */
.s51-header { width: 100%; }

/* --- 深灰顶条 --- */
.s51-topbar {
  background: #333;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
}
.s51-topbar-inner {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.s51-welcome { color: #fff; font-size: 13px; margin: 0; }
/* --- 头部欢迎语后的联系电话 --- */
.s51-hotline {
  color: #fc8301;
  font-size: 13px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: bold;
  white-space: nowrap;
}

.s51-toplinks { display: flex; align-items: center; flex-wrap: wrap; }
.s51-toplinks a {
  color: #e6e6e6;
  text-decoration: none;
  font-size: 13px;
  padding: 2px 6px;
}
.s51-toplinks a:hover { color: #fc8301; }
.s51-toplinks a.is-active { color: #fc8301; font-weight: bold; }
.s51-toplinks .sep { color: #777; margin: 0 2px; }

/* --- 白底导航条 --- */
.s51-nav {
  background: #fff;
  box-shadow: 1px 1px 5px #ccc;
  border-bottom: 1px solid #eee;
}
.s51-nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;   /* 窄屏时换行，绝不裁切 */
  gap: 10px;
  min-height: 62px;
}
.s51-logo { flex: 0 0 auto; display: flex; align-items: center; }
.s51-logo img { display: block; height: 46px; width: auto; max-width: 210px; }
.s51-logo a { display: block; text-decoration: none; }

/* 菜单：自适应 + 换行，不设固定宽度 */
.s51-menu {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.s51-menu > li { display: flex; align-items: center; }
.s51-menu > li > a {
  display: block;
  padding: 0 15px;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  line-height: 62px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.s51-menu > li > a:hover { color: #fc8301; }
.s51-menu > li > a.is-active {
  color: #fc8301;
  font-weight: bold;
  border-bottom-color: #fc8301;
}

/* ======================= 内容区（模板留空） ======================= */
.s51-main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 16px;
  min-height: 420px;   /* 空白内容区，便于观察头尾衔接 */
}
.s51-placeholder {
  border: 1px dashed #d5d5d5;
  border-radius: 4px;
  padding: 60px 24px;
  text-align: center;
  color: #999;
  font-size: 14px;
  line-height: 2;
  background: #fcfcfc;
}

/* ======================= 页尾 ======================= */
.s51-footer { margin-top: 40px; }

/* --- 友情链接区 --- */
.s51-friend {
  background: #f7f7f7;
  border-top: 1px solid #eee;
}
.s51-friend-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 34px 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}
.s51-friend-cols {
  flex: 1 1 720px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.s51-friend-col { min-width: 0; }
.s51-friend-col .s51-col-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: bold;
}
.s51-friend-col .s51-col-title a { color: #333; text-decoration: none; }
.s51-friend-col .s51-col-title a:hover { color: #fc8301; }
.s51-friend-col p { margin: 0 0 6px; }
.s51-friend-col p a { color: #666; font-size: 13px; text-decoration: none; }
.s51-friend-col p a:hover { color: #fc8301; }

.s51-contact { flex: 0 0 260px; min-width: 0; }
.s51-contact .s51-col-title { margin: 0 0 8px; font-size: 15px; font-weight: bold; }
.s51-contact p { margin: 0 0 6px; font-size: 13px; color: #666; }

/* --- 版权区 --- */
.s51-floor {
  background: #f7f7f7;
  border-top: 1px solid #eee;
  text-align: center;
  padding: 16px;
}
.s51-floor p { margin: 0; font-size: 15px; color: #666; }
.s51-floor a { color: #fc8301; text-decoration: none; }

/* ======================= 响应式 ======================= */
@media (max-width: 1100px) {
  .s51-friend-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .s51-nav-inner { justify-content: center; }
  .s51-menu { justify-content: center; }
  .s51-menu > li > a { padding: 0 11px; font-size: 14px; line-height: 48px; }
  .s51-friend-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s51-contact { flex: 1 1 100%; }
}

/* ======================= Vue 静态化适配 =======================
   源页(geoai/ai-model)正文容器带 v-cloak（Vue 指令），配合源站
   [v-cloak]{display:none} 在 Vue 渲染完成后才移除隐藏。
   本站为静态副本、无 Vue 运行时，故必须取消隐藏，否则正文整块不可见。
   影响面仅限本页正文展示，不改变任何服务端渲染逻辑。            */
[v-cloak] { display: block !important; }
.appMain { display: block !important; width: 100%; }

/* ======================= 付款方式页 (pay.html) ======================= */
.pay-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}
.pay-page__title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  color: #222;
  text-align: center;
}
.pay-page__lead {
  margin: 0 0 30px;
  text-align: center;
  color: #888;
  font-size: 13px;
}
.pay-block {
  margin-bottom: 34px;
  padding: 26px 24px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fff;
}
.pay-block__h {
  margin: 0 0 8px;
  padding-left: 10px;
  border-left: 3px solid #f60;
  font-size: 18px;
  font-weight: 700;
  color: #222;
}
.pay-block__tip { margin: 0 0 18px; color: #888; font-size: 13px; }

/* 微信 / 支付宝收款码并排排列 */
.pay-qr {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}
.pay-qr__item {
  margin: 0;
  padding: 14px;
  text-align: center;
}
.pay-qr__img {
  display: block;
  width: 220px;
  height: 220px;
  border: 1px solid #eee;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
}
.pay-qr__cap {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

.pay-tbl { width: 100%; max-width: 560px; border-collapse: collapse; }
.pay-tbl th, .pay-tbl td {
  padding: 10px 14px;
  border: 1px solid #e5e5e5;
  font-size: 14px;
  text-align: left;
}
.pay-tbl th { width: 120px; background: #fafafa; color: #666; font-weight: 400; }
.pay-tbl td { color: #222; }

.pay-note {
  margin: 0;
  padding: 12px 16px;
  border-radius: 4px;
  background: #fff8e6;
  color: #a06a00;
  font-size: 13px;
}

@media (max-width: 640px) {
  .pay-qr { gap: 20px; }
  .pay-qr__img { width: 160px; height: 160px; }
}
