/* ==========================================================================
   Lenrine Tec — Subpage Components
   二级页专用：面包屑 / 子页 Hero / 能力网格 / 系列卡 / 规格表 / 交付流程 /
   相关产品 / 正文排版。首页不加载这个文件。
   ========================================================================== */

/* ---- 面包屑 ---- */
.crumbs { background: var(--paper); border-bottom: 1px solid var(--line); }
.crumbs-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 15px var(--gutter);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 14px; color: var(--silver);
}
.crumbs-path { display: flex; flex-wrap: wrap; }
.crumbs-path a:hover { color: var(--navy); }
.crumbs-path span + span::before,
.crumbs-path a + a::before,
.crumbs-path a + span::before { content: '›'; color: var(--silver); margin: 0 8px; }
.crumbs-cur { color: var(--navy); font-weight: 700; }
.crumbs-alt { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.lang-cn .crumbs-alt { font-family: var(--cn); letter-spacing: .06em; }
@media (max-width: 640px) { .crumbs-alt { display: none; } }

/* ---- 子页 Hero ---- */
.hero-sub {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  min-height: 460px; display: flex; align-items: flex-end;
}
.hero-sub__bg { position: absolute; inset: 0; }
.hero-sub__bg .ph { width: 100%; height: 100%; opacity: .4; }
.hero-sub__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,31,51,.9) 0%, rgba(11,31,51,.55) 60%, rgba(11,31,51,.2) 100%);
}
.hero-sub__body {
  position: relative; z-index: 2; width: 100%;
  max-width: var(--maxw); margin: 0 auto;
  padding: 64px var(--gutter) 68px;
}
.hero-sub .eyebrow { color: var(--yellow); }
.hero-sub h1 {
  margin: 14px 0 10px;
  font-size: clamp(32px, 4.6vw, 58px); font-weight: 800; line-height: 1.1; letter-spacing: -.015em;
}
.lang-cn .hero-sub h1 { font-family: var(--cn); line-height: 1.16; }
.hero-sub .h1-alt { font-size: clamp(14px, 1.5vw, 19px); font-weight: 600; color: #9FC6E0; }
.hero-sub .lede {
  max-width: 62ch; margin: 18px 0 28px;
  font-size: clamp(15px, 1.25vw, 17px); line-height: 1.85; color: var(--on-dark-1);
}
.hero-sub .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) { .hero-sub { min-height: 0; } .hero-sub__body { padding: 44px var(--gutter) 48px; } }

