/* ==========================================================================
   home.css —— 由 tools_split_css.py 从 main.css 拆出（2026-10-19）
   注意：改样式请改对应页面文件，不要再往 main.css 里加
   ========================================================================== */


.hero__inner {
    display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
    gap: 40px; padding-top: 74px; padding-bottom: 92px; position: relative; z-index: 2;
}

.hero__kicker {
    display: inline-block; margin-bottom: 14px; padding: 6px 14px;
    background: var(--brand-soft); color: var(--brand-dark); border: 1px solid var(--brand-line);
    border-radius: 99px; font-size: 12.5px; font-weight: 600; letter-spacing: .4px;
}

.hero__title { font-size: 54px; letter-spacing: -1.2px; line-height: 1.12; }

.hero__title span { display: block; }

.hero__title-em { color: var(--brand); position: relative; }

.hero__title-em::after {
    content: ''; position: absolute; left: 2px; bottom: 6px; width: 62%; height: 9px;
    background: rgba(11, 94, 215, .16); border-radius: 4px; z-index: -1;
}

.hero__desc { margin-top: 18px; font-size: 16.5px; color: var(--ink-3); max-width: 480px; }

.hero__btns { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.hero__stats { display: flex; gap: 40px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }

.hero__stats li { display: flex; flex-direction: column; }

.hero__stats strong { font-size: 27px; color: var(--ink); letter-spacing: -.4px; }

.hero__stats span { font-size: 13px; color: var(--ink-4); margin-top: 2px; }

/* ---------- 优势（深色区） ---------- */
.why { background: var(--dark); padding: var(--sp-3) 0; }

.why-card { color: #c9d7e8; }

.why-card__icon {
    width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 20px;
    border-radius: 12px; background: rgba(88, 156, 255, .14); color: var(--brand-on-dark);
    border: 1px solid rgba(88, 156, 255, .28);
}

.why-card__title { font-size: 18px; color: #fff; margin-bottom: 10px; }

/* 深蓝底上的说明文字原来是 #93a7c1（对比度 4.3:1，刚过线但看着发灰），
   ★ 顺手把行宽压到 60 字符以内 —— 满宽长句在卡片里很难扫读 */
.why-card__desc { font-size: 14.5px; color: #b0c2d9; line-height: 1.75; max-width: 34em; }

/* ---------- 页面收尾：需求咨询承接（2026-10-26） ----------
   新闻之后原本直接落到页脚，读完没出口。这个条只能用一次，所以做成深蓝通栏 */
.cta-strip {
    position: relative; overflow: hidden;
    padding: 46px 0;
    background: linear-gradient(120deg, #08213f 0%, #061a33 60%, #072a4d 100%);
}

.cta-strip::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(760px 320px at 82% 10%, rgba(45, 132, 240, .26), transparent 72%);
}

.cta-strip__inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
}

.cta-strip__title { font-size: 25px; font-weight: 700; color: #fff; letter-spacing: -.3px; }

.cta-strip__desc { margin-top: 8px; font-size: 15px; line-height: 1.75; color: #b0c2d9; max-width: 620px; }

.cta-strip__btns { display: flex; gap: 12px; flex-shrink: 0; }

/* 深底上 btn--outline 默认是白底蓝字，会显得像一块补丁 → 就地改成透明描边 */
.cta-strip .btn--outline {
    background: transparent; color: #d6e4f7; border-color: rgba(160, 195, 245, .42);
}

.cta-strip .btn--outline:hover {
    background: rgba(255, 255, 255, .10); color: #fff; border-color: rgba(200, 222, 255, .7);
}

/* ---------- 应用领域（2026-10-26 从编号框改成图卡） ----------
   原来六个纯文字 chip：一条链接都不产生，且视觉分量远弱于上面的分类图卡区。
   现在是「图 + 名称 + 一句选型说明 + 查看产品」，每块都是真链接。 */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.app-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.app-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow);
    border-color: var(--brand-line);
}

.app-card__media {
    position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
    background: var(--navy-3);
}

.app-card__media picture { display: block; width: 100%; height: 100%; }

/* ★ width/height 属性在这里只是给浏览器占位比例，高度由 aspect-ratio 接管，
   否则 960×600 的原始比例会把卡片撑到 600px 高 */
.app-card__media img {
    display: block; width: 100%; height: 100%;
    object-fit: cover; transition: transform .45s ease;
}

.app-card:hover .app-card__media img { transform: scale(1.06); }

.app-card__no {
    position: absolute; left: 14px; top: 14px;
    padding: 4px 10px; border-radius: 50px;
    background: rgba(6, 26, 51, .62); color: #cfe1ff;
    font-size: 12px; font-weight: 700; letter-spacing: .6px;
    backdrop-filter: blur(4px);
}

/* 图片底部压一层渐变，编号之外也让卡片色块与标题有过渡 */
.app-card__media::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
    background: linear-gradient(180deg, transparent, rgba(6, 26, 51, .28));
    pointer-events: none;
}

.app-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }

.app-card__name { display: block; font-size: 16.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }

.app-card__desc { display: block; font-size: 13.5px; line-height: 1.75; color: var(--ink-3); flex: 1; }

.app-card__more {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--brand);
    transition: gap .22s ease;
}

