/* ==========================================================================
   一心心智 · 模板 1 / 3 —— 首页
   适用页面：http://localhost/yxx/            body.yx-home
   作用域：body.yx-home（内页规则不会误伤，可与其他两份并存）
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. 设计令牌 —— 共用（三份完全一致，改这里即可全站换色）
   -------------------------------------------------------------------------- */
:root {
  --yx-red: #da251e;          /* Logo 主色 */
  --yx-red-deep: #b21e18;
  --yx-red-soft: #f0b2ae;
  --yx-red-wash: #fdf1f0;

  --yx-ink: #1c1917;
  --yx-ink-soft: #3f3a36;
  --yx-muted: #6f675f;
  --yx-faint: #a3988d;

  --yx-line: #e4dcd2;
  --yx-line-soft: #efe9e1;
  --yx-paper: #f6f3ee;
  --yx-card: #fffcf8;
  --yx-sand: #efe8df;
  --yx-night: #161311;

  --yx-max: 1180px;
  --yx-max-wide: 1320px;
  --yx-gutter: 28px;
  --yx-header: 76px;

  --yx-sans: "Manrope", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --yx-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;

  --yx-r-sm: 12px;
  --yx-r-md: 18px;
  --yx-r-lg: 24px;
  --yx-r-xl: 32px;

  --yx-ease: 180ms ease;
  --yx-ease-out: 320ms cubic-bezier(.22, .61, .36, 1);

  --yx-shadow-sm: 0 8px 24px rgba(28, 25, 23, .05);
  --yx-shadow-md: 0 18px 44px rgba(28, 25, 23, .09);
  --yx-shadow-lg: 0 30px 80px rgba(28, 25, 23, .14);

  --phone: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M8.2 3.8h2.2c.4 0 .8.3.9.7l.7 2.6c.1.4 0 .8-.3 1.1l-1.3 1.1a12.6 12.6 0 0 0 5.1 5.1l1.1-1.3c.3-.3.7-.4 1.1-.3l2.6.7c.4.1.7.5.7.9v2.2c0 .7-.5 1.3-1.2 1.4A16.2 16.2 0 0 1 4.8 6.9c.1-.7.7-1.2 1.4-1.2z'/></svg>");
  --chev: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m9 6 6 6-6 6'/></svg>");
  --arrow-ne: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M7 17 17 7M9 7h8v8'/></svg>");
}

/* --------------------------------------------------------------------------
   1. 基础重置 —— 共用（三份完全一致）
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--yx-paper);
  color: var(--yx-ink);
  font-family: var(--yx-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

::selection { background: var(--yx-red); color: #fff; }

:focus-visible { outline: 2px solid var(--yx-red); outline-offset: 3px; }

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

.container {
  width: min(var(--yx-max), calc(100% - 2 * var(--yx-gutter)));
  margin-inline: auto;
  padding: 84px 0 20px;
}

/* --------------------------------------------------------------------------
   2. 页头：Logo + 菜单 + 右侧电话 —— 共用（三份完全一致）
   -------------------------------------------------------------------------- */
body > header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--yx-header);
  padding-inline: max(var(--yx-gutter), calc((100% - var(--yx-max)) / 2));
  background: color-mix(in srgb, var(--yx-paper) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: min-height var(--yx-ease), background var(--yx-ease), box-shadow var(--yx-ease);
}

body.is-scrolled > header {
  min-height: 64px;
  background: color-mix(in srgb, var(--yx-paper) 94%, transparent);
  border-bottom-color: var(--yx-line);
  box-shadow: var(--yx-shadow-sm);
}

.yx-logo p { margin: 0; }

.yx-logo img { height: 40px; width: auto; }

.yx-logo p:last-child {
  margin-top: 1px;
  color: var(--yx-muted);
  font-size: 11px;
  letter-spacing: .18em;
   display: flex;
  align-items: center;
}

#yx-site-nav { flex: 1; min-width: 0; }

.yx-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yx-menu-li { margin: 0; list-style: none; }

.yx-menu-li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--yx-ink-soft);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--yx-ease);
}

.yx-menu-li a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 2px;
  background: var(--yx-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--yx-ease-out);
}

.yx-menu-li a:hover { color: var(--yx-ink); }
.yx-menu-li a:hover::after { transform: scaleX(1); }

.yx-menu-li.current a,
.yx-menu-li.active a,
.yx-menu-li a[aria-current="page"] {
  color: var(--yx-ink);
  font-weight: 700;
}

.yx-menu-li.current a::after,
.yx-menu-li.active a::after,
.yx-menu-li a[aria-current="page"]::after { transform: scaleX(1); }

.yx-header-phone { margin: 0; }

.icon-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--yx-line);
  border-radius: 999px;
  background: var(--yx-card);
  color: var(--yx-ink);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--yx-ease), color var(--yx-ease), box-shadow var(--yx-ease);
}

.icon-call::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: none;
  background: var(--yx-red);
  -webkit-mask: var(--phone) center / contain no-repeat;
  mask: var(--phone) center / contain no-repeat;
}

.icon-call:hover {
  border-color: var(--yx-red);
  box-shadow: 0 0 0 3px var(--yx-red-wash);
}

/* 汉堡按钮（窄屏） */
.yx-nav-toggle {
  display: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--yx-line);
  border-radius: var(--yx-r-sm);
  background: var(--yx-card);
  color: transparent;
  font-size: 0;
  cursor: pointer;
}

.yx-nav-toggle::before,
.yx-nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--yx-ink);
  transition: transform var(--yx-ease-out), box-shadow var(--yx-ease-out), top var(--yx-ease-out);
}

.yx-nav-toggle::before { top: 16px; box-shadow: 0 6px 0 var(--yx-ink); }
.yx-nav-toggle::after { top: 28px; }

.yx-nav-toggle[aria-expanded="true"]::before {
  top: 21px;
  box-shadow: none;
  transform: rotate(45deg);
}

.yx-nav-toggle[aria-expanded="true"]::after {
  top: 21px;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   3. 按钮 —— 共用（三份完全一致）
   -------------------------------------------------------------------------- */
.btn-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--yx-ease), color var(--yx-ease), border-color var(--yx-ease),
    box-shadow var(--yx-ease), transform var(--yx-ease);
}

.btn-theme:hover { transform: translateY(-1px); }
.btn-theme:active { transform: translateY(0); }

