/* ============================================================
   光学透镜产品栏目页  /products/optical-lenses
   只写「分类页模板之外追加的区块」；hero / 子类目卡 / attrs 走 products.css
   配色与全站一致：品牌蓝 #0b5ed7 + 深蓝 #071a33
   ★ mobile.css 必须垫在本文件之后加载（全站约定）
   ============================================================ */

/* 锚点跳转留出 header(76) + 锚点条(48) */
html { scroll-behavior: smooth; scroll-padding-top: 132px; }
@media (max-width: 767px) { html { scroll-padding-top: 118px; } }

.lens-page {
    --brand: #0b5ed7;
    --navy: #071a33;
    --ink: #333333;
    --ink-2: #5B6472;
    --line: #E5E9EF;
    --zebra: #F5F7FA;
    --tint: rgba(11, 94, 215, .06);
}

/* ---------- 锚点条 ---------- */
.ln-anchor {
    position: sticky; top: 76px; z-index: 40;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(6, 18, 38, .04);
}
.ln-anchor__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    height: 48px;
}
.ln-anchor__links {
    display: flex; align-items: center; gap: 22px;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.ln-anchor__links::-webkit-scrollbar { display: none; }
.ln-anchor__links a {
    flex: none; font-size: 14px; color: var(--ink-2); text-decoration: none;
    padding: 4px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.ln-anchor__links a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.ln-anchor__cta {
    flex: none; font-size: 13.5px; font-weight: 600; color: var(--brand); text-decoration: none;
    border: 1px solid rgba(11, 94, 215, .35); border-radius: 4px; padding: 6px 14px;
}
.ln-anchor__cta:hover { background: var(--brand); color: #fff; }

/* ---------- 首屏补充：副标题 / 核心能力 ---------- */
.ln-hero__sub {
    max-width: 720px; margin: 12px 0 0; font-size: 15.5px; line-height: 1.75;
    color: rgba(255, 255, 255, .86);
}
.ln-kws {
    list-style: none; margin: 18px 0 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 8px 10px; max-width: 720px;
}
.ln-kws li {
    font-size: 13px; color: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
    padding: 4px 12px; background: rgba(255, 255, 255, .06);
}

/* ---------- 通用区块头（复用专题页节奏） ---------- */
.lens-page .sec { padding: 66px 0; }
.lens-page .sec--tint { background: var(--zebra); }
.lens-page .sec-head { max-width: 820px; margin: 0 auto 34px; text-align: center; }
.lens-page .sec-head h2 { font-size: 26px; font-weight: 600; color: var(--navy); margin: 0; }
.lens-page .sec-head p { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.lens-page .ln-note {
    max-width: 900px; margin: 22px auto 0; padding: 12px 16px;
    background: var(--tint); border-left: 3px solid var(--brand); border-radius: 0 4px 4px 0;
    font-size: 13.5px; line-height: 1.75; color: var(--ink-2);
}

/* ---------- M3 产品系列卡 ---------- */
.ln-types {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.ln-type {
    display: flex; flex-direction: column; gap: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 8px;
    overflow: hidden; text-decoration: none; color: inherit;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.ln-type:hover { border-color: rgba(11, 94, 215, .45); box-shadow: 0 8px 22px rgba(6, 18, 38, .08); transform: translateY(-2px); }
/* 产品图区：图片取该子栏目自己的分类头图（8:5，与 cardSet 的 480×300 同比例） */
/* 产品图区：白底产品图（11-13 二次改版），用底线与下方文字区隔开，避免整卡糊成一片白 */
.ln-type__media { display: block; aspect-ratio: 8 / 5; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.ln-type__media picture { display: block; height: 100%; }
.ln-type__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
a.ln-type:hover .ln-type__media img { transform: scale(1.04); }
.ln-type__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 18px 20px 22px; }
.ln-type__name { margin: 0; font-size: 17px; font-weight: 600; color: var(--navy); }
.ln-type__dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; font-size: 13.5px; }
.ln-type__dl dt { color: #8A93A3; font-size: 12.5px; }
.ln-type__dl dd { margin: 0; color: var(--ink-2); line-height: 1.6; }
.ln-type__more { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--brand); }
/* 补齐网格用的「来图定制」卡：虚线边框 + 无产品图，视觉上与产品卡区分 */
.ln-type--more { border-style: dashed; background: #FCFDFF; }
.ln-type--more .ln-type__name { color: var(--brand); }
.ln-type__media--more {
    display: flex; align-items: center; justify-content: center;
    background: #F5F8FD; color: rgba(11, 94, 215, .6);
}

/* ---------- 已上架产品 ---------- */
.ln-prods {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.ln-prod {
    display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px;
    overflow: hidden; text-decoration: none; color: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.ln-prod:hover { border-color: rgba(11, 94, 215, .45); box-shadow: 0 8px 22px rgba(6, 18, 38, .08); }
.ln-prod__media { display: block; aspect-ratio: 4 / 3; background: #fff; }
.ln-prod__media img { width: 100%; height: 100%; object-fit: contain; }
.ln-prod__body { display: block; padding: 12px 14px 16px; }
.ln-prod__model { display: block; font-style: normal; font-size: 12px; color: var(--brand); letter-spacing: .3px; }
.ln-prod__name { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.5; }

/* ---------- M4 选型表 ---------- */
.ln-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ln-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ln-table th, .ln-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ln-table thead th { background: #F0F4FA; color: var(--navy); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.ln-table tbody th { color: var(--navy); font-weight: 600; white-space: nowrap; }
.ln-table tbody td { color: var(--ink-2); }
.ln-table tbody tr:last-child th, .ln-table tbody tr:last-child td { border-bottom: 0; }
.ln-table tbody tr:nth-child(even) { background: #FAFBFD; }
/* 列宽只作用在表头，别让 tbody 的 th 也吃到 18%（手机堆叠时会变成窄条） */
.ln-table--pick thead th:nth-child(1) { width: 18%; }
.ln-table--pick thead th:nth-child(2) { width: 22%; }
.ln-table--pick thead th:nth-child(3) { width: 26%; }
/* 精度分档表：首列参数名略宽，三档等分；数值列居中更像参数表 */
.ln-table--tol { table-layout: fixed; }
.ln-table--tol thead th:nth-child(1) { width: 28%; }
.ln-table--tol tbody td { text-align: center; }
.ln-table--tol thead th:nth-child(n+2) { text-align: center; }

/* ---------- M5 能力卡 ---------- */
.ln-caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ln-cap { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px 20px; }
.ln-cap h3 {
    margin: 0 0 10px; font-size: 15.5px; font-weight: 600; color: var(--brand);
    display: flex; align-items: center; gap: 8px;
}
.ln-cap h3::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
.ln-cap p { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.ln-sub { margin: 40px 0 14px; font-size: 16px; font-weight: 600; color: var(--navy); }

/* M5 曲线图位（4 张：可见 / 近红外 / 中红外 / 高反） */
.ln-curves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ln-curve {
    margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px;
    padding: 14px 14px 12px;
}
.ln-curve img { display: block; width: 100%; height: auto; }
.ln-curve figcaption { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.ln-curve-note { max-width: 900px; margin: 14px auto 0; font-size: 12.5px; line-height: 1.7; color: #8A93A3; text-align: center; }
/* 精度表下的说明小字：与曲线说明同一档视觉层级，左对齐（内容比图注长） */
.ln-fine-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.75; color: #8A93A3; }

/* ---------- M6 应用 ---------- */
.ln-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.ln-app { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.ln-app b { font-size: 14.5px; font-weight: 600; color: var(--navy); }
.ln-app span { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }

/* ---------- M7 流程 ---------- */
.ln-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ln-flow__item { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px 18px; }
.ln-flow__no { display: block; font-size: 20px; font-weight: 700; color: rgba(11, 94, 215, .22); letter-spacing: 1px; }
.ln-flow__item b { display: block; margin-top: 6px; font-size: 15px; color: var(--navy); }
.ln-flow__item p { margin: 8px 0 0; font-size: 13px; line-height: 1.7; color: var(--ink-2); }

/* ---------- M8 背书 ---------- */
.ln-trusts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ln-trust { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 8px; padding: 20px 18px; }
.ln-trust b { display: block; font-size: 15px; color: var(--navy); }
.ln-trust span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.75; color: var(--ink-2); }

/* ---------- M9 FAQ ---------- */
.ln-faq { max-width: 880px; margin: 0 auto; }
.ln-faq__item {
    background: #fff; border: 1px solid var(--line); border-radius: 8px;
    padding: 0; margin-bottom: 12px; overflow: hidden;
}
.ln-faq__item summary {
    cursor: pointer; list-style: none; padding: 16px 44px 16px 18px;
    position: relative; font-size: 15px; font-weight: 600; color: var(--navy);
}
.ln-faq__item summary::-webkit-details-marker { display: none; }
.ln-faq__item summary::after {
    content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    font-size: 18px; font-weight: 400; color: var(--brand);
}
.ln-faq__item[open] summary::after { content: "–"; }
.ln-faq__item p { margin: 0; padding: 0 18px 18px; font-size: 14px; line-height: 1.8; color: var(--ink-2); }

/* ---------- M10 CTA ---------- */
.ln-cta {
    background: linear-gradient(120deg, #071a33 0%, #0b2d5c 62%, #0b5ed7 100%);
    color: #fff; padding: 56px 0;
}
.ln-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.ln-cta h2 { margin: 0; font-size: 25px; font-weight: 600; line-height: 1.4; color: #fff; }
.ln-cta p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.75; color: rgba(255, 255, 255, .82); max-width: 720px; }
.ln-cta .ln-cta__note { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .62); }
.ln-cta__btn {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    height: 46px; padding: 0 26px; border-radius: 4px; background: #fff; color: var(--navy);
    font-size: 14.5px; font-weight: 600; text-decoration: none;
}
.ln-cta__btn:hover { background: #EAF1FD; }

/* ---------- M11 相关 + 子栏目 ---------- */
.ln-rels { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ln-rel {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px;
    font-size: 13.5px; color: var(--navy); text-decoration: none; background: #fff;
}
.ln-rel:hover { border-color: rgba(11, 94, 215, .45); color: var(--brand); }
.ln-rel i { font-style: normal; color: var(--brand); }
.ln-kids { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.ln-kids a {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
    background: var(--zebra); border-radius: 6px; text-decoration: none;
    font-size: 13.5px; color: var(--navy);
}
.ln-kids a:hover { background: var(--tint); color: var(--brand); }
.ln-kids em { font-style: normal; font-size: 12px; color: #8A93A3; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .ln-types, .ln-caps, .ln-trusts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ln-prods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ln-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ln-apps { grid-template-columns: 1fr; }
    .ln-app { grid-template-columns: 170px 1fr; }
}

@media (max-width: 767px) {
    .lens-page .sec { padding: 44px 0; }
    .lens-page .sec-head { margin-bottom: 24px; }
    .lens-page .sec-head h2 { font-size: 21px; }
    .lens-page .sec-head p { font-size: 14px; }

    .ln-anchor { top: 60px; }
    .ln-anchor__inner { height: auto; padding: 8px 0; gap: 8px; flex-wrap: wrap; }
    .ln-anchor__links { gap: 16px; width: 100%; }
    .ln-anchor__links a { font-size: 13px; }
    .ln-anchor__cta { display: none; }

    .ln-hero__sub { font-size: 14px; }
    /* 手机上 4 条标签会占掉三行，首屏被拉太长；信息在下方产品系列卡里都有 */
    .ln-kws { display: none; }

    .ln-types, .ln-caps, .ln-trusts { grid-template-columns: 1fr; }
    .ln-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ln-flow { grid-template-columns: 1fr; }
    .ln-app { grid-template-columns: 1fr; gap: 4px; }
    /* 曲线图：手机上单列，横轴刻度才看得清 */
    .ln-curves { grid-template-columns: 1fr; gap: 12px; }
    .ln-curve { padding: 10px 10px 8px; }
    .ln-curve figcaption { font-size: 12.5px; }

    /* 选型表：窄屏堆叠，列名用 data-th 打头 */
    .ln-tablewrap { border: 0; background: transparent; overflow: visible; }
    .ln-table thead { display: none; }
    .ln-table, .ln-table tbody, .ln-table tr, .ln-table th, .ln-table td { display: block; width: 100%; }
    .ln-table tbody tr {
        background: #fff; border: 1px solid var(--line); border-radius: 8px;
        margin-bottom: 12px; padding: 6px 0;
    }
    .ln-table tbody th {
        background: var(--tint); color: var(--brand); border-bottom: 1px solid var(--line);
        padding: 10px 14px; font-size: 14.5px;
    }
    .ln-table tbody td { border-bottom: 0; padding: 8px 14px; font-size: 13.5px; }
    .ln-table tbody td[data-th]::before {
        content: attr(data-th) "："; color: #8A93A3; font-size: 12.5px;
    }
    .ln-table tbody tr:nth-child(even) { background: #fff; }
    /* 精度表桌面数值居中，堆叠成「参数名 + 标签：值」后要回左对齐；行内再收紧一点，
       8 行不收紧在手机上要滚三屏 */
    .ln-table--tol tbody td { text-align: left; padding: 6px 14px; }

    .ln-cta { padding: 40px 0; }
    .ln-cta__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
    .ln-cta h2 { font-size: 20px; }
    .ln-cta__btn { width: 100%; }
}
