/* 海蓝湾科技 · 奥林巴斯工业无损检测 —— 深色企业站 v4 */
:root {
  --bg: #000000;
  --bg-2: #0a0a0b;
  --panel: rgba(255, 255, 255, .035);
  --panel-2: rgba(255, 255, 255, .06);
  --bd: rgba(255, 255, 255, .1);
  --bd-soft: rgba(255, 255, 255, .07);
  --red: #d8232d;
  --red-txt: #f0454e;
  --txt: #e8ebef;
  --txt-2: #9aa3ad;
  --txt-3: #5f6770;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --num: "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { font-family: var(--sans); color: var(--txt); background: var(--bg); line-height: 1.8; font-size: 16px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.4em; }
.wrap { width: min(1240px, 92vw); margin: 0 auto; }
::selection { background: var(--red); color: #fff; }

/* ---------- 导航 ---------- */
.nav-shell { position: sticky; top: 0; z-index: 100; background: rgba(0, 0, 0, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--bd-soft); }
nav.main { display: flex; align-items: center; height: 76px; }
.brand { display: flex; align-items: center; gap: 16px; margin-right: auto; }
.brand .logo { height: 52px; display: block; }
.brand .divider { width: 1px; height: 36px; background: var(--bd); }
.brand .dist { display: flex; flex-direction: column; line-height: 1.45; }
.brand .t1 { font-size: 17px; font-weight: 600; color: #fff; }
.brand .t2 { font-size: 11.5px; color: var(--txt-3); }
nav.main > a:not(.brand), .has-sub > a { font-size: 15.5px; color: var(--txt-2); padding: 0 22px; height: 76px; display: flex; align-items: center; position: relative; white-space: nowrap; }
nav.main > a:not(.brand):hover, .has-sub:hover > a { color: #fff; }
nav.main > a.on, .has-sub > a.on { color: #fff; font-weight: 600; }
nav.main > a.on::after, .has-sub > a.on::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; background: var(--red); }
.has-sub { position: relative; }
.has-sub .sub { position: absolute; top: 100%; left: 0; background: rgba(8, 8, 10, .97); backdrop-filter: blur(14px); min-width: 198px; padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .16s; border: 1px solid var(--bd-soft); box-shadow: 0 18px 44px rgba(0,0,0,.5); }
.has-sub:hover .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.has-sub .sub a { display: block; padding: 10px 22px; font-size: 14.5px; color: var(--txt-2); }
.has-sub .sub a:hover { color: #fff; background: var(--panel-2); }
.nav-burger { display: none; margin-left: 12px; background: none; border: 1px solid var(--bd); width: 42px; height: 38px; font-size: 17px; color: var(--txt); cursor: pointer; }

/* ---------- 首页主视觉 ---------- */
.hero { position: relative; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center 38%; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.9) 25%, rgba(0,0,0,.52) 60%, rgba(0,0,0,.22)), linear-gradient(0deg, var(--bg) 2%, transparent 28%); }
.hero .inner { position: relative; z-index: 2; padding: 130px 0 150px; max-width: 700px; }
.hero .eyebrow { color: var(--red-txt); font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; letter-spacing: 2px; line-height: 1.35; color: #fff; }
.hero .sub { margin-top: 18px; font-size: clamp(15px, 1.3vw, 17px); color: var(--txt-2); line-height: 2; }
.hero .cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 36px; font-size: 15px; transition: background .15s, border-color .15s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #b91c25; }
.btn-line { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-line:hover { border-color: rgba(255,255,255,.7); }
/* 数字横条（贴 hero 底部） */
.hero .nums { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: rgba(0, 0, 0, .62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--bd-soft); }
.hero .nums .wrap { display: flex; }
.hero .nums .s { flex: 1; display: flex; align-items: baseline; gap: 10px; padding: 22px 0; justify-content: center; border-left: 1px solid var(--bd-soft); }
.hero .nums .s:first-child { border-left: 0; }
.hero .nums b { font-size: 32px; font-weight: 700; font-family: var(--num); color: #fff; line-height: 1; }
.hero .nums span { font-size: 14px; color: var(--txt-2); }

/* 热门产品条 */
.hot-strip { background: var(--bg-2); border-bottom: 1px solid var(--bd-soft); }
.hot-strip .wrap { display: flex; align-items: center; gap: 22px; height: 58px; }
.hot-strip .hot { color: var(--txt); font-weight: 600; font-size: 14.5px; flex: none; }
.hot-strip .ks { display: flex; gap: 26px; overflow: hidden; }
.hot-strip .ks a { font-size: 14px; color: var(--txt-2); white-space: nowrap; }
.hot-strip .ks a:hover { color: #fff; }
.hot-strip .tel { margin-left: auto; flex: none; color: #fff; font-size: 17px; font-weight: 700; font-family: var(--num); }
.hot-strip .tel::before { content: "服务热线"; font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--txt-3); margin-right: 10px; }

/* ---------- 区块 ---------- */
section.block { padding: 88px 0; }
section.block.tint { background: var(--bg-2); border-top: 1px solid var(--bd-soft); border-bottom: 1px solid var(--bd-soft); }
.sec-title { text-align: center; margin-bottom: 48px; }
.sec-title h2 { font-size: 32px; font-weight: 700; letter-spacing: 1px; color: #fff; }
.sec-title h2 em { font-style: normal; color: var(--red-txt); }
.sec-title .en { font-size: 12px; letter-spacing: 3px; color: var(--txt-3); text-transform: uppercase; margin-top: 6px; }
.sec-title .bar { width: 40px; height: 3px; background: var(--red); margin: 16px auto 0; }
.sec-title p.lead { max-width: 700px; margin: 16px auto 0; color: var(--txt-2); font-size: 15px; }
.sec-more { text-align: center; margin-top: 42px; }
.sec-more a { display: inline-block; border: 1px solid var(--bd); padding: 12px 46px; font-size: 14.5px; color: var(--txt-2); transition: .15s; }
.sec-more a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* 产品/分类卡片 */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prod-card { background: var(--panel); border: 1px solid var(--bd-soft); display: flex; flex-direction: column; transition: border-color .2s, background .2s; position: relative; }
.prod-card:hover { border-color: rgba(255,255,255,.22); background: var(--panel-2); }
.prod-card .ph { height: 210px; display: flex; align-items: center; justify-content: center; padding: 22px; background: #fff; overflow: hidden; }
.cat-grid .prod-card .ph { height: 220px; }
.prod-card .ph img { max-height: 166px; max-width: 100%; object-fit: contain; }
.cat-grid .prod-card .ph img { max-height: 176px; }
.prod-card .ph.none { background: var(--panel-2); color: var(--txt-3); font-size: 13px; }
.prod-card .bd { padding: 18px 22px 20px; flex: 1; display: flex; flex-direction: column; border-top: 1px solid var(--bd-soft); }
.prod-card h3 { font-size: 18px; font-weight: 600; color: #fff; }
.prod-card .tag2 { font-size: 13.5px; color: var(--txt-2); margin: 7px 0 14px; flex: 1; line-height: 1.75; }
.prod-card .go { font-size: 13.5px; color: var(--red-txt); }
.cat-grid .prod-card.wide .bd { flex: 1; justify-content: center; border-top: 0; }

/* 首页关于我们：左图右文 */
.about-split { display: grid; grid-template-columns: 1.05fr .95fr; background: var(--panel); border: 1px solid var(--bd-soft); }
.about-split .photo { background-size: cover; background-position: center; min-height: 460px; }
.about-split .txt { padding: 56px 58px; display: flex; flex-direction: column; justify-content: center; }
.about-split .txt h2 { font-size: 28px; color: #fff; }
.about-split .txt h2 em { font-style: normal; color: var(--red-txt); }
.about-split .txt .bar { width: 40px; height: 3px; background: var(--red); margin: 20px 0 24px; }
.about-split .txt p { color: var(--txt-2); font-size: 15px; line-height: 2.1; }
.about-split .tel { margin-top: 30px; display: flex; align-items: baseline; gap: 14px; }
.about-split .tel b { font-size: 14px; color: var(--txt-3); font-weight: 400; }
.about-split .tel span { font-size: 28px; font-weight: 700; color: #fff; font-family: var(--num); }

/* 应用卡片 */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.app-card { background: var(--panel); border: 1px solid var(--bd-soft); overflow: hidden; transition: border-color .2s, background .2s; }
.app-card:hover { border-color: rgba(255,255,255,.22); background: var(--panel-2); }
.app-card .ph { height: 158px; background: var(--bg-2); overflow: hidden; }
.app-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.app-card .bd { padding: 15px 18px 17px; }
.app-card h4 { font-size: 15.5px; font-weight: 600; color: var(--txt); line-height: 1.55; }
.app-card:hover h4 { color: #fff; }
.app-card .g2 { font-size: 12.5px; color: var(--txt-3); margin-top: 7px; }
.app-group { margin-top: 52px; }
.app-group:first-child { margin-top: 0; }
.app-group h3.g { font-size: 21px; color: #fff; margin-bottom: 22px; padding-left: 14px; border-left: 4px solid var(--red); line-height: 1.3; }

/* ---------- 内页页头 ---------- */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--bd-soft); background: var(--bg-2); }
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center 40%; opacity: .45; }
.page-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.93), rgba(0,0,0,.58)); }
.page-hero .in { position: relative; padding: 62px 0 54px; }
.page-hero h1 { font-size: clamp(26px, 3vw, 38px); letter-spacing: 2px; font-weight: 700; color: #fff; }
.page-hero h1::after { content: ""; display: block; width: 40px; height: 3px; background: var(--red); margin-top: 18px; }
.page-hero .lead { margin-top: 16px; color: var(--txt-2); max-width: 780px; font-size: 15px; }
.crumb-bar { background: rgba(255,255,255,.02); border-bottom: 1px solid var(--bd-soft); }
.crumb-bar .wrap { display: flex; align-items: center; height: 48px; font-size: 13.5px; color: var(--txt-3); gap: 8px; }
.crumb-bar a:hover { color: #fff; }
.crumb-bar b { color: var(--txt-2); font-weight: 500; }

/* ---------- 产品详情 ---------- */
.detail-nav { position: sticky; top: 76px; z-index: 50; background: rgba(0, 0, 0, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--bd-soft); overflow-x: auto; }
.detail-nav .wrap { display: flex; }
.detail-nav a { padding: 15px 24px; font-size: 15px; color: var(--txt-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.detail-nav a:hover { color: #fff; }
.detail-nav a.on { color: #fff; border-bottom-color: var(--red); font-weight: 600; }
.panel { background: var(--panel); border: 1px solid var(--bd-soft); margin-top: 26px; }
.panel > h2 { padding: 16px 28px 16px 42px; font-size: 19px; color: #fff; border-bottom: 1px solid var(--bd-soft); position: relative; }
.panel > h2::before { content: ""; position: absolute; left: 28px; top: 50%; transform: translateY(-50%); width: 4px; height: 20px; background: var(--red); }
.panel .panel-content { padding: 26px 30px 32px; }

/* 抓取内容排版适配（暗色） */
.panel-content { color: #c3cad2; }
.panel-content h1, .panel-content h2 { font-size: 20px; color: #fff; margin: 22px 0 10px; }
.panel-content h3 { font-size: 17.5px; color: #fff; margin: 18px 0 8px; }
.panel-content h4 { font-size: 16px; color: #fff; margin: 14px 0 6px; }
.panel-content p { margin: 10px 0; }
.panel-content li { margin: 5px 0; }
.panel-content strong, .panel-content b { color: #e6eaee; }
.panel-content table.grid { width: 100%; border-collapse: collapse; margin: 12px 0; }
.panel-content table.grid > tbody > tr > td { vertical-align: top; padding: 8px 16px 8px 0; border: 0; }
.panel-content table:not(.grid) { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.panel-content table:not(.grid) th, .panel-content table:not(.grid) td { border: 1px solid var(--bd-soft); padding: 9px 14px; text-align: left; vertical-align: top; }
.panel-content table:not(.grid) th { background: rgba(255,255,255,.06); color: #fff; font-weight: 600; }
.panel-content table:not(.grid) tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.panel-content td.cell-hd, .panel-content th.cell-hd,
.panel-content table:not(.grid) tr:nth-child(even) td.cell-hd { background: rgba(255,255,255,.08); color: #fff; font-weight: 600; }
/* 原站规格表带老式 bgcolor="#EFEFEF" 内联属性，暗色主题下会渲染成刺眼浅灰块。
   统一改成主题内的低调深灰标签底色，消除白底不均。 */
.panel-content table td[bgcolor], .panel-content table th[bgcolor] { background-color: rgba(255,255,255,.06) !important; color: #eef2f6; }
/* 宽规格表：桌面端也允许横向滚动，避免表头被挤压裁切 */
.panel-content { overflow-x: auto; }
.panel-content img { background: #fff; padding: 4px; max-height: 420px; width: auto; }
.panel-content table.grid td img { display: block; margin: 8px auto; max-height: 300px; }
.panel-content .text-center, .panel-content [align="center"] { text-align: center; }
.panel-content .text-center img { margin: 6px auto; }

/* 静态图集 */
.panel-content .gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 16px 0; }
.panel-content .gallery figure.cmp { margin: 0; background: rgba(255,255,255,.025); border: 1px solid var(--bd-soft); padding: 13px; }
.panel-content .gallery figure.cmp img { display: block; width: 100%; margin-bottom: 9px; }
.panel-content .gallery figcaption { font-size: 13.5px; color: var(--txt-2); line-height: 1.7; }
.panel-content .gallery figcaption b { display: block; color: #fff; margin-bottom: 2px; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.c-card { background: var(--panel); border: 1px solid var(--bd-soft); padding: 40px 44px; }
.c-card h3 { font-size: 22px; color: #fff; margin-bottom: 6px; }
.c-card h3::after { content: ""; display: block; width: 34px; height: 3px; background: var(--red); margin-top: 12px; }
.c-row { display: flex; gap: 16px; margin: 24px 0; align-items: flex-start; }
.c-row .ic { width: 42px; height: 42px; flex: none; border: 1px solid var(--bd); display: grid; place-items: center; color: var(--txt-2); }
.c-row .ic svg { width: 20px; height: 20px; }
.c-row b { display: block; font-size: 13px; color: var(--txt-3); margin-bottom: 1px; font-weight: 400; }
.c-row .v { font-size: 17px; color: #fff; font-weight: 600; }
.c-dark { background: var(--bg-2); }
.c-dark p { color: var(--txt-2); font-size: 15px; margin: 13px 0; line-height: 2; }
.c-dark .big { font-size: 32px; font-family: var(--num); color: #fff; font-weight: 700; }
.c-dark .big::before { content: ""; display: block; width: 34px; height: 3px; background: var(--red); margin-bottom: 14px; }

/* ---------- 页脚 ---------- */
footer { background: #000; color: var(--txt-3); margin-top: 96px; border-top: 1px solid var(--bd-soft); }
footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; padding: 56px 0 44px; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 600; }
footer a { display: block; font-size: 14px; padding: 4px 0; color: var(--txt-3); }
footer a:hover { color: #fff; }
footer .about { font-size: 13.5px; line-height: 2; }
footer .brandf { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
footer .brandf .mark { width: 38px; height: 38px; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
footer .brandf b { color: #fff; font-size: 16px; }
footer .base { border-top: 1px solid var(--bd-soft); padding: 18px 0; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
footer .base a { color: inherit; text-decoration: none; opacity: .85; transition: opacity .2s; }
footer .base a:hover { opacity: 1; text-decoration: underline; }

/* 视频缩略图（海报自带播放三角，这里只做可点击态）+ 弹层播放器 */
.videobox { position: relative; display: inline-block; cursor: pointer; line-height: 0; }
.videobox img { display: block; transition: filter .2s, transform .2s; }
.videobox:hover img, .videobox:focus-visible img { filter: brightness(.88); }
.videobox:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.vlb { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.82); display: flex; align-items: center; justify-content: center; padding: 24px; }
.vlb[hidden] { display: none; }
.vlb-inner { position: relative; width: min(920px, 100%); }
.vlb video { width: 100%; max-height: 80vh; background: #000; border-radius: 6px; display: block; }
.vlb-x { position: absolute; top: -42px; right: 0; width: 36px; height: 36px; font-size: 28px; line-height: 1; color: #fff; background: transparent; border: 0; cursor: pointer; }

/* 浮动电话 */
.float-call { position: fixed; right: 20px; bottom: 26px; z-index: 90; }
.float-call a { width: 50px; height: 50px; background: var(--red); color: #fff; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.float-call a svg { width: 22px; height: 22px; }
.float-call a:hover { background: #b91c25; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  nav.main > a:not(.brand), .has-sub > a { padding: 0 13px; font-size: 15px; }
  .hero .nums b { font-size: 26px; }
}
@media (max-width: 960px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid, .app-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .about-split { grid-template-columns: 1fr; }
  .about-split .photo { min-height: 280px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .hero .nums .s { flex-direction: column; align-items: center; gap: 2px; padding: 14px 0; }
  .hero .inner { padding: 96px 0 170px; }
}
@media (max-width: 680px) {
  .nav-burger { display: block; }
  nav.main { flex-wrap: wrap; height: auto; min-height: 66px; padding: 10px 0; }
  .brand .logo { height: 42px; }
  .brand .dist { display: none; }
  nav.main > a:not(.brand), .has-sub { display: none; }
  nav.main.open > a, nav.main.open .has-sub { display: flex; width: 100%; height: auto; padding: 11px 6px; border-top: 1px solid var(--bd-soft); }
  nav.main.open > a.on::after, nav.main.open .has-sub > a.on::after { display: none; }
  nav.main.open > a.on { color: var(--red-txt); }
  .has-sub { flex-direction: column; align-items: flex-start; }
  .has-sub .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; width: 100%; background: none; }
  .cat-grid, .prod-grid, .app-grid { grid-template-columns: 1fr; }
  .hero .inner { padding: 80px 0 60px; }
  .hero .nums { position: static; background: var(--bg-2); }
  .hero .nums .wrap { flex-wrap: wrap; }
  .hero .nums .s { flex: 1 1 50%; border-left: 0; border-top: 1px solid var(--bd-soft); }
  .hot-strip .ks { display: none; }
  .detail-nav { top: 0; }
  .about-split .txt { padding: 36px 26px; }
  .panel .panel-content { padding: 20px 18px 24px; }
  .panel-content .gallery { grid-template-columns: 1fr; }
  .panel-content table.grid, .panel-content table.grid tbody, .panel-content table.grid tr, .panel-content table.grid td { display: block; width: 100% !important; }
  .panel-content table.grid > tbody > tr > td { padding: 10px 0; border-bottom: 1px solid var(--bd-soft); }
  .panel-content table.grid > tbody > tr > td:last-child { border-bottom: 0; }
  .panel-content table.grid td img { max-height: 240px; }
  .panel-content table:not(.grid) { display: block; overflow-x: auto; }
}

/* IPLEX GX 应用子卡：整卡可点、图片统一满宽并与标题左对齐 */
.panel-content td .subapp { display: block; text-decoration: none; }
.panel-content td .subapp .ph { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0c0c0c; }
.panel-content td .subapp .ph img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; padding: 0; max-height: none; background: none; transition: transform .5s ease; }
.panel-content td .subapp:hover .ph img { transform: scale(1.04); }
.panel-content td .subapp .t { display: block; margin: 13px 0 4px; color: #fff; font-size: 17px; font-weight: 600; line-height: 1.5; }
.panel-content td .subapp:hover .t { color: var(--red-txt); }
.panel-content td .subapp .t i { font-style: normal; color: #E49900; }