.btn-theme-primary { background: var(--yx-red); color: #fff; }
.btn-theme-primary:hover {
  background: var(--yx-red-deep);
  box-shadow: 0 10px 24px rgba(218, 37, 30, .26);
}

.btn-theme-outline {
  background: transparent;
  border-color: var(--yx-ink);
  color: var(--yx-ink);
}

.btn-theme-outline:hover { background: var(--yx-ink); color: var(--yx-card); }

/* 按钮内的电话图标只保留图形，不套用页头胶囊外观 */
.btn-theme .icon-call {
  display: inline-flex;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: inherit;
}

.btn-theme .icon-call::before { background: currentColor; }

/* --------------------------------------------------------------------------
banner
   -------------------------------------------------------------------------- */
.yx-banner-slot {
  --bn-title: var(--yx-ink);
  --bn-body: var(--yx-ink-soft);
  --bn-accent: var(--yx-red-deep);
  --bn-eyebrow: #9a6f3c;
  --bn-metal: rgba(154, 111, 60, .42);
  --bn-signal: rgba(154, 111, 60, .5);
  --bn-stage: #fffaf3;
  --bn-card: #ffffff;
  --bn-hair: var(--yx-line);
  --bn-lens-shadow: 0 40px 76px -44px rgba(28, 25, 23, .34), inset 0 1px 0 rgba(255, 255, 255, .9);
  --bn-card-shadow: 0 24px 44px -24px rgba(28, 25, 23, .28), inset 0 1px 0 rgba(255, 255, 255, .9);
  --bn-wave: url("data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1200 200%22 preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3Cpath id=%22w%22 d=%22M0,112.1L8,115.8L16,119.1L24,121.8L32,123.7L40,124.7L48,124.7L56,123.8L64,122L72,119.4L80,116.2L88,112.6L96,108.8L104,105L112,101.3L120,98L128,94.9L136,92.3L144,89.9L152,87.8L160,85.8L168,83.8L176,81.7L184,79.3L192,76.6L200,73.5L208,70.2L216,66.7L224,63.3L232,60.1L240,57.6L248,56L256,55.6L264,56.5L272,59.1L280,63.3L288,69.1L296,76.4L304,84.9L312,94.2L320,104L328,113.7L336,122.8L344,131L352,137.6L360,142.5L368,145.3L376,145.9L384,144.4L392,140.9L400,135.7L408,129.1L416,121.6L424,113.7L432,105.7L440,98.3L448,91.7L456,86.2L464,82.2L472,79.6L480,78.5L488,78.8L496,80.4L504,82.9L512,86.2L520,89.9L528,93.8L536,97.5L544,101L552,104L560,106.5L568,108.3L576,109.6L584,110.2L592,110.4L600,110.2L608,109.7L616,109L624,108.3L632,107.6L640,106.9L648,106.3L656,105.7L664,105.1L672,104.7L680,104.3L688,103.9L696,103.6L704,103.1L712,102.5L720,101.7L728,100.7L736,99.5L744,97.9L752,96.2L760,94.2L768,92.1L776,90L784,87.9L792,86L800,84.4L808,83.2L816,82.6L824,82.5L832,83L840,84.2L848,86L856,88.4L864,91.2L872,94.4L880,97.8L888,101.3L896,104.6L904,107.7L912,110.4L920,112.5L928,114L936,114.9L944,115L952,114.4L960,113.2L968,111.5L976,109.4L984,106.9L992,104.3L1000,101.8L1008,99.3L1016,97.2L1024,95.4L1032,94L1040,93.2L1048,92.8L1056,92.8L1064,93.3L1072,94.2L1080,95.3L1088,96.5L1096,97.9L1104,99.2L1112,100.4L1120,101.4L1128,102.3L1136,103L1144,103.5L1152,103.8L1160,104L1168,104.1L1176,104.2L1184,104.4L1192,104.6L1200,105%22/%3E%3ClinearGradient id=%22g%22 x1=%220%22 x2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%23fff%22 stop-opacity=%220%22/%3E%3Cstop offset=%22.14%22 stop-color=%22%23fff%22 stop-opacity=%22.5%22/%3E%3Cstop offset=%22.5%22 stop-color=%22%23fff%22 stop-opacity=%22.95%22/%3E%3Cstop offset=%22.8%22 stop-color=%22%23fff%22 stop-opacity=%22.42%22/%3E%3Cstop offset=%221%22 stop-color=%22%23fff%22 stop-opacity=%220%22/%3E%3C/linearGradient%3E%3Cmask id=%22m%22%3E%3Crect width=%221200%22 height=%22200%22 fill=%22url(%23g)%22/%3E%3C/mask%3E%3C/defs%3E%3Cg mask=%22url(%23m)%22%3E%3Cuse href=%22%23w%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cuse href=%22%23w%22 transform=%22translate(0 130) scale(1 .32)%22 fill=%22none%22 stroke=%22black%22 stroke-width=%223.4%22 stroke-opacity=%22.34%22 stroke-linecap=%22round%22/%3E%3C/g%3E%3C/svg%3E");
  --bn-reticle: url("data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 400 400%22%3E%3Cg fill=%22none%22 stroke=%22black%22%3E%3Ccircle cx=%22200%22 cy=%22200%22 r=%22192%22 stroke-width=%227%22 stroke-dasharray=%221.4 23.73%22 stroke-opacity=%22.85%22/%3E%3Ccircle cx=%22200%22 cy=%22200%22 r=%22176%22 stroke-width=%221%22 stroke-opacity=%22.55%22/%3E%3Ccircle cx=%22200%22 cy=%22200%22 r=%22132%22 stroke-width=%221%22 stroke-opacity=%22.34%22 stroke-dasharray=%226 5%22/%3E%3Ccircle cx=%22200%22 cy=%22200%22 r=%2286%22  stroke-width=%221%22 stroke-opacity=%22.22%22/%3E%3Cpath d=%22M200 4 V26 M200 396 V374 M4 200 H26 M396 200 H374%22 stroke-width=%221.6%22 stroke-opacity=%22.8%22/%3E%3Cpath d=%22M68 200 h16 M316 200 h16 M200 68 v16 M200 316 v-16%22 stroke-width=%221.2%22 stroke-opacity=%22.5%22/%3E%3C/g%3E%3C/svg%3E");
  --bn-grain: url("data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22200%22 height=%22200%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.86%22 numOctaves=%224%22 stitchTiles=%22stitch%22/%3E%3CfeColorMatrix type=%22saturate%22 values=%220%22/%3E%3CfeComponentTransfer%3E%3CfeFuncA type=%22linear%22 slope=%22.5%22/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width=%22200%22 height=%22200%22 filter=%22url(%23n)%22 opacity=%22.13%22/%3E%3C/svg%3E");
  position: relative;
  isolation: isolate;
  padding-block: clamp(34px, 4.6vw, 68px) clamp(56px, 6.6vw, 104px);
  background:
    /* 颗粒：抹掉大面积渐变的分层带，浅色也不发平 */
    var(--bn-grain) 0 0 / 200px 200px repeat,
    /* 坐标格：技术图纸的底子，压到几乎只剩边角能看见 */
    repeating-linear-gradient(90deg, rgba(154, 111, 60, .07) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(180deg, rgba(154, 111, 60, .07) 0 1px, transparent 1px 74px),
    linear-gradient(90deg, var(--yx-red) 0 22%, rgba(218, 37, 30, .14) 52%, rgba(218, 37, 30, 0) 82%) top / 100% 2px no-repeat,
    radial-gradient(820px 560px at 76% 34%, rgba(255, 255, 255, .9), rgba(255, 246, 232, .4) 48%, transparent 72%),
    radial-gradient(640px 420px at 98% -12%, rgba(218, 37, 30, .12), transparent 62%),
    linear-gradient(166deg, #fffaf5 0%, #f6efe6 48%, #e9dfd1 100%);
  background-blend-mode: soft-light, normal, normal, normal, normal, normal, normal;
  color: var(--bn-title);
  overflow: clip;
}

/* 脑电/生物反馈波形：整条色带的签名元素，从左下穿到右上 */
.yx-banner-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bn-signal);
  -webkit-mask-image: var(--bn-wave);
  mask-image: var(--bn-wave);
  -webkit-mask-size: 100% clamp(150px, 17vw, 230px);
  mask-size: 100% clamp(150px, 17vw, 230px);
  -webkit-mask-position: 0 72%;
  mask-position: 0 72%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

/* 取景角标 + 收口线：把色带框成一台仪器，而不是一个色块 */
.yx-banner-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(var(--bn-metal), var(--bn-metal)) left 26px top 26px / 22px 1px no-repeat,
    linear-gradient(var(--bn-metal), var(--bn-metal)) left 26px top 26px / 1px 22px no-repeat,
    linear-gradient(var(--bn-metal), var(--bn-metal)) right 26px top 26px / 22px 1px no-repeat,
    linear-gradient(var(--bn-metal), var(--bn-metal)) right 26px top 26px / 1px 22px no-repeat,
    linear-gradient(var(--bn-metal), var(--bn-metal)) left 26px bottom 26px / 22px 1px no-repeat,
    linear-gradient(var(--bn-metal), var(--bn-metal)) left 26px bottom 26px / 1px 22px no-repeat,
    linear-gradient(var(--bn-metal), var(--bn-metal)) right 26px bottom 26px / 22px 1px no-repeat,
    linear-gradient(var(--bn-metal), var(--bn-metal)) right 26px bottom 26px / 1px 22px no-repeat,
    linear-gradient(90deg, rgba(218, 37, 30, .5), var(--bn-hair) 34%, transparent 76%) 0 100% / 100% 1px no-repeat;
}

/* 深色（暗室）版：同一套仪器语言，把深咖换成摄影棚底光 + 四角压暗 */
.yx-banner-slot[data-banner-tone="night"] {
  --bn-title: #f7ece1;
  --bn-body: #bfa796;
  --bn-accent: #e9b184;
  --bn-eyebrow: #d3a377;
  --bn-metal: rgba(211, 163, 119, .5);
  --bn-signal: rgba(211, 163, 119, .62);
  --bn-stage: #f0e5d5;
  --bn-card: #f8f1e7;
  --bn-hair: rgba(247, 236, 225, .16);
  --bn-lens-shadow: 0 46px 86px -44px rgba(0, 0, 0, .82), inset 0 1px 0 rgba(255, 255, 255, .9);
  --bn-card-shadow: 0 26px 46px -22px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .8);
  background:
    var(--bn-grain) 0 0 / 200px 200px repeat,
    repeating-linear-gradient(90deg, rgba(211, 163, 119, .055) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(180deg, rgba(211, 163, 119, .055) 0 1px, transparent 1px 74px),
    linear-gradient(90deg, var(--yx-red) 0 22%, rgba(218, 37, 30, .16) 52%, rgba(218, 37, 30, 0) 82%) top / 100% 2px no-repeat,
    radial-gradient(760px 560px at 74% 40%, rgba(255, 209, 158, .17), rgba(255, 190, 130, .05) 46%, transparent 70%),
    radial-gradient(620px 420px at 99% -12%, rgba(218, 37, 30, .3), transparent 62%),
    radial-gradient(1240px 760px at 50% 46%, transparent 44%, rgba(8, 5, 4, .5) 100%),
    linear-gradient(158deg, #402a20 0%, #291a14 46%, #170f0c 100%);
  background-blend-mode: overlay, normal, normal, normal, normal, normal, normal, normal;
}

.yx-banner,
.yx-banner-wrapper { max-height: 760px; }

.yx-banner { position: relative; }

/* 刻度环：套在舞台外面，中心对在产品上，等于给它一个"对焦"动作。
   直径刻意比透镜大一圈，刻度只从奶油块四周探出来，不压在产品图上 */
.yx-banner::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 75%;
  top: 50%;
  width: clamp(460px, 45vw, 700px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: var(--bn-metal);
  -webkit-mask-image: var(--bn-reticle);
  mask-image: var(--bn-reticle);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

/* 小圆片里的 VR 头显：从"贴纸"改成"样本"，描边走黄铜 */
.yx-banner::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 43%;
  top: 4%;
  width: clamp(104px, 9.6vw, 140px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: url("../../../images/products/final-35.png") 74% 50% / 88% no-repeat, var(--bn-card);
  background-blend-mode: multiply;
  border: 1px solid var(--bn-metal);
  box-shadow: var(--bn-card-shadow);
  transform: rotate(-8deg);
  pointer-events: none;
}

.yx-banner-wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .96fr);
  align-items: center;
  gap: clamp(36px, 4.4vw, 66px);
  width: min(var(--yx-max-wide), calc(100% - 2 * var(--yx-gutter)));
  min-height: 540px;
  margin-inline: auto;
}

/* 规格小字：仪器铭牌那种，比再加一个圆点有用 */
.yx-banner-wrapper::before {
  content: "BIOFEEDBACK · EEG 10-40Hz · HRV";
  position: absolute;
  left: 0;
  bottom: -18px;
  color: var(--bn-metal);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  pointer-events: none;
}

.yx-banner-subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--bn-eyebrow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
}

