/* ============================================================
   nav-hetao.css —— 全站统一导航 + 页脚（复刻首页样式）
   供 pub/nav-hetao.html / pub/footer-hetao.html 使用
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: 80px; padding: 0 40px;
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.95);
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
  display: flex; align-items: center; justify-content: space-between;
  z-index: 1000; transition: background .3s;
}
.nav.scrolled { background: rgba(255,255,255,0.96); }
.nav .logo {
  display: flex; align-items: center; gap: 6px; flex: 0 0 auto;
  font-size: 26px; font-weight: 800; color: #1D2129; letter-spacing: 1px; white-space: nowrap; text-decoration: none;
}
.nav .logo .dot { width: 10px; height: 10px; border-radius: 50%; background: #167BFF; display: inline-block; }
.nav_link { display: flex; align-items: center; flex: 1 1 auto; justify-content: center; }
.nav_link a {
  font-size: 18px; color: rgb(50,50,50); padding: 8px 20px; line-height: 28px;
  white-space: nowrap; transition: color .2s; text-decoration: none;
}
.nav_link a:hover { color: #167BFF; }
.nav_link a.current { color: #167BFF; font-weight: 700; }
.nav_link .dd { position: relative; }
.nav_link .dd-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 220px; background: rgba(255,255,255,.97); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 8px; z-index: 1001;
}
.nav_link .dd:hover .dd-menu { display: block; }
.nav_link .dd-menu a { display: block; font-size: 15px; padding: 10px 14px; color: #4E5969; border-radius: 8px; white-space: nowrap; }
.nav_link .dd-menu a:hover { background: #eef4ff; color: #167BFF; }

.nav_right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nav_right button.user-pa-btn{cursor:pointer;font-family:inherit;line-height:1.2;}
.user-pa-btn {
  font-size: 15px; color: #323232; padding: 7px 18px; border-radius: 20px;
  border: 1px solid rgba(0,0,0,.15); background: rgba(255,255,255,.6); transition: all .2s; white-space: nowrap; text-decoration: none;
}
.nav_right .user-pa-btn:hover { border-color: #167BFF; color: #167BFF; }
.nav_right .user-pa-btn.primary { background: #FF8819; border-color: #FF8819; color: #fff; }
.nav_right .user-pa-btn.primary:hover { background: #e9750a; color: #fff; }

/* 登录态头像 + hover 下拉 */
.nav_right .user-logined{ position: relative; margin-left: 6px; }
.nav_right .user-logined .dropdown{ position: relative; }
.nav_right .user-logined::before{
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 24px; z-index: 999; pointer-events: auto;
}
.nav_right .user-logined .user-nav-img{ display: flex; align-items: center; gap: 6px; cursor: pointer; }
.nav_right .user-logined .user-head-icon{ width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; background: #fff; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.nav_right .user-logined .user-head-icon img{ width: 100%; height: 100%; object-fit: cover; }
.nav_right .user-logined .user-nav-name{ font-size: 14px; color: #1D2129; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav_right .user-logined .caret{ display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #323232; }
.nav_right .user-logined .dropdown-menu{ display: none; position: absolute; top: calc(100% + 10px); right: 0; left: auto; z-index: 1000; min-width: 150px; background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.12); padding: 6px 0; list-style: none; }
.nav_right .user-logined:hover .dropdown-menu, .nav_right .user-logined .dropdown.open .dropdown-menu{ display: block; }
.nav_right .user-logined .dropdown-menu li{ list-style: none; }
.nav_right .user-logined .dropdown-menu a{ display: block; padding: 9px 16px; color: #333; font-size: 14px; text-decoration: none; white-space: nowrap; }
.nav_right .user-logined .dropdown-menu a:hover{ background: #f2f6ff; color: #167BFF; }
.nav_right .user-logined .dropdown-menu .divider{ height: 1px; margin: 6px 0; background: rgba(0,0,0,.06); }

/* 铃铛 */
.nav_right .user-ts{ position: relative; font-size: 22px; color: #323232; padding: 6px; cursor: pointer; }
.nav_right .user-ts i{ font-style: normal; }
.nav_right .user-ts .tsnum{ position: absolute; top: 0; right: -4px; min-width: 16px; height: 16px; background: #fc486f; color: #fff; font-size: 11px; border-radius: 8px; text-align: center; line-height: 16px; padding: 0 4px; }

/* 汉堡 */
.akc-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border: none; border-radius: 10px; cursor: pointer; background: rgba(255,255,255,.6); padding: 11px 10px; }
.akc-hamburger span { display: block; height: 2.5px; border-radius: 2px; background: #3A4150; }

/* ===== 页脚（首页深色） ===== */
.akc-footer-hetao { background: #1D2129; color: rgba(255,255,255,0.7); padding: 50px 0 24px; min-width: 0 !important; width: 100% !important; position: static !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; }
.akc-footer-hetao .fht-container { max-width: 1280px; width: 100%; min-width: 0; box-sizing: border-box; margin: 0 auto; padding: 0 24px; }
.akc-footer-hetao .footer-top { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px; margin-bottom: 40px; min-width: 0; }
.akc-footer-hetao .footer-brand .footer-logo { display: flex !important; align-items: center; gap: 6px; font-size: 22px; line-height: 1 !important; font-weight: 700; color: #fff; margin-bottom: 16px; float: none !important; padding: 0 !important; width: auto !important; }
.akc-footer-hetao .footer-brand .footer-logo .dot { width: 8px; height: 8px; border-radius: 50%; background: #167BFF; }
.akc-footer-hetao .footer-brand p { font-size: 13px; line-height: 1.8; margin-bottom: 16px; max-width: 280px; padding: 0 !important; float: none !important; }
/* ARKCODE-FOOTER-COMMUNITY-COL-002（桌面端）：品牌块独占整行，使第 2 行恰好放 5 个 .footer-col（含新增「编程社区」）；
   列数与 gap 不变，各栏宽度仍 ~214px。与 <=768px 媒体查询内的同名规则一致，使其在桌面端也生效。 */
.akc-footer-hetao .footer-brand { grid-column: 1 / -1; }
.akc-footer-hetao .footer-col h4 { font-size: 15px; line-height: 1.4 !important; font-weight: 600; color: #fff; margin-bottom: 18px; }
.akc-footer-hetao .footer-col ul { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.akc-footer-hetao .footer-col li { line-height: 1.5 !important; }
.akc-footer-hetao .footer-col a { font-size: 13px; line-height: 1.5 !important; color: rgba(255,255,255,0.6); transition: color 0.2s; text-decoration: none; }
.akc-footer-hetao .footer-col a:hover { color: #fff; }
.akc-footer-hetao .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; min-height: 44px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; line-height: 1.6 !important; color: rgba(255,255,255,0.4); }
.akc-footer-hetao .footer-bottom span, .akc-footer-hetao .footer-bottom a { line-height: 1.6 !important; }
.akc-footer-hetao .footer-bottom-links { display: flex !important; gap: 20px; align-items: center; }
.akc-footer-hetao .footer-bottom-links a { display: inline !important; color: rgba(255,255,255,0.4); transition: color 0.2s; text-decoration: none; font-size: 12px !important; line-height: 1.6 !important; padding: 0 !important; margin: 0 !important; }
.akc-footer-hetao .footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .nav_link a { font-size: 16px; padding: 8px 12px; }
}
@media (max-width: 768px) {
  .nav { height: 64px; padding: 0 16px; }
  .nav_link { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: rgba(255,255,255,.97); padding: 12px 16px 20px; box-shadow: 0 12px 30px rgba(0,0,0,.12); align-items: flex-start; }
  .nav.open .nav_link { display: flex; }
  .nav_link a { width: 100%; padding: 12px 14px; font-size: 16px; }
  .nav_link .dd-menu { position: static; transform: none; box-shadow: none; background: transparent; padding: 0 0 0 16px; }
  .nav_link .dd:hover .dd-menu { display: none; }
  .nav_link .dd.open .dd-menu { display: block; }
  .akc-hamburger { display: flex; }
  .nav_right .user-pa-btn { padding: 6px 14px; font-size: 14px; }
  .akc-footer-hetao .footer-top { grid-template-columns: 1fr 1fr !important; }
  .akc-footer-hetao .footer-brand { grid-column: 1 / -1; float: none !important; width: auto !important; }
  .akc-footer-hetao .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .akc-footer-hetao .footer-top { grid-template-columns: 1fr !important; }
}

/* ===== 非首页页面：给 body 加顶部间距，防止 fixed 导航遮挡内容 ===== */
body.akc-nav-pad { padding-top: 80px; } /* 导航 80px + 8px 呼吸 */
@media (max-width: 768px) { body.akc-nav-pad { padding-top: 64px; } } /* 移动端导航 64px + 8px */
