/* ==========================================================
   夺标标书 全站公共样式
   基础重置 / 公共头部 / 公共底部 / 友情链接 / 弹窗
   首页各区块专属样式见 index.css
   ========================================================== */

:root {
  --red: #c8161d;
  --red-dark: #a80f15;
  --red-light: #e6333a;
  --red-bg: #fdf2f2;
  --text: #2b2b2b;
  --gray: #666666;
  --gray-light: #999999;
  --bg: #f7f7f8;
  --line: #ececec;
  --dark: #333333;
  --radius: 10px;
  --container: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

img { border: 0; max-width: 100%; vertical-align: middle; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* 视觉隐藏但供 SEO / 读屏读取 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: var(--container);
  max-width: 92%;
  margin: 0 auto;
}

/* ==========================================================
   通用区块标题
   ========================================================== */
.section { padding: 70px 0; }

.section-head {
  text-align: center;
  margin-bottom: 46px;
}

.section-head .title-img { height: 44px; width: auto; }

.section-head .subtitle {
  margin-top: 18px;
  font-size: 17px;
  color: var(--gray);
}

/* ==========================================================
   面包屑导航（全站复用）
   ========================================================== */
.breadcrumb {
  background: #fff;
  padding: 18px 0;
  font-size: 14px;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--gray);
  transition: color .2s;
}

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

.breadcrumb .sep {
  margin: 0 10px;
  color: var(--gray-light);
}

.breadcrumb .current {
  color: var(--text);
}

/* ==========================================================
   公共头部 header（复用）
   ========================================================== */
.site-header {
  background: var(--red-bg);
  position: sticky;
  top: 0;
  z-index: 300;
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  height: 92px;
}

.site-header .logo {
  order: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  /* Logo 用 h1 包裹，去掉标题默认的间距与字号影响 */
  margin: 0;
  font-size: 0;
  line-height: 0;
}

.site-header .logo a { display: flex; align-items: center; }

.site-header .logo img { height: 58px; width: auto; }

/* 导航：PC 端居中 */
.main-nav {
  order: 2;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.main-nav a {
  display: block;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0 22px;
  height: 92px;
  line-height: 92px;
  font-size: 16px;
  color: var(--text);
  transition: color .2s, background .2s;
}

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

.main-nav a.active {
  background: var(--red);
  color: #fff;
}

/* 头部电话 */
.header-phone {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.header-phone img { width: 28px; height: 28px; }

/* 电话图标：i 标签 + 背景图，尺寸跟随字号（1em=字号），各断点自动缩放 */
.header-phone .icon-phone {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.4em;
  height: 1.4em;
  background: url("../img/Group 717.png") center / contain no-repeat;
}

/* 头部右侧容器（电话 + 菜单按钮），PC 端置于最右 */
.header-right {
  order: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 201;
}

/* 全屏菜单底部联系信息（桌面端隐藏） */
.mobile-nav-foot { display: none; }

/* 移动端导航按钮（默认隐藏） */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* ==========================================================
   公共底部 footer（复用）：友情链接 + 联系栏 + 版权
   ========================================================== */

/* 友情链接 */
.friend-links {
  background: #fff;
  padding: 60px 0 50px;
  border-top: 1px solid #C2C2C2;
}

.friend-links .link-list {
  margin-top: 34px;
  text-align: center;
  font-size: 14px;
  color: var(--gray);
  line-height: 2.4;
}

.friend-links .link-list a { margin: 0 10px; }
/* hover 统一变红并加粗 */
.friend-links .link-list a:hover { color: var(--red); font-weight: 700; }

/* 友情链接下方公司 Logo，居中 */
.friend-logo {
  margin-top: 36px;
  text-align: center;
}

.friend-logo img {
  max-width: 100%;
  height: auto;
  width: 460px;
}

/* 联系信息栏 */
.site-contact {
  background: var(--red);
  color: #fff;
  padding: 44px 0;
}

.site-contact .contact-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.site-contact .qr {
  text-align: center;
}

.site-contact .qr img {
  width: 150px;
  height: 150px;
  background: #fff;
  padding: 8px;
  border-radius: 6px;
}

.site-contact .qr .qr-tip { margin-top: 10px; font-size: 14px; }

.site-contact .contact-info { font-size: 17px; line-height: 2.3; }

.site-contact .contact-info .row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 复制按钮：默认隐藏，鼠标移到该行才显示 */
.copy-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .85);
  color: #fff;
  border-radius: 6px;
  padding: 2px 12px;
  font-size: 13px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s, background .2s;
}

.row:hover .copy-btn,
.copy-btn:focus {
  opacity: 1;
  visibility: visible;
}

.copy-btn:hover { background: rgba(255, 255, 255, .18); }

/* 版权栏 */
.site-copyright {
  background: var(--dark);
  color: #bbb;
  text-align: center;
  padding: 30px 0;
  font-size: 14px;
  line-height: 2;
}

