/* ============================================================
   中科领创官网 - 全局样式（复刻自 www.zokelink.com）
   配色系统: 品牌蓝 #0F89D1 / 深蓝 #095DAD / 文字蓝 #1F497D
   字体: Microsoft YaHei / 标题 FangSong_GB2312
   栅格: 1200px 居中
   ============================================================ */

:root {
  --brand-blue: #0F89D1;
  --brand-deep: #095DAD;
  --text-blue: #1F497D;
  --text-gray: #565656;
  --text-dark: #262419;
  --bg-light: #F0F2F4;
  --border-gray: #DDDDDD;
  --header-height: 72px;
  --container: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #333;
  background: #fff;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; border: 0; vertical-align: middle; }

.container { width: var(--container); max-width: 100%; margin: 0 auto; padding: 0 15px; }

/* ---------- 页头（普冉式：透明悬浮吸顶，滚动后变实底） ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease;
}

/* 滚动后/子页面：实底白底 */
.site-header.solid {
  background: rgba(255,255,255,.98);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}

/* 首页Hero上：透明 + 白色文字 */
.site-header.transparent .nav-link,
.site-header.transparent .logo-name,
.site-header.transparent .logo-vision { color: #fff; }

.site-header.transparent .logo-word { border-left-color: rgba(255,255,255,.35); }
.site-header.transparent .logo-vision { color: rgba(255,255,255,.72); }
.site-header.transparent .menu-toggle span { background: #fff; }

.site-header .header-top { height: 72px; display: flex; align-items: center; }

/* 子页面页头下方主图被遮挡的补偿 */
body.has-fixed-header .hero-slider { margin-top: 0; }
body.subpage .page-banner { margin-top: 72px; }
body.subpage .biz-hero,
body.subpage .about-hero,
body.subpage .contact-hero { margin-top: 72px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 max(4vw, 20px);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-logo img { height: 40px; width: auto; }

.header-logo .logo-word {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid #DDD;
  padding-left: 12px;
}

.header-logo .logo-name {
  font-size: 19px;
  color: #1a1a1a;
  font-weight: bold;
  letter-spacing: 2px;
  line-height: 1.2;
  transition: color .3s;
}

.header-logo .logo-vision {
  font-size: 11px;
  color: #888;
  letter-spacing: 2px;
  margin-top: 2px;
  text-transform: uppercase;
  transition: color .3s;
}

/* ---------- 主导航 ---------- */
.main-nav > ul {
  display: flex;
  align-items: center;
}

.main-nav .nav-item {
  position: relative;
}

.main-nav .nav-link {
  display: block;
  height: 72px;
  line-height: 72px;
  padding: 0 16px;
  font-size: 15px;
  letter-spacing: 1px;
  color: #333;
  cursor: pointer;
  position: relative;
  transition: color .25s;
}

/* 普冉式下划线（hover时白线/蓝线展开） */
.main-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--brand-blue);
  transition: width .35s ease;
}

.site-header.transparent .nav-link::before { background: #fff; }

.main-nav .nav-link:hover::before,
.main-nav .nav-item.active .nav-link::before { width: 26px; }

.main-nav .nav-link:hover,
.main-nav .nav-item.active .nav-link { color: var(--brand-deep); }

.site-header.transparent .nav-link:hover,
.site-header.transparent .nav-item.active .nav-link { color: #fff; }

/* 下拉菜单（普冉式白底卡片） */
.main-nav .nav-sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  display: block;
  min-width: 150px;
  background: #fff;
  z-index: 950;
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
  border-radius: 4px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.main-nav .nav-item:hover .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 下拉菜单顶部小三角 */
.main-nav .nav-sub::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top: none;
  border-bottom-color: #fff;
}

.main-nav .nav-sub a {
  display: block;
  padding: 11px 20px;
  font-size: 13px;
  color: #444;
  white-space: nowrap;
  transition: all .2s;
  position: relative;
}

.main-nav .nav-sub a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: var(--brand-deep);
  transition: height .25s;
}

.main-nav .nav-sub a:hover { color: var(--brand-deep); padding-left: 26px; }
.main-nav .nav-sub a:hover::before { height: 60%; }

/* 代理产线分组标题 */
.main-nav .nav-sub .sub-group {
  padding: 10px 20px 4px;
  font-size: 11px;
  color: #999;
  letter-spacing: 2px;
  border-top: 1px solid #F2F2F2;
  margin-top: 6px;
}

.main-nav .nav-sub .sub-group:first-child { border-top: none; margin-top: 0; }

/* ---------- 代理产线：横向多列展示（纵向显示不完，改横向） ---------- */
.main-nav .nav-item .nav-sub.nav-sub-wide {
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 860px;
  max-width: 92vw;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px 18px;
}

.main-nav .nav-item:hover .nav-sub.nav-sub-wide {
  transform: translateX(-50%) translateY(0);
}

/* 横向布局下的分组标题：占满整行 */
.main-nav .nav-sub.nav-sub-wide .sub-group {
  grid-column: 1 / -1;
  padding: 8px 0 6px;
  font-size: 12px;
  color: var(--brand-deep);
  font-weight: bold;
  letter-spacing: 3px;
  border-top: 1px solid #EEE;
  margin-top: 8px;
  border-bottom: 1px solid #F5F5F5;
  margin-bottom: 4px;
}

.main-nav .nav-sub.nav-sub-wide .sub-group:first-child { border-top: none; margin-top: 0; }

/* 横向布局下的链接：不再nowrap，允许居中排列 */
.main-nav .nav-sub.nav-sub-wide a {
  padding: 9px 12px;
  font-size: 13px;
  white-space: nowrap;
  text-align: left;
  border-radius: 3px;
}

.main-nav .nav-sub.nav-sub-wide a:hover {
  padding-left: 18px;
  background: #F5F9FC;
}

/* 移动端代理产线横向改回纵向 */
@media (max-width: 768px) {
  .main-nav .nav-item .nav-sub.nav-sub-wide {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr 1fr;
    padding: 12px 16px;
    position: static;
    transform: none;
    box-shadow: none;
  }
}

/* 中英文切换按钮 */
.lang-switch {
  margin-left: 16px;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid currentColor;
  border-radius: 16px;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all .25s;
  color: #333;
}

.site-header.transparent .lang-switch { color: #fff; }
.lang-switch:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-blue);
  transition: transform .25s, opacity .25s;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 通用板块标题（原站风格） ---------- */
.section { padding: 50px 0; }

.section-title {
  font-family: "FangSong_GB2312", "仿宋", "STFangsong", serif;
  font-size: 28px;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 12px;
}

.section-title-bar {
  width: 56px;
  height: 4px;
  background: var(--brand-deep);
  margin: 0 auto 36px;
  border: none;
}

.section-sub {
  text-align: center;
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 30px;
}

/* ---------- 按钮 ---------- */
.btn-primary {
  display: inline-block;
  height: 40px;
  line-height: 40px;
  padding: 0 22px;
  background: var(--brand-deep);
  color: #fff;
  font-size: 14px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .25s;
}

.btn-primary:hover { background: var(--brand-blue); color: #fff; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid #E8E8E8;
  padding: 28px 0 20px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.footer-left { display: flex; gap: 26px; align-items: flex-start; }

.footer-qr { text-align: center; }

.footer-qr img {
  width: 65px;
  height: auto;
  margin-bottom: 4px;
}

.footer-qr .qr-title {
  font-family: "FangSong_GB2312", "仿宋", serif;
  font-size: 14px;
  color: var(--text-dark);
}

.footer-info {
  padding-top: 6px;
}

.footer-brand {
  font-family: "FangSong_GB2312", "仿宋", serif;
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.footer-slogan { font-size: 13px; color: #888; margin-bottom: 12px; }

.footer-links { font-size: 13px; color: #666; }

.footer-links a { color: #666; }
.footer-links a:hover { color: var(--brand-blue); }

.footer-copyright {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #EEE;
  font-size: 12px;
  color: #999;
  text-align: center;
}

.footer-copyright a { color: #999; }
.footer-copyright a:hover { color: var(--brand-blue); }

.footer-qr-big {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.footer-qr-big .qr-item { text-align: center; }

.footer-qr-big img { width: 90px; height: auto; }

.footer-qr-big .qr-label { font-size: 13px; color: var(--text-dark); margin-top: 6px; }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 30px;
  bottom: 60px;
  width: 44px;
  height: 44px;
  background: var(--brand-blue);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  display: none;
  z-index: 999;
  box-shadow: 0 3px 8px rgba(0,0,0,.18);
}

.back-top:hover { background: var(--brand-deep); }

/* ---------- 子页面 banner ---------- */
.page-banner { position: relative; overflow: hidden; min-height: 420px; display: flex; align-items: center; }

.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.page-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,20,36,.42) 0%, rgba(6,20,36,.5) 100%); z-index: 1; }

.page-banner .page-title { position: relative; z-index: 2; width: 100%; }

.page-banner .page-title {
  text-align: center;
  font-family: "FangSong_GB2312", "仿宋", serif;
  font-size: 40px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  letter-spacing: 4px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  background: #F7F7F7;
  border-bottom: 1px solid #EFEFEF;
  padding: 12px 0;
  font-size: 13px;
  color: #999;
}

.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: var(--brand-blue); }
.breadcrumb .sep { margin: 0 8px; color: #CCC; }

/* ---------- 文章详情通用 ---------- */
.article-content {
  padding: 40px 0 60px;
}

.article-content h1.article-title {
  font-size: 26px;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 10px;
  font-weight: normal;
}

.article-meta {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid #EEE;
}

.article-body {
  font-size: 15px;
  color: #444;
  line-height: 2;
}

.article-body p { margin-bottom: 16px; text-align: justify; }
.article-body img { display: block; margin: 18px auto; max-width: 100%; }

/* ---------- 动画 ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeInUp .8s ease both;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  :root { --container: 100%; }
  .section { padding: 36px 0; }
  .section-title { font-size: 24px; }
}

@media (max-width: 768px) {
  .site-header { height: auto; }
  .site-header.transparent { background: rgba(6,22,38,.95); }
  .site-header .header-top { height: 60px; }
  .header-inner { height: 60px; }
  .header-logo img { height: 32px; }
  .header-logo .logo-name { font-size: 15px; }
  .header-logo .logo-vision { font-size: 10px; }
  body.subpage .page-banner, body.subpage .biz-hero, body.subpage .about-hero, body.subpage .contact-hero { margin-top: 60px; }
  .page-banner { min-height: 320px; }

  .menu-toggle { display: flex; }

  .lang-switch { display: none; }

  .main-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
    z-index: 980;
  }

  .main-nav.open { transform: translateX(0); }

  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 10px 0 40px; }

  .main-nav .nav-link { height: auto; line-height: 1.6; padding: 14px 22px; font-size: 16px; color: #333 !important; border-bottom: 1px solid #F2F2F2; }

  .main-nav .nav-link::before { display: none; }

  .main-nav .nav-sub {
    position: static;
    display: none;
    width: 100%;
    background: #FAFAFA;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-radius: 0;
  }

  .main-nav .nav-item.expanded .nav-sub { display: block; }

  .main-nav .nav-sub a { padding: 12px 40px; color: #555 !important; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-left { flex-direction: column; align-items: center; }
  .footer-qr-big { justify-content: center; }

  .page-banner .page-title { font-size: 28px; }

  .article-content h1.article-title { font-size: 20px; }

  .back-top { right: 14px; bottom: 40px; }
}
