/* 弘溪联 Gutenberg 首页 V1.3.0 — 页面组件样式均限定在 .hxl-home 内 */

/*
 * Astra 等传统主题会在正文外继续添加容器宽度、内边距和文章间距。
 * 本样式只会在含 hxl-home 的前台页面加载，因此可安全地把该页恢复为真正的全宽画布。
 */
body #page,
body .site,
body .site-content,
body .site-content .ast-container,
body .site-content #primary,
body .site-content .content-area,
body .site-content .site-main,
body .site-content article,
body .site-content .ast-article-single,
body .site-content .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body .site-content .ast-container { display: block !important; }
body { overflow-x: clip; }

.hxl-home {
  --hxl-red: #c71920;
  --hxl-red-bright: #d42128;
  --hxl-red-dark: #8f0d12;
  --hxl-ink: #171717;
  --hxl-paper: #f5f3ef;
  --hxl-muted: #6d6964;
  --hxl-line: #d8d3cc;
  position: relative;
  left: 50%;
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  transform: translateX(-50%);
  color: var(--hxl-ink);
  background: var(--hxl-paper);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.hxl-home, .hxl-home * { box-sizing: border-box; }
.hxl-home a { color: inherit; text-decoration: none; }
.hxl-home p, .hxl-home h1, .hxl-home h2, .hxl-home h3, .hxl-home h4 { margin-top: 0; }
.hxl-home .wp-block-columns { margin-bottom: 0; }

/* 页眉 */
.hxl-home .hxl-header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  margin: 0;
  padding: 0 6vw;
  color: #fff;
  background: rgba(153, 9, 15, .92);
  border-bottom: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
}
.admin-bar .hxl-home .hxl-header { top: 32px; }
.hxl-home .hxl-header-inner { min-height: 82px; max-width: 1440px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.hxl-home .hxl-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hxl-home .hxl-brand-mark { position: relative; display: inline-block; width: 38px; height: 38px; transform: rotate(-8deg); flex: 0 0 38px; }
.hxl-home .hxl-brand-mark i { position: absolute; left: 4px; width: 26px; height: 8px; border-radius: 9px; background: #fff; transform: rotate(-42deg); }
.hxl-home .hxl-brand-mark i:nth-child(1) { top: 5px; }
.hxl-home .hxl-brand-mark i:nth-child(2) { top: 15px; left: 8px; }
.hxl-home .hxl-brand-mark i:nth-child(3) { top: 25px; left: 12px; }
.hxl-home .hxl-brand-text p { margin: 0; }
.hxl-home .hxl-brand-text p:first-child { font-size: 17px; letter-spacing: .08em; }
.hxl-home .hxl-brand-text p:last-child { margin-top: 3px; font: 8px/1.2 "Courier New", monospace; letter-spacing: .18em; opacity: .7; }
.hxl-home .hxl-nav { display: flex; align-items: center; gap: 34px; }
.hxl-home .hxl-nav p { margin: 0; font-size: 14px; opacity: .86; }
.hxl-home-en .hxl-nav { gap: 24px; }
.hxl-home-en .hxl-nav p { font-size: 13px; }
.hxl-home .hxl-nav p:hover { opacity: 1; }
.hxl-home .hxl-header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.hxl-home .hxl-language-switch { display: flex; align-items: center; gap: 7px; margin: 0; color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: .08em; }
.hxl-home .hxl-language-switch a:hover, .hxl-home .hxl-language-switch a:focus-visible { color: #fff; }
.hxl-home .hxl-language-switch strong { color: #fff; font-weight: 700; }
.hxl-home .hxl-header-button .wp-block-button__link { padding: 11px 16px; color: #fff !important; border: 1px solid rgba(255,255,255,.65) !important; border-radius: 0; background: transparent !important; font-size: 13px; }
.hxl-home .hxl-header-button .wp-block-button__link:hover,
.hxl-home .hxl-header-button .wp-block-button__link:focus-visible { color: var(--hxl-red-dark) !important; background: #fff !important; }

/* 首屏 */
.hxl-home .hxl-hero { position: relative; min-height: 760px; margin: 0; padding: 80px 7vw 70px; color: #fff; background: linear-gradient(118deg, var(--hxl-red-bright), #b61017 58%, #81090d); overflow: hidden; }
.hxl-home .hxl-hero::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 88px 88px; mask-image: linear-gradient(90deg, #000, transparent 78%); pointer-events: none; }
.hxl-home .hxl-hero-columns { position: relative; z-index: 1; min-height: 600px; max-width: 1440px; margin: 0 auto; align-items: center; gap: 3vw; }
.hxl-home .hxl-hero-copy { padding-top: 30px; }
.hxl-home .hxl-eyebrow { font: 11px/1.5 "Courier New", monospace; letter-spacing: .15em; text-transform: uppercase; }
.hxl-home .hxl-hero-title { margin: 30px 0 24px; max-width: 880px; color: #fff; font-size: clamp(50px, 4.5vw, 78px); font-weight: 700; line-height: 1.08; letter-spacing: -.055em; }
.hxl-home .hxl-hero-title mark { color: #ffc1c4; background: transparent; }
.hxl-home .hxl-hero-title mark { white-space: nowrap; }
.hxl-home-en .hxl-hero-title { max-width: 820px; font-size: clamp(44px, 4.2vw, 70px); letter-spacing: -.045em; }
.hxl-home-en .hxl-hero-title mark { white-space: normal; }
.hxl-home .hxl-hero-lead { max-width: 570px; color: rgba(255,255,255,.82); font-size: 18px; line-height: 1.8; }
.hxl-home .hxl-actions { gap: 12px; margin-top: 36px; }
.hxl-home .hxl-actions .wp-block-button__link, .hxl-home .hxl-contact .wp-block-button__link { min-height: 52px; display: flex; align-items: center; padding: 0 24px; border-radius: 0; font-size: 14px; }
.hxl-home .hxl-primary .wp-block-button__link { color: var(--hxl-red-dark) !important; border-color: #fff !important; background: #fff !important; }
.hxl-home .hxl-secondary .wp-block-button__link { color: #fff !important; border: 1px solid rgba(255,255,255,.65) !important; background: transparent !important; }
.hxl-home .hxl-secondary .wp-block-button__link:hover,
.hxl-home .hxl-secondary .wp-block-button__link:focus-visible { color: var(--hxl-red-dark) !important; background: #fff !important; }
.hxl-home .hxl-proof { max-width: 620px; margin-top: 68px; gap: 0; }
.hxl-home .hxl-proof .wp-block-column { min-width: 145px; padding: 0 24px; border-left: 1px solid rgba(255,255,255,.32); }
.hxl-home .hxl-proof .wp-block-column:first-child { padding-left: 0; border-left: 0; }
.hxl-home .hxl-proof p { margin: 0; font-size: 15px; }
.hxl-home .hxl-proof .hxl-proof-label { margin-top: 7px; color: rgba(255,255,255,.62); font-size: 11px; }
.hxl-home .hxl-hero-art { min-height: 570px; position: relative; }
.hxl-home .hxl-bead-visual { position: absolute; width: min(42vw, 620px); height: min(42vw, 620px); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.hxl-home .hxl-bead-visual::after { content: ""; position: absolute; inset: -6%; z-index: 2; background: url("hero-cell-beads-v2.png") center / contain no-repeat; filter: drop-shadow(0 28px 42px rgba(55,0,2,.34)); }
.hxl-home .hxl-orbit { position: absolute; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }
.hxl-home .hxl-orbit-outer { inset: 8%; }
.hxl-home .hxl-orbit-inner { inset: 24%; border-style: dashed; animation: hxl-spin 35s linear infinite; }
.hxl-home .hxl-core { position: absolute; inset: 33%; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #fb737a, #bd1219 55%, #720609); box-shadow: 0 30px 65px rgba(59,0,2,.4), inset -15px -15px 30px rgba(52,0,0,.35); }
.hxl-home .hxl-core b { font-size: clamp(38px, 5vw, 70px); line-height: 1; letter-spacing: -.1em; }
.hxl-home .hxl-core small { margin-top: 8px; font: 8px "Courier New", monospace; letter-spacing: .15em; opacity: .6; }
.hxl-home .hxl-bead { position: absolute; display: block; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #ff8a90, #9b0b11); box-shadow: 0 10px 20px rgba(64,0,0,.35); }
.hxl-home .bead-a { width: 42px; height: 42px; top: 7%; left: 45%; }
.hxl-home .bead-b { width: 25px; height: 25px; left: 4%; bottom: 20%; }
.hxl-home .bead-c { width: 32px; height: 32px; right: 3%; bottom: 18%; }
.hxl-home .hxl-core, .hxl-home .hxl-bead { display: none; }
@keyframes hxl-spin { to { transform: rotate(360deg); } }

/* 通用区块 */
.hxl-home .hxl-section { margin: 0; padding: 112px 7vw; }
.hxl-home .hxl-section > * { max-width: 1440px; margin-left: auto; margin-right: auto; }
.hxl-home .hxl-section-heading { align-items: flex-end; gap: 60px; margin-bottom: 60px; }
.hxl-home .hxl-red { color: var(--hxl-red); }
.hxl-home .hxl-section-title, .hxl-home .hxl-about h2 { margin: 18px 0 0; font-size: clamp(40px, 4.2vw, 64px); line-height: 1.15; letter-spacing: -.05em; }
.hxl-home .hxl-section-intro { max-width: 540px; margin-bottom: 0; color: var(--hxl-muted); font-size: 15px; line-height: 1.9; }

/* 产品卡片 */
.hxl-home .hxl-product-grid { gap: 0; border-top: 1px solid var(--hxl-line); border-left: 1px solid var(--hxl-line); }
.hxl-home .hxl-product-card { min-height: 410px; display: flex; flex-direction: column; padding: 28px; border-right: 1px solid var(--hxl-line); border-bottom: 1px solid var(--hxl-line); background: rgba(255,255,255,.25); transition: .25s ease; }
.hxl-home-en .hxl-product-card { min-height: 500px; }
.hxl-home .hxl-product-card:hover { z-index: 2; background: #fff; transform: translateY(-5px); box-shadow: 0 18px 35px rgba(0,0,0,.07); }
.hxl-home .hxl-card-number { margin: 0; color: #aaa49d; font: 11px "Courier New", monospace; }
.hxl-home .hxl-card-en { margin: 64px 0 8px; color: var(--hxl-red); font: 10px "Courier New", monospace; letter-spacing: .1em; }
.hxl-home .hxl-product-card h3 { margin: 0 0 20px; font-size: 24px; }
.hxl-home .hxl-product-card > p:not(.hxl-card-number):not(.hxl-card-en):not(.hxl-tags) { margin: 0; color: var(--hxl-muted); font-size: 14px; line-height: 1.8; }
.hxl-home .hxl-tags { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--hxl-line); color: #77716b; font: 9px/1.6 "Courier New", monospace; }

/* 应用数据 */
.hxl-home .hxl-data { margin: 0; color: #fff; background: #171717; }
.hxl-home .hxl-data > .wp-block-columns { align-items: stretch; }
.hxl-home .hxl-data-intro { padding: 100px 7vw; background: linear-gradient(135deg, var(--hxl-red), #9b0b11); }
.hxl-home .hxl-data-intro h2 { margin: 28px 0; color: #fff; font-size: clamp(40px, 4.3vw, 64px); line-height: 1.18; letter-spacing: -.05em; }
.hxl-home .hxl-data-intro > p:not(.hxl-eyebrow):not(.hxl-text-link) { max-width: 580px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.9; }
.hxl-home .hxl-text-link { display: inline-block; margin: 32px 0 0; padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.45); font-size: 13px; }
.hxl-home .hxl-metrics { padding: 70px 6vw; }
.hxl-home .hxl-metric { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 23px 0; border-bottom: 1px solid #3a3a3a; }
.hxl-home .hxl-metric p:first-child { grid-column: 1/3; margin: 0 0 10px; color: #aaa; font-size: 12px; }
.hxl-home .hxl-metric h3 { margin: 0; color: #fff; font-size: clamp(42px, 4vw, 62px); line-height: 1; letter-spacing: -.06em; }
.hxl-home .hxl-metric h3 strong { font: 12px "Courier New", monospace; letter-spacing: .08em; }
.hxl-home .hxl-metric p:last-child { margin: 0; color: #aaa; font-size: 12px; }
.hxl-home .hxl-disclaimer { margin-top: 22px; color: #666; font-size: 9px; }

/* 技术优势 */
.hxl-home .hxl-technology { background: #fff; }
.hxl-home .hxl-technology .hxl-section-heading { align-items: center; }
.hxl-home .hxl-technology .hxl-section-heading > .wp-block-column:last-child::after { content: ""; width: min(100%, 560px); aspect-ratio: 4 / 3; display: block; margin-top: 24px; background: url("technology-antibody-bead-v2.png") center / contain no-repeat; filter: drop-shadow(0 22px 35px rgba(95,10,14,.12)); }
.hxl-home .hxl-strengths { border-top: 1px solid #ddd; }
.hxl-home .hxl-strength { gap: 38px; padding: 34px 0; border-bottom: 1px solid #ddd; }
.hxl-home .hxl-strength p { margin: 0; color: var(--hxl-muted); font-size: 14px; line-height: 1.8; }
.hxl-home .hxl-strength > .wp-block-column:first-child p { color: var(--hxl-red); font: 11px "Courier New", monospace; }
.hxl-home .hxl-strength h3 { margin: 0; font-size: 22px; }

/* 关于、联系、页脚 */
.hxl-home .hxl-about { margin: 0; padding: 112px 7vw; background: #ede9e3; }
.hxl-home .hxl-about > .wp-block-columns { max-width: 1440px; margin: 0 auto; gap: 90px; }
.hxl-home .hxl-about .wp-block-column:last-child { padding-top: 35px; }
.hxl-home .hxl-about .wp-block-column:last-child p { color: var(--hxl-muted); font-size: 15px; line-height: 2; }
.hxl-home .hxl-contact { position: relative; margin: 0; padding: 96px 8vw; color: #fff; background: linear-gradient(112deg, #c1171e, #950b10); overflow: hidden; }
.hxl-home .hxl-contact::after { content: "CF"; position: absolute; right: -2%; top: -48%; color: rgba(255,255,255,.04); font-size: 300px; font-weight: 700; letter-spacing: -.1em; }
.hxl-home .hxl-contact > * { position: relative; z-index: 1; max-width: 1440px; margin-left: auto; margin-right: auto; }
.hxl-home .hxl-contact h2 { margin: 28px auto 45px; color: #fff; font-size: clamp(42px, 5vw, 72px); line-height: 1.2; letter-spacing: -.055em; }
.hxl-home .hxl-contact-row { align-items: center; }
.hxl-home .hxl-contact-row p { margin: 0; color: rgba(255,255,255,.65); font-size: 12px; }
.hxl-home .hxl-contact-details { line-height: 1.9; }
.hxl-home .hxl-contact-details strong { display: inline-block; margin-bottom: 5px; color: #fff; font-size: 22px; letter-spacing: .03em; }
.hxl-home .hxl-wecom-card { max-width: 760px; display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 38px; padding: 28px; border: 1px solid rgba(255,255,255,.25); background: rgba(58,0,3,.14); }
.hxl-home .hxl-wecom-copy h3 { margin-bottom: 12px; color: #fff; font-size: 24px; }
.hxl-home .hxl-wecom-copy p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.9; }
.hxl-home .hxl-wecom-qr { width: 240px; height: 240px; display: block; flex: 0 0 240px; border: 10px solid #fff; background: #fff url("wecom-contact.png") right center / auto 100% no-repeat; box-shadow: 0 18px 40px rgba(55,0,2,.24); }
.hxl-home .hxl-footer { margin: 0; padding: 68px 7vw 30px; color: #fff; background: #121212; }
.hxl-home .hxl-footer > .wp-block-columns { max-width: 1440px; margin: 0 auto; gap: 45px; }
.hxl-home .hxl-footer h3, .hxl-home .hxl-footer h4 { color: #fff; }
.hxl-home .hxl-footer h3 { margin-bottom: 7px; }
.hxl-home .hxl-footer h4 { margin-bottom: 16px; font-size: 12px; }
.hxl-home .hxl-footer p { color: #777; font-size: 12px; line-height: 1.9; }
.hxl-home .hxl-copyright { max-width: 1440px; margin: 28px auto 0; padding-top: 24px; border-top: 1px solid #292929; color: #555 !important; font: 9px "Courier New", monospace !important; }
.hxl-home-en .hxl-section-title, .hxl-home-en .hxl-about h2, .hxl-home-en .hxl-contact h2 { letter-spacing: -.035em; }

/* 编辑器预览保持与前台一致 */
.editor-styles-wrapper .hxl-home { left: auto; width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; transform: none; }

@media (max-width: 1080px) {
  .hxl-home .hxl-nav { display: none; }
  .hxl-home .hxl-hero-copy { flex-basis: 68% !important; }
  .hxl-home .hxl-hero-art { flex-basis: 32% !important; }
  .hxl-home .hxl-bead-visual { width: 520px; height: 520px; left: 62%; opacity: .72; }
  .hxl-home .hxl-product-grid { flex-wrap: wrap !important; }
  .hxl-home .hxl-product-card { flex-basis: 50% !important; }
}

@media (max-width: 782px) {
  .admin-bar .hxl-home .hxl-header { top: 46px; }
  .hxl-home .hxl-header { padding: 0 18px; }
  .hxl-home .hxl-header-inner { min-height: 70px; }
  .hxl-home .hxl-brand-text p:first-child { font-size: 14px; }
  .hxl-home .hxl-header-actions { gap: 10px; }
  .hxl-home .hxl-language-switch { gap: 5px; font-size: 11px; }
  .hxl-home .hxl-header-button .wp-block-button__link { width: 42px; height: 40px; padding: 0; overflow: hidden; text-indent: -999px; }
  .hxl-home .hxl-header-button .wp-block-button__link::after { content: "↗"; display: block; text-indent: 0; font-size: 17px; }
  .hxl-home .hxl-hero { min-height: 810px; padding: 70px 22px 50px; }
  .hxl-home .hxl-hero-columns { display: block; min-height: 680px; }
  .hxl-home .hxl-hero-copy { position: relative; z-index: 2; padding-top: 50px; }
  .hxl-home .hxl-hero-title { font-size: 42px; }
  .hxl-home .hxl-hero-title mark { white-space: normal; }
  .hxl-home .hxl-hero-lead { font-size: 16px; }
  .hxl-home .hxl-proof { display: grid !important; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 50px; }
  .hxl-home .hxl-proof .wp-block-column { padding: 0 12px; }
  .hxl-home .hxl-hero-art { position: absolute; right: -185px; bottom: -35px; width: 420px; min-height: 420px; opacity: .38; }
  .hxl-home .hxl-bead-visual { width: 420px; height: 420px; left: 50%; }
  .hxl-home .hxl-section { padding: 78px 22px; }
  .hxl-home .hxl-section-heading { display: block; margin-bottom: 40px; }
  .hxl-home .hxl-technology .hxl-section-heading > .wp-block-column:last-child::after { width: 100%; max-width: 440px; margin: 28px auto 0; }
  .hxl-home .hxl-section-intro { margin-top: 20px; }
  .hxl-home .hxl-product-grid { display: block; }
  .hxl-home .hxl-product-card { min-height: 330px; }
  .hxl-home-en .hxl-product-card { min-height: 390px; }
  .hxl-home .hxl-card-en { margin-top: 40px; }
  .hxl-home .hxl-data > .wp-block-columns { display: block; }
  .hxl-home .hxl-data-intro, .hxl-home .hxl-metrics { padding: 72px 22px; }
  .hxl-home .hxl-strength { display: grid !important; grid-template-columns: 34px 1fr; gap: 18px; }
  .hxl-home .hxl-strength > .wp-block-column:last-child { grid-column: 2; }
  .hxl-home .hxl-about { padding: 78px 22px; }
  .hxl-home .hxl-about > .wp-block-columns { display: block; }
  .hxl-home .hxl-contact { padding: 78px 22px; }
  .hxl-home .hxl-contact-row { display: block; }
  .hxl-home .hxl-contact-row .wp-block-column:last-child { margin-top: 22px; }
  .hxl-home .hxl-wecom-card { display: block; padding: 22px; }
  .hxl-home .hxl-wecom-qr { width: 240px; height: 240px; margin: 22px auto 0; }
  .hxl-home .hxl-footer { padding: 60px 22px 28px; }
  .hxl-home .hxl-footer > .wp-block-columns { display: grid; grid-template-columns: 1fr 1fr; }
  .hxl-home .hxl-footer > .wp-block-columns > .wp-block-column:first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .hxl-home { scroll-behavior: auto; }
  .hxl-home .hxl-orbit-inner { animation: none; }
  .hxl-home .hxl-product-card, .hxl-home .wp-block-button__link { transition: none; }
}
