/* 技术页 tech.htm；Banner：page-banner-standard.css */

.tech-page-body {
    background-color: #ffffff;
}

.tech-page {
    background-color: #f5f5f7;
    padding: 48px 0 96px 0;
}

.tech-page-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
    text-align: center;
}

.tech-page-subtitle {
    font-size: 36px;
    font-weight: 600;
    color: #132A3E;
    margin: 0 0 48px 0;
}

.tech-page-intro {
    max-width: 920px;
    margin: 0 auto 48px;
    font-size: 16px;
    line-height: 1.9;
    color: #4A5A68;
    text-align: center;
}

@media screen and (max-width: 1679px) {
    .tech-page-intro {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(16px * var(--kyd-text-scale, 1)));
        margin-bottom: 36px;
    }
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 350px);
    column-gap: 24px;
    row-gap: 24px;
    justify-content: center;
}

.tech-grid-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 24px;
    width: 350px;
    height: 120px;
    border: none;
    background-color: #00233D;
    text-decoration: none;
}

.tech-grid-item-text {
    font-size: 16px;
    color: #ffffff;
}

.tech-grid-item-cta {
    background-color: #EFF0F2;
    color: #132A3E;
    cursor: default;
}

.tech-grid-item-cta .tech-grid-item-text {
    color: #132A3E;
}

.tech-grid-item:hover {
    background-color: #00233D;
}

.tech-grid-item:hover .tech-grid-item-text {
    color: #ffffff;
}

.tech-grid-item-cta:hover {
    background-color: #EFF0F2;
}

.tech-grid-item-cta:hover .tech-grid-item-text {
    color: #132A3E;
}

/* —— 富文本技术卡片（仅传感器技术页使用）——
   注意：.tech-grid-item 被 industryApplications / category-index 复用，
   故新增样式一律挂在 .tech-grid-item--rich 上，不改动基类，避免波及复用页面。 */
.tech-grid-item--rich {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 26px 24px;
    height: auto;
    min-height: 338px;
}

.tech-grid-item--rich .tech-grid-item-text {
    display: block;
    margin: 0 0 12px 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}

.tech-grid-item-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
}

.tech-grid-item-cta .tech-grid-item-desc {
    color: rgba(19, 42, 62, 0.72);
}

/* —— 技术图标（inline SVG，自包含无外部依赖；设计师可整体替换为定制图标）—— */
.tech-grid-item--rich .tech-grid-item-icon {
    display: block;
    width: 34px;
    height: 34px;
    margin: 0 0 16px 0;
    color: #7FB3E0;
}

.tech-grid-item--rich .tech-grid-item-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.tech-grid-item-cta .tech-grid-item-icon {
    color: #5B7A96;
}

/* —— 「典型配置」指标行（值取自站内已公开产品页，见设计稿来源表）—— */
.tech-grid-item-spec {
    display: block;
    margin: 14px 0 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(127, 179, 224, 0.28);
    font-size: 12.5px;
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.62);
}

.tech-grid-item-cta .tech-grid-item-spec {
    border-top-color: rgba(19, 42, 62, 0.16);
    color: rgba(19, 42, 62, 0.58);
}

/* —— 卡片区脚注 —— */
.tech-grid-note {
    max-width: 920px;
    margin: 28px auto 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: #8a94a6;
    text-align: center;
}

/* —— 「查看详细信息 / 联系我们」引导行 —— */
.tech-grid-item-more {
    display: inline-block;
    margin-top: auto;
    padding-top: 16px;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: #7FB3E0;
}

.tech-grid-item-cta .tech-grid-item-more {
    color: #132A3E;
}

.tech-grid-item-more-arrow {
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

/* —— 可点击卡片（1–4 号关联测量页，8 号 CTA 关联联系我们）—— */
a.tech-grid-item--rich {
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.tech-grid-item--rich:hover {
    background-color: #013257;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 19, 33, 0.2);
}

a.tech-grid-item--rich:hover .tech-grid-item-text {
    color: #ffffff;
}

a.tech-grid-item-cta:hover {
    background-color: #E4E6E9;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 19, 33, 0.1);
}

a.tech-grid-item-cta:hover .tech-grid-item-text {
    color: #132A3E;
}

a.tech-grid-item--rich:hover .tech-grid-item-more-arrow {
    transform: translateX(3px);
}

a.tech-grid-item--rich:focus-visible {
    outline: 2px solid #7FB3E0;
    outline-offset: 3px;
}

/* 五档：Phone≤767 | Small 768–1024 | Mid 1025–1439 | Large 1440–1679 | XLarge≥1680 */

@media screen and (max-width: 1679px) {
    .tech-page-subtitle {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(32px * var(--kyd-text-scale, 1)));
    }
    .tech-grid-item-text {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(16px * var(--kyd-text-scale, 1)));
    }
    .tech-grid-item--rich .tech-grid-item-text {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(17px * var(--kyd-text-scale, 1)));
    }
    .tech-grid-item-desc {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(14px * var(--kyd-text-scale, 1)));
    }
    .tech-grid-item--rich .tech-grid-item-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 14px;
    }
    .tech-grid-item-spec {
        font-size: max(11px, calc(12.5px * var(--kyd-text-scale, 1)));
    }
}

@media screen and (min-width: 1440px) and (max-width: 1679px) {
    .tech-page-inner {
        max-width: none;
        padding-left: 96px;
        padding-right: 96px;
    }
    .tech-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 20px;
        max-width: 1320px;
        margin-left: auto;
        margin-right: auto;
    }
    .tech-grid-item {
        width: 100%;
        max-width: none;
    }
}

@media screen and (min-width: 1025px) and (max-width: 1439px) {
    .tech-page-inner {
        padding-left: 28px;
        padding-right: 28px;
    }
    .tech-grid {
        grid-template-columns: repeat(2, minmax(0, 350px));
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .tech-page-inner {
        padding-left: 24px;
        padding-right: 24px;
    }
    .tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tech-grid-item {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 767px) {
    .tech-page-inner {
        padding-left: 16px;
        padding-right: 16px;
    }
    .tech-grid {
        grid-template-columns: 1fr;
    }
    .tech-grid-item {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}
