﻿/* ============ 上海航科电连接器 —— 多页面站点 · 酷炫工业科技风 ============ */
body.shhk-page,
.shhk-site {
  --navy: #060d1f;
  --navy-2: #0a1832;
  --navy-3: #0f2247;
  --blue: #2563ff;
  --blue-light: #4d94ff;
  --cyan: #19e3f0;
  --cyan-deep: #0bb8d4;
  --gray-bg: #f5f7fc;
  --gray-line: #e4e9f2;
  --text: #16203a;
  --text-soft: #5a6678;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(15, 34, 71, 0.10);
  --shadow-hover: 0 24px 70px rgba(37, 99, 255, 0.22);
  --glow: 0 0 40px rgba(25, 227, 240, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.shhk-page { font-family: "PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif; color: var(--text); background: var(--white); line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ---------- 导航 ---------- */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: all .4s var(--ease); }
body.admin-bar .shhk-site .navbar { top: 32px; }
.navbar.solid, .navbar.scrolled { background: rgba(255,255,255,.94); backdrop-filter: blur(16px); box-shadow: 0 4px 30px rgba(10,24,50,.10); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-logo-icon { display: block; width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; }
.footer-logo-icon { width: 52px; height: 52px; flex-basis: 52px; padding: 5px; border-radius: 6px; background: #fff; }
.logo-icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg,var(--blue),var(--cyan)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 21px; box-shadow: 0 6px 20px rgba(37,99,255,.45); position: relative; overflow: hidden; }
.logo-icon::after { content:''; position:absolute; inset:0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); transform: translateX(-120%); animation: shine 4s infinite; }
@keyframes shine { 0%,60%{transform:translateX(-120%)} 100%{transform:translateX(120%)} }
.logo-text { display: grid; width: 234px; line-height: 1; gap: 5px; flex: 0 0 auto; }
.logo-text .cn { display: block; width: 100%; font-size: 19px; font-weight: 800; letter-spacing: 0; color: var(--white); white-space: nowrap; transition: color .4s; }
.logo-text .en { display: block; width: 100%; font-size: 8.7px; color: rgba(255,255,255,.55); letter-spacing: 0; white-space: nowrap; text-align: justify; text-align-last: justify; transition: color .4s; }
.navbar.light .logo-text .cn, .navbar.solid .logo-text .cn, .navbar.scrolled .logo-text .cn { color: var(--navy); }
.navbar.light .logo-text .en, .navbar.solid .logo-text .en, .navbar.scrolled .logo-text .en { color: var(--text-soft); }

.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a { position: relative; padding: 11px 18px; font-size: 15.5px; font-weight: 500; color: rgba(255,255,255,.88); border-radius: 8px; transition: all .3s; }
.navbar.light .nav-links a, .navbar.solid .nav-links a, .navbar.scrolled .nav-links a { color: var(--text); }
.nav-links a::after { content:''; position:absolute; left:50%; bottom:6px; width:0; height:2px; background: linear-gradient(90deg,var(--blue),var(--cyan)); transform: translateX(-50%); transition: width .3s var(--ease); border-radius: 2px; }
.nav-links a:hover::after, .nav-links a.active::after { width: 22px; }
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }
.navbar.light .nav-links a:hover, .navbar.solid .nav-links a:hover, .navbar.scrolled .nav-links a:hover, .navbar.light .nav-links a.active, .navbar.solid .nav-links a.active, .navbar.scrolled .nav-links a.active { color: var(--blue); }
.nav-icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .3s; font-size: 15px; }
.navbar.light .nav-icon-btn, .navbar.solid .nav-icon-btn, .navbar.scrolled .nav-icon-btn { border-color: var(--gray-line); color: var(--text); }
.nav-icon-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(8deg); }
.menu-toggle { display: none; font-size: 26px; background: none; border: none; color: #fff; cursor: pointer; }
.navbar.light .menu-toggle, .navbar.solid .menu-toggle, .navbar.scrolled .menu-toggle { color: var(--navy); }

/* 搜索弹层 */
.search-overlay { position: fixed; inset: 0; background: rgba(6,13,31,.96); backdrop-filter: blur(10px); z-index: 2000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.search-overlay.show { display: flex; opacity: 1; }
.search-box { width: 100%; max-width: 640px; padding: 20px; }
.search-box h3 { color: #fff; font-size: 24px; margin-bottom: 24px; text-align: center; }
.search-input-wrap { display: flex; border-bottom: 2px solid rgba(255,255,255,.3); padding-bottom: 12px; }
.search-input-wrap input { flex: 1; background: none; border: none; color: #fff; font-size: 22px; outline: none; }
.search-input-wrap input::placeholder { color: rgba(255,255,255,.4); }
.search-input-wrap button { background: none; border: none; color: var(--cyan); font-size: 22px; cursor: pointer; }
.search-close { position: absolute; top: 30px; right: 40px; background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; transition: transform .3s; }
.search-close:hover { transform: rotate(90deg); }
.search-results { margin-top: 24px; max-height: 50vh; overflow-y: auto; }
.search-result-item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 10px; transition: background .2s; cursor: pointer; }
.search-result-item:hover { background: rgba(255,255,255,.08); }
.search-result-item img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; }
.search-result-item .t { color: #fff; font-weight: 600; } .search-result-item .s { color: rgba(255,255,255,.5); font-size: 13px; }

/* ---------- 页面头部 banner（内页通用） ---------- */
.page-banner { position: relative; padding: 170px 0 80px; background: var(--navy); overflow: hidden; }
.page-banner::before { content:''; position:absolute; inset:0; background-image: radial-gradient(circle at 75% 30%, rgba(37,99,255,.35), transparent 55%), radial-gradient(circle at 15% 80%, rgba(25,227,240,.18), transparent 50%); }
.page-banner .grid-bg { position:absolute; inset:0; opacity:.35; background-image: linear-gradient(rgba(37,99,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(37,99,255,.12) 1px,transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(ellipse 70% 80% at 50% 40%,#000 30%,transparent 80%); }
.page-banner .container { position: relative; z-index: 2; }
.page-banner .crumb { color: rgba(255,255,255,.55); font-size: 14px; margin-bottom: 16px; }
.page-banner .crumb a:hover { color: var(--cyan); }
.page-banner h1 { color: #fff; font-size: clamp(32px,5vw,52px); font-weight: 800; letter-spacing: 1px; }
.page-banner h1 .accent { background: linear-gradient(120deg,var(--cyan),var(--blue-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-banner .sub { color: rgba(255,255,255,.7); font-size: 17px; margin-top: 14px; max-width: 620px; }
.page-banner .en-watermark { position: absolute; right: 30px; bottom: -10px; font-size: 110px; font-weight: 900; color: rgba(255,255,255,.04); letter-spacing: 4px; z-index: 1; pointer-events: none; }

/* ---------- 区块通用 ---------- */
section { padding: 100px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 60px; }
.section-tag { display: inline-block; color: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.section-tag::before { content:'//'; margin-right: 8px; color: var(--cyan); }
.section-title { font-size: clamp(28px,4vw,42px); font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.section-desc { color: var(--text-soft); font-size: 16px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 34px; border-radius: 32px; font-size: 16px; font-weight: 600; cursor: pointer; border: none; transition: all .35s var(--ease); }
.btn-primary { background: linear-gradient(135deg,var(--blue),var(--blue-light)); color: #fff; box-shadow: 0 10px 30px rgba(37,99,255,.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(37,99,255,.55); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ---------- 页脚 ---------- */
.footer { background: #040a16; color: rgba(255,255,255,.7); padding: 70px 0 0; position: relative; overflow: hidden; }
.footer::before { content:''; position:absolute; top:0; left:0; right:0; height:1px; background: linear-gradient(90deg,transparent,var(--cyan),transparent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 44px; padding-bottom: 50px; }
.footer-brand .logo-text .cn { color: #fff; font-size: 20px; }
.footer-brand .logo-text .en { color: rgba(255,255,255,.5); }
.footer-brand p { margin-top: 20px; font-size: 14px; line-height: 1.9; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 22px; position: relative; padding-left: 14px; }
.footer-col h4::before { content:''; position:absolute; left:0; top:4px; bottom:4px; width:3px; background: linear-gradient(var(--blue),var(--cyan)); border-radius:2px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 13px; }
.footer-col ul li a { font-size: 14px; transition: all .3s; }
.footer-col ul li a:hover { color: var(--cyan); padding-left: 5px; }
.footer-contact-item { display: flex; gap: 11px; margin-bottom: 15px; font-size: 14px; align-items: flex-start; }
.footer-contact-item i { color: var(--cyan); margin-top: 4px; width: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--cyan); }

/* ---------- 滚动出现动画 ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: all .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; } .reveal-d4 { transition-delay: .4s; } .reveal-d5 { transition-delay: .5s; }

/* ---------- 移动端导航 ---------- */
@media (max-width: 920px) {
  .nav-links { position: fixed; top: 78px; left: 0; right: 0; background: rgba(255,255,255,.98); backdrop-filter: blur(14px); flex-direction: column; padding: 18px; gap: 4px; box-shadow: 0 14px 40px rgba(0,0,0,.12); transform: translateY(-160%); transition: transform .4s var(--ease); max-height: calc(100vh - 78px); overflow-y: auto; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { color: var(--text); width: 100%; }
  .menu-toggle { display: block; }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .page-banner { padding: 130px 0 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .site-logo-icon { width: 44px; height: 44px; flex-basis: 44px; }
  .logo-text { width: 214px; gap: 4px; }
  .logo-text .cn { font-size: 17.4px; }
  .logo-text .en { font-size: 7.95px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-logo-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .logo { gap: 8px; }
  .logo-text { width: 174px; gap: 3px; }
  .logo-text .cn { font-size: 14.1px; }
  .logo-text .en { font-size: 6.45px; }
}

