/* ============================================================
   ldw 模板 · 极致CMS 扩展样式
   仅补充 style.css 未覆盖的 CMS 组件（搜索框 / 文章翻页 / 表单状态 / 验证码）
   品牌变量继承自 style.css 的 :root
   ============================================================ */

.form-status {
  min-height: 20px;
  font-size: 14px;
  margin: 6px 0 0;
}
.form-status.ok { color: #0a7a48; font-weight: 600; }
.form-status.err { color: #b3261e; font-weight: 600; }

/* 站内搜索表单 */
.ldw-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 34px;
}
.ldw-search input[type=text] {
  flex: 1 1 260px;
  min-width: 0;
  padding: 13px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t), box-shadow var(--t);
}
.ldw-search input[type=text]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(21, 101, 224, .14);
}
.ldw-search .btn { white-space: nowrap; }

/* 详情页上一篇 / 下一篇 */
.post-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 28px 0 0;
}
.post-nav .btn {
  max-width: 48%;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .post-nav .btn { max-width: 100%; }
}

/* 留言验证码 */
.vc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.vc-row .vc-img {
  height: 44px;
  width: auto;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  cursor: pointer;
  background: #fff;
}

/* 后台/AJAX 提交中禁用态 */
.quote-form button[type=submit][disabled] {
  opacity: .68;
  cursor: progress;
}

/* 验证码整行：默认隐藏，后台开启「留言验证码」后由 ldw.js 显示。
   .quote-form label 自带 display 规则，必须显式压掉 [hidden] */
.quote-form label.vc-field[hidden],
form label.vc-field[hidden] { display: none; }

/* 分类 chips 由 button 改为 a 时保持同样的手感 */
a.chip { text-decoration: none; display: inline-flex; align-items: center; }

/* 服务端分页（结构与原 JS 分页保持一致） */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}
.pagination a,
.pagination span {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}
.pagination .disabled { opacity: .45; }

/* 空状态里的链接 */
.empty-note a { color: var(--brand); text-decoration: underline; }

/* 产品卡摘要：改用产品简介后文字变长，卡片内截断为 2 行，保证卡片等高、栅格整齐 */
.prod-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 单页正文里的首段图片不溢出 */
.gallery img { max-width: 100%; height: auto; }


/* ============================================================
   专属 404 页
   视觉概念：模具型腔剖面 —— 外框是砂型，中间是「缺件」的 404 虚线轮廓
   ============================================================ */

/* ── Hero：工程蓝图底 ── */
.e404-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1180px 520px at 78% 14%, rgba(21, 101, 224, .44) 0%, transparent 62%),
    radial-gradient(720px 420px at 8% 96%, rgba(245, 158, 11, .20) 0%, transparent 66%),
    linear-gradient(150deg, #0a1e3f 0%, #0a2c5e 48%, #0a1e3f 100%);
}
/* 工程网格 */
.e404-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(207, 220, 246, .085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207, 220, 246, .085) 1px, transparent 1px);
  background-size: 46px 46px, 46px 46px;
  -webkit-mask-image: radial-gradient(126% 92% at 50% 0%, #000 0%, transparent 76%);
  mask-image: radial-gradient(126% 92% at 50% 0%, #000 0%, transparent 76%);
}
/* 剖面斜线 */
.e404-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 13px);
}
.e404-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 56px;
  align-items: center;
  padding: 76px 22px 84px;
}