.yx-banner-subtitle::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: none;
  background: currentColor;
}

.yx-banner-title {
  margin: 18px 0 0;
  color: var(--bn-title);
  font-family: var(--yx-serif);
  font-size: clamp(34px, 4.3vw, 56px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.yx-banner-title span { display: block; color: var(--bn-accent); }

.yx-banner-desc {
  max-width: 36em;
  margin: 20px 0 0;
  color: var(--bn-body);
  font-size: 16px;
  line-height: 1.85;
}

.yx-banner-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---- 右侧：透镜舞台 + 主图 + 悬浮数据卡 ---- */
.yx-banner-media {
  --bn-lens: 54% 46% 50% 50% / 46% 54% 46% 54%;
  position: relative;
  height: clamp(400px, 34vw, 520px);
  max-height: 560px;
}

/* 舞台本体：不再是不规则的"泼墨"，改成一颗受控的透镜形，
   描边 + 内高光让它像一块机加工出来的载物台 */
.yx-banner-media::before {
  content: "";
  position: absolute;
  inset: 3% 0 7% 7%;
  border-radius: var(--bn-lens);
  background: var(--bn-stage);
  border: 1px solid var(--bn-metal);
  box-shadow: var(--bn-lens-shadow);
}

/* 主图和舞台共用同一个盒子、同一个圆角：multiply 把白底融进奶油，
   裁剪压在舞台边缘上，所以不会有白色直角漏出来 */
.yx-banner-media img {
  position: absolute;
  left: 7%;
  top: 3%;
  width: 93%;
  height: 90%;
  object-fit: contain;
  object-position: center;
  border-radius: var(--bn-lens);
  mix-blend-mode: multiply;
  background: none;
}

/* 悬浮数据卡：斜压在舞台右下沿，屏幕图同样 multiply */
.yx-banner-media::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: -1%;
  bottom: 1%;
  width: clamp(168px, 17vw, 232px);
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: url("../../../images/products/final-102.png") 50% / cover no-repeat, var(--bn-card);
  background-blend-mode: multiply;
  border: 1px solid var(--bn-metal);
  box-shadow: var(--bn-card-shadow);
  transform: rotate(4deg);
}

/* 舞台左沿的红色锚点：加一圈黄铜细环，从"装饰点"变成"标定点" */
.yx-banner-content { position: relative; }

.yx-banner-content::after {
  content: "";
  position: absolute;
  z-index: 4;
  left: 99%;
  top: 44%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yx-red);
  box-shadow: 0 0 0 1px var(--bn-metal), 0 0 0 10px rgba(218, 37, 30, .12);
  pointer-events: none;
}

