/* ═══════════════════════════════════════════════════════════════════
   SSLS.VIP Theme — layout.css
   header / megamenu / footer / contactBar 视觉重塑
   保留所有 JS 钩子: js-mega-menu / btn-currency / main-link-toggle / scroll-to-target
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   HEADER 顶层
   ═══════════════════════════════════════════════════════ */
.header-main {
  position: relative;
  z-index: var(--z-nav);
  background: transparent;
}

/* ─── 顶部信息条 ─── */
#header-top-bar {
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.06), transparent), var(--bg-deep) !important;
  border-bottom: 1px solid var(--gold-veil);
  padding: 10px 0;
  font-size: 12.5px;
  letter-spacing: 0.05em;
}
#header-top-bar .topbar-text { color: var(--ink-soft); }
#header-top-bar .topbar-text a {
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
#header-top-bar .topbar-text a:hover { color: var(--gold-light); }
#header-top-bar .list-inline-item { margin-right: 18px; font-size: 12.5px; }
#header-top-bar .list-inline-item:last-child { margin-right: 0; }

/* 货币 switcher */
.curreny { position: relative; display: inline-block; }
.curreny_name {
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 10px;
  border: 1px solid var(--gold-veil);
  border-radius: var(--radius-xs);
  font-size: 11px;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}
.curreny_name::after {
  content: '⌄';
  margin-left: 6px;
  font-size: 10px;
  color: var(--gold);
}
.curreny_name:hover {
  color: var(--gold-light);
  border-color: var(--gold-line);
}
.curreny .dropdown-menu {
  min-width: 100px;
  margin-top: 4px;
}
.btn-currency a {
  color: var(--ink-soft);
  font-size: 12px;
  display: block;
  padding: 6px 12px;
}
.btn-currency:hover a {
  color: var(--gold-light);
  background: var(--gold-veil);
}

/* Translate widget container */
#translate {
  color: var(--ink-mute);
  font-size: 12px;
}

/* ─── 主导航条 ─── */
#logoAndNav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(15, 8, 38, 0.78) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--gold-veil);
  border-top: none !important;
}
#logoAndNav.bg-transparent {
  background: rgba(15, 8, 38, 0.78) !important;
}
#logoAndNav.pageIn {
  background: rgba(7, 2, 26, 0.92) !important;
}
.header-nav { padding: 14px 0; }

/* Logo */
.navbar-brand {
  padding: 0;
  margin-right: 32px;
  display: flex;
  align-items: center;
}
.navbar-brand img {
  height: 36px;
  width: auto;
  /* 移除强制金色滤镜 - 用户上传的 logo 已是金色 */
}
/* white-logo 反色版本不再单独需要 */
.navbar-brand .logo-white { display: none; }
.navbar-brand .logo-color { display: inline-block; }

/* 主菜单 */
.main-navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-navbar-nav .nav-item {
  position: relative;
}
.main-navbar-nav .nav-link,
.main-navbar-nav .custom-nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 10px 18px;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.main-navbar-nav .nav-link:hover,
.main-navbar-nav .custom-nav-link:hover {
  color: var(--gold-light);
}
.main-navbar-nav .nav-link.active,
.main-navbar-nav .custom-nav-link.active {
  color: var(--gold-light);
}
.main-navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 1px;
}
/* 有子菜单的箭头 */
.main-link-toggle::after {
  content: '⌄';
  margin-left: 4px;
  font-size: 11px;
  color: var(--gold);
  opacity: 0.7;
  transition: transform 0.2s;
}
.main-link-toggle:hover::after { transform: translateY(2px); }

/* ─── 多级 megamenu ─── */
.hs-mega-menu,
.main-sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0 !important;
  right: auto !important;
  min-width: 320px;
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-1));
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0s;
  z-index: var(--z-nav);
}
.nav-item:hover > .hs-mega-menu,
.nav-item:hover > .main-sub-menu,
.hs-mega-menu.show,
.main-sub-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.nav-item .hs-mega-menu,
.nav-item .main-sub-menu {
  transition-delay: 0.15s;        /* leave 延迟，鼠标穿越时不闪 */
}
.nav-item:hover .hs-mega-menu,
.nav-item:hover .main-sub-menu {
  transition-delay: 0s;
}

