/* ==========================================================
   公共样式：变量 / 重置 / 头部 / 页脚 / 通用组件
   设计稿：标策标书 首页（1920 宽）
   ========================================================== */

:root {
  --red: #C8000A;
  --red-dark: #A50008;
  --red-light: #FF3B3B;
  --ink: #1A1A1A;
  --ink-2: #4A4A4A;
  --gray: #7A7A7A;
  --gray-light: #F5F5F7;
  --line: #E8E8EC;
  --white: #FFFFFF;
  --container: 1350px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

/* ==========================================================
   内容保护：案例 / 文章的标题与正文禁止选中与复制
   注意：这是前端层面的限制，仅阻挡普通访客的手动操作，
        无法阻止查看源码、抓包或脚本直接请求。
   ========================================================== */
.cases-grid,
.case-detail,
.news-list-area,
.detail-body,
.detail-nav,
.theme-content {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* 图片禁止拖拽保存
   注意：不能加 pointer-events: none，否则 click 事件无法触发，
        会导致标书图片放大等功能失效；改为在 JS 里阻止 dragstart */
.cases-grid img,
.case-detail img,
.news-list-area img,
.detail-body img,
.theme-content img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  user-drag: none;
}

/* 允许选中输入框与可复制号码，避免影响正常交互 */
.cases-grid input,
.case-detail input,
.news-list-area input,
.detail-body input,
.theme-content input,
.no-copy-allow,
[data-copy] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  vertical-align: middle;
  border: 0;
}

button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.container {
  width: var(--container);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================== 头部 ===================== */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 500;
}

.header-top {
  padding: 20px 0;
}

.header-top .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: block;
  flex-shrink: 0;
  height: 52px;
}

.logo img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* 主导航（同一行，横向） */
.header-nav {
  flex: 1;
}

.header-nav .nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.header-nav .nav-list a {
  position: relative;
  display: inline-block;
  padding: 6px 18px;
  font-size: 17px;
  color: var(--ink);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.header-nav .nav-list a:hover {
  color: var(--red);
}

.header-nav .nav-list a.active {
  background: #F00000;
  color: var(--white);
}

/* 选中框底部居中：倒三角 + 尖端 5px 小椭圆 */
.header-nav .nav-list a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #F00000;
}

.header-nav .nav-list a.active::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translate(-50%, -50%);
  width: 10px;
  height: 5px;
  border-radius: 20px;
  background: #F00000;
}

/* 右侧热线 */
.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-phone .phone-icon {
  display: block;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: url("../img/Group%20717.png") center / contain no-repeat;
}

.header-phone .phone-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.header-phone .phone-label {
  font-size: 13px;
  color: #BA0404;
}

.header-phone .phone-number {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-size: 20px;
  font-weight: 700;
  color: #BA0404;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.header-phone .phone-number a {
  color: inherit;
  min-width: 0;
}

.header-phone .phone-number .btn-copy {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.header-phone:hover .phone-number .btn-copy {
  opacity: 1;
  visibility: visible;
}

/* 复制按钮 */
.btn-copy {
  flex-shrink: 0;
  padding: 3px 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 3px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-copy:hover {
  background: var(--red);
  color: var(--white);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.nav-toggle svg {
  display: block;
  width: 26px;
  height: 26px;
}

/* 手机端顶栏电话，仅移动端显示，默认隐藏 */
.mobile-header-phone {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 10px 4px 3px;
  /*border: 1px solid var(--red);*/
  border-radius: 999px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.mobile-header-phone .phone-icon {
  display: block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: url("../img/Group%20717.png") center / contain no-repeat;
}

.mobile-header-phone-text {
  transform: translateY(1px);
}

/* ===================== 手机端侧滑菜单 ===================== */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  visibility: hidden;
}

.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.mobile-nav-close svg {
  display: block;
  width: 24px;
  height: 24px;
}

.mobile-nav-menu {
  flex: 1;
  overflow-y: auto;
  padding: 72px 0 24px;
}

.mobile-nav-menu .nav-list a {
  display: block;
  padding: 16px 24px;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid #eee;
}

.mobile-nav-menu .nav-list a.active {
  color: var(--red);
  font-weight: 700;
}

.mobile-nav-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 32px;
  border-top: 1px solid #eee;
}

.mobile-nav-phone .phone-icon {
  width: 40px;
  height: 40px;
  color: var(--red);
}

.mobile-nav-phone .phone-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mobile-nav-phone .phone-label {
  font-size: 13px;
  color: var(--gray);
}

.mobile-nav-phone .phone-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

/* ===================== 通用区块标题 ===================== */
.section-head {
  text-align: center;
  margin-bottom: 46px;
}

.section-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 2px;
}

.section-sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.8;
}