/* 深色带上的描边按钮跟着翻成浅色，描边用黄铜而不是白 */
.yx-banner-slot[data-banner-tone="night"] .btn-theme-outline {
  border-color: rgba(211, 163, 119, .48);
  background: rgba(255, 255, 255, .04);
  color: var(--bn-title);
}

.yx-banner-slot[data-banner-tone="night"] .btn-theme-outline:hover {
  border-color: var(--bn-eyebrow);
  background: rgba(255, 255, 255, .1);
}

/* --------------------------------------------------------------------------
   5. 区块标题（共用）
   -------------------------------------------------------------------------- */
.yx-cards > h3,
.yx-section-head h2,
.yx-apply h2 {
  margin: 0;
  font-family: var(--yx-serif);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.yx-cards > h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: clamp(28px, 3vw, 40px);
}

.yx-cards > h3::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--yx-red);
}

.yx-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--yx-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}

/* --------------------------------------------------------------------------
   6. 首页 · 产品中心区块
   -------------------------------------------------------------------------- */
#home-products { margin-bottom: 88px; }

.yx-product-grid,
.yx-solus-grid,
.yx-news-grid {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yx-product-grid,
.yx-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.yx-product-item,
.yx-solus-item,
.yx-news-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--yx-line);
  border-radius: var(--yx-r-md);
  background: var(--yx-card);
  transition: border-color var(--yx-ease), box-shadow var(--yx-ease), transform var(--yx-ease);
}

.yx-product-item:hover,
.yx-solus-item:hover,
.yx-news-item:hover {
  border-color: var(--yx-red-soft);
  box-shadow: var(--yx-shadow-md);
  transform: translateY(-3px);
}

.yx-product-thumb {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #fff;
}

.yx-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 420ms ease;
}

.yx-product-item:hover .yx-product-thumb img { transform: scale(1.045); }

.yx-product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--yx-card) 92%, transparent);
  color: var(--yx-red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

.yx-product-info,
.yx-solus-info,
.yx-news-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 20px;
}

.yx-product-name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.yx-product-name a,
.yx-solus-name a,
.yx-news-name a { color: inherit; text-decoration: none; }

.yx-product-name a::after,
.yx-solus-name a::after,
.yx-news-name a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.yx-product-info p,
.yx-solus-info > p,
.yx-news-info > p {
  margin: 8px 0 0;
  color: var(--yx-muted);
  font-size: 14px;
  line-height: 1.7;
}

.yx-product-info p,
.yx-news-info > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* --------------------------------------------------------------------------
   7. 首页 · 解决方案区块
   -------------------------------------------------------------------------- */
#solutions { margin-bottom: 28px; }

.yx-solus-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.yx-solus-thumb {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 168px;
  padding: 18px 20px;
  overflow: hidden;
  background: var(--yx-night);
  color: var(--yx-card);
}

.yx-solus-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}

.yx-solus-item:nth-child(2) .yx-solus-thumb { background: var(--yx-sand); color: var(--yx-ink); }
.yx-solus-item:nth-child(3) .yx-solus-thumb { background: var(--yx-red); color: #fff; }

.yx-solus-thumb::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 160px;
  height: 160px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .28;
}

.yx-scene-number {
  position: relative;
  z-index: 1;
  font-family: var(--yx-serif);
  font-size: 64px;
  font-weight: 600;
  line-height: .85;
  letter-spacing: -.04em;
}

