
/*
 Theme Name:   GPOS Child
 Theme URI:    http://gpos.cn
 Description:  金支点官网子主题（深蓝商务+红点缀）
 Author:       GPOS
 Template:     astra
 Version:      1.0.1
*/

/* ===== GPOS 全局品牌样式 ===== */
:root {
  --gpos-navy: #16365c;
  --gpos-navy-d: #0f2540;
  --gpos-red: #d01621;
  --gpos-red-d: #b3121b;
  --gpos-gray: #f4f6f9;
  --gpos-text: #2b333e;
  --gpos-text-light: #5d6b7a;
}

/* 居中容器 */
.gpos-wrap {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 顶部信息条 */
.gpos-topbar {
  background: #f8f9fa;
  border-bottom: 1px solid #e8e8e8;
  padding: 6px 0;
  font-size: 12px;
}

/* 头部 Logo+电话 */
.gpos-header {
  background: #fff;
  padding: 16px 0;
}

/* 藏青导航 - 强制样式防止被Astra覆盖 */
.gpos-nav {
  background: var(--gpos-navy) !important;
  background: #16365c !important;
  padding: 0 !important;
  width: 100% !important;
}

.gpos-nav .gpos-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.gpos-nav > .gpos-wrap > div:first-child {
  display: flex !important;
  gap: 0 !important;
}

.gpos-nav a {
  display: inline-block !important;
  padding: 14px 22px !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  transition: background 0.2s !important;
  white-space: nowrap !important;
}

.gpos-nav a:hover {
  background: rgba(255,255,255,0.12) !important;
}

/* ===== 隐藏 Astra 默认元素 ===== */
/* 隐藏 Astra 桌面 header */
.ast-main-header-wrap,
#ast-desktop-header,
.ast-desktop-header {
  display: none !important;
}

/* 隐藏 Astra footer */
.ast-footer,
#colophon,
.site-footer {
  display: none !important;
}

/* 隐藏 Astra 页眉区域 */
.ast-header-break-point .main-header-bar {
  display: none !important;
}

/* 覆盖 Astra 容器，防止内容偏左 */
.ast-plain-container.ast-no-sidebar #primary {
  padding: 0 !important;
  margin: 0 !important;
}

.site-content .ast-container {
  display: block !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* Astra 全局链接颜色不要影响 GPOS 导航 */
body #page .gpos-nav a {
  color: #fff !important;
}

/* ===== 产品规格表 ===== */
.gpos-spec { width:100%; border-collapse:collapse; margin:18px 0; font-size:14px; background:#fff; }
.gpos-spec tr.spec-sec th { background:#16365c; color:#fff; text-align:left; padding:10px 14px; font-size:15px; letter-spacing:1px; }
.gpos-spec td { border:1px solid #e4e8ee; padding:9px 14px; vertical-align:top; line-height:1.7; }
.gpos-spec td.k { width:170px; background:#f4f6f9; color:#16365c; font-weight:600; white-space:nowrap; }
.gpos-spec td.v { color:#2b333e; }
.gpos-prod-meta { color:#5d6b7a; font-size:14px; margin:8px 0 4px; }
.gpos-prod-meta b { color:#d01621; }


/* === 子菜单下拉样式 === */
.gpos-nav .menu-item-has-children {
    position: relative;
}
.gpos-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 0 0 6px 6px;
    padding: 6px 0;
    z-index: 999;
    list-style: none;
}
.gpos-nav .menu-item-has-children:hover > .sub-menu {
    display: block;
}
.gpos-nav .sub-menu li {
    margin: 0;
    padding: 0;
}
.gpos-nav .sub-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}
.gpos-nav .sub-menu li a:hover {
    background: #f5f7fa;
    color: #d01621;
}


/* === 自定义导航子菜单样式 === */
.gpos-nav .nav-parent {
    position: relative;
    display: inline-block;
}
.gpos-nav .nav-parent > a {
    display: inline-block;
    padding: 0 16px;
    line-height: 36px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.2s;
}
.gpos-nav .nav-parent > a:hover {
    background: rgba(255,255,255,0.1);
}
.gpos-nav .nav-parent:hover .nav-children {
    display: block;
}
.gpos-nav .nav-children {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 6px 6px;
    padding: 6px 0;
    z-index: 9999;
}
.gpos-nav .nav-children a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s;
}
.gpos-nav .nav-children a:hover {
    background: #f5f7fa;
    color: #d01621;
}

/* ===== 统一面包屑导航（2026-10-23）===== */
.gpos-crumbbar{ background:#f8f9fa; border-bottom:1px solid #eceff3; padding:12px 0; }
.gpos-crumb{ font-size:13px; color:#8a94a3; line-height:1.6; }
.gpos-crumb a{ color:#16365c !important; text-decoration:none !important; }
.gpos-crumb a:hover{ color:#d01621 !important; }
.gpos-crumb .sep{ color:#c3cbd6; margin:0 8px; }
.gpos-crumb .cur{ color:#8a94a3; }

/* ===== 主导航顶级栏目统一规格：同高、文字垂直居中 =====
   修复「服务与支持」文字比其它栏目偏下：
   原 .gpos-nav .nav-parent > a 的 line-height:36px 与 .gpos-nav a 的
   padding:14px 22px !important 叠加，把下拉项内层 <a> 撑成 64px 高，
   其文字贴顶下移；其余项只有 14px 上下内边距。此处统一为 54px 高 + 行高居中。
   作用域仅限顶级栏目，不含下拉子项。2026-10-23 */
.gpos-nav > .gpos-wrap > div:first-child > a,
.gpos-nav > .gpos-wrap > div:first-child > .nav-parent > a {
  display: inline-block !important;
  padding: 0 22px !important;
  height: 54px !important;
  line-height: 54px !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

/* 容器居中修正：.container 类在主题中无定义，导致带 max-width 的容器贴左 */
.container {
  margin-left: auto;
  margin-right: auto;
}
