/* ============================================================
   HardLock CN — 主题主样式
   ============================================================ */
:root {
  --navy: #16233a;
  --navy-2: #1e2f4d;
  --ink: #22314a;
  --text: #3c4a5f;
  --muted: #6b7889;
  --line: #e3e8ef;
  --bg: #ffffff;
  --grey: #f4f6f9;
  --accent: #c8102e;
  --accent-dark: #a30d25;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(22, 35, 58, 0.10);
  --shadow-sm: 0 4px 14px rgba(22, 35, 58, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.brand-link { display: flex; flex-direction: column; line-height: 1.15; }
.brand-mark {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--navy);
  font-family: "Arial Black", "Segoe UI", Arial, sans-serif;
}
.brand-mark::first-letter { color: var(--accent); }
.brand-sub { font-size: 12px; color: var(--muted); letter-spacing: 2px; }
.bs-short { display: none; }
.brand-mark--light { color: #fff; font-size: 24px; margin-bottom: 12px; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu li { position: relative; }
.nav-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
}
.nav-menu a:hover { background: var(--grey); color: var(--accent); }
.nav-menu .nav-cta { background: var(--accent); color: #fff; margin-left: 8px; }
.nav-menu .nav-cta:hover { background: var(--accent-dark); color: #fff; }
.nav-menu .sub-menu {
  position: absolute; top: 100%; left: 8px; min-width: 210px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); list-style: none; margin: 0; padding: 8px;
  display: none; flex-direction: column;
}
.nav-menu li:hover > .sub-menu { display: flex; }
.nav-menu .sub-menu a { padding: 9px 14px; font-size: 14px; font-weight: 500; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #2a3f66 100%);
  color: #fff;
  padding: 84px 0 72px;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute; right: -160px; top: -160px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.28), transparent 65%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow { letter-spacing: 3px; font-size: 13px; color: #f0b7c1; font-weight: 600; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: 44px; margin-bottom: 18px; }
.hero-accent { color: #ff8ba0; font-size: 32px; }
.hero-lead { color: #c7d1e2; font-size: 17px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.hero-badges li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 16px; border-radius: 999px; font-size: 13px; color: #dbe3ef;
}
.hero-media img { border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }

/* ---------- 通用 Section ---------- */
.section { padding: 72px 0; }
.section-grey { background: var(--grey); }
.section-dark { background: var(--navy); color: #c7d1e2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }
.section-head-light p { color: #9fb0c9; }
.center-cta { text-align: center; margin-top: 36px; }

/* ---------- 产品卡片 ---------- */
.card-grid { display: grid; gap: 26px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.product-card, .post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex; flex-direction: column;
}
.product-card:hover, .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.product-card-media { aspect-ratio: 3 / 2; background: #ffffff; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 10px; }
.product-card-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform 0.4s; }
/* 正文图片通用样式不得污染卡片内图片 */
.page-content .product-card-media img, .post-card .product-card-media img { margin: 0; border-radius: 0; box-shadow: none; }
.product-card:hover .product-card-media img { transform: scale(1.04); }
.product-card-body, .post-card { padding: 24px; }
.product-card-body { padding-top: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card-body p, .post-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.link-more { font-weight: 700; font-size: 14px; margin-top: auto; display: inline-block; }

/* ---------- 原理分屏 ---------- */
.principle-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.principle-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.principle-copy p { color: var(--text); }
.principle-copy b { color: var(--accent); }

/* ---------- 数据带 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 44px; }
.stat-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.stat-num { font-size: 40px; font-weight: 800; color: #ff8ba0; line-height: 1.1; margin-bottom: 8px; font-family: Arial, sans-serif; }
.stat-num span { font-size: 20px; }
.stat-label { font-size: 13.5px; color: #9fb0c9; }
.apps-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.apps-strip span {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 18px; border-radius: 999px; font-size: 13.5px; color: #dbe3ef;
}

/* ---------- 文章卡 ---------- */
.post-card-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.5px; }
.post-card h3 { font-size: 17.5px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--accent); }

/* ---------- 联系带 ---------- */
.contact-band { background: linear-gradient(120deg, var(--accent-dark), var(--accent)); color: #fff; }
.contact-band h2 { color: #fff; }
.contact-band p { color: #ffdbe1; margin: 0; }
.contact-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.contact-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 页面 Hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  padding: 56px 0 46px;
  margin-bottom: 48px;
}
.page-hero h1 { color: #fff; font-size: 34px; margin: 0; }
.page-hero-sub { color: #b9c6db; margin: 10px 0 0; font-size: 15.5px; }
.post-meta-top { color: #f0b7c1; font-size: 13px; letter-spacing: 1px; margin-bottom: 10px; }

/* ---------- 正文排版 ---------- */
.content-layout { margin-bottom: 72px; }
.page-content { max-width: 920px; margin: 0 auto; font-size: 16.5px; }
.page-content h2 { margin-top: 2em; padding-left: 14px; border-left: 4px solid var(--accent); }
.page-content h3 { margin-top: 1.6em; }
.page-content img { border-radius: 10px; box-shadow: var(--shadow-sm); margin: 12px 0; }
.page-content ul li, .page-content ol li { margin-bottom: 0.45em; }
.page-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 14.5px; box-shadow: var(--shadow-sm); border-radius: 10px; overflow: hidden; }
.page-content th { background: var(--navy); color: #fff; padding: 11px 14px; text-align: left; font-weight: 600; white-space: nowrap; }
.page-content td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--text); }
.page-content tr:nth-child(even) td { background: #f8fafc; }
.page-content strong { color: var(--ink); }
.post-thumb img { width: 100%; border-radius: var(--radius); margin-bottom: 24px; }
.post-tags { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.post-tags span { background: var(--grey); color: var(--muted); padding: 4px 12px; border-radius: 999px; font-size: 13px; }
.post-nav { display: flex; justify-content: space-between; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.post-nav a { color: var(--ink); font-weight: 600; }
.pagination { text-align: center; margin-top: 36px; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; margin: 0 4px; color: var(--ink); }
.pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- 页脚 ---------- */
.site-footer { background: #101a2c; color: #8fa0b8; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr; gap: 40px; padding: 56px 24px 40px; }
.footer-col h4 { color: #fff; font-size: 15.5px; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #8fa0b8; }
.footer-col a:hover { color: #fff; }
.footer-brand p { color: #7386a1; line-height: 1.9; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 18px 0; font-size: 12.5px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-disclaimer { padding-top: 10px; padding-bottom: 16px; }
.footer-disclaimer p { margin: 0; font-size: 12px; line-height: 1.8; color: #61728c; }
.footer-disclaimer a { color: #8fa0b8; text-decoration: underline; text-underline-offset: 2px; }
.footer-disclaimer a:hover { color: #fff; }


/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner, .principle-split { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 32px; }
  .hero-accent { font-size: 24px; }
  /* 卡片栅格保持三列，避免出现“2列+落单卡片掉行”的错位状态 */
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 44px 24px 32px; }
  .br-lg { display: none; }
  .bs-full { display: none; }
  .bs-short { display: inline; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: 74px; left: 0; right: 0; bottom: 0;
    background: #fff; display: none; padding: 24px;
    overflow-y: auto; z-index: 99;
  }
  .site-nav.nav-open { display: block; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-menu a { padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .nav-menu .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding-left: 18px; }
  .nav-menu .nav-cta { margin: 16px 0 0; text-align: center; border-bottom: 0; }
  body.nav-locked { overflow: hidden; }
}
@media (max-width: 680px) {
  .card-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  h1 { font-size: 30px; }
  .hero h1 { font-size: 28px; }
  .hero-accent { font-size: 20px; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 52px 0; }
  .page-content { font-size: 15.5px; }
  .stat-num { font-size: 32px; }
}

/* ---------- 面包屑 ---------- */
.breadcrumb { padding: 16px 0 4px; font-size: 13px; color: var(--muted); }
.breadcrumb .container { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.bc-sep { color: #c3ccd8; }
.bc-current { color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { margin: 6px 0 0; }
.faq-item { border-top: 1px solid var(--line); padding: 18px 0 16px; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.page-content .faq-q { font-size: 17px; margin: 0 0 8px; padding: 0; border: 0; color: var(--ink); }
.faq-q::before { content: "Q"; display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; background: var(--accent); color: #fff; border-radius: 4px; font-size: 12px; font-weight: 800; margin-right: 9px; vertical-align: 2px; }
.faq-a { margin: 0; color: var(--text); font-size: 15.5px; line-height: 1.8; }

/* ---------- 核心要点框（GEO 摘要块） ---------- */
.key-points { background: #f4f6f9; border-left: 4px solid var(--accent); border-radius: 8px; padding: 20px 24px; margin: 0 0 28px; }
.key-points h2, .key-points h3 { font-size: 16px; margin: 0 0 10px; padding: 0; border: 0; color: var(--ink); }
.key-points ul { margin: 0; padding-left: 20px; }
.key-points li { margin-bottom: 6px; font-size: 15px; color: var(--text); }
.key-points li:last-child { margin-bottom: 0; }

/* ---------- 首页定义块（GEO） ---------- */
.answer-box { max-width: 980px; }
.answer-label { display: inline-block; background: #fdeef0; color: var(--accent); font-size: 12.5px; font-weight: 700; padding: 5px 14px; border-radius: 999px; letter-spacing: 1.5px; margin-bottom: 14px; }
.answer-box h2 { font-size: 26px; margin: 0 0 12px; }
.answer-lead { font-size: 16.5px; line-height: 1.95; color: var(--text); margin: 14px 0 0; }
.answer-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; list-style: none; padding: 0; margin: 26px 0 0; }
.answer-facts li { background: var(--grey); border-radius: 9px; padding: 13px 18px; font-size: 14.5px; line-height: 1.7; color: var(--text); }
.answer-facts strong { color: var(--ink); }
@media (max-width: 700px) { .answer-facts { grid-template-columns: 1fr; } }

/* ---------- 相关阅读 / 延伸阅读 ---------- */
.related-posts { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.related-posts > h2 { font-size: 22px; margin-bottom: 22px; padding: 0; border: 0; }
.related-links { list-style: none; padding: 0; margin: 8px 0 0; }
.related-links li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.related-links li:last-child { border-bottom: 0; }
.related-links a { font-size: 15.5px; font-weight: 600; }
.related-links a::after { content: " →"; color: var(--accent); }

/* 示意图（SVG）在卡片中的底纹 */
.product-card-media img[src$=".svg"] { padding: 0; }

/* ---------- 询价表单 ---------- */
.hl-form-lead { color: var(--muted); font-size: 15px; margin: 6px 0 18px; }
.hl-form-lead .req, .hl-field .req { color: var(--accent); }
.hl-form {
  margin: 0 0 8px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.hl-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.hl-field {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.hl-field input, .hl-field select, .hl-field textarea {
  font: inherit; font-weight: 400; font-size: 15px; color: var(--text);
  background: #fbfcfe; border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 13px; width: 100%; box-sizing: border-box;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.hl-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8a97a8 50%), linear-gradient(135deg, #8a97a8 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.hl-field input:focus, .hl-field select:focus, .hl-field textarea:focus {
  outline: 0; border-color: #7d9bc4; background: #fff;
  box-shadow: 0 0 0 3px rgba(125, 155, 196, .18);
}
.hl-field textarea { resize: vertical; min-height: 104px; line-height: 1.65; }
.hl-col-2 { grid-column: 1 / -1; }
.hl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hl-consent {
  display: flex; gap: 9px; align-items: flex-start; margin: 16px 0 0;
  font-size: 13.5px; font-weight: 400; color: var(--muted); line-height: 1.6;
}
.hl-consent input { width: 16px; height: 16px; margin: 2px 0 0; flex: 0 0 16px; accent-color: var(--accent); }
.hl-submit { margin-top: 18px; }
.hl-form-tip { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.hl-notice { padding: 14px 16px; border-radius: 9px; font-size: 14.5px; line-height: 1.7; margin: 0 0 20px; border: 1px solid; }
.hl-notice.ok { background: #eaf5f0; border-color: #b7e0cd; color: #0f5c44; }
.hl-notice.bad { background: #fdeef0; border-color: #f0cfd4; color: #a30d25; }
@media (max-width: 700px) {
  .hl-form-grid { grid-template-columns: 1fr; }
  .hl-form { padding: 18px; }
  .hl-field input, .hl-field select, .hl-field textarea { font-size: 16px; }
}