.app-card:hover .app-card__more { gap: 11px; }

/* ---------- 首屏（照片版） ---------- */
.hero--photo { min-height: 470px; display: flex; align-items: center; background: #06182f; }

.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

.hero__mask {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(100deg, rgba(6, 26, 51, .93) 0%, rgba(6, 26, 51, .78) 40%, rgba(6, 26, 51, .40) 72%, rgba(6, 26, 51, .10) 100%);
}

/* ★ 照片版是单列 grid，基础 gap:40px 会在多行之间塞进死白 → 归零，改用元素 margin 控制
   2026-10-21 重排：去掉 ISO 标签后重起节奏，字号随视口伸缩（窄屏硬写 46px 会折成三行）
   ★ 不要再给 .hero__inner 写 max-width：它会盖掉 .container 的 1280 上限、配合 margin:auto
     把整块居中，文字就比顶部 logo 往里缩一截。行宽限制给到子元素，左边界交给 .container */
.hero--photo .hero__inner { grid-template-columns: 1fr; gap: 0; padding-top: 52px; padding-bottom: 48px; }

.hero--photo .hero__inner > * { max-width: 660px; }

.hero--photo .hero__kicker { background: rgba(255, 255, 255, .12); color: #8fc0ff; border-color: rgba(255, 255, 255, .22); }

.hero--photo .hero__title {
    color: #fff; font-size: clamp(34px, 3.4vw, 48px);
    line-height: 1.18; letter-spacing: -1px; font-weight: 700;
}

.hero--photo .hero__title span + span { margin-top: 2px; }

/* ★ span 是 block（为了换行）会撑满 660px，而高亮条按 62% 算会拖出一条比文字长得多的蓝条
   → fit-content 让块级宽度贴合文字，高亮条才只盖住被强调的那几个字 */
.hero--photo .hero__title span { width: fit-content; }

.hero--photo .hero__title-em { color: #62a8ff; }

.hero--photo .hero__title-em::after { background: rgba(98, 168, 255, .22); }

.hero--photo .hero__desc {
    margin-top: 20px; max-width: 560px;
    font-size: 16px; line-height: 1.85; color: #cfdcec; letter-spacing: .2px;
}

.hero--photo .hero__btns { margin-top: 30px; }

/* 三宫格数据：竖线分隔 + 等宽数字，比裸 flex 更像一块数据面板 */
.hero--photo .hero__stats { gap: 0; margin-top: 34px; padding-top: 22px; border-top-color: rgba(255, 255, 255, .18); }

.hero--photo .hero__stats li { position: relative; padding-right: 32px; padding-left: 32px; }

.hero--photo .hero__stats li:first-child { padding-left: 0; }

.hero--photo .hero__stats li + li::before {
    content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 1px;
    background: rgba(255, 255, 255, .22);
}

.hero--photo .hero__stats strong {
    font-size: 28px; line-height: 1.15; color: #fff;
    font-variant-numeric: tabular-nums; letter-spacing: -.4px;
}

.hero--photo .hero__stats span { color: #9db3cc; font-size: 12.5px; margin-top: 4px; letter-spacing: .2px; }

/* ---------- 产品分类八宫格（真实图片） ---------- */
/* 一级分类 13 个：flex wrap + 居中，最后一行不满时孤卡自动居中，不留右侧死白 */
.shortcuts { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.shortcuts > * { width: calc((100% - 60px) / 4); }

@media (max-width: 1080px) { .shortcuts > * { width: calc((100% - 20px) / 2); } }

@media (max-width: 720px) { .shortcuts { gap: 14px; } .shortcuts > * { width: calc((100% - 14px) / 2); } }

.shortcut {
    display: block; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; transition: all .26s ease;
}

.shortcut:hover { transform: translateY(-5px); border-color: var(--brand-line); box-shadow: var(--shadow); }

/* 方形图把 8 个分类撑到 720px 两行 → 改 4:3，一屏能扫完两条产品线 */
.shortcut__media { display: block; }   /* <picture> 默认 inline，不撑满会让 img 的 100% 失效 */
/* 3 列后卡更宽，4/3 会把整块撑高约 150px；16/10 保留产品主体又不浪费纵向空间 */
.shortcut__img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
/* ★ 2026-10-22：模板给 img 补了 width="960" height="600"（srcset 描述符需要），
   若只写 width:100%，浏览器会把 height 属性当表现提示 → 卡片被撑成 600 高。
   height:auto 让 aspect-ratio 接手，别再删。 */

.shortcut:hover .shortcut__img { transform: scale(1.05); }

.shortcut__name { padding: 14px 10px 16px; text-align: center; font-size: 15.5px; font-weight: 600; }

.shortcut:hover .shortcut__name { color: var(--brand); }

/* 2026-10-26：卡片原来只有一行品类名，靠图片分辨。补一行后台早已填好的定位语
   （hero_kicker），客户不用点进去就知道每个栏目管什么。
   ★ clamp 双行上限 + 固定 min-height：六七个字和十几个字的卡片高度才不齐对错位 */
.shortcut__kick {
    padding: 0 10px 16px; margin-top: -12px;
    text-align: center; font-size: 12.5px; line-height: 1.55; color: var(--ink-4);
    min-height: 34px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 区块副标题下的实时口径（如「12 条产品线 · 562 个型号可查」） */
.sec-count {
    margin-top: 10px; text-align: center;
    font-size: 13.5px; font-weight: 600; color: var(--brand);
    letter-spacing: .3px;
}

/* ---------- 关于我们 ---------- */
.about__inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 52px; align-items: center; }

/* 2026-10-26：原右栏四个数字卡（562+/17/40+）与首屏完全重复 → 换成产线实景四宫格 */
.about__media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.about__pic {
    position: relative; overflow: hidden; margin: 0;
    border-radius: var(--radius); background: var(--navy-3);
    box-shadow: var(--shadow-sm);
}

.about__pic picture { display: block; }

.about__pic img {
    display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
    object-fit: cover; transition: transform .45s ease;
}

.about__pic:hover img { transform: scale(1.05); }

.about__pic figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 22px 12px 10px;
    font-size: 12.5px; line-height: 1.4; color: #fff;
    background: linear-gradient(180deg, transparent, rgba(6, 26, 51, .82));
}

/* 混在小标题排版里的一段强调句。写成 .about__text .about__fac 而不是加 !important：
   上面的 .about__text p 是 (0,1,1)，单类选择器压不过它 */
.about__text .about__fac {
    margin-top: 4px; padding-left: 12px; margin-bottom: 18px;
    border-left: 3px solid var(--brand);
    font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.7;
}

/* 实力指标通栏：换成只有同行才说得出的话，不再复读首屏数字 */
.strengths {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line);
}

.strengths__item {
    display: flex; flex-direction: column; gap: 2px;
    padding: 14px 18px; border-radius: var(--radius-sm);
    background: var(--bg-tint); border: 1px solid var(--line);
}

.strengths__item strong {
    font-size: 24px; color: var(--brand); letter-spacing: -.4px;
    font-variant-numeric: tabular-nums; line-height: 1.2;
}

.strengths__item span { font-size: 13px; color: var(--ink-3); }

.about__text p { font-size: 15px; color: var(--ink-2); line-height: 1.9; margin-bottom: 12px; }

.about__pts { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 26px; }

.about__pts li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); }

.about__pts svg { color: var(--brand); flex-shrink: 0; }

/* （2026-10-26 删除 .about__stats / .about__stat：右栏改产线实景，数字挪到 .strengths，
   旧规则全站只有首页在用，留着纯成死样式） */

/* ============================================================
 *  深蓝科技感增强（网格纹理 + 蓝色径向光）
 * ============================================================ */

/* 照片 hero：细网格，左侧浓、右侧淡出 */
.hero--photo::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image:
        linear-gradient(rgba(120, 178, 255, .075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 178, 255, .075) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, .5) 46%, transparent 80%);
    mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, .5) 46%, transparent 80%);
}

