/* 北京宇通时代检测技术有限公司 — 新站样式 */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #0f2744;
  --text: #1f2a37;
  /* 色值经 WCAG 对比度核算：
     --muted      改为 #5b6b7f — 对页面底 5.08:1、对卡片 5.45:1（原 #64748b 仅 4.43:1，不足 AA）
     --accent-dark 改为 #a85410 — 对页面底 4.97:1、对卡片 5.33:1（原 #c96512 仅 3.65:1）
     --accent 保持 #e27a1f：它作为文字色仅 2.98:1，因此只用于大字与图形填充，
     文字场景一律用 --accent-dark。 */
  --muted: #5b6b7f;
  --accent: #e27a1f;
  --accent-dark: #a85410;
  --border: #e5eaf0;
  --navy: #0b1f38;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(15, 39, 68, 0.08);
  --container: 1180px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, .btn { font-family: inherit; }

.container {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

/* Top bar */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  gap: 16px;
}
.topbar a { color: rgba(255, 255, 255, 0.86); }
.topbar a:hover { color: var(--accent); }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-logo {
  height: 48px;
  width: auto;
  max-width: min(280px, 55vw);
  object-fit: contain;
  object-position: left center;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--ink), #1b4a78);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.brand-text .name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.brand-text .tag {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: 0.15s ease;
}
.nav a:hover,
.nav a.active {
  color: var(--accent);
  background: rgba(226, 122, 31, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  font-size: 18px;
}

/* 页头搜索框
 *
 * 为什么放页头而不是首页单独做一个大搜索框：老站每个栏目页侧栏都有
 * 「产品快捷查找」，访客已经习惯「任何页面都能搜」。放在 header 里
 * 意味着八个栏目页都自带这个入口，不用每页各写一遍。
 *
 * 桌面端展开成一条输入框；≤860px 折叠成放大镜图标，点开变成全宽搜索条，
 * 避免和汉堡菜单抢横向空间。
 */
.nav-search {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  flex-shrink: 0;
}
.nav-search input {
  width: 168px;
  max-width: 42vw;
  border: 0;
  outline: 0;
  padding: 9px 0 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: transparent;
}
.nav-search input::placeholder {
  color: var(--muted);
}
.nav-search button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 9px 11px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}
.nav-search button:hover {
  color: var(--accent);
}
.nav-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(226, 122, 31, 0.14);
}

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(11, 31, 56, 0.96), rgba(15, 39, 68, 0.88)),
    radial-gradient(circle at 80% 20%, rgba(226, 122, 31, 0.28), transparent 42%),
    var(--navy);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
}
.hero .container {
  position: relative;
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(226, 122, 31, 0.16);
  color: #f6c48a;
  font-size: 13px;
  font-weight: 600;
}
.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.hero p.lead {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  max-width: 34em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.btn-outline {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(8px);
}
.hero-card h3 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 600;
}
.hero-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.stat {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
}
.stat .num {
  font-size: 28px;
  font-weight: 700;
  color: #f6c48a;
  line-height: 1.1;
}
.stat .label {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

/* Sections */
.section {
  padding: 80px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}
.section-head h2 {
  margin: 0;
  font-size: 30px;
  color: var(--ink);
  font-weight: 700;
}
.section-head .sub {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 40em;
}
.section.alt { background: var(--surface); }

/* Category pills */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  transition: 0.18s ease;
  min-height: 112px;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(226, 122, 31, 0.35);
}
.cat-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(226, 122, 31, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}
.cat-card h3 {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
}

/* Product cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-media {
  aspect-ratio: 4 / 3;
  background: #eef2f7;
  overflow: hidden;
  position: relative;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  box-sizing: border-box;
}
.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-body h3 {
  margin: 0;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.45;
}
.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 13px;
}

/* News list */
.news-list {
  display: grid;
  /* 显式单列并锁 min=0：隐式 auto 列会被卡片内容的 intrinsic 尺寸撑破容器（手机端横向溢出） */
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.news-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: 0.18s ease;
}
.news-item:hover {
  border-color: rgba(226, 122, 31, 0.35);
  transform: translateX(3px);
}

