/* ==========================================================================
   易传 - 全站统一头部/页脚样式 site-chrome.css
   头部模板：includes/nav.html（.site-nav）
   页脚模板：includes/footer.html（.box_36）
   所有页面加载本文件；原各页 CSS 中重复的头部/页脚规则已合并至此，
   修改头尾样式只需改这一个文件。
   ========================================================================== */

/* ---------- 统一顶部导航 ---------- */
/* 注意：flex 布局直接写在本文件（不依赖 common.css 工具类），
   这样未加载 common.css 的 app 页（login/signup 等）也能正确渲染 */
.site-nav { display: flex; flex-direction: row; position: relative; z-index: 20; width: 1197px; height: 30px; margin: 17px 0 0 calc(50% - 597px); overflow: visible; }
.site-nav > * { flex-shrink: 0; }
.site-nav a { text-decoration: none; white-space: nowrap; transition: color .2s ease; }
.site-nav a:hover { color: rgba(86, 82, 255, 1.0); }
.nav-logo { display: inline-flex; line-height: 0; cursor: pointer; }
.nav-logo-img { width: 109px; height: 30px; }
.nav-divider { background-color: rgba(17, 17, 17, 1.0); width: 2px; height: 12px; margin: 9px 0 0 15px; }
/* 行高直接取各页修正后的盒高值（原 1.58928 大行高会使字形中心下偏） */
.nav-slogan { width: 95px; height: 15px; overflow-wrap: break-word; color: rgba(17, 17, 17, 1.0); font-size: 16px; font-family: MiSans-Normal; font-weight: normal; text-align: left; line-height: 15px; margin: 7px 0 0 15px; white-space: nowrap; }
.nav-home { width: 59px; height: 15px; overflow-wrap: break-word; color: rgba(17, 17, 17, 1.0); font-size: 16px; font-family: MiSans-Normal; font-weight: normal; text-align: left; line-height: 15px; margin: 7px 0 0 230px; white-space: nowrap; }
.nav-about { width: 61px; height: 15px; overflow-wrap: break-word; color: rgba(17, 17, 17, 1.0); font-size: 16px; font-family: MiSans-Normal; font-weight: normal; text-align: left; line-height: 15px; margin: 7px 0 0 46px; white-space: nowrap; }
.nav-phone-icon { width: 17px; height: 18px; margin: 7px 0 0 40px; }
.nav-phone { width: 115px; height: 13px; overflow-wrap: break-word; color: rgba(17, 17, 17, 1.0); font-size: 16px; font-family: MiSans-Semibold; font-weight: 600; text-align: left; line-height: 13px; margin: 9px 0 0 10px; white-space: nowrap; }
.nav-login { border-radius: 2px; height: 26px; border: 1px solid rgba(86, 82, 255, 1); width: 62px; position: relative; margin: 1px 0 0 25px; display: flex; box-sizing: border-box; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.nav-login-text { width: 31px; height: 14px; overflow-wrap: break-word; color: rgba(86, 82, 255, 1); font-size: 16px; font-family: MiSans-Normal; font-weight: normal; text-align: left; line-height: 14px; margin: 6px 0 0 16px; white-space: nowrap; }
.nav-register { height: 26px; background: url('../assets/slices/about/box_4.png') 100% no-repeat; background-size: 100% 100%; width: 62px; position: relative; margin: 1px 0 0 9px; display: flex; box-sizing: border-box; transition: transform .2s ease, filter .2s ease, box-shadow .2s ease; }
.nav-register-text { width: 31px; height: 15px; overflow-wrap: break-word; color: rgba(255, 255, 255, 1); font-size: 16px; font-family: MiSans-Normal; font-weight: normal; text-align: left; line-height: 15px; margin: 5px 0 0 16px; white-space: nowrap; }
/* HOT 角标：锚在登录按钮右侧、与注册按钮之间 */
.nav-hot { background-color: rgba(232, 33, 33, 1.0); border-radius: 6px 6px 0px 6px; height: 14px; min-width: 28px; padding: 0 4px; position: absolute; right: -18px; top: -6px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.nav-hot span { width: auto; height: auto; overflow-wrap: break-word; color: rgba(255, 255, 255, 1); font-size: 10px; font-family: MiSansLatin-Normal; font-weight: normal; text-align: center; line-height: normal; margin: 0; }
/* 悬停：站点主紫高亮；登录/注册按钮放大 */
.site-nav a.nav-login:hover,
.site-nav a.nav-register:hover { transform: scale(1.08); color: inherit; }
.site-nav a.nav-login:hover { background-color: rgba(86, 82, 255, 0.08); box-shadow: 0 4px 12px rgba(86, 82, 255, 0.18); }
.site-nav a.nav-register:hover { filter: brightness(1.08); box-shadow: 0 4px 12px rgba(86, 82, 255, 0.28); }
.site-nav a.nav-register:hover .nav-register-text { color: rgba(255, 255, 255, 1); }
/* 当前页高亮（site-settings.js 按地址自动标记 is-active / is-current） */
.site-nav .nav-link.is-active { color: rgba(99, 96, 253, 1.0); font-family: MiSans-Semibold; font-weight: 600; }

/* ---------- 头部「媒体资源」下拉 +「代理加盟」（各页共用） ---------- */
.nav-media {
  position: relative;
  width: 64px;
  height: 30px;
  margin: 0 0 0 46px;
  z-index: 40;
}
.nav-media__trigger {
  display: block;
  width: 64px;
  height: 30px;
  overflow-wrap: break-word;
  color: rgba(17, 17, 17, 1);
  font-size: 16px;
  font-family: MiSans-Normal;
  font-weight: normal;
  text-align: left;
  line-height: 30px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.nav-media:hover .nav-media__trigger,
.nav-media.is-active .nav-media__trigger {
  color: rgba(99, 96, 253, 1);
  font-family: MiSans-Semibold;
  font-weight: 600;
}
.nav-media__menu {
  display: none;
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 128px;
  padding: 10px 0 8px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(86, 82, 255, 0.16);
}
.nav-media__menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-media:hover .nav-media__menu,
.nav-media:focus-within .nav-media__menu {
  display: block;
}
.nav-media__menu a {
  display: block;
  padding: 8px 16px;
  color: rgba(17, 17, 17, 1);
  font-size: 14px;
  font-family: MiSans-Normal;
  font-weight: normal;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  line-height: 22px;
}
.nav-media__menu a:hover,
.nav-media__menu a.is-current {
  color: rgba(86, 82, 255, 1);
  background: rgba(86, 82, 255, 0.06);
}

/* 「代理加盟」导航项：与媒体资源并列 */
.nav-agent {
  width: 62px;
  height: 30px;
  margin: 0 0 0 46px;
  overflow-wrap: break-word;
  color: rgba(17, 17, 17, 1);
  font-size: 16px;
  font-family: MiSans-Normal;
  font-weight: normal;
  text-align: left;
  line-height: 30px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.nav-agent.is-active {
  color: rgba(99, 96, 253, 1);
  font-family: MiSans-Semibold;
  font-weight: 600;
}

/* 已登录：右上角用「用户中心」替换登录/注册，点击进用户中心 */
.nav-user {
  display: none;
  box-sizing: border-box;
  height: 26px;
  margin: 2px 0 0 25px;
  padding: 0 12px;
  border-radius: 13px;
  background: rgba(86, 82, 255, 0.1);
  color: rgba(86, 82, 255, 1);
  font-size: 14px;
  font-family: MiSans-Semibold, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  line-height: 26px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
}
.nav-user.is-on { display: inline-block; }
.nav-user:hover { background: rgba(86, 82, 255, 0.16); color: rgba(86, 82, 255, 1); }
.nav-auth-hide { display: none !important; }

/* ---------- 统一页脚（.box_36） ---------- */
.box_36 { display: flex; flex-direction: column; background-color: rgba(255, 255, 255, 1.0); width: 100%; height: auto; min-height: 220px; margin: -1px 0px 0px 0px; padding-bottom: 8px; }
.box_36 span { white-space: nowrap; }
/* 页脚内链接（网站首页/关于我们/服务协议）：统一深色，去下划线 */
.box_36 a { text-decoration: none; color: rgba(17, 17, 17, 1.0); transition: color .2s ease; }
/* 悬停：站点主紫高亮 */
.box_36 a:hover { color: rgba(86, 82, 255, 1.0); }
.section_28 { display: flex; flex-direction: row; width: min(1160px, calc(100% - 48px)); height: auto; margin: 32px auto 0; align-items: flex-start; justify-content: space-between; gap: 28px; }
.section_28 > * { flex-shrink: 0; }
.box_47 { display: flex; flex-direction: column; justify-content: space-between; width: auto; height: auto; }
.section_29 { display: flex; flex-direction: row; width: 225px; height: 30px; margin: 0px 0px 0px 1px; }
.image_19 { width: 109px; height: 30px; }
.block_20 { display: flex; flex-direction: column; background-color: rgba(17, 17, 17, 1.0); width: 2px; height: 12px; margin: 9px 0 0 11px; }
.text_136 { width: 95px; height: 30px; overflow-wrap: break-word; color: rgba(17, 17, 17, 1.0); font-size: 16px; font-family: MiSans-Normal; font-weight: normal; text-align: left; line-height: 30px; margin: 0 0 0 8px; }
.image-text_61 { display: flex; flex-direction: row; justify-content: space-between; width: 200px; height: 19px; margin: 21px 0 0 3px; }
.thumbnail_12 { width: 19px; height: 19px; }
.text_130 { width: auto; height: auto; overflow-wrap: break-word; color: rgba(17, 17, 17, 1.0); font-size: 22px; font-family: MiSans-Semibold; font-weight: 600; text-align: left; line-height: 1.3; letter-spacing: 0.3px; }
.text-wrapper_24 { display: flex; flex-direction: column; height: 30px; background: url('../assets/slices/home/text-wrapper_24.png') 100% no-repeat; background-size: 100% 100%; width: 106px; margin: 22px 0px 0px 0px; justify-content: center; align-items: center; text-decoration: none; }
.text_134 { width: auto; height: auto; overflow-wrap: break-word; color: rgba(255, 255, 255, 1); font-size: 16px; font-family: MiSans-Normal; font-weight: normal; text-align: center; line-height: normal; margin: 0; }
/* 在线咨询胶囊：悬停抬升 + 提亮（transform/filter 不触发回流） */
.text-wrapper_24 { cursor: pointer; transition: transform .2s ease, filter .2s ease; }
.text-wrapper_24:hover { transform: translateY(-2px); filter: brightness(1.1); }
.text-wrapper_28 { display: flex; flex-direction: column; justify-content: space-between; width: auto; height: auto; margin: 4px 0 0 0; }
.text_137 { width: auto; height: auto; overflow-wrap: break-word; color: rgba(17, 17, 17, 1.0); font-size: 14px; font-family: MiSans-Semibold, SourceHanSansCN-Normal, sans-serif; font-weight: 600; text-align: left; white-space: nowrap; line-height: 1.4; margin: 0; }
.paragraph_5 { width: auto; height: auto; overflow-wrap: break-word; color: rgba(80, 80, 80, 1); font-size: 13px; font-family: SourceHanSansCN-Normal; font-weight: normal; text-align: left; line-height: 1.8; margin: 10px 0 0 0; }
.text-wrapper_29 { display: flex; flex-direction: column; justify-content: space-between; width: auto; height: auto; margin: 4px 0 0 0; }
.text_138 { width: auto; height: auto; overflow-wrap: break-word; color: rgba(17, 17, 17, 1.0); font-size: 14px; font-family: MiSans-Semibold, SourceHanSansCN-Normal, sans-serif; font-weight: 600; text-align: left; white-space: nowrap; line-height: 1.4; margin: 0; }
.paragraph_2 { width: auto; max-width: 240px; height: auto; overflow-wrap: break-word; color: rgba(80, 80, 80, 1); font-size: 13px; font-family: SourceHanSansCN-Normal; font-weight: normal; text-align: left; line-height: 1.8; margin: 10px 0 0 0; }
.paragraph_3 { width: auto; max-width: 280px; height: auto; overflow-wrap: break-word; color: rgba(80, 80, 80, 1); font-size: 13px; font-family: SourceHanSansCN-Normal; font-weight: normal; text-align: left; line-height: 1.8; margin: 34px 0 0 0; }
.text-wrapper_30 { display: flex; flex-direction: column; justify-content: space-between; width: auto; height: auto; margin: 4px 0 0 0; }
.text_139 { width: auto; height: auto; overflow-wrap: break-word; color: rgba(17, 17, 17, 1.0); font-size: 14px; font-family: MiSans-Semibold, SourceHanSansCN-Normal, sans-serif; font-weight: 600; text-align: left; white-space: nowrap; line-height: 1.4; margin: 0; }
.paragraph_6 { width: auto; height: auto; overflow-wrap: break-word; color: rgba(17, 17, 17, 1.0); font-size: 13px; font-family: SourceHanSansCN-Normal; font-weight: normal; text-align: left; line-height: 1.9; margin: 10px 0 0 0; }
.box_48 { display: flex; flex-direction: column; justify-content: space-between; width: 82px; height: auto; margin: 0; }
.image-wrapper_15 { display: flex; flex-direction: column; background-color: rgba(255, 255, 255, 1.0); border-radius: 10px; height: 82px; width: 82px; }
.image_17 { width: 75px; height: 74px; margin: 4px 0 0 4px; }
.text_131 { width: 50px; height: 12px; overflow-wrap: break-word; color: rgba(17, 17, 17, 1.0); font-size: 13px; font-family: MiSans-Normal; font-weight: normal; text-align: left; line-height: 1.58928; margin: 8px 0 0 18px; }
.box_49 { display: flex; flex-direction: column; justify-content: space-between; width: 82px; height: auto; margin: 0 0 0 8px; }
.image-wrapper_16 { display: flex; flex-direction: column; background-color: rgba(255, 255, 255, 1.0); border-radius: 10px; height: 82px; width: 82px; }
.image_18 { width: 75px; height: 74px; margin: 4px 0 0 3px; }
.text_132 { width: 49px; height: 12px; overflow-wrap: break-word; color: rgba(17, 17, 17, 1.0); font-size: 13px; font-family: MiSans-Normal; font-weight: normal; text-align: left; line-height: 1.58928; margin: 8px 0 0 21px; }
.section_30 { display: flex; flex-direction: column; background-color: rgba(151, 151, 151, 0.3); width: 100%; height: 1px; margin: 36px 0px 0px 0px; }
.text_135 { display: block; width: auto; max-width: 920px; height: auto; overflow-wrap: break-word; color: rgba(85, 85, 85, 1); font-size: 12px; font-family: MiSans-Normal; font-weight: normal; text-align: center; line-height: 1.6; margin: 16px auto 20px; }
/* 页脚导航可含「代理加盟」第三行 */
.box_36 .text-wrapper_30 { height: auto; min-height: 57px; }
.box_36 .paragraph_6 { height: auto; min-height: 33px; }

/* ==========================================================================
   移动端（≤860px）：导航两行排布 + 页脚纵向堆叠
   ========================================================================== */
@media (max-width: 860px) {
  /* ---------- 顶部导航 ---------- */
  .site-nav {
    width: auto; height: auto;
    margin: 12px 12px 0;
    flex-wrap: wrap; row-gap: 12px;
    padding-bottom: 6px;
  }
  .nav-logo-img { width: 92px; height: auto; }
  .nav-divider { margin: 8px 0 0 10px; }
  .nav-slogan { width: auto; margin: 7px 0 0 10px; font-size: 14px; line-height: 15px; }
  /* 第一行：logo + slogan（左）｜登录/注册（右） */
  .nav-login { order: 2; margin: 0 0 0 auto; }
  .nav-register { order: 2; margin: 0 0 0 8px; }
  .nav-user { order: 2; margin: 0 0 0 auto; }
  /* 第二行：首页 / 媒体资源 / 代理加盟 */
  .nav-home { order: 3; width: auto; height: 30px; line-height: 30px; font-size: 15px; margin: 0; }
  .nav-media { order: 4; width: auto; height: 30px; margin: 0 0 0 20px; }
  .nav-media__trigger { width: auto; height: 30px; line-height: 30px; font-size: 15px; }
  .nav-agent { order: 5; width: auto; height: 30px; line-height: 30px; font-size: 15px; margin: 0 0 0 20px; }
  .nav-phone-icon, .nav-phone { display: none; }
  /* 下拉菜单：触屏点按展开（JS 切换 .is-open） */
  .nav-media__menu { left: -12px; min-width: 190px; }
  .nav-media.is-open .nav-media__menu { display: block; }

  /* ---------- 页脚 ---------- */
  .box_36 { padding: 0 16px; box-sizing: border-box; }
  .section_28 { flex-wrap: wrap; justify-content: center; gap: 22px 34px; margin-top: 26px; }
  .box_47 { width: 100%; align-items: center; text-align: center; }
  .section_29 { justify-content: center; }
  .image-text_61 { width: auto; justify-content: center; gap: 10px; margin-top: 14px; }
  .text-wrapper_24 { margin: 14px auto 0; align-items: center; }
  .text-wrapper_28, .text-wrapper_29, .text-wrapper_30 { text-align: center; align-items: center; }
  .paragraph_2, .paragraph_3, .paragraph_5, .paragraph_6 {
    max-width: 100%; margin-left: auto; margin-right: auto; text-align: center;
  }
  .box_48, .box_49 { align-items: center; }
  .text-wrapper_28 .paragraph_5 { white-space: normal; }
}