/* 优势区：深蓝渐变底 + 右上蓝色径向光 */
.why {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, #08213f 0%, #061a33 100%);
}

.why::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(920px 460px at 78% 4%, rgba(45, 132, 240, .22), transparent 70%);
}

/* ---------- 首页：新闻资讯区块 ---------- */
.hn__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.hn__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.hn__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--brand-line);
}

.hn__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--brand-soft);
}

/* <picture> 默认 inline，塞进 aspect-ratio 容器会让 img 的 100% 失效 */
.hn__media picture { display: block; width: 100%; height: 100%; }

.hn__media img {
    display: block; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.hn__card:hover .hn__media img { transform: scale(1.05); }

/* ★ body 改 flex 列：卡片等高时「阅读全文」要贴底，标题少一行的卡片否则会浮在半空 */
.hn__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }

.hn__meta {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 11px;
    font-size: 12.5px; color: var(--ink-4);
}

.hn__cat {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-style: normal;
    font-size: 12px; font-weight: 600;
    color: var(--brand);
    background: var(--brand-soft);
}

.hn__title {
    display: block;
    margin-bottom: 9px;
    font-size: 17.5px; font-weight: 700; line-height: 1.5;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hn__sum {
    display: block;
    font-size: 14px; line-height: 1.75;
    color: var(--ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hn__more {
    display: inline-flex; align-items: center; gap: 6px;
    /* ★ 改成 auto：同一行三张卡的标题/摘要行数不同，原来固定 15px 会让三条「阅读全文」对不齐 */
    margin-top: auto; padding-top: 15px;
    font-size: 14px; font-weight: 600;
    color: var(--brand);
    transition: gap .22s ease;
}

.hn__card:hover .hn__more { gap: 11px; }

.hn__foot { text-align: center; margin-top: 40px; }

.hn__empty { padding: 18px 0; text-align: center; color: var(--ink-3); }

@media (max-width: 720px) {

    .hero__inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 58px; }

    /* 关于区块 —— 移动端单列（375 下 1.25fr/1fr 两列会挤压统计卡撑破视口） */
    .about__inner { grid-template-columns: 1fr; gap: 30px; }

    .hero--photo .hero__inner { padding-top: 30px; padding-bottom: 34px; }

    /* ★ 竖屏时横幅只截取原图 20% 的宽度：重心右移，保证镜片组合还在画面里（默认 50% 只会截到空背景）
       11-17 换新 banner（建筑+镜片群）后取值 74%→58%：文字上半压在建筑暗部、镜片落在下半部，比全压彩色镜片好读 */
    .hero__bg { object-position: 58% center; }

    /* 竖屏取景后镜片正好垫在文字下方，横向渐变（左深右透）护不住右侧统计数字 → 改竖向整体压深 */
    .hero__mask { background: linear-gradient(180deg, rgba(6, 26, 51, .90) 0%, rgba(6, 26, 51, .80) 55%, rgba(6, 26, 51, .88) 100%); }

    .hero--photo .hero__desc { margin-top: 14px; font-size: 15px; line-height: 1.78; }

    .hero--photo .hero__btns { margin-top: 22px; }

    /* 窄屏放不下竖线分隔：去掉分隔线，改回等间距排 */
    .hero--photo .hero__stats { margin-top: 22px; padding-top: 16px; gap: 18px 22px; }

    .hero--photo .hero__stats li { padding-left: 0; padding-right: 0; }

    .hero--photo .hero__stats li + li::before { display: none; }

    .hero--photo .hero__stats strong { font-size: 24px; }

    .hero__title { font-size: 34px; }

    .hero__stats { gap: 24px; flex-wrap: wrap; }

    .section--lg, .why { padding: 58px 0; }

    .hero--photo .hero__title { font-size: 34px; }

    .hero--photo { min-height: 360px; }

    /* 2026-10-26：应用图卡在窄屏单列；721–1080 由上面的断点收成两列，中间不空档 */
    .apps { grid-template-columns: 1fr; }

    /* 产线实景 —— 窄屏不再追求四宫格，两张并排，字号更紧凑 */
    .strengths { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; padding-top: 24px; }

    .strengths__item { padding: 12px 14px; }

    .strengths__item strong { font-size: 20px; }

    /* 收尾横幅改成上下两行，标题不再和按钮抢位置 */
    .cta-strip { padding: 34px 0; }

    .cta-strip__inner { flex-direction: column; align-items: flex-start; gap: 20px; }

    .cta-strip__title { font-size: 21px; }

    .cta-strip__desc { font-size: 14.5px; }

}

/* 375–430 窄屏：英文 H1 现在换成「Precision Optical Filters / & Thin-Film Coating Solutions」，
   两条都比原来长，34px 时第二行会折 → 收到 29px 留出余量（真机字体度量比桌面略宽） */
@media (max-width: 430px) {
    .hero--photo .hero__title { font-size: 29px; }

    .cta-strip__btns { flex-direction: column; width: 100%; }

    .cta-strip__btns .btn { width: 100%; text-align: center; }
}

@media (max-width: 720px) {

    /* 首页新闻资讯 —— 移动端单列 */
    .hn__grid { grid-template-columns: 1fr; gap: 20px; }

    .hn__media { aspect-ratio: 16 / 9; }

    .hn__body { padding: 17px 18px 20px; }

    .hn__title { font-size: 16.5px; }

}


/* ============================================================
   平板宽度（≤1080）：三列图卡改成两列
   ★ 别让 .apps 直接从 3 列跳到 1 列 —— 720–1080 之间是 iPad 竖屏的主力区间，
     两列能保住图片尺寸，不至于把场景图缩成一格头像
   ============================================================ */
@media (max-width: 1080px) and (min-width: 721px) {

    .apps { grid-template-columns: 1fr 1fr; }

    .about__inner { grid-template-columns: 1fr; gap: 34px; }

    .about__media { grid-template-columns: repeat(4, 1fr); gap: 10px; }

    .about__pic figcaption { font-size: 11.5px; padding: 18px 8px 8px; }

    .strengths { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}


/* ============================================================
   无障碍：关掉系统的动画偏好（2026-10-26）
   首页有卡片位移 + 图片缩放两类装饰动效，前庭功能障碍用户会因视差不适
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

    .shortcut:hover, .app-card:hover, .hn__card:hover, .about__pic:hover img,
    .shortcut:hover .shortcut__img, .app-card:hover .app-card__media img,
    .hn__card:hover .hn__media img, .app-card:hover .app-card__more,
    .hn__card:hover .hn__more {
        transform: none; transition: none;
    }
}