.yx-solus-thumb > span:last-child,
.yx-news-thumb > span:last-child {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

.yx-solus-name,
.yx-news-name {
  margin: 0;
  font-family: var(--yx-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}

.yx-detail {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--yx-red);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.yx-detail span { transition: transform var(--yx-ease); }
.yx-solus-item:hover .yx-detail span,
.yx-news-item:hover .yx-detail span { transform: translate(3px, -3px); }

/* --------------------------------------------------------------------------
   8. 首页 · 咨询区块（深色 + 表单）
   -------------------------------------------------------------------------- */
.yx-apply {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  margin: 64px 0 28px;
  padding: 52px 48px;
  border-radius: var(--yx-r-xl);
  background:
    radial-gradient(680px 320px at 12% 0%, rgba(218, 37, 30, .28), transparent 60%),
    var(--yx-night);
  color: var(--yx-card);
  box-shadow: var(--yx-shadow-lg);
}

.yx-apply .yx-eyebrow { color: var(--yx-red-soft); }
.yx-apply h2 { font-size: clamp(30px, 3vw, 44px); }

.yx-apply > div > p {
  max-width: 28em;
  margin: 14px 0 26px;
  color: #d9d0c6;
  line-height: 1.75;
}

/* 表单 */
.yxxform-module { margin: 0; }

.yxxform-card {
  padding: 26px 26px 22px;
  border-radius: var(--yx-r-md);
  background: var(--yx-card);
  color: var(--yx-ink);
}

.yxxform-title {
  margin: 0;
  font-family: var(--yx-serif);
  font-size: 26px;
  font-weight: 600;
}

.yxxform-description {
  margin: 6px 0 18px;
  color: var(--yx-muted);
  font-size: 14px;
}

.yxxform-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.yxxform-field { grid-column: 1 / -1; min-width: 0; }
.yxxform-half { grid-column: auto; }

.yxxform-label {
  display: block;
  margin-bottom: 6px;
  color: var(--yx-ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.yxxform-label span { color: var(--yx-red); }

.yxxform-form input,
.yxxform-form select,
.yxxform-form textarea {
  width: 100%;
  border: 1px solid var(--yx-line);
  border-radius: var(--yx-r-sm);
  background: var(--yx-paper);
  color: var(--yx-ink);
  font: inherit;
  font-size: 15px;
  transition: border-color var(--yx-ease), box-shadow var(--yx-ease);
}

.yxxform-form input,
.yxxform-form select { height: 46px; padding: 0 14px; }

.yxxform-form textarea {
  min-height: 112px;
  padding: 12px 14px;
  resize: vertical;
}

.yxxform-form select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='none' stroke='%231c1917' stroke-width='1.6' d='M5 7.5 10 12.5 15 7.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.yxxform-form input::placeholder,
.yxxform-form textarea::placeholder { color: var(--yx-faint); }

.yxxform-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding-left: 14px;
  border: 1px solid var(--yx-line);
  border-radius: var(--yx-r-sm);
  background: var(--yx-paper);
}

.yxxform-phone span {
  color: var(--yx-muted);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.yxxform-phone input {
  height: 100%;
  border: 0;
  background: transparent;
  padding-left: 0;
}

.yxxform-form input:focus,
.yxxform-form select:focus,
.yxxform-form textarea:focus,
.yxxform-phone:focus-within {
  outline: none;
  border-color: var(--yx-red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--yx-red) 18%, transparent);
}

.yxxform-form :focus-visible { outline: none; }

.yxxform-submit {
  width: 100%;
  height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--yx-red);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--yx-ease), box-shadow var(--yx-ease), transform var(--yx-ease);
}

.yxxform-submit:hover {
  background: var(--yx-red-deep);
  box-shadow: 0 10px 24px rgba(218, 37, 30, .24);
  transform: translateY(-1px);
}

.yxxform-submit:disabled { opacity: .6; cursor: wait; transform: none; }

.yxxform-card.is-sent .yxxform-form,
.yxxform-card.is-sent .yxxform-description { display: none; }

.yxxform-card.is-sent::after {
  content: "已收到您的咨询。顾问会尽快与您联系，请保持电话畅通。";
  display: block;
  padding: 8px 0 12px;
  color: var(--yx-ink-soft);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   9. 首页 · 资讯区块
   -------------------------------------------------------------------------- */
.yx-news-section { margin-top: 72px; }

.yx-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.yx-section-head h2 { font-size: clamp(28px, 3vw, 40px); }

.yx-section-head > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--yx-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--yx-ease), gap var(--yx-ease);
}

.yx-section-head > a:hover { color: var(--yx-red); gap: 9px; }

/* 首页资讯卡片缩略图（news.php 覆写在有图时使用） */
.yx-news-thumb {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 140px;
  padding: 16px 18px;
  overflow: hidden;
  background: var(--yx-sand);
  color: var(--yx-ink);
}

.yx-news-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yx-news-empty {
  padding: 56px 24px;
  border: 1px dashed #d9cfc3;
  border-radius: var(--yx-r-lg);
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--yx-red) 8%, transparent), transparent 58%),
    var(--yx-card);
  color: var(--yx-ink-soft);
  font-family: var(--yx-serif);
  font-size: 20px;
  line-height: 1.6;
  text-align: center;
}

.yx-news-empty small {
  display: block;
  margin-top: 8px;
  color: var(--yx-muted);
  font-family: var(--yx-sans);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   10. 内页版心（home 模板同时承载"解决方案"列表与详情，body.yx-inner）
   -------------------------------------------------------------------------- */
body.yx-inner > .container { padding-top: 0; }

/* templates/home/index.php 把 banner 模块位输出在 $isHome 判断之外，
   首页 Hero 因此会出现在解决方案列表/详情顶部；根治需把该行移进 if 分支 */
body.yx-inner .yx-banner-slot { display: none; }

.yx-page-content {
  width: 100%;
  min-width: 0;
  padding: 40px 0 88px;
}

.yx-page-heading {
  position: relative;
  margin: 24px 0 40px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--yx-line);
}

.yx-page-heading h1 {
  margin: 0;
  font-family: var(--yx-serif);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.yx-page-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 3px;
  background: var(--yx-red);
}

#system-message-container { margin: 0 0 24px; }

#system-message-container .alert {
  margin: 0;
  padding: 14px 18px;
  border: 1px solid var(--yx-line);
  border-left: 3px solid var(--yx-red);
  border-radius: var(--yx-r-sm);
  background: var(--yx-card);
  color: var(--yx-ink-soft);
  font-size: 15px;
}

#system-message-container .alert-success { border-left-color: #1f9d55; }
#system-message-container .alert-error { border-left-color: var(--yx-red); }

/* --------------------------------------------------------------------------
   11. 深层级 · 解决方案列表
   -------------------------------------------------------------------------- */
/* Joomla 把首条放进 items-leading 独立分组，摊平进同一网格才不会留下半宽孤卡 */
.com-content-category-blog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.com-content-category-blog > .blog-items { display: contents; }

.com-content-category-blog > :not(.blog-items) { grid-column: 1 / -1; }

.com-content-category-blog__item.blog-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--yx-line);
  border-radius: var(--yx-r-md);
  background: var(--yx-card);
  transition: border-color var(--yx-ease), box-shadow var(--yx-ease), transform var(--yx-ease);
}

.com-content-category-blog__item:hover {
  border-color: var(--yx-red-soft);
  box-shadow: var(--yx-shadow-md);
  transform: translateY(-3px);
}

.com-content-category-blog__item .item-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 26px;
}

.com-content-category-blog__item .page-header { margin: 0; padding: 0; border: 0; }

.com-content-category-blog__item h2 {
  margin: 0 0 12px;
  font-family: var(--yx-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.01em;
}

.com-content-category-blog__item h2 a {
  color: var(--yx-ink);
  text-decoration: none;
  transition: color var(--yx-ease);
}

.com-content-category-blog__item h2 a:hover { color: var(--yx-red); }

/* 整张卡片可点：标题链接铺满 */
.com-content-category-blog__item h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--yx-r-md);
}

/* dt 是 Joomla 的"菜单项设置"占位文案，不展示 */
.com-content-category-blog__item .article-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 0 0 14px;
  padding: 0;
  color: var(--yx-faint);
  font-size: 12.5px;
}