.title-with-icon-item {
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.title-with-icon-item:hover { background: var(--gold-veil); }
.title-with-icon-link {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
}
.title-with-icon-link .media {
  display: flex;
  align-items: center;
  gap: 14px;
}
.menu-titile-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  padding: 6px;
  background: var(--gold-veil);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
  color: var(--gold-light);
}
.title-with-icon-link .u-header__promo-title {
  display: block;
  font-family: var(--font-cn);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}
.title-with-icon-link:hover .u-header__promo-title { color: var(--gold-light); }
.title-with-icon-link .u-header__promo-text {
  display: block;
  font-size: 11.5px;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* 多列子菜单 */
.main-sub-menu .row { margin: 0; }
.main-sub-menu .col-md-6, .main-sub-menu .col-lg-6 { padding: 0; }

/* Hamburger (mobile) */
/* Hamburger (mobile) — Bootstrap 默认在 md+ 隐藏，但被 .btn 的 display: inline-flex 覆盖了，强制覆盖回去 */
.navbar-toggler {
  background: transparent !important;
  border: 1px solid var(--gold-line) !important;
  color: var(--gold-light) !important;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
@media (min-width: 768px) {
  .navbar-toggler { display: none !important; }
}
#hamburgerTrigger .fas { color: var(--gold-light); }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer-section {
  margin-top: 80px;
  background: var(--bg-deep);
  border-top: 1px solid var(--gold-veil);
}
.footer-top {
  background: transparent !important;
  padding: 64px 0 48px;
}
.footer-top .row { row-gap: 32px; }

.footer-nav-wrap h3, .footer-nav-wrap h4 {
  font-family: var(--font-cn);
  font-weight: 700;
  font-size: 14px;
  color: var(--gold-light) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-nav-wrap h3::after, .footer-nav-wrap h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.footer-nav-wrap img { max-width: 130px; margin-bottom: 16px; }
.footer-nav-wrap .nav-item { margin-bottom: 10px; }
.footer-nav-wrap .nav-item .nav-link,
.footer-nav-wrap .nav-item a {
  padding: 4px 0;
  font-size: 13px;
  color: var(--ink-mute) !important;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}
.footer-nav-wrap .nav-item a:hover {
  color: var(--gold-light) !important;
  padding-left: 4px;
}
.footer-nav-wrap .nav-item .fas { margin-right: 6px; color: var(--gold); opacity: 0.7; }

.footer-bottom {
  background: var(--bg-deep) !important;
  border-top: 1px solid var(--gold-veil);
  padding: 24px 0 !important;
}
.copyright-text {
  font-size: 12px;
  color: var(--ink-mute) !important;
  letter-spacing: 0.04em;
}
.copyright-text a {
  color: var(--gold-light);
  font-weight: 500;
}
.copyright-text a:hover { color: var(--gold-glow); }

/* ═══════════════════════════════════════════════════════
   CONTACT BAR (浮动客服)
   ═══════════════════════════════════════════════════════ */
.contact-bar, .pb-contact-bar {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-bar .cb-item, .pb-contact-bar .cb-item {
  position: relative;
  width: 44px;
  height: 44px;
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-1));
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--gold-light);
  cursor: pointer;
  transition: all 0.25s;
}
.contact-bar .cb-item:hover, .pb-contact-bar .cb-item:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-glow));
  color: var(--bg-deep);
  border-color: var(--gold);
  transform: translateX(-4px);
}
.contact-bar .cb-pop, .pb-contact-bar .cb-pop {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-1));
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  transition-delay: 0.15s;
  box-shadow: var(--shadow-1);
}
.contact-bar .cb-item:hover .cb-pop, .pb-contact-bar .cb-item:hover .cb-pop {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* ═══════════════════════════════════════════════════════
   PAGE-IN HERO (二级页头部)
   ═══════════════════════════════════════════════════════ */
.hero-equal-height {
  padding: 100px 0 60px;
  position: relative;
}
body[class*="pageIn"] .hero-equal-height,
.pageIn .hero-equal-height,
.hero-equal-height.gradient-overlay {
  background:
    radial-gradient(ellipse at top right, rgba(212, 175, 55, 0.1), transparent 60%),
    linear-gradient(180deg, var(--bg-elev-1), transparent) !important;
}
.hero-equal-height h1, .hero-equal-height h2 {
  font-family: var(--font-display);
  color: var(--ink) !important;
}
.hero-content-wrap h1, .hero-content-wrap h2 { color: var(--ink) !important; }
.hero-content-wrap .lead {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════
   COMMON: search / domain / suffix tiles
   ═══════════════════════════════════════════════════════ */
.domain-search-form .input-group {
  background: var(--bg-deep);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 4px;
  display: flex;
}
.domain-search-form .form-control {
  background: transparent !important;
  border: none !important;
  font-size: 15px;
  padding: 14px 20px;
}
.domain-search-form .form-control:focus { box-shadow: none !important; }
.domain-search-form .search-btn {
  white-space: nowrap;
  padding: 10px 26px;
}

.domain-search-list { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.domain-search-list li {
  background: var(--gold-veil);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.domain-search-list .suffix {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold-light);
}
.domain-search-list .font-36 { font-size: 16px; }
.domain-search-list a { color: var(--ink-mute); font-size: 12px; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  #header-top-bar { display: none; }
  .main-navbar-nav { flex-direction: column; gap: 0; padding: 16px 0; }
  .main-navbar-nav .nav-link, .main-navbar-nav .custom-nav-link {
    padding: 10px 0;
    border-bottom: 1px solid var(--gold-veil);
  }
  .hs-mega-menu, .main-sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 16px;
  }
  .navbar-brand img { height: 30px; }
  .contact-bar, .pb-contact-bar { display: none; }
}

@media (max-width: 600px) {
  .container, .container-fluid { padding-left: 16px; padding-right: 16px; }
  .footer-top { padding: 40px 0 24px; }
}

/* ═══════════════════════════════════════════════════════════════════
   CONTACT BAR (扩展 · 适配 contactBar.html 实际类名)
   ═══════════════════════════════════════════════════════════════════ */
.contact-bar {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-bar-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-bar-item {
  position: relative;
  width: 44px;
  height: 44px;
}
.contact-bar-item .item-icon {
  width: 44px !important;
  height: 44px !important;
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-1)) !important;
  border: 1px solid var(--gold-line) !important;
  border-radius: var(--radius-sm) !important;
  display: grid !important;
  place-items: center !important;
  color: var(--gold-light) !important;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}
.contact-bar-item:hover .item-icon {
  background: linear-gradient(135deg, var(--gold-glow), var(--gold)) !important;
  border-color: var(--gold) !important;
  transform: translateX(-4px);
}

/* SVG icons via background-image (mask approach) */
.contact-bar-item .item-icon::before {
  content: '' !important;
  width: 22px;
  height: 22px;
  background-color: var(--gold-light);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: background-color 0.25s;
}
.contact-bar-item:hover .item-icon::before {
  background-color: var(--bg-deep);
}

/* SVG paths inlined as data URIs */
.item-icon-service::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M20.487 17.14l-4.065-3.696a1 1 0 0 0-1.391.043l-2.393 2.461c-.576-.11-1.734-.471-2.926-1.66c-1.192-1.193-1.553-2.354-1.66-2.926l2.459-2.394a1 1 0 0 0 .043-1.391L6.859 3.513a1 1 0 0 0-1.391-.087L3.247 5.319a1 1 0 0 0-.291.677c-.024.256-.519 6.336 4.198 11.054C11.279 21.123 16.432 21.5 17.85 21.5c.207 0 .334-.008.371-.011a.99.99 0 0 0 .676-.291l1.893-2.221a.998.998 0 0 0-.303-1.837z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M20.487 17.14l-4.065-3.696a1 1 0 0 0-1.391.043l-2.393 2.461c-.576-.11-1.734-.471-2.926-1.66c-1.192-1.193-1.553-2.354-1.66-2.926l2.459-2.394a1 1 0 0 0 .043-1.391L6.859 3.513a1 1 0 0 0-1.391-.087L3.247 5.319a1 1 0 0 0-.291.677c-.024.256-.519 6.336 4.198 11.054C11.279 21.123 16.432 21.5 17.85 21.5c.207 0 .334-.008.371-.011a.99.99 0 0 0 .676-.291l1.893-2.221a.998.998 0 0 0-.303-1.837z'/></svg>");
}
.item-icon-telegram::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M9.78 18.65l.28-4.23l7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3L3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M9.78 18.65l.28-4.23l7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3L3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z'/></svg>");
}
.item-icon-line::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M19.365 9.863c.349 0 .631.285.631.631c0 .345-.282.63-.631.63H17.61v1.125h1.755c.349 0 .631.283.631.63c0 .344-.282.629-.631.629h-2.386c-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63h2.386c.346 0 .628.285.628.63c0 .349-.282.63-.628.63H17.61v1.125h1.755zm-3.855 3.016a.628.628 0 0 1-.629.628a.62.62 0 0 1-.504-.252l-2.443-3.325v2.95a.628.628 0 1 1-1.257 0V8.108a.625.625 0 0 1 .626-.628c.196 0 .375.103.482.253l2.458 3.337V8.108c0-.345.282-.63.63-.63c.345 0 .63.285.63.63v4.771zm-5.741 0a.627.627 0 0 1-.629.629a.63.63 0 0 1-.63-.629V8.108c0-.345.282-.63.63-.63c.345 0 .629.285.629.63v4.771zm-2.466.629H4.917a.634.634 0 0 1-.631-.629V8.108c0-.345.285-.63.63-.63c.346 0 .628.285.628.63v4.141h1.756c.348 0 .629.283.629.63a.63.63 0 0 1-.629.629M24 10.314C24 4.943 18.615.572 12 .572S0 4.943 0 10.314c0 4.811 4.27 8.842 10.035 9.608c.391.082.923.258 1.058.59c.12.301.079.766.038 1.08l-.164 1.02c-.045.301-.24 1.186 1.049.645c1.291-.539 6.916-4.078 9.436-6.975C23.176 14.393 24 12.458 24 10.314'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M19.365 9.863c.349 0 .631.285.631.631c0 .345-.282.63-.631.63H17.61v1.125h1.755c.349 0 .631.283.631.63c0 .344-.282.629-.631.629h-2.386c-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63h2.386c.346 0 .628.285.628.63c0 .349-.282.63-.628.63H17.61v1.125h1.755zm-3.855 3.016a.628.628 0 0 1-.629.628a.62.62 0 0 1-.504-.252l-2.443-3.325v2.95a.628.628 0 1 1-1.257 0V8.108a.625.625 0 0 1 .626-.628c.196 0 .375.103.482.253l2.458 3.337V8.108c0-.345.282-.63.63-.63c.345 0 .63.285.63.63v4.771zm-5.741 0a.627.627 0 0 1-.629.629a.63.63 0 0 1-.63-.629V8.108c0-.345.282-.63.63-.63c.345 0 .629.285.629.63v4.771zm-2.466.629H4.917a.634.634 0 0 1-.631-.629V8.108c0-.345.285-.63.63-.63c.346 0 .628.285.628.63v4.141h1.756c.348 0 .629.283.629.63a.63.63 0 0 1-.629.629M24 10.314C24 4.943 18.615.572 12 .572S0 4.943 0 10.314c0 4.811 4.27 8.842 10.035 9.608c.391.082.923.258 1.058.59c.12.301.079.766.038 1.08l-.164 1.02c-.045.301-.24 1.186 1.049.645c1.291-.539 6.916-4.078 9.436-6.975C23.176 14.393 24 12.458 24 10.314'/></svg>");
}
.item-icon-whatsapp::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M.057 24l1.687-6.163a11.867 11.867 0 0 1-1.587-5.946C.16 5.335 5.495 0 12.05 0a11.817 11.817 0 0 1 8.413 3.488a11.824 11.824 0 0 1 3.48 8.414c-.003 6.557-5.338 11.892-11.893 11.892a11.9 11.9 0 0 1-5.688-1.448L.057 24zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592c5.448 0 9.886-4.434 9.889-9.885c.002-5.462-4.415-9.89-9.881-9.892c-5.452 0-9.887 4.434-9.889 9.884c-.001 2.225.651 3.891 1.746 5.634l-.999 3.648l3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347c-.297-.149-1.758-.868-2.031-.967c-.272-.099-.47-.149-.669.149c-.198.297-.768.967-.941 1.165c-.173.198-.347.223-.644.074c-.297-.149-1.255-.462-2.39-1.475c-.883-.788-1.48-1.761-1.653-2.059c-.173-.297-.018-.458.13-.606c.134-.133.297-.347.446-.521c.151-.172.2-.296.3-.495c.099-.198.05-.372-.025-.521c-.075-.148-.669-1.611-.916-2.206c-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372c-.272.297-1.04 1.016-1.04 2.479c0 1.462 1.065 2.875 1.213 3.074c.149.198 2.095 3.2 5.076 4.487c.709.306 1.263.489 1.694.626c.712.226 1.36.194 1.872.118c.571-.085 1.758-.719 2.006-1.413c.248-.695.248-1.29.173-1.414z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M.057 24l1.687-6.163a11.867 11.867 0 0 1-1.587-5.946C.16 5.335 5.495 0 12.05 0a11.817 11.817 0 0 1 8.413 3.488a11.824 11.824 0 0 1 3.48 8.414c-.003 6.557-5.338 11.892-11.893 11.892a11.9 11.9 0 0 1-5.688-1.448L.057 24zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592c5.448 0 9.886-4.434 9.889-9.885c.002-5.462-4.415-9.89-9.881-9.892c-5.452 0-9.887 4.434-9.889 9.884c-.001 2.225.651 3.891 1.746 5.634l-.999 3.648l3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347c-.297-.149-1.758-.868-2.031-.967c-.272-.099-.47-.149-.669.149c-.198.297-.768.967-.941 1.165c-.173.198-.347.223-.644.074c-.297-.149-1.255-.462-2.39-1.475c-.883-.788-1.48-1.761-1.653-2.059c-.173-.297-.018-.458.13-.606c.134-.133.297-.347.446-.521c.151-.172.2-.296.3-.495c.099-.198.05-.372-.025-.521c-.075-.148-.669-1.611-.916-2.206c-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372c-.272.297-1.04 1.016-1.04 2.479c0 1.462 1.065 2.875 1.213 3.074c.149.198 2.095 3.2 5.076 4.487c.709.306 1.263.489 1.694.626c.712.226 1.36.194 1.872.118c.571-.085 1.758-.719 2.006-1.413c.248-.695.248-1.29.173-1.414z'/></svg>");
}
.item-icon-skype::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M19.852 14.444c.115-.677.176-1.358.177-2.04c0-1.624-.317-3.156-.943-4.591a11.7 11.7 0 0 0-2.555-3.737a11.836 11.836 0 0 0-3.748-2.539A11.737 11.737 0 0 0 8.182.6c-.717 0-1.42.063-2.118.187A6.78 6.78 0 0 0 3.387.13C2.479.13 1.617.451.93 1.135c-.681.685-1 1.55-1 2.456c0 .919.318 1.792.875 2.508a11.756 11.756 0 0 0-.123 6.594a11.7 11.7 0 0 0 2.555 3.737a11.83 11.83 0 0 0 3.748 2.54c1.392.6 2.91.937 4.5.937c.681 0 1.357-.06 2.025-.176a6.797 6.797 0 0 0 2.674.526c.91 0 1.776-.323 2.461-1.005c.685-.686 1.008-1.55 1.005-2.46c0-.911-.32-1.775-.882-2.493l.084.145zM12.275 17.16c-3.3 0-4.79-1.62-4.79-2.844a1.06 1.06 0 0 1 1.092-1.087c1.45 0 1.075 2.083 3.698 2.083c1.347 0 2.083-.728 2.083-1.47c0-.448-.218-.94-1.103-1.157l-2.93-.728c-2.354-.59-2.787-1.864-2.787-3.064c0-2.498 2.351-3.435 4.564-3.435c2.039 0 4.434.952 4.434 2.215c0 .54-.469.857-1.005.857c-1.234 0-1.005-1.706-3.526-1.706c-1.205 0-1.867.547-1.867 1.323c0 .777.946.969 1.766 1.155l2.17.483c2.376.531 2.974 1.91 2.974 3.21c0 2.027-1.557 3.548-4.736 3.548l-.038-.018z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M19.852 14.444c.115-.677.176-1.358.177-2.04c0-1.624-.317-3.156-.943-4.591a11.7 11.7 0 0 0-2.555-3.737a11.836 11.836 0 0 0-3.748-2.539A11.737 11.737 0 0 0 8.182.6c-.717 0-1.42.063-2.118.187A6.78 6.78 0 0 0 3.387.13C2.479.13 1.617.451.93 1.135c-.681.685-1 1.55-1 2.456c0 .919.318 1.792.875 2.508a11.756 11.756 0 0 0-.123 6.594a11.7 11.7 0 0 0 2.555 3.737a11.83 11.83 0 0 0 3.748 2.54c1.392.6 2.91.937 4.5.937c.681 0 1.357-.06 2.025-.176a6.797 6.797 0 0 0 2.674.526c.91 0 1.776-.323 2.461-1.005c.685-.686 1.008-1.55 1.005-2.46c0-.911-.32-1.775-.882-2.493l.084.145zM12.275 17.16c-3.3 0-4.79-1.62-4.79-2.844a1.06 1.06 0 0 1 1.092-1.087c1.45 0 1.075 2.083 3.698 2.083c1.347 0 2.083-.728 2.083-1.47c0-.448-.218-.94-1.103-1.157l-2.93-.728c-2.354-.59-2.787-1.864-2.787-3.064c0-2.498 2.351-3.435 4.564-3.435c2.039 0 4.434.952 4.434 2.215c0 .54-.469.857-1.005.857c-1.234 0-1.005-1.706-3.526-1.706c-1.205 0-1.867.547-1.867 1.323c0 .777.946.969 1.766 1.155l2.17.483c2.376.531 2.974 1.91 2.974 3.21c0 2.027-1.557 3.548-4.736 3.548l-.038-.018z'/></svg>");
}
.item-icon-facebook::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978c.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036a26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103l-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978c.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036a26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103l-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z'/></svg>");
}
.item-icon-wechat::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213c0 .163.13.295.29.295a.326.326 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098a10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05c-.857-2.578.157-4.972 1.932-6.446c1.703-1.415 3.882-1.928 5.853-1.703c-.673-3.823-4.747-6.483-9.596-6.483zM5.785 5.991c.642 0 1.162.529 1.162 1.18c0 .65-.52 1.178-1.162 1.178c-.642 0-1.162-.529-1.162-1.179c0-.65.52-1.178 1.162-1.178zm5.813 0c.642 0 1.162.529 1.162 1.18c0 .65-.52 1.178-1.162 1.178c-.642 0-1.162-.529-1.162-1.179c0-.65.52-1.178 1.162-1.178zm5.34 2.867c-1.797-.052-3.746.512-5.28 1.786c-1.72 1.428-2.687 3.72-1.78 6.22c.942 2.453 3.666 4.229 6.884 4.229c.826 0 1.622-.12 2.361-.336a.722.722 0 0 1 .598.082l1.584.926a.272.272 0 0 0 .14.047c.134 0 .24-.111.24-.247a.4.4 0 0 0-.04-.166l-.327-1.234a.582.582 0 0 1-.023-.156a.51.51 0 0 1 .203-.398C23.395 18.715 24 17.142 24 15.504c0-3.508-3.395-6.367-7.595-6.5l-.467-.146Zm-3.875 3.18c.535 0 .969.44.969.982c0 .542-.434.982-.969.982c-.535 0-.969-.44-.969-.982c0-.542.434-.982.969-.982zm4.844 0c.535 0 .969.44.969.982c0 .542-.434.982-.969.982c-.535 0-.969-.44-.969-.982c0-.542.434-.982.969-.982z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213c0 .163.13.295.29.295a.326.326 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098a10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05c-.857-2.578.157-4.972 1.932-6.446c1.703-1.415 3.882-1.928 5.853-1.703c-.673-3.823-4.747-6.483-9.596-6.483zM5.785 5.991c.642 0 1.162.529 1.162 1.18c0 .65-.52 1.178-1.162 1.178c-.642 0-1.162-.529-1.162-1.179c0-.65.52-1.178 1.162-1.178zm5.813 0c.642 0 1.162.529 1.162 1.18c0 .65-.52 1.178-1.162 1.178c-.642 0-1.162-.529-1.162-1.179c0-.65.52-1.178 1.162-1.178zm5.34 2.867c-1.797-.052-3.746.512-5.28 1.786c-1.72 1.428-2.687 3.72-1.78 6.22c.942 2.453 3.666 4.229 6.884 4.229c.826 0 1.622-.12 2.361-.336a.722.722 0 0 1 .598.082l1.584.926a.272.272 0 0 0 .14.047c.134 0 .24-.111.24-.247a.4.4 0 0 0-.04-.166l-.327-1.234a.582.582 0 0 1-.023-.156a.51.51 0 0 1 .203-.398C23.395 18.715 24 17.142 24 15.504c0-3.508-3.395-6.367-7.595-6.5l-.467-.146Zm-3.875 3.18c.535 0 .969.44.969.982c0 .542-.434.982-.969.982c-.535 0-.969-.44-.969-.982c0-.542.434-.982.969-.982zm4.844 0c.535 0 .969.44.969.982c0 .542-.434.982-.969.982c-.535 0-.969-.44-.969-.982c0-.542.434-.982.969-.982z'/></svg>");
}
.item-icon-qq::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M21.395 15.035a39.548 39.548 0 0 0-.803-2.264l-1.079-2.695c.001-.032.014-.562.014-.836C19.526 4.632 17.351 0 12 0C6.649 0 4.474 4.632 4.474 9.241c0 .274.013.804.014.836l-1.08 2.695a39.547 39.547 0 0 0-.802 2.264c-1.021 3.283-.69 4.643-.438 4.673c.541.065 2.103-2.472 2.103-2.472c0 1.469.756 3.387 2.394 4.771c-.612.188-1.363.479-1.845.835c-.434.32-.379.646-.301.778c.343.578 5.883.369 7.482.189c1.6.18 7.14.389 7.483-.189c.077-.132.132-.458-.301-.778c-.483-.356-1.233-.646-1.846-.836c1.637-1.384 2.393-3.302 2.393-4.771c0 0 1.562 2.537 2.103 2.472c.251-.03.581-1.39-.438-4.673z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M21.395 15.035a39.548 39.548 0 0 0-.803-2.264l-1.079-2.695c.001-.032.014-.562.014-.836C19.526 4.632 17.351 0 12 0C6.649 0 4.474 4.632 4.474 9.241c0 .274.013.804.014.836l-1.08 2.695a39.547 39.547 0 0 0-.802 2.264c-1.021 3.283-.69 4.643-.438 4.673c.541.065 2.103-2.472 2.103-2.472c0 1.469.756 3.387 2.394 4.771c-.612.188-1.363.479-1.845.835c-.434.32-.379.646-.301.778c.343.578 5.883.369 7.482.189c1.6.18 7.14.389 7.483-.189c.077-.132.132-.458-.301-.778c-.483-.356-1.233-.646-1.846-.836c1.637-1.384 2.393-3.302 2.393-4.771c0 0 1.562 2.537 2.103 2.472c.251-.03.581-1.39-.438-4.673z'/></svg>");
}
.item-icon-email::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5l-8-5V6l8 5l8-5v2z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5l-8-5V6l8 5l8-5v2z'/></svg>");
}

/* hover 弹出气泡 */
.contact-bar-item .item-bubble {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-1));
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 14px 18px;
  min-width: 220px;
  max-width: 320px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  transition-delay: 0.15s;
  box-shadow: var(--shadow-2);
  z-index: 2;
}
.contact-bar-item:hover .item-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  transition-delay: 0s;
}
.contact-bar-item .item-bubble > div:first-child {
  font-family: var(--font-cn);
  font-weight: 700;
  font-size: 12px;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--gold-veil);
}
.contact-bar-item .item-chat {
  font-size: 13px;
  color: var(--ink);
}
.contact-bar-item .item-chat > div {
  padding: 4px 0;
  line-height: 1.5;
}
.contact-bar-item .item-chat a, .contact-bar-item .item-chat .kfname {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.contact-bar-item .item-chat a:hover { color: var(--gold-light); }
.contact-bar-item .item-chat .text-muted { color: var(--ink-mute) !important; font-size: 11.5px; }

/* 二维码弹出 */
.item-bubble-qr img, .item-bubble img {
  max-width: 140px;
  margin: 4px auto;
  display: block;
  border-radius: var(--radius-xs);
}

@media (max-width: 768px) {
  .contact-bar { display: none; }
}