/* 下载中心：浏览器可直播的视频文件（MP4/WebM/Ogg）内嵌播放器 */
.video-card {
  display: block;
}
.video-card:hover {
  transform: none;
}
.video-card video {
  width: 100%;
  max-width: 760px;
  display: block;
  margin: 0 0 14px;
  border-radius: 8px;
  background: #000;
}
.video-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.video-info {
  flex: 1 1 220px;
  min-width: 0;
}
.video-dl {
  margin-left: auto;
}
.news-date {
  text-align: center;
  background: var(--bg);
  border-radius: 10px;
  padding: 12px 8px;
}
.news-date .d {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.news-date .m {
  font-size: 12px;
  color: var(--muted);
}
.news-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--ink);
}
.news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  /* 摘要可能含长斜杠串/裸 URL 等不可断 ASCII 长串，允许在任意点断行防横向溢出 */
  overflow-wrap: anywhere;
}

/* Feature band */
.feature-band {
  background: linear-gradient(135deg, var(--ink), #17456f);
  color: #fff;
  border-radius: 18px;
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: center;
}
.feature-band h2 {
  margin: 0 0 12px;
  font-size: 28px;
}
.feature-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}
.feature-points {
  display: grid;
  gap: 12px;
}
/*
 * 特色条目（首页「一体化解决方案」）
 *
 * 【为什么必须是 column 而不是原来的 row】
 * 原实现是横向 flex（strong 与 span 并排）。四列网格下每列内容宽只有
 * 251px，而文案本身就要 143~312px：
 *   自主研发  60 + 12 + 182 = 254px  →  缺 3px
 *   规范匹配  60 + 12 + 312 = 384px  →  缺 133px
 *   全流程    45 + 12 + 234 = 291px  →  缺 40px
 * flex 收缩时 strong 会被一起压窄。中文没有空格可断行，浏览器只能在
 * 任意字符边界断开，于是「自主研发」被拆成「自主研」+「发」——
 * 正是截图里的现象。差 3px 也断，说明这个布局本身已经到临界点，
 * 只要文案改一个字（或字体回退到另一种字形）就会再次断裂。
 *
 * 改为纵向堆叠后：strong 独占整行 251px（4 个字 60px，永不断行），
 * span 也独占整行（最长 234px 一行放得下），彻底消除临界点。
 *
 * flex-wrap: wrap 是第二道保险：万一将来容器被压得更窄，
 * span 整体换到下一行，而不是把 strong 挤断。
 */
.point {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px 16px;
}
.point strong {
  display: block;
  /* 标题只有 4 个字，任何宽度下都不该断行。加 nowrap 是明确的语义声明：
     断开的四字词组（自主研/发、规范匹/配）比换行本身更糟。 */
  white-space: nowrap;
  line-height: 1.5;
}
.point span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

/* Page hero */
.page-hero {
  background:
    linear-gradient(120deg, rgba(15, 39, 68, 0.96), rgba(15, 39, 68, 0.86)),
    var(--ink);
  color: #fff;
  padding: 48px 0;
}
.page-hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
}
.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 42em;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.8); }