.com-content-category-blog__item .article-info dt { display: none; }

.com-content-category-blog__item .article-info dd {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.com-content-category-blog__item .article-info a {
  color: inherit;
  text-decoration: none;
}

.com-content-category-blog__item .article-info a:hover { color: var(--yx-red); }

/* 站点未加载 Joomla 图标字体表，隐藏空字形占位 */
.com-content-category-blog__item .article-info [class*="icon-"] { display: none; }

.com-content-category-blog__item .item-content > p {
  flex: 1;
  margin: 0;
  color: var(--yx-muted);
  font-size: 14.5px;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   12. 深层级 · 解决方案详情
   -------------------------------------------------------------------------- */
.com-content-article {
  width: min(820px, 100%);
  margin: 0 auto;
}

.com-content-article__header {
  margin: 0 0 20px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--yx-line);
}

.com-content-article__header h1 {
  margin: 0;
  font-family: var(--yx-serif);
  font-size: clamp(26px, 2.7vw, 36px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.com-content-article__body {
  color: var(--yx-ink-soft);
  font-size: 16.5px;
  line-height: 1.95;
}

.com-content-article__body p { margin: 0 0 20px; }

.com-content-article__body h2,
.com-content-article__body h3,
.com-content-article__body h4 {
  margin: 34px 0 14px;
  font-family: var(--yx-serif);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--yx-ink);
}

.com-content-article__body h2 { font-size: 24px; }
.com-content-article__body h3 { font-size: 20px; }
.com-content-article__body h4 { font-size: 17.5px; }

.com-content-article__body a {
  color: var(--yx-red);
  text-decoration: none;
  border-bottom: 1px solid var(--yx-red-soft);
  transition: border-color var(--yx-ease), color var(--yx-ease);
}

.com-content-article__body a:hover {
  color: var(--yx-red-deep);
  border-bottom-color: currentColor;
}

.com-content-article__body ul,
.com-content-article__body ol { margin: 0 0 20px; padding-left: 24px; }

.com-content-article__body li { margin-bottom: 8px; }

.com-content-article__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 26px auto;
  border-radius: var(--yx-r-md);
}

.com-content-article__body blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--yx-red);
  border-radius: 0 var(--yx-r-sm) var(--yx-r-sm) 0;
  background: var(--yx-red-wash);
  color: var(--yx-ink-soft);
  font-size: 16px;
}

.com-content-article__body table {
  width: 100%;
  margin: 26px 0;
  border-collapse: collapse;
  font-size: 15px;
}

.com-content-article__body th,
.com-content-article__body td {
  padding: 12px 14px;
  border: 1px solid var(--yx-line);
  text-align: left;
}

.com-content-article__body th { background: var(--yx-sand); font-weight: 700; }

.com-content-article__body hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--yx-line);
}

/* --------------------------------------------------------------------------
   13. 深层级 · 预约咨询弹窗（内页 main 之后的挂载点）
   -------------------------------------------------------------------------- */
/* 挂载点里只有 fixed 定位的弹窗，inline-flex 会撑出 26px 空行盒 */
.yx-inquiry-inner-slot { display: flex; width: 100%; }

.yxxform-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.yxxform-modal[hidden] { display: none; }

.yxxform-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 19, 17, .58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.yxxform-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: 30px 26px 26px;
  border: 1px solid var(--yx-line);
  border-radius: var(--yx-r-xl);
  background: var(--yx-paper);
  box-shadow: var(--yx-shadow-lg);
  animation: yx-modal-in 260ms var(--yx-ease-out) both;
}

@keyframes yx-modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.yxxform-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--yx-line);
  border-radius: 50%;
  background: var(--yx-card);
  color: var(--yx-ink-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--yx-ease), color var(--yx-ease), transform var(--yx-ease);
}

.yxxform-modal-close:hover {
  border-color: var(--yx-red);
  color: var(--yx-red);
  transform: rotate(90deg);
}

.yxxform-modal-title {
  margin: 0 0 6px;
  padding-right: 44px;
  font-family: var(--yx-serif);
  font-size: 24px;
  font-weight: 600;
}

.yxxform-modal-dialog .yxxform-card {
  padding: 18px 0 0;
  border-radius: 0;
  background: none;
}

/* 弹窗已有标题，卡片内的重复标题隐藏 */
.yxxform-modal-dialog .yxxform-card > .yxxform-title { display: none; }

body.yxxform-body-lock { overflow: hidden; }

/* --------------------------------------------------------------------------
   14. 页脚 —— 共用（三份完全一致）
   -------------------------------------------------------------------------- */
.yx-footer {
  margin-top: 80px;
  padding: 56px 0 24px;
  background: var(--yx-night);
  color: #d9d0c6;
}

.yx-footer-grid,
.yx-footer > p {
  width: min(var(--yx-max), calc(100% - 2 * var(--yx-gutter)));
  margin-inline: auto;
}

.yx-footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.25fr;
  gap: 36px;
}

.yx-footer strong {
  display: block;
  margin-bottom: 14px;
  color: var(--yx-card);
  font-family: var(--yx-serif);
  font-size: 18px;
  font-weight: 600;
}

.yx-footer-grid p,
.yx-footer-grid a {
  display: block;
  margin: 0 0 8px;
  color: #d9d0c6;
  font-size: 14px;
  line-height: 1.7;
  text-decoration: none;
  transition: color var(--yx-ease);
}

.yx-footer-grid a:hover { color: #fff; }

.yx-footer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.yx-footer-social span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 252, 248, .16);
  border-radius: 50%;
  color: var(--yx-card);
  font-size: 11px;
  font-weight: 700;
  transition: border-color var(--yx-ease), background var(--yx-ease);
}

.yx-footer-social span:hover { border-color: var(--yx-red); background: var(--yx-red); }

.yx-footer > p {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 252, 248, .1);
  color: #8d847b;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   15. 锚点偏移
   -------------------------------------------------------------------------- */
#home-products,
#solutions,
#news,
#apply,
#explore { scroll-margin-top: calc(var(--yx-header) + 16px); }

/* --------------------------------------------------------------------------
   16. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .yx-nav-toggle { display: inline-flex; order: 3; }
  .yx-logo { margin-right: auto; }
  .yx-header-phone { order: 2; }

  .icon-call {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    border-radius: var(--yx-r-sm);
  }

  /* theme.js 用 data-open 控制展开，.is-open 兼容旧写法 */
  #yx-site-nav {
    display: none;
    position: absolute;
    z-index: 50;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px 18px 18px;
    background: var(--yx-paper);
    border-bottom: 1px solid var(--yx-line);
    box-shadow: 0 18px 40px rgba(28, 25, 23, .08);
  }

  #yx-site-nav[data-open],
  #yx-site-nav.is-open { display: block; }

  .yx-menu { flex-direction: column; align-items: stretch; }
  .yx-menu-li a { min-height: 48px; justify-content: flex-start; }
  .yx-menu-li a::after { left: 14px; right: auto; width: 22px; }
}

