/* 哈尔滨轴承 THRBT · 蓝色工业
   外壳深藏蓝 / 正文白底 / 单点主蓝 / Space Grotesk + 等宽数字
   骨架依据同行真站：人本 C&U、瓦轴 ZWZ */
:root {
  --bg: #fff;
  --bg-alt: #f4f8fd;
  --ink: #0b1f3a;
  --body: #44536b;
  --muted: #8794a8;
  --line: #dbe4f0;
  --line-2: #e8eef7;

  /* 深藏蓝外壳 */
  --navy: #0c1f3d;
  --navy-2: #122a4e;
  --navy-line: #21375c;
  --navy-text: #c3d3e8;
  --navy-muted: #7b8dab;

  /* 蓝 */
  --accent: #1d5fd0;
  --accent-2: #4a90e2;
  --accent-soft: #eaf2ff;
  --accent-ink: #fff;
  --focus: #4a90e2;

  --zh: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --en: "Space Grotesk", var(--zh);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --pad: clamp(1rem, 3vw, 2rem);
  --sec: clamp(3rem, 6vw, 5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 7.5rem; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--body);
  font-family: var(--en);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: #1d5fd029; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 99; padding: .5rem 1rem; background: var(--accent); color: var(--accent-ink); }
.skip:focus { top: 1rem; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- 工具条 ---------- */
.util { background: var(--navy); border-bottom: 1px solid var(--navy-line); }
.util .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.4rem; }
.util nav { display: flex; align-items: center; gap: 1.5rem; }
.util a, .util span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--navy-muted); }
.util a:hover { color: var(--accent-2); }
.util .lang { display: flex; gap: .6rem; align-items: center; }
.util .lang b { color: #fff; font-weight: 500; }

/* ---------- 页眉 ---------- */
.hd { background: var(--navy); border-bottom: 1px solid var(--navy-line); position: sticky; top: 0; z-index: 50; }
.hd .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5rem; }
.logo { display: flex; align-items: center; gap: .7rem; color: #fff; font-size: 1.15rem; }
.logo img { width: auto; height: 42px; flex: none; display: block; }
.logo small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .3em; color: var(--accent-2); }
.menu { display: flex; align-items: center; gap: 1.6rem; }
.menu a { font-size: .95rem; color: var(--navy-text); padding-bottom: 4px; border-bottom: 1px solid transparent; white-space: nowrap; transition: color 180ms var(--ease), border-color 180ms var(--ease); }
.menu a:hover { color: #fff; border-bottom-color: var(--navy-line); }
.menu a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent-2); }
.hd .tools { display: flex; align-items: center; gap: 1rem; }
.icon-btn { width: 2rem; height: 2rem; display: grid; place-items: center; border: 0; background: none; color: var(--navy-text); cursor: pointer; }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.icon-btn:hover { color: #fff; }
.nav-toggle { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav-btn { display: none; border: 1px solid var(--navy-line); background: none; color: #fff; font: inherit; font-size: .9rem; padding: .4rem .75rem; cursor: pointer; }

/* ---------- 横幅 ---------- */
.banner { background: var(--navy); border-bottom: 1px solid var(--navy-line); position: relative; overflow: hidden; }
.banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, #ffffff0f 1px, transparent 1px),
    linear-gradient(to bottom, #ffffff0f 1px, transparent 1px);
  background-size: 44px 44px;
}
.banner .container { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: center; padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.banner .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 1.1rem; }
.banner h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 400; line-height: 1.16; letter-spacing: .01em; max-width: 20ch; color: #fff; }
.banner p { margin-top: 1.4rem; max-width: 38rem; font-size: 1.05rem; color: #b0c2da; line-height: 1.9; }
.btns { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .5rem 1.6rem; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: inherit; font-size: .95rem; cursor: pointer; transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease); }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.o { background: transparent; color: #fff; border-color: #3a5480; }
.btn.o:hover { background: var(--navy-2); border-color: var(--accent-2); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.banner .art { justify-self: end; width: 100%; max-width: 300px; }
.banner .art svg { display: block; width: 100%; height: auto; }
.banner .art .o1 { fill: none; stroke: #6f8bb5; stroke-width: 1.6; }
.banner .art .o2 { fill: none; stroke: #38527c; stroke-width: 1; }
.banner .art .dt { fill: none; stroke: #2f4668; stroke-width: 1; stroke-dasharray: 4 6; }
.banner .art .b { fill: var(--accent-2); }

/* ---------- HUD 规格条 ---------- */
.hud { background: var(--navy-2); border-bottom: 1px solid var(--navy-line); }
.hud ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hud li { padding: 1.1rem 0; border-right: 1px solid var(--navy-line); }
.hud li:last-child { border-right: 0; }
.hud li + li { padding-left: 1.6rem; }
.hud .k { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .22em; color: var(--navy-muted); }
.hud b { display: block; margin-top: .3rem; font-size: 1rem; font-weight: 500; color: #fff; }

/* ---------- 产品类型标签栏 ---------- */
.tabs { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 5rem; z-index: 40; }
.tabs .container { display: flex; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: none; }
.tabs .container::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 1.05rem 1.4rem; font-size: .95rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color 180ms var(--ease), border-color 180ms var(--ease); }
.tabs a:hover { color: var(--accent); }
.tabs a[aria-current="true"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- 通用区块 ---------- */
.sec { padding: var(--sec) 0; }
.sec.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(1.6rem, 3vw, 2.5rem); }
.sec-head .k { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.sec-head h2 { margin-top: .6rem; font-size: clamp(1.4rem, 2.3vw, 2rem); }
.sec-head .more { float: right; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.sec-head .more:hover { color: var(--accent); }
.sec-head p { margin-top: .8rem; max-width: 46rem; color: var(--muted); font-size: .95rem; }

/* ---------- 产品格 ---------- */
.grid { display: grid; gap: 1.5rem; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; transition: border-color 180ms var(--ease); }
.card:hover { border-color: var(--accent); }
.card .ph { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--accent-soft); border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-align: center; padding: 1rem; }
.card .ph svg { width: 40%; height: auto; }
.card .ph .o1 { fill: none; stroke: #9db6d6; stroke-width: 2; }
.card .ph .b { fill: var(--accent); }
.card .bd { padding: 1.1rem 1.15rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card .code { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--accent); }
.card h3 { font-size: 1.05rem; }
.card p { font-size: .9rem; color: #6b7a90; line-height: 1.7; }

/* ---------- 行业格 / 服务格 ---------- */
.tile { border: 1px solid var(--line); background: var(--bg); padding: 1.4rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; transition: border-color 180ms var(--ease); }
.tile:hover { border-color: var(--accent); }
.tile .n { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--accent); }
.tile h3 { font-size: 1rem; }
.tile p { font-size: .88rem; color: #77869b; line-height: 1.65; }
.tile svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.5; margin-bottom: .3rem; }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; min-width: 660px; font-size: .9rem; }
caption { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); background: var(--accent-soft); font-size: .8rem; letter-spacing: .1em; color: var(--muted); }
th, td { padding: .8rem 1rem; border: 1px solid var(--line-2); text-align: left; }
thead th { background: var(--navy); font-weight: 500; font-size: .8rem; letter-spacing: .06em; color: #dbe6f5; white-space: nowrap; border-color: var(--navy-line); }
tbody td.n { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
tbody td.c { font-family: var(--mono); color: var(--accent); }
tbody tr:hover td { background: var(--bg-alt); }

/* ---------- 新闻 ---------- */
.news li { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; gap: .5rem 1.5rem; align-items: baseline; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.news li:first-child { border-top: 1px solid var(--line); }
.news .d { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.news h3 { font-size: 1rem; font-weight: 400; }
.news h3 a:hover { color: var(--accent); }
.news .t { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }

/* ---------- 关于 ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; align-items: start; }
.about p + p { margin-top: 1rem; }
.digits { border-top: 2px solid var(--accent); }
.digits div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.digits dt { font-size: .85rem; color: var(--muted); }
.digits dd { margin: 0; font-family: var(--mono); font-size: 1.35rem; color: var(--accent); }

/* ---------- 规格列表（产品详情） ---------- */
.spec-list { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.spec-list li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-list .k { color: var(--muted); }
.spec-list .v { color: var(--ink); }

/* ---------- 表单 ---------- */
form { max-width: 44rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; }
label { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; color: var(--muted); }
label.wide { grid-column: 1 / -1; }
input, select, textarea { width: 100%; padding: .65rem .75rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 7.5rem; resize: vertical; }
.err { min-height: 1.2em; color: #c0392b; font-size: .88rem; }
#slip { margin-top: 1.2rem; min-height: 11rem; padding: 1rem; border: 1px solid var(--line); background: var(--bg-alt); font: inherit; font-size: .95rem; line-height: 1.8; color: var(--ink); }

/* ---------- 页脚 ---------- */
.ft { background: var(--navy); border-top: 1px solid var(--navy-line); color: var(--navy-text); }
.ft .cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem; padding: clamp(2.25rem, 4vw, 3.25rem) 0; }
.ft h3 { font-size: .95rem; margin-bottom: .9rem; color: #fff; }
.ft li { margin-bottom: .5rem; }
.ft li a, .ft li span { font-size: .88rem; color: var(--navy-muted); }
.ft li a:hover { color: var(--accent-2); }
.ft .contact li { display: flex; gap: .5rem; }
.ft .contact .v { font-family: var(--mono); font-size: .88rem; color: #fff; }
.ft .qr { width: 92px; height: 92px; border: 1px solid var(--navy-line); background: var(--navy-2); display: grid; place-items: center; grid-template-rows: auto auto; align-content: center; gap: .35rem; }
.ft .qr small { font-size: .72rem; letter-spacing: .1em; color: var(--navy-muted); }
.ft .qr svg { width: 30px; height: 30px; fill: none; stroke: var(--navy-muted); stroke-width: 1.4; }
.ft .bottom { border-top: 1px solid var(--navy-line); padding: 1.1rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--navy-muted); }

/* 待补资料标记 */
.todo { display: inline-block; padding: .1rem .45rem; border: 1px dashed currentColor; opacity: .55; color: inherit; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }

/* 面包屑 */
.crumb { padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.crumb span { color: var(--ink); }
.pg-head { padding: clamp(1.75rem, 3.5vw, 2.75rem) 0; }
.pg-head h1 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 400; }
.pg-head p { margin-top: .9rem; max-width: 46rem; color: var(--muted); }

/* ---------- 动画（强度 4，克制） ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec-head, .card, .tile, .news li, .about, .banner .container, .hud ul {
      animation: rise .8s var(--ease) both;
      animation-timeline: view();
      animation-range: entry 8% cover 32%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 1ms !important; animation: none !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .g4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .banner .container { grid-template-columns: 1fr; }
  .banner .art { justify-self: start; max-width: 200px; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-btn { display: inline-flex; }
  .hd .container { position: relative; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); border-bottom: 1px solid var(--navy-line); padding: 0 var(--pad); }
  .nav-toggle:checked ~ .menu { display: flex; }
  .nav-toggle:focus-visible ~ .nav-btn { outline: 2px solid var(--focus); outline-offset: 2px; }
  .menu a { padding: .9rem 0; border-bottom: 1px solid var(--navy-line); }
  .menu a[aria-current="page"] { border-bottom-color: var(--navy-line); border-left: 0; color: var(--accent-2); }
  .tabs { top: 4.5rem; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft .cols { grid-template-columns: 1fr 1fr; }
  .fields { grid-template-columns: 1fr; }
  .hud ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hud li:nth-child(2n) { border-right: 0; }
  .hud li:nth-child(-n+2) { border-bottom: 1px solid var(--navy-line); }
  .hud li:nth-child(n+3) { padding-left: 0; }
  .hud li:nth-child(2n) { padding-left: 1.6rem; }
}
@media (max-width: 560px) {
  .g3, .g4, .ft .cols { grid-template-columns: 1fr; }
  .util nav { gap: 1rem; }
  .util a:nth-child(n+3) { display: none; }
  .hud ul { grid-template-columns: 1fr; }
  .hud li { border-right: 0; padding-left: 0 !important; border-bottom: 1px solid var(--navy-line); }
  .hud li:last-child { border-bottom: 0; }
}
@media print {
  .util, .hd, .tabs, .btns, .ft, .hud { display: none; }
  body { font-size: 12pt; }
}
