﻿/* =========================================================
   Hangzhou Optical - custom template (hg)
   Design tokens
   ========================================================= */
@font-face {
  font-family: 'OPPOSans';
  src: url('font/OPPOSans-subset.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: 'AlimamaShuHeiTi'; src: url('font/AlimamaShuHeiTi.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('font/Roboto-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('font/Roboto-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('font/Roboto-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --hg-accent: #D43030;
  --hg-text: #24262C;
  --hg-text-2: #373B41;
  --hg-text-3: #6E6E6E;
  --hg-gray: #999999;
  --hg-line: #E5E5E5;
  --hg-foot-bg: #24262C;
  --hg-foot-title: #FFFFFF;
  --hg-foot-link: #999999;
  --hg-foot-copy: #8F8F8F;
  --hg-container: 1200px;
  --hg-header-h: 100px;
  --hg-font: "OPPOSans", "Source Han Sans SC", "SourceHanSans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* reset / base */
.hg-header, .hg-footer, .hg-main, .hg-page {
  font-family: var(--hg-font);
  color: var(--hg-text);
  box-sizing: border-box;
}
.hg-header *, .hg-footer *, .hg-main *, .hg-page * { box-sizing: border-box; }
.hg-container {
  width: 100%;
  max-width: var(--hg-container);
  margin: 0 auto;
  padding: 0 20px;
}
.hg-header a, .hg-footer a, .hg-main a { text-decoration: none; }
.hg-clear::after { content: ""; display: block; clear: both; }

/* =========================================================
   Header
   ========================================================= */
.hg-header {
  position: relative;
  z-index: 900;
  height: var(--hg-header-h);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  border-bottom: 1px solid var(--hg-line);
}
.hg-header.is-fixed {
  position: fixed; top: 0; left: 0; right: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.hg-header .hg-container {
  height: 100%;
  display: flex;
  align-items: center;
}
.hg-logo { display: flex; align-items: center; height: 100%; }
.hg-logo img { max-height: 42px; width: auto; display: block; }
.hg-logo .hg-logo-text { font-size: 22px; font-weight: 700; color: var(--hg-text); letter-spacing: 1px; }

.hg-nav { margin-left: auto; height: 100%; }
.hg-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; gap: 30px; }
.hg-nav > ul > li { position: relative; height: 100%; display: flex; align-items: center; }
.hg-nav > ul > li > a {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 0 16px 0 0;
  height: 100%;
  font-size: 18px; color: #000;
  transition: color .2s;
}
.hg-nav > ul > li > a:hover,
.hg-nav > ul > li.is-active > a { color: var(--hg-accent); }
.hg-nav .hg-caret {
  position: absolute; right: 2px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1px solid #878787; border-bottom: 1px solid #878787;
  transform: translateY(-50%) rotate(45deg);
  margin: 0;
}
.hg-nav > ul > li > a:hover .hg-caret,
.hg-nav > ul > li.is-active > a .hg-caret { border-color: var(--hg-accent); }

/* dropdown */
.hg-sub {
  position: absolute; left: 50%; top: 100%;
  transform: translateX(-50%) translateY(8px);
  min-width: 190px; background: #fff;
  border-top: 2px solid var(--hg-accent);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 8px 0;
  opacity: 0; visibility: hidden; transition: all .2s ease;
}
.hg-nav > ul > li:hover > .hg-sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.hg-sub a {
  display: block; padding: 9px 20px; font-size: 15px; color: var(--hg-text-2);
  white-space: nowrap; transition: all .15s;
}
.hg-sub a:hover { color: var(--hg-accent); background: #FAFAFA; padding-left: 26px; }

.hg-header-right { margin-left: 30px; display: flex; align-items: center; height: 100%; }
.hg-header-right a {
  font-size: 18px; color: #000; display: inline-flex; align-items: center; height: 100%;
}
.hg-header-right a:hover { color: var(--hg-accent); }

.hg-nav-toggle { display: none; }

/* =========================================================
   Footer
   ========================================================= */
.hg-footer {
  background: var(--hg-foot-bg);
  color: var(--hg-foot-link);
  padding: 56px 0 0;
  margin-top: 0;
}
.hg-footer .hg-fcols {
  display: flex; flex-wrap: wrap;
  gap: 40px;
}
.hg-fcol { min-width: 120px; }
.hg-fcol h4 {
  font-size: 16px; color: var(--hg-foot-title); font-weight: 400;
  margin: 0 0 18px; line-height: 1.2;
}
.hg-fcol h4 a { color: var(--hg-foot-title); }
.hg-fcol ul { list-style: none; margin: 0; padding: 0; }
.hg-fcol li { margin-bottom: 12px; }
.hg-fcol li a { font-size: 14px; color: var(--hg-foot-link); transition: color .15s; }
.hg-fcol li a:hover { color: #fff; }
.hg-fcol.hg-fcol-wide { flex: 1 1 260px; }
.hg-fcol.hg-fcol-wide ul { display: flex; flex-wrap: wrap; }
.hg-fcol.hg-fcol-wide li { width: 50%; }

.hg-fcontact { margin-left: auto; text-align: right; color: var(--hg-foot-link); }
.hg-fcontact .hg-flogo { display: block; max-height: 25px; width: auto; margin: 0 0 14px auto; }
.hg-fcontact .hg-fphone { font-size: 22px; color: #fff; font-weight: 600; margin-bottom: 10px; }
.hg-fcontact p { font-size: 14px; line-height: 1.8; margin: 0 0 6px; }
/* 页脚正文里的链接（备案号等）默认被 MetInfo 基础样式设成近黑色，强制继承亮色 */
.hg-fcontact p a { color: #C9CDD4; }
.hg-fcontact p a:hover { color: #fff; }

.hg-fcopy {
  margin-top: 44px; border-top: 1px solid rgba(255,255,255,.10);
  padding: 18px 0; font-size: 12px; color: var(--hg-foot-copy);
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
}
.hg-fcopy a { color: var(--hg-foot-copy); }
.hg-fcopy .hg-fcopy-right { margin-left: auto; }

/* =========================================================
   Page banner / breadcrumb
   ========================================================= */
.hg-banner {
  height: 260px; background: #F2F3F5;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.hg-banner h1, .hg-banner h2 { font-size: 40px; color: var(--hg-text); margin: 0; font-weight: 500; }
.hg-crumb { font-size: 14px; color: var(--hg-text-3); }
.hg-crumb a { color: var(--hg-text-3); }
.hg-crumb a:hover { color: var(--hg-accent); }
.hg-crumb span.sep { margin: 0 8px; }

/* =========================================================
   Generic content / placeholder
   ========================================================= */
.hg-main { min-height: 0; padding: 0; }
.hg-editor { font-size: 16px; line-height: 1.9; color: var(--hg-text-2); }
.hg-editor img { max-width: 100%; height: auto; }

.hg-placeholder {
  border: 1px dashed #C9CDD4; border-radius: 8px;
  background: repeating-linear-gradient(45deg, #FAFAFA, #FAFAFA 12px, #F3F4F6 12px, #F3F4F6 24px);
  padding: 70px 24px; text-align: center; color: var(--hg-gray);
  margin: 24px 0;
}
.hg-placeholder .hg-ph-title { font-size: 20px; color: var(--hg-text-3); margin-bottom: 8px; }
.hg-placeholder .hg-ph-desc { font-size: 14px; }
.hg-placeholder .hg-ph-tag {
  display: inline-block; margin-top: 14px; padding: 3px 10px;
  border: 1px solid var(--hg-line); border-radius: 999px; font-size: 12px; color: var(--hg-gray);
}

/* =========================================================
   Homepage skeleton
   ========================================================= */
.hg-hero { background: #F2F3F5; }
.hg-hero .hg-hero-inner { padding: 90px 0; }
.hg-hero h1 { font-size: 48px; line-height: 1.25; margin: 0 0 18px; color: var(--hg-text); font-weight: 600; }
.hg-hero p { font-size: 18px; color: var(--hg-text-3); max-width: 720px; line-height: 1.8; margin: 0; }

.hg-section { padding: 70px 0; }
.hg-section-hd { margin-bottom: 36px; }
.hg-section-hd .hg-sub { font-size: 16px; color: var(--hg-gray); margin-bottom: 8px; }
.hg-section-hd h2 { font-size: 34px; margin: 0; color: var(--hg-text); font-weight: 600; }
.hg-section.gray { background: #F7F8FA; }

.hg-grid { display: grid; gap: 24px; }
.hg-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.hg-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.hg-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.hg-card {
  background: #fff; border: 1px solid var(--hg-line); border-radius: 6px;
  overflow: hidden; transition: box-shadow .2s, transform .2s;
  display: block; color: inherit;
}
.hg-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); transform: translateY(-3px); }
.hg-card .hg-card-img { aspect-ratio: 4 / 3; background: #F2F3F5; overflow: hidden; }
.hg-card .hg-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hg-card .hg-card-bd { padding: 16px 18px 20px; }
.hg-card h3 { font-size: 17px; margin: 0 0 6px; color: var(--hg-text); font-weight: 500; line-height: 1.5; }
.hg-card .hg-card-desc { font-size: 13px; color: var(--hg-gray); line-height: 1.7; margin: 0; }

.hg-more { text-align: center; margin-top: 40px; }
.hg-more a {
  display: inline-block; padding: 11px 34px; border: 1px solid var(--hg-line);
  color: var(--hg-text-2); font-size: 15px; border-radius: 2px; transition: all .2s;
}
.hg-more a:hover { border-color: var(--hg-accent); color: var(--hg-accent); }

/* responsive skeleton */
@media (max-width: 1240px) { :root { --hg-container: 1140px; } }
@media (max-width: 991px) {
  .hg-nav, .hg-header-right { display: none; }
  .hg-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .hg-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .hg-fcontact { text-align: left; margin-left: 0; }
  .hg-fcontact .hg-flogo { margin-left: 0; }
}
@media (max-width: 640px) {
  .hg-grid.cols-4, .hg-grid.cols-3, .hg-grid.cols-2 { grid-template-columns: 1fr; }
  .hg-hero h1 { font-size: 32px; }
  .hg-banner h1, .hg-banner h2 { font-size: 28px; }
}

/* =========================================================
   Homepage v2
   ========================================================= */
.hg-hero { background: #0b0d11; padding: 0; }
.hg-hero-img { display: block; width: 100%; height: auto; }

/* 首页：字体优先 + 图片异步渐显（hero 主图不推迟，立即加载） */
.hg-js .hg-home img[data-src] { opacity: 0; }
.hg-js .hg-home img.hg-defer { transition: opacity .6s ease; }
.hg-js .hg-home img.hg-defer.is-loaded { opacity: 1; }

.hg-section { padding: 64px 0; }
.hg-section.gray { background: #F7F8FA; }
.hg-sec-hd { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; }
.hg-sec-hd-l h2 { font-size: 30px; margin: 0 0 8px; color: var(--hg-text); font-weight: 600; position: relative; padding-left: 18px; }
.hg-sec-hd-l h2::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; background: var(--hg-accent); border-radius: 2px; }
.hg-sec-hd-l p { margin: 0; padding-left: 18px; font-size: 15px; color: var(--hg-gray); letter-spacing: 1px; }
.hg-sec-hd-more { font-size: 14px; color: var(--hg-text-3); border: 1px solid var(--hg-line); padding: 8px 22px; border-radius: 2px; transition: all .2s; }
.hg-sec-hd-more:hover { border-color: var(--hg-accent); color: var(--hg-accent); }

/* product card */
.hg-pcard { display: block; color: inherit; }
.hg-pcard-img { position: relative; aspect-ratio: 3 / 2; background: #fff; overflow: hidden; border-radius: 4px; }
.hg-pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.hg-pcard:hover .hg-pcard-img img { transform: scale(1.05); }
.hg-pcard h3 { font-size: 15px; font-weight: 400; color: var(--hg-text-2); margin: 14px 0 0; line-height: 1.5; text-align: center; transition: color .2s; }
.hg-pcard:hover h3 { color: var(--hg-accent); }
.hg-pcard-ph { position: absolute; inset: 0; background: repeating-linear-gradient(45deg,#FAFAFA,#FAFAFA 12px,#F3F4F6 12px,#F3F4F6 24px); }
.hg-pcard-ph::after { content: "暂无图片"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #B8BEC9; font-size: 13px; }

/* model section：整栏背景图 + 左侧文字叠层 */
.hg-model {
  position: relative;
  background: #14161B url('img/model.webp') center center / cover no-repeat;
  min-height: 460px;
  display: flex;
  align-items: center;
}
.hg-model::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,12,16,.86) 0%, rgba(10,12,16,.62) 38%, rgba(10,12,16,.18) 66%, rgba(10,12,16,0) 100%);
}
.hg-model .hg-container { position: relative; z-index: 1; }
.hg-model-box { max-width: 660px; padding: 84px 0; }
.hg-sec-hd-l--light h2 { color: #fff; }
.hg-sec-hd-l--light p { color: rgba(255,255,255,.75); }
.hg-sec-hd-l--light h2::before { background: var(--hg-accent); }
.hg-model-desc { font-size: 15px; line-height: 2; color: rgba(255,255,255,.85); margin: 0 0 30px; }
.hg-model-btns { display: flex; gap: 16px; }
.hg-model-btns a { display: inline-block; padding: 12px 32px; border: 1px solid rgba(255,255,255,.55); color: #fff; font-size: 15px; border-radius: 2px; transition: all .2s; }
.hg-model-btns a:hover { background: var(--hg-accent); border-color: var(--hg-accent); color: #fff; }

/* about */
.hg-about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hg-about-img img { width: 100%; height: auto; display: block; border-radius: 6px; }
.hg-about-desc { font-size: 15px; line-height: 2; color: var(--hg-text-3); margin: 0 0 30px; }
.hg-stats { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.hg-stats li { text-align: center; }
.hg-stats strong { display: block; font-size: 26px; color: var(--hg-accent); font-weight: 700; margin-bottom: 6px; }
.hg-stats span { font-size: 13px; color: var(--hg-gray); }
.hg-about-more a { display: inline-block; padding: 11px 34px; background: var(--hg-accent); color: #fff; font-size: 15px; border-radius: 2px; transition: opacity .2s; }
.hg-about-more a:hover { opacity: .88; }

/* news card */
.hg-ncard { display: block; color: inherit; background: #fff; border-radius: 4px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.hg-ncard:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); transform: translateY(-3px); }
.hg-ncard-img { position: relative; aspect-ratio: 3 / 2; background: #F2F3F5; overflow: hidden; }
.hg-ncard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hg-ncard-bd { padding: 16px 18px 20px; }
.hg-ncard-bd h3 { font-size: 15px; font-weight: 500; color: var(--hg-text); margin: 0 0 10px; line-height: 1.55; height: 46px; overflow: hidden; }
.hg-ncard-date { font-size: 13px; color: var(--hg-gray); margin: 0; }

/* links */
.hg-links { list-style: none; margin: 0; padding: 0; }
.hg-links li { position: relative; display: flex; align-items: center; gap: 24px; padding: 16px 20px; border: 1px solid var(--hg-line); border-radius: 4px; margin-bottom: 14px; transition: border-color .2s, box-shadow .2s; }
.hg-links li:hover { border-color: #d9dde3; box-shadow: 0 6px 18px rgba(0,0,0,.05); }
.hg-link-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; }
.hg-link-go { position: relative; z-index: 2; }
.hg-link-name { flex: 1; font-size: 15px; color: var(--hg-text-2); line-height: 1.6; }
.hg-link-go { flex: none; padding: 7px 20px; border: 1px solid var(--hg-line); border-radius: 2px; font-size: 13px; color: var(--hg-text-3); transition: all .2s; }
.hg-link-go:hover { border-color: var(--hg-accent); color: var(--hg-accent); }
.hg-link-domain { flex: none; width: 200px; text-align: right; font-size: 13px; color: var(--hg-gray); }

@media (max-width: 991px) {
  .hg-model-inner, .hg-about { grid-template-columns: 1fr; gap: 32px; }
  .hg-stats { grid-template-columns: repeat(2,1fr); }
  .hg-links li { flex-wrap: wrap; }
  .hg-link-domain { width: auto; text-align: left; }
}
@media (max-width: 640px) {
  .hg-sec-hd { align-items: flex-start; flex-direction: column; gap: 14px; }
}

/* 全站固定 1.0：内容区始终 1200，不随大屏变宽 */
.hg-header .hg-container,
.hg-footer .hg-container { max-width: 1200px; }

/* =========================================================
   产品页（列表 + 详情，全站统一）
   ========================================================= */
.hg-product { background: #F7F7F7; }

.hg-pagebar { background: #fff; border-bottom: 1px solid var(--hg-line); padding: 14px 0 20px; }
.hg-crumb { font-size: 14px; line-height: 1.4; color: var(--hg-text-3); margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hg-line); }
.hg-crumb a { color: var(--hg-text-3); }
.hg-crumb a:hover { color: var(--hg-accent); }
.hg-crumb .sep { margin: 0 8px; }
.hg-page-title { font-size: 28px; margin: 0; color: var(--hg-text); font-weight: 600; }

.hg-pbody { padding-top: 30px; padding-bottom: 70px; }
.hg-subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hg-subnav a { padding: 8px 20px; background: #fff; border: 1px solid var(--hg-line); border-radius: 2px; font-size: 14px; color: var(--hg-text-2); transition: all .2s; }
.hg-subnav a:hover, .hg-subnav a.active { background: var(--hg-accent); border-color: var(--hg-accent); color: #fff; }
.hg-pager { margin-top: 44px; text-align: center; }

.hg-pd-card { background: #fff; border: 1px solid var(--hg-line); border-radius: 6px; padding: 32px; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.10); }
.hg-pd-crumb { font-size: 14px; line-height: 1.4; color: var(--hg-text-3); padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid var(--hg-line); }
.hg-pd-crumb a { color: var(--hg-text-3); }
.hg-pd-crumb a:hover { color: var(--hg-accent); }
.hg-pd-crumb .sep { margin: 0 8px; }
.hg-pd-top { display: grid; grid-template-columns: 420px 1fr; gap: 48px; align-items: start; }
.hg-pd-info .hg-editor { font-size: 15px; line-height: 1.95; color: var(--hg-text-3); margin: 0 0 18px; }
.hg-pd-related .hg-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hg-product .hg-pcard-img { box-shadow: 0 2px 8px rgba(0,0,0,.10); }
.hg-pd-mainimg { position: relative; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 0 8px rgba(0,0,0,.25); aspect-ratio: 3 / 2; }
.hg-pd-mainimg img { width: 100%; height: auto; display: block; }
.hg-pd-track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.4,0,.2,1); touch-action: pan-y; }
.hg-pd-slide { flex: 0 0 100%; height: 100%; }
.hg-pd-slide img { width: 100%; height: 100%; object-fit: contain; }

.hg-pd-nav { position: absolute; top: 50%; margin-top: -17px; z-index: 2; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.32); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: .5; transition: opacity .2s, background .2s; }
.hg-pd-mainimg:hover .hg-pd-nav, .hg-pd-nav:focus { opacity: 1; }
.hg-pd-nav:hover { background: rgba(212,48,48,.92); }
.hg-pd-nav::before { content: ""; width: 9px; height: 9px; border-top: 2px solid #fff; border-right: 2px solid #fff; }
.hg-pd-prev { left: 10px; }
.hg-pd-prev::before { transform: rotate(-135deg); margin-left: 4px; }
.hg-pd-next { right: 10px; }
.hg-pd-next::before { transform: rotate(45deg); margin-right: 4px; }

.hg-pd-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.hg-pd-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.8); box-shadow: 0 0 3px rgba(0,0,0,.4); cursor: pointer; transition: background .2s, transform .2s; }
.hg-pd-dot.is-active { background: var(--hg-accent); transform: scale(1.2); }

.hg-pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.hg-pd-thumb { width: 92px; height: 62px; border: 1px solid var(--hg-line); border-radius: 3px; overflow: hidden; display: block; transition: border-color .2s; }
.hg-pd-thumb.is-active { border-color: var(--hg-accent); }
.hg-pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hg-pd-title { font-size: 26px; margin: 0 0 14px; color: var(--hg-text); font-weight: 600; line-height: 1.4; }
.hg-pd-desc { font-size: 15px; line-height: 1.9; color: var(--hg-text-3); margin: 0 0 20px; }
.hg-pd-sub { font-size: 16px; color: var(--hg-text); margin: 0 0 10px; font-weight: 600; }
.hg-pd-para { list-style: none; margin: 0 0 22px; padding: 0; }
.hg-pd-para li { font-size: 14px; color: var(--hg-text-3); line-height: 2; }
.hg-pd-para li span { color: var(--hg-text-2); }
.hg-pd-actions { margin-top: 6px; }
.hg-btn-main { display: inline-block; padding: 12px 42px; background: var(--hg-accent); color: #fff; font-size: 15px; border-radius: 2px; transition: opacity .2s; }
.hg-btn-main:hover { opacity: .88; color: #fff; }
.hg-pd-disclaimer { margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--hg-line); font-size: 13px; color: var(--hg-gray); line-height: 1.8; }
.hg-pd-h2 { font-size: 22px; margin: 0 0 22px; color: var(--hg-text); font-weight: 600; padding-left: 14px; position: relative; }
.hg-pd-h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--hg-accent); border-radius: 2px; }
.hg-pd-h3 { font-size: 16px; color: var(--hg-text-2); margin: 18px 0 10px; }

@media (max-width: 991px) {
  .hg-pd-top { grid-template-columns: 1fr; gap: 26px; }
  .hg-pd-card { padding: 20px; }
  .hg-pd-related .hg-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: none; }
}

/* =========================================================
   新闻页
   ========================================================= */
.hg-news-card { padding: 44px 60px 56px; }
.hg-news-title { font-size: 28px; line-height: 1.5; margin: 0 0 14px; color: var(--hg-text); font-weight: 600; }
.hg-news-meta { font-size: 14px; color: var(--hg-gray); margin: 0 0 30px; padding-bottom: 20px; border-bottom: 1px solid var(--hg-line); }
.hg-news-meta span + span::before { content: "·"; margin: 0 10px; color: #C9CDD4; }
.hg-news-content { font-size: 16px; line-height: 2; color: var(--hg-text-2); }
.hg-news-content p { margin: 0 0 16px; }
.hg-news-content img { max-width: 100%; height: auto; display: block; margin: 22px auto; border-radius: 4px; }
@media (max-width: 991px) { .hg-news-card { padding: 24px 20px 30px; } .hg-news-title { font-size: 22px; } }

/* =========================================================
   关于杭光 · 杭光简介（定制页）
   ========================================================= */
.hg-brief-hero { position: relative; background-color: #14161B; color: #fff; padding: 72px 0 64px; }
.hg-brief-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(8,10,14,.92) 0%, rgba(8,10,14,.72) 42%, rgba(8,10,14,.42) 100%); }
.hg-brief-hero .hg-container { position: relative; z-index: 1; }
.hg-brief-head { display: grid; grid-template-columns: 305px 1fr; gap: 48px; align-items: start; }
.hg-brief-hd .en { display: block; font-size: 15px; letter-spacing: 2px; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.hg-brief-hd h1 { font-size: 34px; margin: 0; color: #fff; font-weight: 600; }
.hg-brief-intro { font-size: 15px; line-height: 2.1; color: rgba(255,255,255,.82); }
.hg-brief-intro p { margin: 0 0 12px; }
.hg-brief-intro img { max-width: 100%; height: auto; margin: 16px 0; border-radius: 4px; }

.hg-brief-stats { list-style: none; margin: 48px 0 0; padding: 38px 0 0; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(255,255,255,.14); }
.hg-brief-stats li { text-align: center; color: #fff; border-left: 1px solid rgba(255,255,255,.14); }
.hg-brief-stats li:first-child { border-left: 0; }
.hg-brief-stats .ic { display: block; margin-bottom: 16px; color: rgba(255,255,255,.9); }
.hg-brief-stats .ic svg { width: 46px; height: 46px; }
.hg-brief-stats strong { display: block; font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.hg-brief-stats .lb { font-size: 14px; color: rgba(255,255,255,.6); }

.hg-center-h2 { text-align: center; font-size: 28px; font-weight: 600; color: var(--hg-text); margin: 0 0 34px; }

.hg-vision { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); }
.hg-vision li { text-align: center; padding: 0 40px; border-left: 1px solid var(--hg-line); }
.hg-vision li:first-child { border-left: 0; }
.hg-vision h3 { font-size: 22px; margin: 0 0 16px; color: var(--hg-text); font-weight: 600; }
.hg-vision p { font-size: 14px; line-height: 1.9; color: var(--hg-text-3); margin: 0; }

.hg-brief-labimg { position: relative; line-height: 0; }
.hg-brief-labimg img { width: 100%; height: auto; display: block; }
.hg-brief-labimg::before,
.hg-brief-labimg::after { content: ""; position: absolute; left: 0; right: 0; height: 150px; pointer-events: none; z-index: 1; }
.hg-brief-labimg::before { top: 0; background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 100%); }
.hg-brief-labimg::after { bottom: 0; background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,0) 100%); }

@media (max-width: 991px) {
  .hg-brief-head { grid-template-columns: 1fr; gap: 20px; }
  .hg-timeline { padding-left: 0; }
  .hg-brief-stats { grid-template-columns: repeat(2,1fr); gap: 30px 0; }
  .hg-brief-stats li:nth-child(3) { border-left: 0; }
  .hg-vision { grid-template-columns: 1fr; gap: 28px; }
  .hg-vision li { border-left: 0; padding: 0; }
}

/* ===== 杭光简介 v2：严格对齐设计稿字号/颜色/字体 ===== */
.hg-brief-hero { background-color: #14161B; padding: 72px 0 0; }
.hg-brief-hero.hg-bg-ready { background-image: url('img/about_company.webp'); background-position: center 8%; background-size: cover; background-repeat: no-repeat; }
/* hero 蒙版：严格按 sketch 矩形1 的四个叠加填充
   ① 底部渐白 + 86% 以下纯白（= 蒙版在 1059px 处结束，数据指标区回到白底）
   ② 左→右压暗 #000 .33 → 0
   ③ 上→下压暗 #000 .61 → .16
   时间轴图在容器内（z-index:1），不受渐白影响 */
.hg-brief-hero::before { background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 68%, #fff 86%, #fff 100%), linear-gradient(90deg, rgba(0,0,0,.33) 0%, rgba(0,0,0,0) 100%), linear-gradient(180deg, rgba(0,0,0,.61) 0%, rgba(0,0,0,.16) 100%); }
.hg-brief-head { padding-bottom: 16px; }
/* hero 标题块：严格按 sketch 分组18 的坐标（组 305x85）——红条在底层、英文空心字与中文叠在红条上 */
.hg-brief-hd { position: relative; width: 305px; height: 85px; }
.hg-brief-hd::before { content: ""; position: absolute; left: 38px; top: 14px; width: 181px; height: 47px; background: linear-gradient(90deg, rgba(184,29,39,.90) 0%, rgba(184,29,39,0) 100%); }
.hg-brief-hd .en { position: absolute; left: 0; top: 0; z-index: 1; font-size: 40px; line-height: 28px; font-weight: 900; letter-spacing: 0; font-family: 'Roboto', sans-serif; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.88); white-space: nowrap; }
.hg-brief-hd h1 { position: absolute; left: 97px; top: 38px; z-index: 1; margin: 0; font-size: 36px; line-height: 1; font-weight: 400; font-family: 'AlimamaShuHeiTi', 'OPPOSans', sans-serif; color: #fff; white-space: nowrap; }
.hg-brief-intro { font-size: 16px; line-height: 2.15; }
.hg-brief-intro p { margin: 0 0 12px; text-indent: 2em; }
.hg-brief-intro img { display: none; }

.hg-brief-stats { margin: 20px 0 0; padding: 30px 0 66px; }
.hg-brief-stats li { border-left: 1px solid #D9D9D9; }
.hg-brief-stats .ic { color: #9AA0A6; margin-bottom: 14px; }
.hg-brief-stats .ic svg { width: 50px; height: 50px; }
.hg-brief-stats strong { font-size: 40px; font-weight: 700; font-family: 'Roboto', sans-serif; color: #6E6E6E; margin-bottom: 4px; }
.hg-brief-stats .lb { font-size: 16px; color: #6E6E6E; }

.hg-center-h2 { font-size: 36px; font-weight: 400; font-family: 'AlimamaShuHeiTi', 'OPPOSans', sans-serif; color: var(--hg-accent); margin: 0 0 40px; }
.hg-vision h3 { font-size: 60px; margin: 0 0 22px; color: #6E6E6E; font-weight: 400; font-family: 'AlimamaShuHeiTi', 'OPPOSans', sans-serif; }
.hg-vision p { font-size: 16px; color: #6E6E6E; }

@media (max-width: 991px) {
  .hg-brief-hd { transform: scale(.82); transform-origin: left top; height: 70px; }
  .hg-brief-stats strong { font-size: 40px; }
  .hg-vision h3 { font-size: 36px; }
  .hg-center-h2 { font-size: 28px; }
}

/* 发展时间轴 + 荣誉资质 */
.hg-timeline { margin: 40px 0 8px; padding-left: 100px; }
.hg-timeline img { width: 100%; height: auto; display: block; }
.hg-timeline ul { list-style: none; margin: 0; padding: 0; }
.tl-up, .tl-down { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; text-align: center; }
.tl-up strong, .tl-down strong { display: block; font-size: 26px; font-family: 'AlimamaShuHeiTi','OPPOSans',sans-serif; font-weight: 400; margin-bottom: 8px; }
.tl-up span, .tl-down span { font-size: 14px; color: rgba(255,255,255,.85); }
.tl-years { display: grid; grid-template-columns: repeat(6,1fr); text-align: center; margin: 22px 0; padding: 10px 0; font-size: 15px; border-top: 2px solid rgba(212,48,48,.85); border-bottom: 2px solid rgba(212,48,48,.85); }
.tl-years li { border-left: 1px solid rgba(212,48,48,.45); }
.tl-years li:first-child { border-left: 0; }

.hg-honor img { width: 100%; height: auto; display: block; border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.10); margin-bottom: 26px; }
@media (max-width: 767px) {
  .tl-up, .tl-down { grid-template-columns: 1fr; gap: 24px; }
  .tl-years { grid-template-columns: repeat(3,1fr); gap: 8px 0; }
  .tl-years li:nth-child(4) { border-left: 0; }
}

/* =========================================================
   关于杭光 · 企业责任与服务（定制页）
   ========================================================= */
.hg-svc { background: #fff; padding-bottom: 122px; }
.hg-svc .hg-container { max-width: 1200px; padding: 0; }

/* 顶部 hero */
.hg-svc-hero {
  position: relative;
  height: 771px;
  padding-top: 178px;
  background-color: #14161B;
}
.hg-svc-hero.hg-bg-ready {
  background-image: url('img/svc_hero.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
/* 字体优先：图片载入后再淡入 */
.hg-js .hg-brief img, .hg-js .hg-svc img, .hg-js .hg-std img, .hg-js .hg-ct img { opacity: 0; transition: opacity .6s ease; }
.hg-js .hg-brief img.is-loaded, .hg-js .hg-svc img.is-loaded, .hg-js .hg-std img.is-loaded, .hg-js .hg-ct img.is-loaded { opacity: 1; }
.hg-svc-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.33) 0%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,.61) 0%, rgba(0,0,0,.16) 100%);
}
.hg-svc-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100%; pointer-events: none;
  background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 21%);
}
.hg-svc-hero .hg-container { position: relative; z-index: 1; }

.hg-svc-bar {
  height: 64px;
  display: flex; align-items: center;
  padding-left: 45px;
  background: linear-gradient(90deg, rgba(184,29,39,.9) 0%, rgba(184,29,39,.9) 38%, rgba(184,29,39,0) 100%);
}
.hg-svc-bar h1 {
  margin: 0; color: #fff; font-weight: 400; line-height: 1;
  font-family: 'AlimamaShuHeiTi', 'OPPOSans', sans-serif;
  font-size: 48px;
}
.hg-svc-calli { display: block; width: 765px; max-width: 100%; margin: 51px auto 0; }

/* 图片分组 */
.hg-svc-sec { padding: 0; }
.hg-svc-sec + .hg-svc-sec { margin-top: 130px; }
.hg-svc-h2 {
  text-align: center; margin: 0 0 35px; font-weight: 400; line-height: 1;
  font-family: 'AlimamaShuHeiTi', 'OPPOSans', sans-serif;
  font-size: 36px; color: var(--hg-accent);
}
.hg-svc-row { display: flex; justify-content: center; align-items: flex-start; }
.hg-svc-row + .hg-svc-row { margin-top: 28px; }
.hg-svc-row img { display: block; flex: 0 0 auto; height: auto; width: auto; }
.hg-svc-row figure { margin: 0; }
.hg-svc-row figcaption {
  width: 260px; max-width: 100%; margin: 14px auto 0;
  text-align: center; font-size: 18px; line-height: 1.55; color: #6E6E6E;
}
.hg-svc-capcenter {
  width: 260px; max-width: 100%; margin: 14px auto 0;
  text-align: center; font-size: 18px; line-height: 1.55; color: #6E6E6E;
}
.hg-svc-row.s1 { gap: 18px; }
.hg-svc-row.s1 img { height: 235px; }
.hg-svc-row.s2 { gap: 36px; }
.hg-svc-row.s2 img { height: 329px; }
.hg-svc-row.s2b { gap: 20px; }
.hg-svc-row.s2b img { height: 273px; }
.hg-svc-row.s3 { gap: 29px; }
.hg-svc-row.s3 img { height: 263px; }
.hg-svc-row.s4 { gap: 14px; }
.hg-svc-row.s4 img { height: 228px; }

@media (max-width: 1240px) {
  .hg-svc .hg-container { max-width: 1200px; }
  .hg-svc-row { flex-wrap: wrap; }
  .hg-svc-row img { max-width: 100%; }
}
@media (max-width: 991px) {
  .hg-svc-hero { height: auto; padding-bottom: 60px; }
  .hg-svc-bar { height: auto; padding: 12px 20px; }
  .hg-svc-bar h1 { font-size: 36px; }
  .hg-svc-row.s1 img, .hg-svc-row.s2 img, .hg-svc-row.s2b img,
  .hg-svc-row.s3 img, .hg-svc-row.s4 img { height: auto; width: 100%; }
  .hg-svc-h2 { font-size: 28px; }
}

/* =========================================================
   关于杭光 · 标准引领（定制页）
   ========================================================= */
.hg-std { background: #fff; }
.hg-std .hg-container { max-width: 1200px; padding: 0; }

.hg-std-hero {
  position: relative;
  height: 771px;
  padding-top: 178px;
  background-color: #14161B;
}
.hg-std-hero.hg-bg-ready {
  background-image: url('img/std_hero.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hg-std-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.33) 0%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,.61) 0%, rgba(0,0,0,.16) 100%);
}
.hg-std-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100%; pointer-events: none;
  background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 21%);
}
.hg-std-hero .hg-container { position: relative; z-index: 1; }

.hg-std-bar {
  height: 64px;
  display: flex; align-items: center;
  padding-left: 45px;
  background: linear-gradient(90deg, rgba(184,29,39,.9) 0%, rgba(184,29,39,.9) 38%, rgba(184,29,39,0) 100%);
}
.hg-std-bar h1 {
  margin: 0; color: #fff; font-weight: 400; line-height: 1;
  font-family: 'AlimamaShuHeiTi', 'OPPOSans', sans-serif;
  font-size: 48px;
}

.hg-std-body { padding: 60px 0 136px; }
.hg-std-inner { width: 1000px; max-width: 100%; margin: 0 auto; color: #000; }

.hg-std-h2 { font-size: 36px; font-weight: 700; color: #3A3A3A; margin: 0 0 50px; line-height: 1.25; }

.hg-std-block { margin-bottom: 45px; }
.hg-std-block p { margin: 0; font-size: 18px; line-height: 43px; }
.hg-std-block .hg-std-label { font-size: 20px; line-height: 40px; font-weight: 700; }

.hg-std-p { font-size: 20px; line-height: 40px; margin: 0 0 59px; text-indent: 2em; }

.hg-std-list { list-style: none; margin: 0 0 0 7px; padding: 0; }
.hg-std-list li { font-size: 20px; line-height: 60px; }
.hg-std-more { font-size: 20px; line-height: 60px; margin: 0 0 79px 7px; }

.hg-std-contact { font-size: 20px; line-height: 40px; text-align: right; margin: 0; }

@media (max-width: 1240px) {
  .hg-std .hg-container { max-width: 1200px; }
  .hg-std-inner { width: 100%; padding: 0 20px; }
}
@media (max-width: 991px) {
  .hg-std-hero { height: auto; padding-bottom: 60px; }
  .hg-std-bar { height: auto; padding: 12px 20px; }
  .hg-std-bar h1 { font-size: 36px; }
  .hg-std-h2 { font-size: 28px; margin-bottom: 30px; }
  .hg-std-block p, .hg-std-p, .hg-std-list li, .hg-std-more, .hg-std-contact { font-size: 17px; line-height: 1.9; }
  .hg-std-list li { line-height: 2.4; }
  .hg-std-body { padding: 30px 0 70px; }
}

/* =========================================================
   联系我们（定制页）
   ========================================================= */
.hg-ct { background: #fff; }
.hg-ct .hg-container { max-width: 1200px; padding: 0; }

.hg-ct-hero {
  position: relative;
  height: 386px;
  padding-top: 89px;
  background-color: #14161B;
}
.hg-ct-hero.hg-bg-ready {
  background-image: url('img/ct_hero.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hg-ct-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.33) 0%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,.61) 0%, rgba(0,0,0,.16) 100%);
}
.hg-ct-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100%; pointer-events: none;
  background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 21%);
}
.hg-ct-hero .hg-container { position: relative; z-index: 1; }

.hg-ct-bar {
  height: 64px;
  display: flex; align-items: center;
  padding-left: 45px;
  background: linear-gradient(90deg, rgba(184,29,39,.9) 0%, rgba(184,29,39,.9) 38%, rgba(184,29,39,0) 100%);
}
.hg-ct-bar h1 {
  margin: 0; color: #fff; font-weight: 400; line-height: 1;
  font-family: 'AlimamaShuHeiTi', 'OPPOSans', sans-serif;
  font-size: 48px;
}

.hg-ct-body { padding: 26px 0 496px; }
.hg-ct-grid { display: flex; gap: 75px; align-items: flex-start; }
.hg-ct-map { flex: 0 0 615px; max-width: 615px; }
.hg-ct-map img { width: 100%; height: auto; display: block; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.hg-amap {
  width: 100%; height: 480px; display: block;
  background-repeat: no-repeat; background-position: center; background-size: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.hg-mapframe {
  width: 100%; height: 480px; display: block; border: 0; background: #F7F7F7;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.hg-amap .amap-logo, .hg-amap .amap-copyright { opacity: .85; }
.hg-ct-info { flex: 1 1 auto; min-width: 0; }
.hg-ct-info h2 {
  margin: 0 0 18px; font-weight: 400; line-height: 1.2;
  font-family: 'AlimamaShuHeiTi', 'OPPOSans', sans-serif;
  font-size: 36px; color: var(--hg-accent);
}
.hg-ct-addr, .hg-ct-comm { margin: 0 0 18px; font-size: 20px; line-height: 28px; color: #454545; }
.hg-ct-qr { display: flex; align-items: center; gap: 23px; margin-top: 18px; }
.hg-ct-qr img { width: 120px; height: 120px; display: block; flex: 0 0 auto; }
.hg-ct-qr span { font-size: 18px; line-height: 24px; color: #454545; }

@media (max-width: 1240px) {
  .hg-ct .hg-container { max-width: 1200px; }
  .hg-ct-grid { flex-direction: column; gap: 40px; }
  .hg-ct-map { flex: 0 0 auto; width: 100%; max-width: 615px; }
  .hg-ct-body { padding: 30px 20px 90px; }
}
@media (max-width: 991px) {
  .hg-ct-hero { height: auto; padding-bottom: 60px; }
  .hg-ct-bar { height: auto; padding: 12px 20px; }
  .hg-ct-bar h1 { font-size: 36px; }
  .hg-ct-info h2 { font-size: 26px; }
  .hg-ct-addr, .hg-ct-comm { font-size: 17px; line-height: 1.8; }
  .hg-ct-qr span { font-size: 15px; }
}

/* =========================================================
   大屏缩放（仅 1080p 档）
   视口 1500–2000px（1080p 显示器 100%/125% 缩放都落在这里）
   → 正文区整体缩放到 80%；页眉/页脚保持原尺寸不动。
   4K（视口 ~3800 或 4K@150% 的 ~2530）与 2K 屏保持原尺寸。
   用 zoom（参与布局，高度同步缩，页脚不会错位），
   不用 transform（transform 不影响布局高度）。
   ========================================================= */
@media (min-width: 1500px) and (max-width: 2000px) {
  .hg-main,
  section.animsition,
  section.page404 { zoom: 0.8; }
}