@media (max-width: 900px) {
  .yx-banner-slot { padding-block: 30px 72px; }
  .yx-banner,
  .yx-banner-wrapper { max-height: none; min-height: 0; }

  /* 窄屏角标往里收，不然和色带边贴得太死 */
  .yx-banner-slot::after {
    background:
      linear-gradient(var(--bn-metal), var(--bn-metal)) left 16px top 16px / 16px 1px no-repeat,
      linear-gradient(var(--bn-metal), var(--bn-metal)) left 16px top 16px / 1px 16px no-repeat,
      linear-gradient(var(--bn-metal), var(--bn-metal)) right 16px top 16px / 16px 1px no-repeat,
      linear-gradient(var(--bn-metal), var(--bn-metal)) right 16px top 16px / 1px 16px no-repeat,
      linear-gradient(var(--bn-metal), var(--bn-metal)) left 16px bottom 16px / 16px 1px no-repeat,
      linear-gradient(var(--bn-metal), var(--bn-metal)) left 16px bottom 16px / 1px 16px no-repeat,
      linear-gradient(var(--bn-metal), var(--bn-metal)) right 16px bottom 16px / 16px 1px no-repeat,
      linear-gradient(var(--bn-metal), var(--bn-metal)) right 16px bottom 16px / 1px 16px no-repeat,
      linear-gradient(90deg, rgba(218, 37, 30, .5), var(--bn-hair) 34%, transparent 76%) 0 100% / 100% 1px no-repeat;
  }

  .yx-banner-wrapper {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* 刻度环跟着舞台重新对中；小圆片和标定点在窄屏只会让画面变碎 */
  .yx-banner::before { left: 50%; top: 170px; width: min(78vw, 330px); }
  .yx-banner::after,
  .yx-banner-content::after { display: none; }
  .yx-banner-wrapper::before { bottom: -30px; font-size: 10px; letter-spacing: .18em; }

  .yx-banner-media { height: 340px; max-height: none; order: -1; }
  .yx-banner-media::before { inset: 4% 6% 8% 4%; }
  .yx-banner-media img { left: 4%; top: 4%; width: 90%; height: 88%; }
  .yx-banner-media::after { width: 152px; right: 2%; bottom: 3%; }

  .yx-product-grid,
  .yx-solus-grid,
  .yx-news-grid,
  .yx-apply,
  .yx-footer-grid { grid-template-columns: 1fr 1fr; }

  .com-content-category-blog { grid-template-columns: 1fr 1fr; gap: 20px; }

  .yx-apply { padding: 32px 24px; gap: 28px; }
}

@media (max-width: 680px) {
  :root { --yx-gutter: 18px; }

  .yx-product-grid,
  .yx-solus-grid,
  .yx-news-grid,
  .yx-apply,
  .yx-footer-grid,
  .yxxform-fields { grid-template-columns: 1fr; }

  .yxxform-half { grid-column: 1 / -1; }

  .com-content-category-blog { grid-template-columns: 1fr; gap: 18px; }

  .yx-page-content { padding: 24px 0 60px; }
  .yx-page-heading { margin: 16px 0 28px; }

  .yxxform-modal-dialog { padding: 26px 18px 20px; border-radius: var(--yx-r-lg); }
  .yxxform-modal-title { font-size: 21px; }

  .com-content-article__body { font-size: 16px; line-height: 1.85; }

  .yx-banner-slot { padding-block: 24px 56px; }
  .yx-banner-title { font-size: 32px; }
  .yx-banner::before { top: 134px; }
  .yx-banner-wrapper::before { display: none; }
  .yx-banner-media { height: 268px; --bn-lens: 48% 52% 46% 54% / 52% 48% 52% 48%; }
  .yx-banner-media::after { width: 124px; border-radius: 12px; }
  .yx-banner-slot::before { -webkit-mask-size: 100% 130px; mask-size: 100% 130px; }
  .yx-banner-actions .btn-theme { width: 100%; }

  .yx-apply { border-radius: var(--yx-r-lg); margin-top: 48px; }
  .yx-section-head { align-items: flex-start; flex-direction: column; }

  .container { padding-top: 56px; }
  .yx-scene-number { font-size: 52px; }

  #home-products,
  .yx-news-section { margin-bottom: 56px; }

  .yx-news-section { margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Solution专题页 */
.yx-solution-article-page{width:min(1280px,calc(100% - 56px));margin:0 auto;padding:28px 0 96px;color:var(--yx-ink)}
.yx-solution-article-page>.yx-breadcrumb{width:100%;margin:0 0 22px}
.yx-solution-page{display:flex;flex-direction:column;gap:24px}
.yx-solution-hero{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(360px,.98fr);align-items:stretch;gap:28px;padding:42px;border:1px solid var(--yx-line);border-radius:34px;background:var(--yx-card);overflow:hidden}
.yx-solution-hero-copy{display:flex;flex-direction:column;justify-content:center;padding:10px 0}
.yx-solution-eyebrow,.yx-solution-heading>span{display:block;color:var(--yx-red);font-size:12px;font-weight:800;letter-spacing:.18em}
.yx-solution-hero h1{max-width:680px;margin:14px 0 20px;font-family:var(--yx-serif);font-size:clamp(40px,5vw,68px);font-weight:600;line-height:1.12;letter-spacing:-.035em}
.yx-solution-hero-copy>p{max-width:650px;margin:0;color:var(--yx-muted);font-size:17px;line-height:1.9}
.yx-solution-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:28px}
.yx-solution-text-link{color:var(--yx-ink);font-size:14px;font-weight:700;text-decoration:none}
.yx-solution-text-link span{margin-left:5px;color:var(--yx-red);font-size:18px}
.yx-solution-proof{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:34px 0 0;padding:0;list-style:none}
.yx-solution-proof li{padding-top:14px;border-top:1px solid var(--yx-line)}
.yx-solution-proof strong{display:block;font-size:14px}
.yx-solution-proof span{display:block;margin-top:4px;color:var(--yx-muted);font-size:12px;line-height:1.55}
.yx-solution-hero-media{position:relative;min-height:440px;margin:0;border-radius:24px;overflow:hidden;background:var(--yx-sand)}
.yx-solution-hero-media img{width:100%;height:100%;object-fit:cover}
.yx-solution-hero-media figcaption{position:absolute;right:16px;bottom:14px;padding:7px 11px;border-radius:999px;background:rgba(255,252,248,.88);color:var(--yx-ink-soft);font-size:12px}
.yx-solution-statbar{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;padding:4px;border:1px solid var(--yx-line);border-radius:22px;background:var(--yx-line)}
.yx-solution-statbar>div{padding:20px 24px;background:var(--yx-card)}
.yx-solution-statbar>div:first-child{border-radius:18px 0 0 18px}
.yx-solution-statbar>div:last-child{border-radius:0 18px 18px 0}
.yx-solution-statbar strong{display:block;font-size:17px}
.yx-solution-statbar span{display:block;margin-top:4px;color:var(--yx-muted);font-size:13px}
.yx-solution-section{padding:54px;border:1px solid var(--yx-line);border-radius:30px;background:var(--yx-card)}
.yx-solution-section-soft{background:var(--yx-sand)}
.yx-solution-section-dark{background:var(--yx-night);border-color:var(--yx-night);color:var(--yx-card)}
.yx-solution-heading{max-width:780px;margin-bottom:30px}
.yx-solution-heading h2{margin:10px 0 12px;font-family:var(--yx-serif);font-size:clamp(30px,3.5vw,48px);font-weight:600;line-height:1.22;letter-spacing:-.025em}
.yx-solution-heading p{margin:0;color:var(--yx-muted);font-size:16px;line-height:1.8}
.yx-solution-section-dark .yx-solution-heading p{color:#c9c0b7}
.yx-solution-card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.yx-solution-card-grid article{padding:24px;border:1px solid var(--yx-line);border-radius:18px;background:rgba(255,252,248,.68)}
.yx-solution-card-grid b{display:block;font-size:18px}
.yx-solution-card-grid p{margin:10px 0 0;color:var(--yx-muted);font-size:14px;line-height:1.75}
.yx-solution-feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.yx-solution-feature-grid article{min-height:210px;padding:24px;border:1px solid var(--yx-line);border-radius:18px;background:var(--yx-card)}
.yx-solution-index{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:10px;background:var(--yx-red);color:#fff;font-size:13px;font-weight:800}
.yx-solution-feature-grid h3{margin:22px 0 8px;font-size:18px}
.yx-solution-feature-grid p{margin:0;color:var(--yx-muted);font-size:14px;line-height:1.75}
.yx-solution-product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.yx-solution-product-grid article{overflow:hidden;border:1px solid var(--yx-line);border-radius:20px;background:var(--yx-card)}
.yx-solution-product-grid img{width:100%;height:220px;object-fit:contain;padding:22px;background:#fff}
.yx-solution-product-grid article>div{padding:20px 22px 22px}
.yx-solution-product-grid h3{margin:0;font-size:18px}
.yx-solution-product-grid p{margin:8px 0 0;color:var(--yx-muted);font-size:14px;line-height:1.7}
.yx-solution-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:0 0 32px;padding:0;list-style:none}
.yx-solution-steps li{position:relative;padding:0 20px 0 0}
.yx-solution-steps li:not(:last-child)::after{content:"→";position:absolute;top:0;right:16px;color:var(--yx-red);font-size:22px}
.yx-solution-steps strong{display:block;color:#fff;font-size:16px}
.yx-solution-steps span{display:block;margin-top:6px;color:#c9c0b7;font-size:13px;line-height:1.6}
.btn-theme-light{background:var(--yx-card);color:var(--yx-ink)}
.btn-theme-light:hover{background:#fff;color:var(--yx-red)}
@media(max-width:1000px){.yx-solution-hero{grid-template-columns:1fr}.yx-solution-hero-media{min-height:320px}.yx-solution-feature-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.yx-solution-article-page{width:calc(100% - 36px);padding-bottom:60px}.yx-solution-hero,.yx-solution-section{padding:28px 22px;border-radius:24px}.yx-solution-hero h1{font-size:40px}.yx-solution-proof,.yx-solution-statbar,.yx-solution-card-grid,.yx-solution-feature-grid,.yx-solution-product-grid,.yx-solution-steps{grid-template-columns:1fr}.yx-solution-statbar{gap:1px}.yx-solution-statbar>div:first-child,.yx-solution-statbar>div:last-child{border-radius:0}.yx-solution-statbar>div:first-child{border-radius:16px 16px 0 0}.yx-solution-statbar>div:last-child{border-radius:0 0 16px 16px}.yx-solution-steps li{padding:0 0 20px 0}.yx-solution-steps li:not(:last-child)::after{content:"↓";top:auto;right:auto;left:0;bottom:0}.yx-solution-product-grid img{height:190px}}



/* 全宽首屏与面包屑顺序 */
.yx-solution-article-page{padding-top:0}
.yx-solution-first-block{width:100%}
.yx-solution-first-block .yx-solution-hero{
  width:100vw;
  margin-left:calc(50% - 50vw);
  border-right:0;
  border-left:0;
  border-radius:0;
  padding-left:max(var(--yx-gutter),calc((100vw - var(--yx-max))/2));
  padding-right:max(var(--yx-gutter),calc((100vw - var(--yx-max))/2));
}
.yx-solution-article-page>.yx-breadcrumb{
  width:min(var(--yx-max),calc(100% - 2 * var(--yx-gutter)));
  margin:28px auto 24px;
}
.yx-solution-page-rest{width:100%}
.yx-about-hero{
  width:100vw;
  margin-left:calc(50% - 50vw);
  border-radius:0;
  padding-left:max(var(--yx-gutter),calc((100vw - var(--yx-max))/2));
  padding-right:max(var(--yx-gutter),calc((100vw - var(--yx-max))/2));
}
.yx-about-breadcrumb{
  width:min(var(--yx-max),calc(100% - 2 * var(--yx-gutter)));
  margin:28px auto 0;
}
@media(max-width:720px){
  .yx-solution-first-block .yx-solution-hero{padding-left:var(--yx-gutter);padding-right:var(--yx-gutter);border-radius:0}
  .yx-about-hero{padding-left:var(--yx-gutter);padding-right:var(--yx-gutter);border-radius:0}
}
/* 全宽首屏不产生横向滚动 */
html,body{overflow-x:hidden}
/* 解决方案、关于我们、联系我们首屏贴齐 Header */
body.yx-solution-route .yx-page-content{padding-top:0}
body.yx-about-route > .container,
body.yx-contact-page > .container{padding-top:0}
/* 内页首屏紧贴 Header 的最终覆盖 */
body.yx-solution-route > .container > .yx-page-content,
body.yx-about-route > .container > .yx-page-content,
body.yx-contact-page > .container > .yx-page-content{
  margin-top:0!important;
  padding-top:0!important;
}
body.yx-solution-route .yx-solution-article-page,
body.yx-about-route .yx-about-article-page{
  margin-top:0!important;
  padding-top:0!important;
}
body.yx-solution-route #system-message-container,
body.yx-about-route #system-message-container,
body.yx-contact-page #system-message-container{
  margin-top:0!important;
  margin-bottom:0!important;
  min-height:0!important;
}