/* ===================== 面包屑 ===================== */
.breadcrumb {
  padding: 20px 0;
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #999999;
}

.breadcrumb-inner a {
  color: #999999;
  transition: color 0.2s ease;
}

.breadcrumb-inner a:hover {
  color: #222222;
}

.breadcrumb-inner a[aria-current="page"] {
  color: #222222;
}

.breadcrumb-inner .sep {
  color: #999999;
}

/* ===================== 分页 ===================== */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  font-size: 14px;
  color: #8A8A90;
}

.pager-info {
  margin-right: 6px;
}

/* 首页 / 尾页按钮 */
.pager-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  color: #6E6E74;
  background: var(--white);
  border: 1px solid #DFDFE4;
  border-radius: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.pager-btn:hover {
  color: var(--red);
  border-color: var(--red);
}

/* 页码：圆形，悬停与选中同色 */
.pager-pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pager-pages li {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #6E6E74;
  background: transparent;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.pager-pages li:hover,
.pager-pages li.active {
  background: var(--red);
  color: var(--white);
}

/* 上一页 / 下一页：与页码同样的圆形样式 */
.pager-pages li.pager-arrow a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 15px;
  line-height: 1;
  color: inherit;
}

.pager-pages li.pager-arrow:hover {
  background: var(--red);
  color: var(--white);
}

/* 首页 / 尾页：胶囊形，与页码同高 */
.pager-pages li.pager-btn-cell {
  width: auto;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid #DFDFE4;
  background: var(--white);
}

.pager-pages li.pager-btn-cell a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 13px;
  line-height: 1;
  color: inherit;
}

.pager-pages li.pager-btn-cell:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.pager-empty {
  padding: 60px 0;
  text-align: center;
  color: #9A9A9F;
  font-size: 15px;
}

/* ===================== 友情链接 ===================== */
.links {
  padding: 44px 0 52px;
  background: var(--white);
}

.links-inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  padding-top: 6px;
  border-top: 1px solid #F0F0F3;
}

.links-title {
  display: flex;
  align-items: center;
  gap: 47px;
  font-size: 30px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 2px;
}

.links-arrow {
  display: block;
  flex: 1;
  height: 34px;
  background: url("../img/Vector%20306.png") no-repeat left center;
  background-size: auto 100%;
}

.links-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-top: 6px;
  font-size: 14px;
  color: #6B6B6B;
}

.links-list .map-label {
  color: #6B6B6B;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.2s ease;
}

.links-list .map-label:hover {
  color: var(--red);
}

.links-list a {
  color: #6B6B6B;
  transition: color 0.2s ease;
}

.links-list a:hover {
  color: var(--red);
}


/* ===================== 页脚 ===================== */
.site-footer {
  margin-top: 0;
  padding-bottom: 0;
  background: var(--white);
}

.footer-main {
  border-top: 1px solid var(--line);
  padding: 44px 0 52px;
}

.footer-main .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-company {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.footer-company .footer-logo {
  height: 44px;
}

.footer-company .footer-logo img {
  display: block;
  height: 100%;
  width: auto;
}

.footer-company .company-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
}

