/* ============================================================
   简世科技 官网统一导航 / 页脚样式 (g- 前缀，避免与页面内 .nav-* 冲突)
   ============================================================ */
:root{
  --g-primary:#14233f;
  --g-primary-2:#1d3158;
  --g-accent:#c8841f;
  --g-accent-2:#e09a2e;
  --g-text:#1f2a44;
  --g-text-soft:#54607a;
  --g-border:#e6e8eb;
  --g-bg-soft:#f5f7fa;
}

/* ===== 顶部导航 ===== */
.g-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:#fff;
  border-bottom:1px solid var(--g-border);
  box-shadow:0 2px 14px rgba(20,35,63,.06);
}
.g-header-inner{
  max-width:1200px;
  margin:0 auto;
  height:66px;
  padding:0 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.g-logo{
  display:flex;
  align-items:center;
  gap:9px;
  text-decoration:none;
  flex-shrink:0;
}
.g-logo img{ height:34px; width:auto; object-fit:contain; }
.g-logo-text{ font-size:20px; font-weight:800; color:var(--g-primary); letter-spacing:.5px; }
.g-logo-accent{ color:var(--g-accent); }

.g-burger{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:42px; height:42px;
  background:transparent; border:none; cursor:pointer;
}
.g-burger span{ display:block; width:22px; height:2px; background:var(--g-primary); border-radius:2px; transition:.25s; }
.g-burger.active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.g-burger.active span:nth-child(2){ opacity:0; }
.g-burger.active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.g-nav{ display:flex; align-items:center; }
.g-menu{ display:flex; align-items:center; list-style:none; margin:0; padding:0; }
.g-menu-item{ position:relative; }
.g-menu-link{
  display:flex; align-items:center; height:66px;
  padding:0 18px;
  font-size:15px; font-weight:600; color:var(--g-text);
  text-decoration:none; white-space:nowrap;
  transition:color .2s;
}
.g-menu-link::after{
  content:""; position:absolute; left:18px; right:18px; bottom:0;
  height:3px; background:var(--g-accent); border-radius:3px 3px 0 0;
  transform:scaleX(0); transform-origin:center; transition:transform .2s;
}
.g-menu-item:hover .g-menu-link,
.g-menu-item.is-active .g-menu-link{ color:var(--g-accent); }
.g-menu-item.is-active .g-menu-link::after{ transform:scaleX(1); }

.g-dropdown{
  position:absolute; top:100%; left:0;
  min-width:248px;
  background:#fff;
  border:1px solid var(--g-border);
  border-radius:0 0 12px 12px;
  box-shadow:0 16px 36px rgba(20,35,63,.14);
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:opacity .2s, transform .2s, visibility .2s;
  padding:8px;
}
.g-menu-item:hover .g-dropdown,
.g-menu-item.open .g-dropdown{
  opacity:1; visibility:visible; transform:translateY(0);
}
.g-dropdown-inner{ display:flex; flex-direction:column; }
/* 右侧菜单的下拉框靠右对齐，避免溢出视口右侧导致链接点不到 */
.g-menu-item--right .g-dropdown{ left:auto; right:0; }
.g-sub{
  display:block; padding:10px 14px;
  font-size:14px; color:var(--g-text-soft); text-decoration:none;
  border-radius:8px; transition:background .15s, color .15s;
}
.g-sub:hover{ background:var(--g-bg-soft); color:var(--g-accent); }
.g-sub.is-current{ background:#fff6e9; color:var(--g-accent); font-weight:600; }
.g-sub-group-label{
  padding:12px 14px 5px; margin-top:4px;
  font-size:12px; font-weight:700; color:#9aa3b5;
  letter-spacing:1px; border-top:1px dashed var(--g-border);
}
.g-sub-group-label:first-child{ border-top:none; padding-top:6px; }

.g-cta{
  margin-left:20px;
  background:linear-gradient(135deg,var(--g-accent),var(--g-accent-2));
  color:#fff; text-decoration:none;
  padding:10px 22px; border-radius:7px;
  font-size:14px; font-weight:700; white-space:nowrap;
  box-shadow:0 4px 14px rgba(200,132,31,.3);
  transition:transform .15s, box-shadow .15s;
}
.g-cta:hover{ transform:translateY(-1px); box-shadow:0 7px 20px rgba(200,132,31,.4); }

/* 「进入CRM系统」入口按钮：放在免费咨询前，所有页面统一显示 */
.g-cta-crm{
  /* margin-left:20px;
  display:inline-flex; align-items:center; gap:6px;
  background:linear-gradient(135deg,#3b82f6,#2563eb);
  color:#fff; text-decoration:none;
  padding:10px 20px; border-radius:7px;
  font-size:14px; font-weight:700; white-space:nowrap;
  box-shadow:0 4px 14px rgba(37,99,235,.32);
  transition:transform .15s, box-shadow .15s; */
}
.g-cta-crm:hover{ transform:translateY(-1px); box-shadow:0 7px 20px rgba(37,99,235,.42); }
.g-cta-crm .g-ext{ font-size:12px; opacity:.85; }

/* ===== 回到首页 悬浮按钮（左下角，避开页面右下角的返回顶部按钮）===== */
.g-home-fab{
  position:fixed; left:24px; bottom:28px; z-index:1200;
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 20px 11px 16px;
  background:linear-gradient(135deg,var(--g-accent),var(--g-accent-2));
  color:#fff; text-decoration:none;
  font-size:14px; font-weight:700; line-height:1; white-space:nowrap;
  border-radius:999px;
  box-shadow:0 6px 20px rgba(200,132,31,.42);
  transition:transform .15s, box-shadow .15s;
}
.g-home-fab:hover{ transform:translateY(-2px); box-shadow:0 10px 26px rgba(200,132,31,.52); }
.g-home-fab svg{ width:18px; height:18px; flex-shrink:0; }
@media (max-width:640px){
  .g-home-fab{ left:16px; bottom:18px; padding:10px 16px 10px 13px; font-size:13px; }
}

/* ===== 页脚 ===== */
.g-footer{ background:var(--g-primary); color:#cdd5e3; margin-top:64px; }
.g-footer-inner{
  max-width:1200px; margin:0 auto; padding:48px 24px 32px;
  display:flex; gap:48px; flex-wrap:wrap;
}
.g-footer-brand{ flex:1 1 260px; min-width:240px; }
.g-footer-brand .g-f-logo{ display:flex; align-items:center; gap:9px; margin-bottom:14px; }
.g-footer-brand .g-f-logo img{ height:32px; }
.g-footer-brand .g-f-logo span{ font-size:19px; font-weight:800; color:#fff; }
.g-footer-brand .g-f-logo span b{ color:var(--g-accent-2); }
.g-footer-slogan{ font-size:15px; color:#fff; font-weight:600; margin:0 0 8px; }
.g-footer-brand p{ font-size:13px; line-height:1.7; margin:4px 0; color:#9aa6bd; }
.g-footer-cols{ flex:2 1 520px; display:flex; gap:36px; flex-wrap:wrap; }
.g-footer-col h4{ font-size:14px; color:#fff; margin:0 0 14px; font-weight:700; }
.g-footer-col a{ display:block; font-size:13px; color:#9aa6bd; text-decoration:none; padding:5px 0; transition:color .15s; }
.g-footer-col a:hover{ color:var(--g-accent-2); }
.g-footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  padding:16px 24px; text-align:center;
  font-size:12px; color:#7e8aa3;
}
.g-footer-bottom span{ margin:0 8px; }

/* ===== 移动端 ===== */
@media (max-width:900px){
  .g-burger{ display:flex; }
  .g-nav{
    display:none;
    position:absolute; top:66px; left:0; right:0;
    flex-direction:column; align-items:stretch;
    background:#fff; border-bottom:1px solid var(--g-border);
    box-shadow:0 16px 36px rgba(20,35,63,.14);
    max-height:calc(100vh - 66px); overflow-y:auto; padding:8px 0 16px;
  }
  .g-nav.open{ display:flex; }
  .g-menu{ flex-direction:column; width:100%; }
  .g-menu-item{ width:100%; }
  .g-menu-link{ height:50px; padding:0 24px; justify-content:space-between; }
  .g-menu-link::after{ display:none; }
  .g-dropdown{
    position:static; opacity:1; visibility:visible; transform:none;
    box-shadow:none; border:none; border-radius:0;
    min-width:0; padding:0 0 6px; background:var(--g-bg-soft);
  }
  .g-dropdown-inner{ padding:0; }
  .g-sub{ padding:9px 24px 9px 40px; }
  .g-sub-group-label{ padding:10px 24px 4px 40px; }
  .g-cta-crm{ display:block; margin:12px 24px 0; text-align:center; }
  .g-cta{ display:block; margin:12px 24px 0; text-align:center; }
}
