:root {
  --hx-dark: #0b1221;
  --hx-dark-2: #111c33;
  --hx-panel: #172542;
  --hx-red: #d9381e;
  --hx-red-hover: #b82b14;
  --hx-cyan: #0ea5e9;
  --hx-bg-soft: #f1f5f9;
  --hx-white: #ffffff;
  --hx-ink: #0f172a;
  --hx-muted: #475569;
  --hx-border: #e2e8f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--hx-ink);
  background: var(--hx-bg-soft);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

.hx-wrap {
  max-width: 1260px;
  width: 94%;
  margin: 0 auto;
}

/* === 双层深色顶栏 === */
.hx-topbar {
  background: #060a14;
  color: #cbd5e1;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hx-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 12px;
  flex-wrap: wrap;
}

.hx-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hx-topbar-link { color: #e2e8f0; }
.hx-topbar-link:hover { color: var(--hx-cyan); }

.hx-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  padding: 2px 6px;
}

.hx-lang-toggle a {
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.hx-lang-toggle a.is-active {
  background: var(--hx-red);
  color: #fff;
}

.hx-navbar {
  background: var(--hx-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hx-navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  gap: 16px;
}

.hx-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* 浅底徽章托底，确保墨靛蓝HX与朱砂红AI印章在深色顶栏下极高对比度 */
.hx-brand-badge {
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}

.hx-brand-badge img {
  height: 32px;
  width: auto;
  display: block;
}

.hx-brand-words {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
}

.hx-brand-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.hx-brand-sub {
  color: #94a3b8;
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 2px;
}

.hx-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.hx-nav a {
  color: #e2e8f0;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 5px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.hx-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hx-nav a.is-current {
  background: var(--hx-red);
  color: #fff;
  font-weight: 600;
}

/* === 左右分屏暗夜科技 Hero === */
.hx-hero {
  background: linear-gradient(135deg, #0b1221 0%, #132240 60%, #192b4d 100%);
  color: #fff;
  padding: 64px 0 72px;
  border-bottom: 3px solid var(--hx-red);
}

.hx-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hx-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 18px;
}

.hx-hero h1 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.3;
  margin: 0 0 18px;
  font-weight: 800;
}

.hx-hero-desc {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 28px;
}

.hx-btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hx-btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.hx-btn-primary {
  background: var(--hx-red);
  color: #fff;
}

.hx-btn-primary:hover {
  background: var(--hx-red-hover);
  transform: translateY(-1px);
}

.hx-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.hx-btn-ghost:hover {
  border-color: var(--hx-cyan);
  color: #38bdf8;
}

.hx-btn-dark {
  background: var(--hx-dark);
  color: #fff;
  padding: 9px 18px;
  font-size: 14px;
}

.hx-btn-dark:hover {
  background: var(--hx-red);
}

/* 右侧重工指标面板 */
.hx-spec-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 26px;
  backdrop-filter: blur(8px);
}

.hx-spec-panel h2 {
  font-size: 17px;
  color: #f8fafc;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hx-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hx-kpi-box {
  background: rgba(11, 18, 33, 0.65);
  border-left: 3px solid var(--hx-red);
  border-radius: 6px;
  padding: 14px;
}

.hx-kpi-val {
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 4px;
}

.hx-kpi-lbl {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.45;
}

/* === 通用板块容器 === */
.hx-band { padding: 64px 0; }
.hx-band-white { background: var(--hx-white); }
.hx-band-soft { background: var(--hx-bg-soft); }
.hx-band-dark { background: var(--hx-dark-2); color: #fff; }

.hx-sec-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
}

.hx-sec-head h2 {
  font-size: 28px;
  margin: 0 0 10px;
  color: inherit;
}

.hx-sec-head p {
  margin: 0;
  color: var(--hx-muted);
  font-size: 15.5px;
}

.hx-band-dark .hx-sec-head p { color: #94a3b8; }

/* === 01-05 Bento 阶梯业务矩阵 === */
.hx-bento-top {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.hx-bento-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hx-sol-card {
  background: var(--hx-white);
  border: 1px solid var(--hx-border);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.hx-sol-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11, 18, 33, 0.08);
  border-color: var(--hx-red);
}

.hx-sol-card.is-featured {
  border-top: 4px solid var(--hx-red);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.hx-rank-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--hx-red);
  background: rgba(217, 56, 30, 0.1);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.hx-sol-card h3 {
  font-size: 21px;
  margin: 0 0 12px;
  color: var(--hx-dark);
}

.hx-sol-card p {
  font-size: 14.5px;
  color: var(--hx-muted);
  margin: 0 0 18px;
  line-height: 1.75;
}

.hx-sol-meta {
  font-size: 13px;
  color: #0369a1;
  background: #f0f9ff;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 18px;
}

/* === 5步重工产线工艺闭环时间轴 === */
.hx-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.hx-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 20px 18px;
  position: relative;
}

.hx-step-num {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--hx-red);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.hx-step h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: #f8fafc;
}