/* ── 左侧文字 ── */
.e404-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border: 1px solid rgba(245, 158, 11, .5);
  border-radius: 99px;
  background: rgba(245, 158, 11, .13);
  color: #ffd68a;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.e404-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .2);
}
/* 巨型 404：金属渐变 + 剖面线填充 */
.e404-code {
  margin: 14px 0 4px;
  font-size: clamp(76px, 11vw, 168px);
  font-weight: 800;
  line-height: .84;
  letter-spacing: -.035em;
  background-image:
    repeating-linear-gradient(135deg, rgba(10, 30, 63, .32) 0 2px, transparent 2px 10px),
    linear-gradient(123deg, #ffffff 0%, #c3d7ff 40%, #7fb0ff 68%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 12px 34px rgba(21, 101, 224, .45));
}
.e404-copy h1 {
  color: #fff;
  font-size: clamp(22px, 2.5vw, 34px);
  margin: 6px 0 12px;
  max-width: 620px;
}
.e404-lead {
  color: #c9d8f5;
  font-size: clamp(14.5px, 1.25vw, 16.5px);
  max-width: 590px;
  margin: 0 0 6px;
}
.e404-lead b { color: #fff; font-weight: 700; }

/* ── Hero 内的搜索框（深底适配）── */
.e404-search { margin: 26px 0 24px; max-width: 570px; }
.e404-search input[type=text] {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .26);
  color: #fff;
}
.e404-search input[type=text]::placeholder { color: rgba(219, 230, 255, .6); }
.e404-search input[type=text]:focus {
  background: rgba(255, 255, 255, .16);
  border-color: #7fb0ff;
  box-shadow: 0 0 0 3px rgba(127, 176, 255, .22);
}
.e404-search .btn { white-space: nowrap; }

.e404-quick { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── 右侧：型腔剖面图 ── */
.e404-art { display: flex; align-items: center; justify-content: center; }
.e404-art svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 24px 64px rgba(3, 14, 33, .58));
}

/* ── 产品分类快捷入口 ── */
.e404-cats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.e404-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: all var(--t);
}
.e404-cat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.e404-cat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-line);
  color: var(--ink);
}
.e404-cat:hover::before { transform: scaleX(1); }
.e404-cat-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  transition: background var(--t), color var(--t);
}
.e404-cat:hover .e404-cat-ico { background: var(--brand); color: #fff; }
.e404-cat-ico svg { width: 20px; height: 20px; }
.e404-cat h3 { font-size: 15.5px; margin: 0; }
.e404-cat p { font-size: 12.5px; color: var(--ink-3); margin: 0; flex: 1; line-height: 1.55; }
.e404-cat-go { font-size: 12.5px; font-weight: 600; color: var(--brand); }

/* ── 底部 CTA ── */
.e404-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}
.e404-cta h2 { margin: 0 0 8px; }
.e404-cta p { margin: 0; max-width: 640px; }

/* ── 响应式 ── */
@media (max-width: 1080px) {
  .e404-hero-inner {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 62px 22px 72px;
  }
  .e404-art { order: -1; max-width: 330px; margin: 0 auto; }
  .e404-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .e404-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e404-cta { flex-direction: column; align-items: flex-start; }
  .e404-cta .cta-actions { width: 100%; }
}
@media (max-width: 520px) {
  .e404-cats { grid-template-columns: 1fr; }
  /* 注意：不要改成 flex-direction:column ——
     .ldw-search input 的 `flex:1 1 260px` 在 column 方向会变成「高度」，
     把输入框撑成 260px 高。这里保持 row + 让子项各占满一行。 */
  .e404-search input[type=text] { flex: 1 1 100%; }
  .e404-search .btn { flex: 1 1 100%; }
  .e404-quick .btn { flex: 1 1 100%; }
  .e404-art { max-width: 260px; }
}

/* ══════════════════════════════════════════════════════════
   行业解决方案（栏目 13，内容模型）
   ──────────────────────────────────────────────────────────
   列表卡左上角的「Industry 01 / 02 …」序号由 CSS 计数器自动生成：
   后台增删行业条目后编号自动重排，不需要人工维护数字，
   也不会因为删掉中间一条而出现断号。
   ══════════════════════════════════════════════════════════ */
.ind-list-grid { counter-reset: ldw-ind; }
.ind-list-card .ilc-title em::before {
  counter-increment: ldw-ind;
  content: "Industry " counter(ldw-ind, decimal-leading-zero);
}

/* 详情页顶部行业切换条：当前行业高亮 */
.ind-chip.active { border-color: var(--brand); background: var(--brand-soft); }
.ind-chip.active span { color: var(--brand-dark); font-weight: 700; }


