/* 费浦智能官网 - 商汤方舟风格 */
:root {
  --navy: #1b2a5e;
  --blue: #2b5fd9;
  --blue-light: #eef3fc;
  --orange: #e8552f;
  --ink: #1a2233;
  --muted: #6b7688;
  --line: rgba(20, 30, 60, 0.1);
  --grad: linear-gradient(135deg, #e8552f, #2b5fd9);
  --grad-hero: linear-gradient(120deg, #1b2a5e 0%, #2b5fd9 55%, #7a3fd0 130%);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* 顶部导航 */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
img.logo-mark { object-fit: contain; background: transparent; padding: 0; width: auto; height: 48px; max-width: 220px; border-radius: 0; }
.logo small { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.main-nav { display: flex; flex-wrap: nowrap; gap: 20px; font-size: 13.5px; }
.main-nav a { position: relative; padding: 6px 0; color: var(--ink); white-space: nowrap; flex: none; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 2px; background: var(--orange); }
.nav-cta { background: var(--grad); color: #fff; font-size: 14px; padding: 9px 22px; border-radius: 8px; border: none; cursor: pointer; flex-shrink: 0; }
.nav-cta:hover { opacity: 0.9; }
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-btn svg { width: 24px; height: 24px; }

/* 顶部右上角搜索 */
.nav-search { position: relative; display: flex; align-items: center; gap: 7px; flex: none; width: 190px; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 99px; background: #f6f8fc; transition: border-color 0.18s, background 0.18s, box-shadow 0.18s; }
.nav-search:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 6px 18px rgba(43, 95, 217, 0.12); }
.nav-search-ico { width: 16px; height: 16px; color: var(--muted); flex: none; }
.nav-search input[type="search"] { flex: 1; min-width: 0; border: none; outline: none; background: none; font-family: inherit; font-size: 13.5px; color: var(--ink); padding: 0; }
.nav-search input[type="search"]::placeholder { color: #9aa3b5; }
.nav-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.nav-search-clear { flex: none; width: 18px; height: 18px; padding: 0; border: none; border-radius: 50%; background: #e7ebf3; color: var(--muted); font-size: 13px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nav-search-clear[hidden] { display: none; }
.nav-search-panel { left: auto; right: 0; width: 400px; max-width: calc(100vw - 32px); }
.nav-hot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; }
.nav-hot .hot-label { font-size: 12px; color: var(--muted); }

.nav-search.compact { width: 36px; padding: 0; justify-content: center; background: #fff; cursor: pointer; }
.nav-search.compact .nav-search-ico { width: 18px; height: 18px; }
.nav-search.compact input,
.nav-search.compact .nav-search-clear,
.nav-search.compact .nav-search-panel { display: none; }
.nav-search.compact.open { position: absolute; top: 100%; left: 0; right: 0; width: auto; height: auto; padding: 12px 20px 14px; justify-content: flex-start; flex-wrap: wrap; border: none; border-top: 1px solid var(--line); border-radius: 0; background: #fff; box-shadow: 0 14px 26px rgba(20, 30, 60, 0.1); z-index: 95; cursor: default; }
.nav-search.compact.open input,
.nav-search.compact.open .nav-search-clear { display: block; }
.nav-search.compact.open .nav-search-panel { display: block; position: static; width: auto; max-width: none; margin-top: 10px; border: 1px solid var(--line); box-shadow: none; max-height: min(60vh, 420px); flex: 1 0 100%; }

/* 中英文切换 */
.lang-switch { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.lang-switch button { border: none; background: #fff; color: var(--muted); font-size: 12.5px; padding: 6px 10px; cursor: pointer; font-family: inherit; line-height: 1; transition: background .18s, color .18s; }
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button:hover { color: var(--blue); }
.lang-switch button.on { background: var(--blue); color: #fff; }
/* 英文导航文字更长，压缩间距避免换行 */
.lang-en .main-nav { gap: 16px; font-size: 13px; }
.lang-en .main-nav a { white-space: nowrap; }
/* 中窄屏：进一步收紧导航字号与搜索框宽度，保证单行显示 */
@media (max-width: 1279px) {
  .main-nav { gap: 14px; font-size: 13px; }
  .lang-en .main-nav { gap: 12px; font-size: 12.5px; }
  .nav-inner { gap: 14px; }
  .nav-search { width: 160px; }
  .logo { font-size: 16px; }
  .nav-cta { font-size: 13.5px; padding: 8px 18px; }
}
/* 再窄一点：搜索框继续收窄，给导航留足单行空间 */
@media (max-width: 1180px) {
  .nav-search { width: 140px; }
}
/* 屏宽不足：导航收进汉堡菜单、搜索收为图标，彻底避免文字换行 */
@media (max-width: 1100px) {
  .main-nav { display: none; position: absolute; top: 96px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 24px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); font-size: 14.5px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a.active::after { display: none; }
  .menu-btn { display: block; }
}

/* 主视觉 */
.hero { background: var(--grad-hero); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.15); }
.hero::before { content: ""; position: absolute; right: -40px; top: -40px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); }
.hero-inner { max-width: 1280px; margin: 0 auto; padding: 24px 32px; position: relative; z-index: 1; }
.hero-badge { display: inline-block; background: rgba(255, 255, 255, 0.16); color: #ffd9cc; font-size: 13px; padding: 4px 14px; border-radius: 99px; margin-bottom: 18px; }
.hero h1 { font-size: 44px; font-weight: 600; line-height: 1.25; margin-bottom: 14px; }
.hero p { color: rgba(220, 228, 250, 0.9); font-size: 17px; max-width: 640px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
/* 宣传页轮播 */
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.8s ease; z-index: 0; background-size: cover; background-position: center; aspect-ratio: 1920 / 640; min-height: 320px; }
.hero-slide.has-img { background-position: left center; }
.hero-slide .hero-inner h1, .hero-slide .hero-inner p, .hero-slide .hero-badge { text-shadow: 0 1px 10px rgba(7, 18, 38, 0.55); }
.hero-slide.active { position: relative; opacity: 1; visibility: visible; z-index: 1; display: flex; align-items: center; }
.hero-slide .hero-inner { position: relative; z-index: 2; }
.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 6; }
.hero-dot { width: 26px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.35); border: none; cursor: pointer; padding: 0; transition: background 0.3s; }
.hero-dot.active { background: #fff; }
.btn { display: inline-block; padding: 11px 28px; border-radius: 8px; font-size: 15px; cursor: pointer; border: none; transition: opacity 0.2s; }
.btn:hover { opacity: 0.88; }
.btn-white { background: #fff; color: var(--blue); font-weight: 600; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.7); }
.btn-primary { background: var(--grad); color: #fff; font-weight: 600; }
.btn-line { background: #fff; color: var(--blue); border: 1px solid var(--blue); }

/* 数据亮点 */
.stats-band { background: #f4f6fb; }
.stats-inner { max-width: 1280px; margin: 0 auto; padding: 26px 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 30px; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13px; color: var(--muted); }

/* 区块 */
.section { max-width: 1280px; margin: 0 auto; padding: 72px 32px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: 30px; font-weight: 600; }
.section-head p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.section-head .more { color: var(--blue); font-size: 14px; margin-left: 12px; }

/* 分类 Tab */
.tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.tab { padding: 9px 26px; border-radius: 8px; font-size: 15px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: all 0.2s; }
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab.active { background: var(--grad); color: #fff; border-color: transparent; }

/* 产品/内容卡片 */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(27, 42, 94, 0.12); }
.card-media { height: 180px; background: linear-gradient(120deg, #23357a, #2b5fd9); display: flex; align-items: center; justify-content: center; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
/* 产品图按设备真实尺寸分档（sizeTier 由产品参数解析）：闸机/大屏占满，中型终端、
   小型设备、读头卡类依次缩小并居中，保证多卡并排时相对大小与实际相符。
   分档卡底色改浅灰白，避免 contain 留白处露出蓝色渐变形成“蓝边框” */
.card-media.size-lg, .card-media.size-md, .card-media.size-sm, .card-media.size-xs { background: #f4f6fa; }
.card-media.size-lg img, .card-media.size-md img, .card-media.size-sm img, .card-media.size-xs img { object-fit: contain; }
.card-media.size-md img { height: 82%; }
.card-media.size-sm img { height: 64%; }
.card-media.size-xs img { height: 50%; }
.card-media svg { width: 56px; height: 56px; opacity: 0.9; }
.card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.card-body p { font-size: 13.5px; color: var(--muted); flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { font-size: 12px; background: var(--blue-light); color: var(--blue); padding: 2px 12px; border-radius: 99px; }
.chip.hot { background: #fcedemix; }
.hot-badge { position: absolute; top: 12px; left: 12px; background: var(--orange); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 99px; }
.card-link { color: var(--blue); font-size: 14px; margin-top: 12px; }
.cat-tag { display: inline-block; font-size: 12px; color: var(--orange); border: 1px solid var(--orange); border-radius: 4px; padding: 1px 8px; margin-bottom: 8px; }

/* 产品矩阵行卡 */
.matrix { display: flex; flex-direction: column; gap: 14px; }
.matrix-row { display: flex; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; transition: box-shadow 0.25s, transform 0.25s; }
.matrix-row:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(27, 42, 94, 0.1); }
.matrix-logo { width: 52px; height: 52px; border-radius: 12px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; flex-shrink: 0; overflow: hidden; }
.matrix-logo img { width: 100%; height: 100%; object-fit: cover; }
.matrix-main { flex: 1; min-width: 0; }
.matrix-main h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.matrix-main p { font-size: 13px; color: var(--muted); }
.matrix-points { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; padding: 0; list-style: none; }
.matrix-points li { position: relative; padding-left: 14px; font-size: 12.5px; color: #3c4a63; }
.matrix-points li::before { content: ''; position: absolute; left: 0; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.matrix-link { color: var(--blue); font-size: 14px; flex-shrink: 0; white-space: nowrap; }

/* 解决方案横卡 */
.sol-card { border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; transition: box-shadow 0.25s, transform 0.25s; display: flex; flex-direction: column; }
.sol-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(27, 42, 94, 0.12); }
.sol-card h3 { font-size: 17px; font-weight: 600; color: var(--blue); margin-bottom: 8px; }
.sol-card p { font-size: 13.5px; color: var(--muted); flex: 1; }
.sol-card .card-link { color: var(--orange); margin-top: 14px; }

/* 新闻 */
.news-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(27, 42, 94, 0.12); }
.news-media { height: 170px; background: linear-gradient(120deg, #23357a, #2b5fd9); }
.news-media img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.news-tag { align-self: flex-start; font-size: 12px; padding: 2px 10px; border-radius: 99px; margin-bottom: 10px; }
.news-tag.c-company { background: #fcedemix; }
.news-body h3 { font-size: 16px; font-weight: 600; line-height: 1.5; flex: 1; }
.news-body time { font-size: 13px; color: #9aa3b5; margin-top: 10px; }
.tag-company { background: #fcede4; color: #c2410c; }
.tag-industry { background: var(--blue-light); color: var(--blue); }
.tag-tech { background: #e8f6ef; color: #0f6e56; }

/* 转化横幅 */
.cta-band { max-width: 1280px; margin: 72px auto 0; padding: 0 32px; }
.cta-inner { background: var(--grad-hero); border-radius: 18px; padding: 36px 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-inner h3 { color: #fff; font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.cta-inner p { color: rgba(214, 224, 248, 0.9); font-size: 14px; }
.cta-inner .btn-white { font-size: 15px; padding: 12px 30px; }

/* 详情页 */
.detail-wrap { max-width: 860px; margin: 0 auto; padding: 56px 32px; }
.detail-wrap h1 { font-size: 28px; font-weight: 600; line-height: 1.4; margin: 12px 0 8px; }
.detail-meta { color: #9aa3b5; font-size: 14px; margin-bottom: 28px; display: flex; gap: 16px; flex-wrap: wrap; }
.detail-cover { border-radius: 14px; margin-bottom: 28px; }
.detail-content { font-size: 15.5px; color: #333f55; line-height: 1.9; white-space: pre-wrap; }
/* 详情页图文混排 */
.fig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.fig-grid.fig-single { grid-template-columns: 1fr; }
.fig-grid .detail-figure { margin: 0; }
.fig-grid.fig-single .detail-figure img { max-width: 720px; margin: 0 auto; }
.detail-figure { margin: 24px 0; }
.detail-figure img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 28px rgba(15, 40, 90, 0.12); border: 1px solid var(--line); }
.detail-figure figcaption { margin-top: 10px; text-align: center; font-size: 13.5px; color: #9aa3b5; letter-spacing: 0.5px; }
/* 网格中奇数张时最后一张占满整行，避免留空 */
.fig-grid:not(.fig-single) .detail-figure:last-child:nth-child(odd) { grid-column: span 2; }
@media (max-width: 720px) {
  .fig-grid { grid-template-columns: 1fr; gap: 16px; }
  .fig-grid:not(.fig-single) .detail-figure:last-child:nth-child(odd) { grid-column: auto; }
}
.back-link { color: var(--blue); font-size: 14px; }
.atta-list { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 20px; }
.atta-list h3 { font-size: 16px; margin-bottom: 12px; }
.atta-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.atta-item a { color: var(--blue); }

/* 列表页头部 */
.page-hero { background: var(--grad-hero); color: #fff; }
.page-hero-inner { max-width: 1280px; margin: 0 auto; padding: 56px 32px; }
.page-hero h1 { font-size: 32px; font-weight: 600; margin-bottom: 8px; }
.page-hero p { color: rgba(214, 224, 248, 0.85); font-size: 15px; }

/* 资料下载 */
.dl-row { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; transition: box-shadow 0.2s; }
.dl-row:hover { box-shadow: 0 8px 20px rgba(27, 42, 94, 0.08); }
.dl-row h3 { font-size: 15.5px; font-weight: 600; }
.dl-row .chip { margin-top: 6px; }
.dl-empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* 资质证书 */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.cert-card { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column; }
.cert-card:hover, .cert-card:focus-within { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(27, 42, 94, 0.12); }
.cert-thumb { aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; background: #f4f7ff; overflow: hidden; cursor: zoom-in; }
.cert-thumb:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cert-ph { color: var(--muted); font-size: 13px; letter-spacing: 1px; }
.cert-card figcaption { padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cert-card figcaption b { font-size: 14px; font-weight: 600; color: #1b2a5e; line-height: 1.5; }
.cert-card figcaption span { font-size: 12.5px; color: var(--muted); }
.cert-acts { display: flex; gap: 8px; padding: 0 14px 14px; }
.cert-btn { flex: 1; text-align: center; font-size: 12.5px; font-family: inherit; line-height: 1.2; padding: 8px 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--blue); text-decoration: none; cursor: pointer; white-space: nowrap; transition: 0.2s; }
.cert-btn:hover { border-color: var(--blue); background: #f5f8ff; }
.cert-btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.cert-btn.primary:hover { background: #1f4cbd; }

/* 检测报告 */
.report-list { display: flex; flex-direction: column; gap: 12px; }
.report-row { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; background: #fff; transition: box-shadow 0.2s; }
.report-row:hover { box-shadow: 0 8px 20px rgba(27, 42, 94, 0.08); }
.report-ic { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, #2b5fd9, #4b86f0); color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; letter-spacing: 0.5px; }
.report-main { flex: 1; min-width: 0; }
.report-main b { display: block; font-size: 15px; font-weight: 600; color: #1b2a5e; margin-bottom: 4px; }
.report-main span { font-size: 13px; color: var(--muted); }
.report-acts { display: flex; gap: 8px; flex: none; }
.report-btn { border: 1px solid var(--line); background: #fff; color: var(--blue); font-size: 13px; font-family: inherit; padding: 8px 16px; border-radius: 8px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: 0.2s; }
.report-btn:hover { border-color: var(--blue); background: #f5f8ff; }
.report-btn.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.report-btn.primary:hover { background: #1f4cbd; }

/* 证书放大查看 */
.cert-zoom { position: fixed; inset: 0; z-index: 300; background: rgba(12, 20, 40, 0.84); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; gap: 14px; }
.cert-zoom[hidden] { display: none; }
.cert-zoom img { max-width: min(92vw, 760px); max-height: 76vh; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.cert-zoom p { color: #e7edf9; font-size: 14px; text-align: center; }
.cert-zoom-close { position: absolute; top: 20px; right: 24px; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.cert-zoom-close:hover { background: rgba(255, 255, 255, 0.26); }

/* 报告/证书 文件在线预览（PDF 用浏览器内置阅读器） */
.doc-view { position: fixed; inset: 0; z-index: 320; background: rgba(12, 20, 40, 0.86); display: flex; align-items: center; justify-content: center; padding: 28px 24px; }
.doc-view[hidden] { display: none; }
.dv-panel { width: min(1080px, 100%); height: min(86vh, 900px); background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.dv-head { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--line); background: #f7f9fe; }
.dv-head b { flex: 1; min-width: 0; font-size: 15px; color: #1b2a5e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-acts { display: flex; align-items: center; gap: 8px; flex: none; }
.dv-acts a { font-size: 13px; color: var(--blue); text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 13px; background: #fff; white-space: nowrap; }
.dv-acts a:hover { border-color: var(--blue); background: #f0f5ff; }
.dv-acts a.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.dv-acts a.primary:hover { background: #1f4cbd; }
.dv-acts button { width: 34px; height: 34px; border: none; border-radius: 50%; background: #eef2fb; color: #43507a; font-size: 22px; line-height: 1; cursor: pointer; }
.dv-acts button:hover { background: #e0e7f7; }
.dv-body { flex: 1; min-height: 0; background: #eef1f7; }
.dv-body iframe { width: 100%; height: 100%; border: 0; display: block; }
.dv-tip { font-size: 12.5px; color: var(--muted); padding: 9px 20px; background: #f7f9fe; border-top: 1px solid var(--line); margin: 0; }

/* 联系我们 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info h3 { font-size: 20px; margin-bottom: 16px; }
.contact-info dl { font-size: 15px; }
.contact-info dt { color: var(--muted); font-size: 13px; margin-top: 16px; }
.contact-info dd { margin-top: 2px; }
/* 扫码关注二维码卡片 */
.qr-card { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, #f6f9ff, #fff); }
.qr-card[hidden] { display: none; }
.qr-img-box { flex: none; width: 128px; height: 128px; border-radius: 10px; background: #fff; border: 1px solid var(--line); padding: 6px; display: flex; align-items: center; justify-content: center; }
.qr-img-box img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.qr-info b { display: block; font-size: 15.5px; margin-bottom: 6px; }
.qr-info p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 8px; }
.qr-tip { display: inline-block; font-size: 12px; color: var(--blue); background: rgba(43, 95, 217, 0.08); border-radius: 20px; padding: 3px 10px; }
.form-card { border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.form-card label { display: block; font-size: 14px; font-weight: 500; margin: 14px 0 6px; }
.form-card label:first-child { margin-top: 0; }
.form-card input, .form-card textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: 14px; font-family: inherit; outline: none; }
.form-card input:focus, .form-card textarea:focus { border-color: var(--blue); }
.form-card textarea { min-height: 120px; resize: vertical; }
.form-msg { margin-top: 12px; font-size: 14px; min-height: 20px; }
.form-msg.ok { color: #0f6e56; }
.form-msg.err { color: #c2410c; }
/* 隐私政策同意项 */
.form-card .agree-row { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 2px; font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.65; cursor: pointer; }
.form-card .agree-row[hidden] { display: none; }
.form-card .agree-row input[type="checkbox"] { width: auto; flex: none; margin: 3px 0 0; padding: 0; accent-color: var(--blue); cursor: pointer; }
.form-card .agree-row a { color: var(--blue); }
.form-card .agree-row a:hover { text-decoration: underline; }
.agree-row.shake { animation: agreeShake 0.5s; }
@keyframes agreeShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  45% { transform: translateX(5px); }
  70% { transform: translateX(-3px); }
}

/* 页脚 */
.site-footer {
  position: relative;
  margin-top: 88px;
  color: #9aa6c8;
  background:
    radial-gradient(1000px 340px at 50% -80px, rgba(90, 132, 232, 0.26), rgba(90, 132, 232, 0) 72%),
    linear-gradient(180deg, #1a2749 0%, #141d3a 48%, #0e1630 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 52px 32px 24px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 28px 40px; padding-bottom: 32px; }
.footer-grid:empty { display: none; }
.footer-grid .footer-col { flex: 1 1 0; min-width: 130px; }
.footer-brand h3 { color: #fff; font-size: 17px; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.9; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; font-weight: 500; }
.footer-col a { display: block; font-size: 13px; margin-bottom: 9px; color: #9aa6c8; }
.footer-col a:hover { color: #fff; }
/* 页脚右侧：服务热线 + 二维码（参照商汤方舟样式） */
.footer-hotline { flex: 0 0 260px; margin-left: auto; text-align: left; }
.footer-hotline h4 { color: #fff; font-size: 14px; margin-bottom: 14px; font-weight: 500; }
.footer-hotline a { display: block; color: #9aa6c8; }
.footer-hotline a:hover { color: #fff; }
.footer-hotline .fh-tel { font-size: 26px; font-weight: 600; color: #fff; letter-spacing: 1px; line-height: 1.2; margin-bottom: 8px; white-space: nowrap; }
.footer-hotline .fh-sub { font-size: 13px; margin-bottom: 8px; }
.footer-hotline .fh-time { display: block; font-size: 12.5px; color: #9aa6c8; margin-bottom: 14px; }
.footer-hotline .fh-qr { margin-bottom: 14px; }
.footer-hotline .fh-qr img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; background: #fff; padding: 4px; box-sizing: border-box; }
.footer-hotline .fh-qr span { display: block; margin-top: 6px; font-size: 12px; color: #9aa6c8; }
.footer-hotline .fh-mail { font-size: 13px; margin-bottom: 6px; word-break: break-all; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 18px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 0; font-size: 12px; text-align: center; color: #9aa6c8; }
.footer-bottom > * { display: inline-flex; align-items: center; }
.footer-bottom > * + *::before { content: "|"; margin: 0 14px; color: rgba(255, 255, 255, 0.22); }
/* 友情链接（页脚） */
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 18px 0 0; font-size: 12.5px; }
.footer-links .fl-label { color: #fff; font-weight: 500; opacity: 0.85; }
.footer-links a { color: #9aa6c8; transition: color 0.2s; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-links + .footer-bottom { margin-top: 16px; }

/* 站内搜索 */
.search-band { background: #f4f6fb; padding: 28px 32px 0; }
.search-wrap { max-width: 1280px; margin: 0 auto; }
.search-box { position: relative; display: flex; align-items: center; gap: 10px; max-width: 800px; margin: 0 auto; background: #fff; border: 1px solid rgba(20, 30, 60, 0.14); border-radius: 14px; padding: 7px 8px 7px 16px; box-shadow: 0 10px 28px rgba(27, 42, 94, 0.09); transition: border-color 0.2s, box-shadow 0.2s; }
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 12px 32px rgba(43, 95, 217, 0.16); }
.search-ico { width: 19px; height: 19px; color: var(--muted); flex: none; }
.search-box input[type="search"] { flex: 1; min-width: 0; border: none; outline: none; background: none; font-family: inherit; font-size: 15.5px; color: var(--ink); padding: 8px 0; }
.search-box input[type="search"]::-webkit-search-cancel-button { display: none; }
.search-box input::placeholder { color: #9aa3b5; }
.search-clear { flex: none; width: 24px; height: 24px; border: none; border-radius: 50%; background: #eef1f7; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.search-clear[hidden] { display: none; }
.search-clear:hover { background: #e2e7f1; color: var(--ink); }
.search-btn { flex: none; border: none; border-radius: 10px; background: var(--grad); color: #fff; font-family: inherit; font-size: 14.5px; font-weight: 500; padding: 10px 26px; cursor: pointer; transition: opacity 0.2s; }
.search-btn:hover { opacity: 0.9; }

/* 即时结果下拉 */
.search-panel { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(20, 30, 60, 0.16); max-height: min(64vh, 520px); overflow-y: auto; text-align: left; }
.search-panel[hidden] { display: none; }
.sr-loading { padding: 22px; text-align: center; color: var(--muted); font-size: 13.5px; }
.sr-group-head { display: flex; align-items: center; gap: 8px; padding: 10px 16px 6px; font-size: 12px; color: var(--muted); background: #fafbfe; letter-spacing: 0.04em; border-top: 1px solid var(--line); }
.sr-group:first-child .sr-group-head { border-top: none; }
.sr-group-head em { font-style: normal; background: rgba(43, 95, 217, 0.1); color: var(--blue); border-radius: 99px; padding: 0 7px; font-size: 11px; line-height: 17px; }
.sr-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid rgba(20, 30, 60, 0.05); }
.sr-item:last-child { border-bottom: none; }
.sr-item:hover, .sr-item.active { background: var(--blue-light); }
.sr-main { flex: 1; min-width: 0; }
.sr-title { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-desc { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-arrow { flex: none; color: #c3cad8; font-size: 14px; }
.sr-item:hover .sr-arrow, .sr-item.active .sr-arrow { color: var(--blue); }
.sr-foot { padding: 10px 16px; font-size: 12.5px; color: var(--muted); text-align: right; background: #fafbfe; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; }
.sr-foot a { color: var(--blue); }
.sr-empty { padding: 26px 20px; text-align: center; color: var(--muted); }
.sr-empty b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.sr-empty span { font-size: 12.5px; }
mark { background: rgba(232, 85, 47, 0.18); color: inherit; border-radius: 2px; padding: 0 1px; }

/* 热门搜索词 */
.search-hot { max-width: 800px; margin: 14px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 12.5px; color: var(--muted); }
.search-hot[hidden] { display: none; }
.search-hot .hot-label { color: var(--muted); }
.hot-kw { border: 1px solid var(--line); background: #f6f8fc; color: #3c4a63; font-family: inherit; font-size: 12.5px; border-radius: 99px; padding: 4px 12px; cursor: pointer; transition: background 0.18s, color 0.18s, border-color 0.18s; }
.hot-kw:hover { background: #fff; border-color: var(--blue); color: var(--blue); }

/* 搜索页 */
.page-hero .page-search-box { margin: 24px 0 0; max-width: 720px; }
.page-hero .search-hot { margin: 14px 0 0; max-width: 720px; color: rgba(214, 224, 248, 0.8); }
.page-hero .hot-kw { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); color: #eef3fc; }
.page-hero .hot-kw:hover { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.section-search { padding-top: 40px; }
.tabs-left { justify-content: flex-start; }
.tabs-left .tab em { font-style: normal; font-size: 12px; opacity: 0.75; margin-left: 4px; }
.search-summary { font-size: 13.5px; color: var(--muted); margin: -8px 0 22px; }
.search-summary b { color: var(--ink); font-weight: 600; }
.sr-block { margin-bottom: 34px; }
.sr-block-head { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.sr-block-head em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--blue); background: rgba(43, 95, 217, 0.1); border-radius: 99px; padding: 1px 8px; }
.sr-list { display: flex; flex-direction: column; gap: 10px; }
.sr-row { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }
.sr-row:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(27, 42, 94, 0.09); border-color: rgba(43, 95, 217, 0.35); }
.sr-row-body { flex: 1; min-width: 0; }
.sr-row-body h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.sr-row-body p { font-size: 13px; color: var(--muted); line-height: 1.65; }
.sr-row-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sr-row-go { flex: none; color: var(--blue); font-size: 13.5px; white-space: nowrap; }
.sr-more { font-size: 13px; color: var(--muted); margin-top: 10px; }
.sr-more a { color: var(--blue); }

/* 页面加载/空态 */
.loading { text-align: center; color: var(--muted); padding: 60px 0; font-size: 14px; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.empty p { font-size: 15px; }

/* 隐私政策 / 法律条款页 */
.legal-section { padding-top: 56px; padding-bottom: 72px; }
.legal-wrap { display: grid; grid-template-columns: 236px 1fr; gap: 44px; align-items: start; max-width: 1080px; }
.legal-toc { position: sticky; top: 88px; border-left: 2px solid var(--line); padding: 4px 0 4px 18px; }
.legal-toc-title { display: block; font-size: 12.5px; color: var(--muted); letter-spacing: 0.06em; margin-bottom: 10px; }
.legal-toc nav { display: flex; flex-direction: column; gap: 1px; }
.legal-toc a { font-size: 13.5px; color: var(--muted); padding: 5px 0; line-height: 1.5; transition: color 0.18s; }
.legal-toc a:hover, .legal-toc a.on { color: var(--blue); }
.legal-doc { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 40px 44px 34px; box-shadow: 0 12px 32px rgba(27, 42, 94, 0.05); }
.legal-title { font-size: 28px; font-weight: 600; line-height: 1.35; }
.legal-meta { font-size: 13px; color: var(--muted); margin-top: 8px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.legal-intro { margin-top: 20px; padding: 16px 20px; background: var(--blue-light); border-radius: 12px; }
.legal-intro p { font-size: 14.5px; color: #33405c; line-height: 1.9; margin-bottom: 8px; }
.legal-intro p:last-child { margin-bottom: 0; }
.legal-sec { margin-top: 30px; scroll-margin-top: 84px; }
.legal-h { font-size: 17.5px; font-weight: 600; margin-bottom: 12px; padding-left: 12px; border-left: 3px solid var(--blue); line-height: 1.5; }
.legal-sec p, .legal-intro p { color: #4a5568; }
.legal-sec p { font-size: 15px; line-height: 1.95; margin-bottom: 10px; }
.legal-list { margin: 2px 0 12px; list-style: none; }
.legal-list li { position: relative; padding-left: 18px; font-size: 15px; color: #4a5568; line-height: 1.95; }
.legal-list li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); opacity: 0.55; }
.legal-empty { text-align: center; padding: 46px 0 16px; }
.legal-empty b { display: block; font-size: 18px; margin-bottom: 8px; }
.legal-empty p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.legal-foot { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.legal-foot p { font-size: 14px; color: var(--muted); margin: 0; }
.legal-foot .btn { padding: 9px 20px; font-size: 14px; }
.ft-privacy { color: inherit; transition: color 0.2s; }
.ft-privacy:hover { color: #fff; text-decoration: underline; }

@media (max-width: 960px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 0; }
  .legal-toc { display: none; }
  .legal-doc { padding: 28px 22px 26px; border-radius: 12px; }
  .legal-title { font-size: 22px; }
  .legal-sec { margin-top: 26px; }
  .legal-h { font-size: 16px; }
  .legal-sec p, .legal-list li { font-size: 14.5px; }
  .legal-section { padding-top: 36px; padding-bottom: 52px; }
}

/* 响应式 */
@media (max-width: 960px) {
  .main-nav { display: none; position: absolute; top: 96px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 24px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a.active::after { display: none; }
  .menu-btn { display: block; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 32px; }
  .hero-inner { padding: 20px 24px; }
  .hero-slide { min-height: 340px; }
  .hero-slide.has-img { background-position: 75% center; }
  .footer-grid { gap: 24px 28px; }
  .footer-hotline { margin-left: 0; text-align: left; }
  .contact-grid { grid-template-columns: 1fr; }
  .matrix-row { flex-wrap: wrap; }
  .matrix-points { flex-direction: column; gap: 4px; }
}
@media (max-width: 600px) {
  /* 顶部空间紧张：压缩品牌区与语言切换，保证导航、CTA、切换按钮都不换行 */
  .nav-inner { gap: 6px; }
  .logo { font-size: 14px; gap: 6px; }
  .logo small { display: none; }
  .logo-mark { width: 28px; height: 28px; font-size: 11px; }
  img.logo-mark { height: 32px; max-width: 120px; }
  .nav-cta { padding: 5px 7px; font-size: 12px; }
  .lang-switch button { padding: 4px 5px; font-size: 11px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 48px 20px 0; }
  .section-head h2 { font-size: 24px; }
  .hero h1 { font-size: 27px; }
  .page-hero h1 { font-size: 26px; }
  .cta-inner { padding: 28px 24px; }
  .detail-wrap { padding: 36px 20px; }
  .nav-inner, .stats-inner, .footer-inner { padding-left: 20px; padding-right: 20px; }
  .qr-card { flex-direction: column; text-align: center; }
  .qr-info p { margin-bottom: 6px; }
  .search-band { padding: 20px 20px 0; }
  .search-box { padding: 6px 6px 6px 12px; border-radius: 12px; }
  .search-box input[type="search"] { font-size: 14px; }
  .search-btn { padding: 9px 15px; font-size: 13.5px; }
  .search-panel { max-height: 62vh; }
  .section-search { padding-top: 32px; }
  .sr-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cert-card figcaption { padding: 10px 12px 8px; }
  .cert-acts { flex-direction: column; gap: 6px; padding: 0 12px 12px; }
  .cert-btn { font-size: 12px; padding: 7px 4px; }
  .report-row { flex-wrap: wrap; align-items: flex-start; }
  .report-acts { width: 100%; }
  .report-btn { flex: 1; text-align: center; }
  .doc-view { padding: 0; }
  .dv-panel { width: 100%; height: 100%; border-radius: 0; }
  .dv-head { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
  .dv-head b { width: 100%; flex: 1 0 100%; }
  .dv-acts a { padding: 6px 10px; font-size: 12.5px; }
  .dv-tip { font-size: 12px; padding: 8px 12px; }
  /* 头部空间紧张：压缩间距并去掉前面共享规则的影响，保证 logo/搜索/CTA/语言/菜单完整显示 */
  .nav-inner { padding-left: 10px; padding-right: 10px; gap: 2px; }
  .menu-btn { padding: 3px; }
  .nav-search.compact { width: 32px; height: 32px; padding: 0; }
  .nav-search.compact .nav-search-ico { width: 17px; height: 17px; }
  .nav-search.compact.open input { border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; background: #f6f8fc; }
}

/* 首帧防闪：页面脚本填充内容前，先隐藏「写死的占位/旧文案」区块（visibility 保留布局，避免跳动），
   渲染完成由 main.js 的 finishBoot() 立即恢复；脚本异常时 1.5 秒兜底显示 */
html.page-boot .loading,
html.page-boot .footer-grid,
html.page-boot .footer-bottom,
html.page-boot .contact-info dl,
html.page-boot .cta-inner p,
html.page-boot #aboutIntro,
html.page-boot #aboutStats,
html.page-boot #cultureBox,
html.page-boot #promiseBox,
html.page-boot #matrixTitle,
html.page-boot #matrixSub,
html.page-boot #matrixBox {
  visibility: hidden !important;
}

/* 页面切换反馈：点站内链接瞬间显示顶部进度条 + 内容轻微淡出，
   避免浏览器在新页面首帧到达前一直定格在旧页面（被误认为「卡在旧页面/闪一下旧页面」） */
.nav-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, #e8552f, #2b5fd9);
  z-index: 9999; opacity: 0; pointer-events: none;
  transition: opacity .12s ease, width .55s ease;
}
.nav-progress.on { opacity: 1; width: 88%; }
html.nav-busy main,
html.nav-busy .page-hero { opacity: .45; transition: opacity .12s ease; }