.hx-step p {
  font-size: 13.5px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.65;
}

/* === FAQ 工程问答 === */
.hx-faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.hx-faq-box {
  background: var(--hx-bg-soft);
  border-left: 4px solid var(--hx-dark);
  border-radius: 6px;
  padding: 22px 24px;
}

.hx-faq-box h3 {
  font-size: 16.5px;
  margin: 0 0 10px;
  color: var(--hx-dark);
}

.hx-faq-box p {
  font-size: 14.5px;
  color: var(--hx-muted);
  margin: 0;
}

/* === 面包屑、列表页与详情页 === */
.hx-crumb-bar {
  background: #e2e8f0;
  font-size: 13.5px;
  color: #334155;
  padding: 10px 0;
}

.hx-crumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hx-crumb-list li + li::before {
  content: "/";
  margin-right: 8px;
  color: #94a3b8;
}

.hx-article-card {
  background: #fff;
  border-radius: 10px;
  padding: 36px 42px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  margin-bottom: 28px;
}

.hx-article-card h1 {
  font-size: 28px;
  margin: 0 0 14px;
  color: var(--hx-dark);
}

.hx-article-card h2 {
  font-size: 20px;
  margin: 26px 0 12px;
  color: var(--hx-dark);
  border-left: 4px solid var(--hx-red);
  padding-left: 12px;
}

.hx-article-card ul, .hx-article-card ol { padding-left: 22px; }
.hx-article-card li { margin-bottom: 8px; }

.hx-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* === 16:9 响应式视频容器 === */
.hx-video-shell {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0 28px;
}

.hx-video-shell iframe,
.hx-video-shell video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* === 页脚 === */
.hx-footer {
  background: #060a14;
  color: #94a3b8;
  padding: 38px 0;
  font-size: 13.5px;
  border-top: 2px solid var(--hx-red);
}

.hx-footer-biz {
  color: #f1f5f9;
  font-weight: 600;
  margin: 0 0 10px;
}

.hx-footer p { margin: 6px 0; }

/* === 响应式适配 === */
@media (max-width: 1120px) {
  .hx-navbar-inner { flex-wrap: wrap; padding: 10px 0; }
  .hx-nav { flex-wrap: wrap; }
  .hx-hero-grid { grid-template-columns: 1fr; }
  .hx-timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .hx-bento-top,
  .hx-bento-bottom,
  .hx-faq-list,
  .hx-timeline { grid-template-columns: 1fr; }
  .hx-article-card { padding: 24px 18px; }
}

/* === 1. 彻底去掉 LOGO 白色托底框 === */
.hx-brand-badge {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.hx-brand-badge img {
  height: 36px;
  width: auto;
  display: block;
}

/* === 2. 全站卡片整块可点击（含智能码垛及所有列表/首页卡片） === */
.hx-sol-card {
  position: relative;
  cursor: pointer;
}

.hx-card-stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hx-sol-card .hx-btn {
  display: inline-block;
  align-self: flex-start;
  pointer-events: none;
}

/* === 3. 首屏专利指标卡可点击效果 === */
a.hx-kpi-box {
  display: block;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

a.hx-kpi-box:hover {
  transform: translateY(-2px);
  background: rgba(217, 56, 30, 0.16);
  border-left-color: #38bdf8;
}

/* === 4. 国家专利展示卡片样式 === */
.hx-patent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin: 24px 0 32px;
}

.hx-patent-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-top: 4px solid var(--hx-red);
  border-radius: 10px;
  padding: 26px 24px;
}

.hx-patent-no {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--hx-dark);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.hx-patent-card h3 {
  font-size: 20px;
  color: var(--hx-dark);
  margin: 0 0 12px;
}

.hx-patent-card p {
  font-size: 14.5px;
  color: var(--hx-muted);
  margin: 0 0 10px;
  line-height: 1.75;
}

.hx-patent-img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  margin-top: 14px;
  display: block;
}

/* === 关于我们内嵌联系卡片 === */
.hx-contact-panel {
  margin-top: 28px;
  padding: 24px 28px;
  background: #f8fafc;
  border-left: 4px solid var(--hx-red);
  border-radius: 8px;
}

@media (max-width: 640px) {
  .hx-patent-grid {
    grid-template-columns: 1fr;
  }
}