.site-copyright .beian { display: flex; align-items: center; justify-content: center; gap: 10px; }

.site-copyright .beian a { color: #bbb; }
.site-copyright .beian a:hover { color: #fff; }
.site-copyright .beian .beian-sep { color: #666; }

/* 复制成功弹窗 */
.copy-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 460px;
  max-width: 90%;
  background: #fff;
  border-radius: 16px;
  padding: 36px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  z-index: 999;
  display: none;
}

.copy-toast.show { display: block; }

.copy-toast .toast-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.copy-toast .toast-head img { width: 28px; height: 28px; }

.copy-toast .toast-body { color: var(--red); font-size: 17px; line-height: 2.2; }

.toast-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 998;
  display: none;
}

.toast-mask.show { display: block; }

/* 全屏菜单弹出动画 */
@keyframes navFade {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   公共响应式
   ========================================================== */
@media (max-width: 1024px) {
  .main-nav { gap: 0; }
  .main-nav a { padding: 0 14px; font-size: 15px; }
  .header-phone { font-size: 16px; gap: 6px; }
  .header-phone img { width: 22px; height: 22px; }
}

/* 平板及以下：导航折叠为汉堡菜单 */
@media (max-width: 900px) {
  /* 头部：左 Logo，右侧电话 + 菜单按钮（按钮在最右，电话在按钮左侧） */
  .site-header .header-inner { height: 56px; justify-content: space-between; gap: 12px; }
  .site-header .logo { flex: 0 0 auto; min-width: 0; }
  .site-header .logo img { height: 34px; width: auto; }
  .header-right { flex: 0 0 auto; gap: 10px; }
  .header-phone {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    font-size: 13px;
    gap: 6px;
    font-weight: 700;
  }
  .header-phone img { display: block; width: 18px; height: 18px; }

  .nav-toggle {
    display: flex !important;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
  .nav-toggle span { background: var(--red); width: 22px; }

  /* 全屏菜单（白色背景，独立 class 避免与桌面导航层叠干扰） */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #fff !important;
    background-image: none;
    z-index: 200;
    padding: 84px 9% 40px;
    overflow-y: auto;
    display: none;
    box-shadow: -8px 0 24px rgba(0, 0, 0, .08);
  }

  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu a {
    height: auto;
    line-height: 1.3;
    padding: 15px 4px;
    font-size: 19px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu a:hover { color: var(--red); }
  .mobile-menu a.active { background: transparent; color: var(--red); font-weight: 700; }

  /* 全屏菜单底部联系信息 */
  .mobile-nav-foot {
    display: block;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--gray);
    font-size: 14px;
    line-height: 2;
  }

  /* 菜单按钮 激活态 → 变成深红 X */
  .nav-toggle.active span { background: var(--red); }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* 菜单打开时锁定背景滚动 */
  body.nav-open { overflow: hidden; }
  /* 菜单展开时隐藏头部电话，仅保留右上角关闭按钮 */
  body.nav-open .header-phone { display: none; }
}

/* 平板 / 大屏手机：区块与底部间距 */
@media (max-width: 768px) {
  /* 区块通用间距 */
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head .title-img { height: 34px; }
  .section-head .subtitle { margin-top: 12px; font-size: 15px; }

  /* 友情链接：移动端隐藏标题与链接列表，仅保留公司 Logo */
  .friend-links { padding: 24px 0; }
  .friend-links .section-head,
  .friend-links .link-list { display: none; }
  .friend-logo { margin-top: 0; }
  .friend-logo img { width: 280px; }

  /* 联系栏 */
  .site-contact { padding: 32px 0; }
  .site-contact .contact-inner { flex-direction: column; gap: 22px; }
  .site-contact .qr img { width: 120px; height: 120px; }
  .site-contact .contact-info { font-size: 15px; line-height: 2; width: 100%; }
  .site-contact .contact-info .row { flex-wrap: wrap; gap: 8px 12px; }
  /* 触屏无 hover，复制按钮常显 */
  .copy-btn { padding: 2px 12px; font-size: 13px; opacity: 1; visibility: visible; }

  /* 版权栏 */
  .site-copyright { padding: 22px 0; font-size: 12px; }

  /* 复制弹窗 */
  .copy-toast { padding: 26px 24px; border-radius: 14px; }
  .copy-toast .toast-head { font-size: 18px; margin-bottom: 16px; }
  .copy-toast .toast-body { font-size: 15px; line-height: 2; }
}

/* 小屏手机 */
@media (max-width: 480px) {
  .container { max-width: 90%; }
  .section { padding: 34px 0; }

  /* 小屏头部进一步收窄 */
  .site-header .header-inner { height: 52px; gap: 8px; }
  .site-header .logo img { height: 30px; }
  .header-phone { font-size: 12px; }
  .nav-toggle { width: 36px; height: 36px; }
}