/* Detail / article */
.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  overflow: hidden;
  display: flow-root;
}
.article-body {
  overflow: hidden;
  display: flow-root;
}
.article-body div,
.article-body img,
.article-body table {
  max-width: 100%;
}
.article-body img {
  height: auto;
}
.article h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.35;
}
.article .meta {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.article-body {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--text);
  overflow-x: auto;
}
.article-body img {
  margin: 14px auto;
  border-radius: 8px;
  height: auto;
}
.article-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font-size: 14px;
}
.article-body table td,
.article-body table th {
  border: 1px solid var(--border);
  padding: 8px 10px;
}
.spec-table th {
  background: #eef2f7;
  color: var(--ink);
  font-weight: 600;
}
.spec-table td {
  background: #fff;
}
.article-body table.spec-table {
  min-width: 640px;
}
.article-body table.spec-table th,
.article-body table.spec-table td {
  white-space: normal;
}
/* 表头/图片网格标签居中，数据单元格居左，长值自动换行 */
.article-body table.spec-table th {
  text-align: center;
}
.article-body table.spec-table td {
  text-align: left;
}
/* wide spec tables can scroll inside the article column */
.article-body {
  overflow-x: auto;
}
.article-body p {
  margin: 0 0 12px;
}
.media-video-link {
  margin: 20px 0;
  padding: 16px 18px;
  background: #f7f9fc;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.media-video-link .btn {
  display: inline-flex;
  margin: 4px 0;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.chip {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  /* 作为 button / 筛选标签使用，指针光标是基本可用性要求 */
  cursor: pointer;
  font-family: inherit;
}
.chip.active,
.chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
/* 输入型 chip（搜索框）应显示文本光标，并撑开可用宽度 */
input.chip.download-search {
  min-width: 260px;
  cursor: text;
}

/* ===== 下载中心：排序条与分组 ===== */
/* 这些样式原先内联在 downloads.php 里，改为集中定义，便于统一维护与响应式调整。 */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.sort-bar-label {
  margin: 0;
}
/* 键盘可达性：排序按钮可聚焦，且有清晰的焦点指示 */
.sort-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.download-group {
  margin-bottom: 36px;
}
.download-group-title {
  font-size: 22px;
  margin: 8px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.download-group-count {
  font-size: 13px;
  font-weight: 400;
}
.download-group-desc {
  margin: 0 0 16px;
}
.download-group-empty {
  padding: 12px 0;
}

/* Tables / contact */
.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}
.product-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-areas: "main side";
  gap: 24px;
  align-items: start;
}
.product-main {
  grid-area: main;
  min-width: 0;
}
.product-side {
  grid-area: side;
  position: sticky;
  top: 94px; /* 78px 吸顶导航 + 16px 间距 */
  align-self: start;
}
.product-cover {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}
.product-side-actions {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 22px;
}
.kv {
  display: grid;
  gap: 14px;
}
.kv-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.kv-item:last-child { border-bottom: 0; padding-bottom: 0; }
.kv-item .k { color: var(--muted); }
.kv-item .v { color: var(--ink); font-weight: 500; }

.job-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 14px;
}
.job-item h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
}
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}
/* 岗位要求正文：后台可填多行，纯文本 + nl2br 渲染 */
.job-require {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 28px;
  padding: 56px 0 36px;
}
.site-footer h4 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 16px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  display: inline-block;
  margin-bottom: 8px;
}
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0 28px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Empty */
.empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Admin minimal */
.admin-wrap {
  max-width: 920px;
  margin: 48px auto;
  padding: 0 24px;
}
.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.admin-card h1 {
  margin: 0 0 8px;
  color: var(--ink);
}