.footer-service {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.footer-service .ico-24 {
  display: block;
  width: 30px;
  height: 30px;
  background: url("../img/Group%20999.png") center / contain no-repeat;
}

.footer-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.footer-line .label {
  color: var(--ink);
}

.footer-line a {
  transition: color 0.2s ease;
}

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

/* 复制按钮：默认隐藏，鼠标移入所在行才显示 */
.footer-line .btn-copy {
  margin-left: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.footer-line:hover .btn-copy {
  opacity: 1;
  visibility: visible;
}

/* 触屏设备（无 hover 能力）一律常显复制按钮，
   覆盖平板横屏等宽度超过 1024px 的情况 */
@media (hover: none) {
  .footer-line .btn-copy {
    opacity: 1;
    visibility: visible;
  }

  .header-phone .phone-number .btn-copy {
    opacity: 1;
    visibility: visible;
  }
}

.footer-aside {
  text-align: center;
  flex-shrink: 0;
  margin-top: 66px;
}

.footer-aside img {
  width: 118px;
  height: 118px;
  display: block;
  margin: 0 auto 8px;
}

.footer-aside p {
  font-size: 13px;
  color: var(--gray);
}

.footer-copyright {
  background: #F6F6F6;
  padding: 22px 0;
  text-align: center;
}

.footer-copyright p {
  font-size: 13px;
  color: #999;
  line-height: 1.9;
}

.footer-copyright a {
  color: #999;
  transition: color 0.2s ease;
}

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

/* ===================== Toast ===================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 44px;
  z-index: 1200;
  transform: translate(-50%, 16px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--white);
  color: var(--ink-2);
  font-size: 14px;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast .toast-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #22B573;
  color: #fff;
  font-size: 12px;
}

/* ===================== 平板 ===================== */
@media (max-width: 1440px) {
  .header-top .container {
    gap: 24px;
  }

  .header-nav .nav-list a {
    padding: 6px 14px;
    font-size: 16px;
  }

  .header-phone .phone-number {
    font-size: 18px;
  }

  .header-phone .phone-icon {
    width: 36px;
    height: 36px;
  }
}

/* ===================== 手机 ===================== */
@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }

  .header-phone {
    display: none;
  }

  .mobile-header-phone {
    display: flex;
  }

  .nav-toggle {
    display: flex;
    margin-left: 8px;
  }

  .header-top .container {
    gap: 12px;
  }

  .header-top {
    padding: 14px 0;
  }

  .logo {
    height: 42px;
    flex-shrink: 0;
  }

  .footer-main .container {
    flex-direction: column;
    gap: 28px;
  }

  .footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-company {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
  }

  .footer-service {
    justify-content: center;
  }

  .footer-line {
    justify-content: center;
  }

  /* 触屏设备没有 hover，底部复制按钮改为常显，否则手机上永远点不到 */
  .footer-line .btn-copy {
    opacity: 1;
    visibility: visible;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.3;
  }

  .footer-aside {
    text-align: center;
    width: 100%;
    margin-top: 0;
  }

  .footer-aside img {
    margin: 0 auto 8px;
  }

  .links-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px!important;
  }

  .mobile-header-phone {
    padding: 3px 8px 3px 2px;
    gap: 4px;
    font-size: 12px;
  }

  .mobile-header-phone .phone-icon {
    width: 22px;
    height: 22px;
  }

  .breadcrumb-inner {
    font-size: 12px;
  }

  .pager {
    gap: 6px;
    margin-top: 24px;
    font-size: 12px;
  }

  .pager-info {
    width: 100%;
    text-align: center;
    margin: 0 0 4px;
  }

  .pager-btn {
    min-width: 44px;
    height: 28px;
    padding: 0 8px;
    font-size: 12px;
  }

  .pager-pages {
    gap: 6px;
  }

  .pager-pages li {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .logo {
    height: 38px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-sub {
    font-size: 15px;
    margin-top: 12px;
  }

  .footer-company .company-name {
    font-size: 16px;
  }

  .footer-company .footer-logo {
    height: 36px;
  }
  .footer-main {
    padding: 20px 0 20px;
  }
  .footer-line {
    font-size: 14px;
  }
  .footer-main .container {
    flex-direction: column;
    gap: 0px;
  }

  .links-arrow {
    display: none;
  }

  .links {
    padding: 0 0 10px;
  }

  .links-inner {
    gap: 4px;
    padding-top: 22px!important;
  }
  .links-title {
    font-size: 20px;
  }
  .links-list {
  font-size: 12px;
  gap: 8px 16px;
  }
}
