/* ==========================================================================
    四川云创年华网络科技有限公司提供技术支持www.88321.cn
   ========================================================================== */

/* ---------- 1. 页头（白底，深字） ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--header-h);
  color: var(--text);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
  transition: box-shadow var(--ease);
}

/* 滚动后：白色 + 更深阴影 */
.header--solid {
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

/* ghost 状态也保持白底（首页首屏不再透明） */
.header--ghost {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

/* 品牌靠左，导航与汉堡按钮靠右 */
.header-inner .logo {
  margin-right: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
}

/* 品牌图本身已含中英文名称，等比缩放即可 */
.logo img {
  height: 38px;
  width: auto;
}

/* ---------- 2. 主导航 ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav > a,
.nav-item > a {
  position: relative;
  display: block;
  padding: 0 18px;
  font-size: 16px;
  line-height: var(--header-h);
  color: var(--text);
}

.nav .caret {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  font-style: normal;
  color: var(--text-sub);
  transition: transform var(--ease);
}

.nav-item:hover .caret {
  color: var(--brand);
  transform: rotate(180deg);
}

.nav > a::after,
.nav-item > a::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand);
  transform: translateX(-50%);
  transition: width var(--ease);
}

.nav > a:hover,
.nav-item > a:hover,
.nav > a.is-active,
.nav-item > a.is-active {
  color: var(--brand);
}

.nav > a:hover::after,
.nav-item > a:hover::after,
.nav > a.is-active::after,
.nav-item > a.is-active::after {
  width: 22px;
}

/* ---------- 2a. 二级下拉菜单 ---------- */
.nav-sub {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 180px;
  padding: 10px 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  z-index: 200;
}

.nav-item:hover .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-sub a {
  display: block;
  padding: 10px 22px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  white-space: nowrap;
  transition: color var(--ease), background var(--ease);
}

.nav-sub a:hover {
  color: var(--brand);
  background: var(--brand-light);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 2b. 顶部服务热线 ---------- */
.hotline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  color: var(--text);
  white-space: nowrap;
}

.hotline svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  flex: none;
}

.hotline small {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-sub);
}

.hotline strong {
  display: block;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: .5px;
  color: var(--brand);
}

.hotline:hover strong {
  color: var(--brand-dark);
}

/* ---------- 3. 内页标题区（文字居左） ---------- */
.page-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: var(--header-h);
  min-height: 400px;
  padding: 40px 0 60px;
  background: var(--bg-dark) center/cover no-repeat;
  color: var(--text-on-dark);
  text-align: left;
  overflow: hidden;
}

.page-head .wrap {
  position: relative;
  z-index: 1;
}

.page-head h1 {
  margin-bottom: 12px;
  color: var(--text-on-dark);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

.page-head p {
  font-size: 17px;
  color: var(--text-on-dark-sub);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

/* 面包屑：位于栏目头图下方的浅色条 */
.crumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.crumb-bar .breadcrumb {
  margin: 0;
  padding: 13px 0;
  color: var(--text-sub);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-sub);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: .5;
}

.breadcrumb a:hover {
  color: var(--brand);
}

/* ---------- 4. 页脚 ---------- */
.footer {
  background: var(--bg-darker);
  color: var(--text-on-dark-sub);
  font-size: 14px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding: 64px 0 48px;
}

.footer h4 {
  margin-bottom: 20px;
  font-size: 16px;
  color: #fff;
}

.footer li + li {
  margin-top: 12px;
}

.footer a:hover {
  color: var(--cyan);
}

.footer .logo {
  margin-bottom: 18px;
  color: #fff;
}

.footer-qr {
  width: 96px;
  height: 96px;
  margin-top: 4px;
  border-radius: var(--radius);
  background: #fff;
  padding: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  color: var(--text-mute);
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom img {
  width: 18px;
}

/* ---------- 5. 悬浮工具栏（图标按钮，悬停左侧展开内容） ---------- */
.side-tools {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.side-item {
  position: relative;
  display: block;
}

.side-btn,
.side-tools .to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #fff;
  color: var(--brand);
  box-shadow: 0 6px 18px rgba(43, 160, 232, .18);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease), opacity var(--ease), visibility var(--ease);
}

.side-btn svg {
  width: 26px;
  height: 26px;
}

.side-item:hover .side-btn,
.side-btn:hover,
.side-btn:focus-visible,
.side-tools .to-top:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(43, 160, 232, .35);
}

/* 悬停展开的气泡内容 */
.side-pop {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}

.side-pop img {
  display: block;
  flex: 0 0 auto;
  width: 120px !important;
  max-width: none;
  height: 120px !important;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.side-pop > span {
  font-size: 13px;
  color: var(--text-sub);
}

.side-pop--text {
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.side-item:hover .side-pop,
.side-item:focus-within .side-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* 弹窗 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .5);
}

.modal.is-open {
  display: flex;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  font-size: 24px;
  line-height: 1;
  color: var(--text-mute);
}

.modal-close:hover {
  color: var(--text);
}

.modal h3 {
  margin-bottom: 6px;
}

.modal p.sub {
  margin-bottom: 24px;
  color: var(--text-sub);
  font-size: 14px;
}

/* 遮罩：移动端菜单展开时禁止滚动 */
body.is-locked {
  overflow: hidden;
}