/* Admin messages page */
.admin-page {
  width: min(100% - 48px, 960px);
  margin: 0 auto;
  padding: 36px 0 64px;
}
.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.admin-crumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.admin-crumb a {
  color: inherit;
  text-decoration: none;
}
.admin-crumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.admin-bar h1 {
  margin: 0;
  font-size: 28px;
  color: var(--ink);
  line-height: 1.25;
}
.admin-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.admin-sub strong {
  color: var(--accent);
  font-size: 18px;
}
.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 56px 24px;
  text-align: center;
}
.admin-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: rgba(226, 122, 31, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
}
.admin-empty h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 20px;
}
.admin-empty p {
  margin: 0;
  color: var(--muted);
}
.admin-list {
  display: grid;
  gap: 14px;
}
.admin-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(15, 39, 68, 0.04);
  transition: 0.15s ease;
}
.admin-item:hover {
  border-color: rgba(226, 122, 31, 0.35);
  transform: translateY(-1px);
}
.admin-item.is-unread {
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, rgba(226, 122, 31, 0.06), transparent 28%), var(--surface);
}
.admin-item.is-read {
  opacity: 0.92;
}
.admin-flash {
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(47, 125, 74, 0.1);
  color: #2f7d4a;
  font-size: 14px;
}
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.admin-tabs {
  display: inline-flex;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.admin-tab span {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  display: inline-grid;
  place-items: center;
}
.admin-tab.active {
  background: var(--ink);
  color: #fff;
}
.admin-tab.active span {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.admin-status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.st-unread {
  background: rgba(226, 122, 31, 0.14);
  color: var(--accent-dark);
}
.st-read {
  background: #eef2f7;
  color: var(--muted);
}
.admin-ops {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.admin-ops form {
  margin: 0;
  display: inline;
}
.op-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.op-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.op-del:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.06);
}
.op-read {
  background: rgba(226, 122, 31, 0.08);
  border-color: rgba(226, 122, 31, 0.35);
  color: var(--accent-dark);
}
/* 「标为未读」与「标为已读」成对出现，用中性灰蓝区分，避免两个按钮看起来一样。
   此前 .op-unread 缺失定义，浏览器按默认按钮渲染，与相邻按钮视觉不一致。 */
.op-unread {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.35);
  color: #1d4ed8;
}
.op-unread:hover {
  border-color: #2563eb;
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.14);
}
.admin-item-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.admin-date-box {
  width: 68px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--ink), #17456f);
  color: #fff;
  text-align: center;
  padding: 12px 8px 10px;
}
.admin-date-box .d {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}
.admin-date-box .m {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}
.admin-date-box .y {
  font-size: 11px;
  opacity: 0.65;
  margin-top: 2px;
}
.admin-index {
  font-size: 12px;
  color: var(--muted);
}
.admin-item-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.admin-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.admin-phone {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(226, 122, 31, 0.1);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
}
.admin-phone:hover {
  background: var(--accent);
  color: #fff;
}
.admin-msg {
  background: #f7f9fc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  min-height: 48px;
}

/* 留言里的联系信息（公司 / 邮箱 / 固话 / 传真 / 邮编 / 地址）
 *
 * 与 .admin-msg 分开两行：需求说明是客户原话，联系信息是我方要复用的结构化数据。
 * 混在一段里销售得自己从文字里挑出邮箱和电话。 */
.admin-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 8px;
}
.admin-detail span {
  font-size: 13px;
  color: var(--text);
  background: #eef4fb;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  padding: 3px 9px;
  line-height: 1.6;
  word-break: break-all;
}
.admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 640px) {
  .admin-item {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-item-side {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
}
.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.form-row label { color: var(--muted); font-size: 14px; }
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.form-row textarea { min-height: 120px; resize: vertical; }

/* Contact page */
.contact-hero {
  background:
    linear-gradient(120deg, rgba(11, 31, 56, 0.97), rgba(17, 52, 88, 0.92)),
    radial-gradient(circle at 85% 20%, rgba(226, 122, 31, 0.22), transparent 40%),
    var(--navy);
  color: #fff;
  padding: 56px 0 64px;
}
.contact-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: end;
}
.contact-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
}
.contact-hero .lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  max-width: 34em;
}
.contact-hero-logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 140px;
  padding: 12px 8px;
}
.contact-hero-logo::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 122, 31, 0.28), rgba(226, 122, 31, 0) 70%);
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.contact-mark {
  position: relative;
  height: 108px;
  width: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28));
}
.contact-mark-text {
  position: relative;
  color: #fff;
}
.contact-mark-text .name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.25;
}
.contact-mark-text .sub {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  margin-top: -36px;
  position: relative;
  z-index: 2;
}
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px 28px 24px;
}
.contact-panel h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--ink);
}
.contact-panel .sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}
.contact-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.contact-item:last-child {
  border-bottom: 0;
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(226, 122, 31, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.contact-item .label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.3;
}
.contact-item .value {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  word-break: break-all;
}
.contact-item .value a:hover {
  color: var(--accent);
}
.form-card .form-row label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.2px;
}
.form-card .form-row input,
.form-card .form-row textarea {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fbfcfe;
  padding: 13px 15px;
  transition: 0.15s ease;
}
.form-card .form-row input:focus,
.form-card .form-row textarea:focus {
  outline: none;
  border-color: rgba(226, 122, 31, 0.65);
  box-shadow: 0 0 0 4px rgba(226, 122, 31, 0.12);
  background: #fff;
}
.form-card .form-row textarea {
  min-height: 140px;
}
.form-card .form-row select {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fbfcfe;
  padding: 13px 15px;
}
.form-card .form-row code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}