/* ---- 能力网格（深色四宫格）---- */
.cap-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--on-dark-line); border: 1px solid var(--on-dark-line);
  border-radius: var(--radius); overflow: hidden;
}
.cap { position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 30px 24px 28px; background: rgba(255,255,255,.02); }
.cap::before { content: ''; position: absolute; top: 0; left: 0; width: 36px; height: 2px; background: var(--yellow); opacity: .75; }
.cap-n { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--yellow); font-weight: 500; }
.lang-cn .cap-n { font-family: var(--cn); letter-spacing: .1em; }
.cap h4 { margin: 20px 0 4px; font-size: clamp(17px, 1.5vw, 19px); font-weight: 700; color: #fff; }
.lang-cn .cap h4 { font-family: var(--cn); }
.cap .alt { font-size: 12.5px; font-weight: 500; color: var(--on-dark-3); }
.cap-sep { height: 1px; background: rgba(255,255,255,.1); margin: 16px 0 14px; }
.cap p { margin: 0; flex: 1; font-size: 13.5px; line-height: 1.75; color: var(--on-dark-2); }
@media (max-width: 900px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cap-grid { grid-template-columns: 1fr; } }

/* ---- 特性网格（浅色，用于「为什么选它」）---- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why {
  padding: 28px 26px 26px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
/* .why 一直是静态说明块，从来不是链接 —— 悬停如果有抬升/描边反馈，
   会让人以为可以点，点了没反应。只有做成链接时才给反馈。 */
a.why:hover { border-color: var(--navy); box-shadow: var(--shadow-1); }
.why .n { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--blue); font-weight: 600; }
.lang-cn .why .n { font-family: var(--cn); letter-spacing: .1em; }
.why h4 { margin: 14px 0 8px; font-size: clamp(16px, 1.4vw, 18px); font-weight: 700; color: var(--navy); line-height: 1.35; }
.lang-cn .why h4 { font-family: var(--cn); }
.why p { margin: 0; font-size: clamp(13.5px, 1.05vw, 14px); line-height: 1.75; color: var(--muted); }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---- 产品系列卡（带图）---- */
.series { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.series-item {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
/* 产品总览页的 series-item 是 <a>，产品详情页里是 <article>（不可点）。
   悬停反馈只给链接版，避免"抬起来了但点不动"。 */
a.series-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--silver); }
.series-item__media { aspect-ratio: 4/3; background: var(--paper); }
.series-item__media .ph, .series-item__media img { width: 100%; height: 100%; object-fit: cover; }
.series-item__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.series-item .n { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--silver); }
.lang-cn .series-item .n { font-family: var(--cn); letter-spacing: .1em; }
.series-item h3 { margin: 10px 0 4px; font-size: clamp(17px, 1.5vw, 20px); font-weight: 800; color: var(--navy); line-height: 1.3; }
.lang-cn .series-item h3 { font-family: var(--cn); }
.series-item .alt { font-size: 12.5px; font-weight: 600; color: var(--blue); margin-bottom: 12px; }
.series-item p { margin: 0 0 16px; font-size: 14px; line-height: 1.7; color: var(--muted); flex: 1; }
@media (max-width: 1040px) { .series { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .series { grid-template-columns: 1fr; } }

/* ---- 规格表 ---- */
.spec-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.spec { width: 100%; min-width: 560px; border-collapse: collapse; font-size: clamp(13.5px, 1.05vw, 14.5px); }
table.spec caption {
  caption-side: top; text-align: left; padding: 18px 22px 0;
  font-size: 13px; color: var(--muted);
}
table.spec th, table.spec td { padding: 14px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec thead th {
  background: var(--paper); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.lang-cn table.spec thead th { font-family: var(--cn); letter-spacing: .04em; text-transform: none; font-size: 13px; }
table.spec tbody th { font-weight: 700; color: var(--navy); white-space: nowrap; width: 210px; }
table.spec td { color: var(--muted); }
table.spec tbody tr:last-child th, table.spec tbody tr:last-child td { border-bottom: 0; }
/* 未确认的数据统一用这个标记，杜绝把占位当成真参数发出去。
   用 --muted 而不是 --silver：银灰在白底上对比度约 2:1，不满足 WCAG AA。 */
.tbc { color: var(--muted); font-style: italic; }
.tbc::before { content: '⌛ '; font-style: normal; }
.spec-note { margin: 14px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ---- 交付流程 ---- */
.flow-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--on-dark-line); border: 1px solid var(--on-dark-line);
  border-radius: var(--radius); overflow: hidden;
}
.flow { position: relative; padding: 26px 20px; background: rgba(255,255,255,.03); }
.flow:not(:last-child)::after {
  content: '→'; position: absolute; top: 50%; right: -9px; z-index: 2;
  width: 18px; height: 18px; transform: translateY(-50%);
  background: var(--yellow); color: var(--navy);
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  border-radius: 50%; display: grid; place-items: center;
}
.flow.final { background: rgba(240,180,41,.12); }
.flow .n { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: var(--yellow); }
.lang-cn .flow .n { font-family: var(--cn); letter-spacing: .1em; }
.flow h4 { margin: 12px 0 6px; font-size: clamp(14.5px, 1.3vw, 16px); font-weight: 700; color: #fff; }
.lang-cn .flow h4 { font-family: var(--cn); }
.flow p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--on-dark-2); }
@media (max-width: 900px) {
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .flow:not(:last-child)::after { display: none; }
}
@media (max-width: 480px) { .flow-grid { grid-template-columns: 1fr; } }

/* ---- 相关产品 ---- */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rel {
  padding: 22px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.rel:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.rel .n { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: var(--blue); font-weight: 600; }
.lang-cn .rel .n { font-family: var(--cn); letter-spacing: .1em; }
.rel h4 { margin: 10px 0 4px; font-size: clamp(15.5px, 1.35vw, 17px); font-weight: 700; color: var(--navy); }
.lang-cn .rel h4 { font-family: var(--cn); }
.rel .alt { font-size: 12px; font-weight: 600; color: var(--blue); }
.rel p { margin: 10px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
@media (max-width: 900px) { .related { grid-template-columns: 1fr; } }

/* ---- 正文排版（行业洞察文章页）---- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.3; color: var(--navy); }
.prose h3 { margin-top: 1.8em; font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; color: var(--navy); }
.lang-cn .prose h2, .lang-cn .prose h3 { font-family: var(--cn); }
.prose p, .prose li { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.95; color: #2b3a47; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }
.prose strong { color: var(--navy); font-weight: 700; }
.prose blockquote {
  margin-left: 0; padding: 18px 24px;
  border-left: 3px solid var(--yellow); background: var(--paper);
  font-size: 15.5px; color: var(--navy);
}
.prose figure { margin: 2em 0; }
.prose figure .ph { aspect-ratio: 16/9; border-radius: var(--radius); }
.prose figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.prose .spec-wrap { margin: 2em 0; }

.article-head { max-width: 72ch; }
.article-head h1 { margin: 14px 0 12px; font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; line-height: 1.22; color: var(--navy); }
.lang-cn .article-head h1 { font-family: var(--cn); }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.lang-cn .article-meta { font-family: var(--cn); letter-spacing: .06em; font-size: 13px; }

/* ---- 页内锚点导航 ---- */
.anchor-nav { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 72px; z-index: 40; }
.anchor-nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none;
}
.anchor-nav__inner::-webkit-scrollbar { display: none; }
.anchor-nav a {
  padding: 16px 0; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.anchor-nav a:hover, .anchor-nav a.active { color: var(--navy); border-bottom-color: var(--yellow); }
@media (max-width: 1040px) { .anchor-nav { top: 64px; } }
@media (max-width: 720px)  { .anchor-nav { display: none; } }