/* 标签里的补充说明（"手机号或邮箱都行" 这类）
 *
 * 为什么不用 placeholder 承载这条约束：placeholder 在输入第一个字符后就消失了，
 * 而「这里可以填手机也可以填邮箱」是用户提交前需要一直看得见的规则。 */
.form-hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}

/* 字段下方的补充说明：解释「填了会怎样」，帮访客判断该填哪个 */
.form-tip {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.form-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
}
.form-note.ok { color: #2f7d4a; }
.form-note.warn { color: #b45309; }
.contact-service {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.service-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 16px 14px;
}
.service-chip strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
  font-size: 15px;
}
.service-chip span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
@media (max-width: 960px) {
  .contact-hero-inner,
  .contact-layout,
  .contact-service {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-layout { margin-top: 20px; }
}

/* 联系我们 — 销售热线区块 */
.sales-hotline { background: var(--bg); }
.sales-hq {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin-bottom: 26px;
}
.sales-hq-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sales-hq-item .label {
  font-size: 13px;
  color: var(--muted);
}
.sales-hq-item .value {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.sales-hq-item .value a {
  color: var(--accent);
  text-decoration: none;
}
.sales-hq-item .value a:hover { text-decoration: underline; }
.sales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.sales-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}
.sales-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.sales-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.sales-phone {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.sales-phone:hover { text-decoration: underline; }
.sales-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.region-chip {
  font-size: 12.5px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  line-height: 1.5;
}
.sales-note {
  margin: 24px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .container { grid-template-columns: minmax(0, 1fr); }
  .feature-band { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .info-grid { grid-template-columns: minmax(0, 1fr); }
  .product-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}
@media (max-width: 860px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "main" "side";
  }
  .product-side { position: static; }
  /* 导航在 860px 就开始折行，搜索框再占 168px 会把 logo 挤扁。
     收缩输入框宽度，760px 以下再折叠成纯图标。 */
  .nav-search input { width: 120px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    left: 24px;
    right: 24px;
    top: 72px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  /* 搜索框折叠成放大镜图标，点击（聚焦）后横向展开成全宽搜索条。
     用 :focus-within 而不是 JS 切换类：键盘 Tab 到这里同样能展开，
     不依赖脚本是否加载成功。 */
  .nav-search input {
    width: 0;
    padding: 0;
    min-width: 0;
    transition: width 0.18s ease, padding 0.18s ease;
  }
  .nav-search:focus-within {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 72px;
    z-index: 2;
    box-shadow: var(--shadow);
    background: var(--surface);
  }
  .nav-search:focus-within input {
    width: 100%;
    padding: 9px 0 9px 12px;
  }
  .cat-grid,
  .grid-3,
  .grid-2,
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .news-item { grid-template-columns: minmax(0, 1fr); }
  .hero .container { padding: 48px 0 40px; }
  .section { padding: 56px 0; }
  .article { padding: 22px; }
  .topbar .hide-sm { display: none; }
}

/* ===== 响应式补充（集中放在文件末尾，避免同断点规则分散）===== */
@media (max-width: 640px) {
  /* 下载中心：窄屏下搜索框占满一行，排序按钮缩小间距避免换行拥挤 */
  .sort-bar {
    gap: 6px;
  }
  input.chip.download-search {
    min-width: 0;
    width: 100%;
  }
  .download-group-title {
    font-size: 19px;
  }
}

/* ===== 无障碍：焦点可见性（WCAG 2.4.7）=====
   全站此前仅 .form-row input 与 .sort-btn 有焦点样式，链接、按钮、导航、
   卡片等可聚焦元素在键盘操作时看不出焦点位置。下面补一条通用兜底：
   只在 :focus-visible 时显示（鼠标点击不显示，不影响视觉）。 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.chip:focus-visible,
.news-item:focus-visible,
.cat-card:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 表单控件已有 box-shadow 焦点态，去掉重复的 outline 避免双焦点圈 */
.form-card .form-row input:focus-visible,
.form-card .form-row textarea:focus-visible,
.form-card .form-row select:focus-visible {
  outline: none;
}

/* ===== 无障碍：动效偏好（WCAG 2.3.3）=====
   站点有 7 处 transition，另有 scroll-behavior: smooth。
   对前庭功能敏感的用户，平滑滚动与过渡会引起不适，命中该偏好时统一关闭。 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== 移动端触控目标（建议 ≥44px）=====
   .chip 原高度约 38px（padding 9px×2 + 14px 行高），略小于建议值。
   仅在触屏窄屏下放大，避免影响桌面端紧凑观感。 */
@media (max-width: 640px) {
  .chip {
    padding: 12px 18px;
    font-size: 15px;
  }
}

/* ===== 首页重构：整屏大图 Hero / 实力数字条 / 解决方案整屏块 / 首页视频区 ===== */

/* Hero：整屏背景大图 + 暗化蒙版，文字左对齐、无侧栏卡片 */
.hero--media {
  background-image:
    linear-gradient(120deg, rgba(8, 22, 40, 0.82), rgba(13, 33, 58, 0.7)),
    radial-gradient(circle at 80% 20%, rgba(226, 122, 31, 0.22), transparent 45%),
    url("../img/hero/Cinematic_wide_angle_photograp_2026-10-09T09-48-49.png");
  background-size: cover;
  background-position: center;
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.hero--media .container {
  display: block;
  padding: 96px 0 72px;
}
.hero--media .hero-copy { max-width: 760px; }
.hero--media h1 { font-size: clamp(34px, 5vw, 58px); }
.hero--media .lead { font-size: 18px; max-width: 38em; }

/* 实力数字条：整条深蓝底，4 个大数字 */
.strength {
  background: linear-gradient(120deg, #0b1f38, #0f2744);
  color: #fff;
}
.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 52px 0;
}
.strength .stat { text-align: center; }
.strength .stat .num {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  color: #f6c48a;
  line-height: 1;
}
.strength .stat .label {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

/* 解决方案：整屏背景图块 */
.solution-band {
  position: relative;
  color: #fff;
  background-image:
    linear-gradient(120deg, rgba(8, 22, 40, 0.9), rgba(13, 33, 58, 0.82)),
    url("../img/hero/Cinematic_photograph_of_a_larg_2026-10-09T09-48-43.png");
  background-size: cover;
  background-position: center;
}
.solution-inner { position: relative; }
.solution-band .section-head h2 { color: #fff; }
.solution-band .sub { color: rgba(255, 255, 255, 0.8); }
.solution-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.solution-band .point {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* 首页视频区：2 列视频卡片网格，内嵌播放器复用全局 video 行为 */
.home-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.home-video {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.home-video video {
  width: 100%;
  display: block;
  background: #000;
  aspect-ratio: 16 / 9;
}
.home-video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.home-video-meta h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  word-break: break-all;
}

@media (max-width: 900px) {
  .strength-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .solution-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-video-grid { grid-template-columns: 1fr; }
}
