/********** 乾鑫钢铁自定义样式 **********/
/* 本文件覆盖/扩展 Weldork 模板样式，请勿改动 style.css 原文 */

/* ===== 自托管字体（latin 子集，中文走系统字体栈） ===== */
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/poppins-400.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/poppins-600.woff2") format("woff2");
}
@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/roboto-700.woff2") format("woff2");
}
@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/roboto-800.woff2") format("woff2");
}
/* Oswald：窄体工业风展示字体，用于首屏标题/标语（latin，中文仍走系统字体） */
@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/oswald-500.woff2") format("woff2");
}
@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/oswald-600.woff2") format("woff2");
}
@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/oswald-700.woff2") format("woff2");
}

body {
    font-family: "Poppins", "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* 防止个别区块横向溢出撑宽页面（会把移动端导航汉堡按钮挤出视口） */
html, body {
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-5, .display-6 {
    font-family: "Roboto", "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* ===== 单行导航：深色 CTA 按钮（仿参考风格） ===== */
.btn-nav-cta {
    background: #1f2430;
    border-color: #1f2430;
    color: #fff;
    border-radius: 2px;
    font-weight: 600;
}

.btn-nav-cta:hover,
.btn-nav-cta:focus {
    background: #11151d;
    border-color: #11151d;
    color: #fff;
}

/* 移动端导航 LOGO 缩小，避免把汉堡按钮挤换行 */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 32px !important;
    }
}

/* 语言切换下拉（预留多语言扩展） */
.btn-lang {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 12px;
    border: 1px solid #333;
    border-radius: 2px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background .3s, color .3s;
}

.btn-lang:hover,
.btn-lang.show {
    background: #1f2430;
    border-color: #1f2430;
    color: #fff;
}

.lang-dropdown .dropdown-menu {
    min-width: 120px;
    border-radius: 2px;
}

.lang-dropdown .dropdown-item.active,
.lang-dropdown .dropdown-item:active {
    background: #1f2430;
}

/* ===== Hover 交互动画（各模块不同效果，避免重复感） ===== */

/* 服务卡片（产品/案例/资讯）：图片缓慢放大（底色填充动画模板自带） */
.service .service-item img {
    transition: transform .6s ease;
}

.service .service-item:hover img {
    transform: scale(1.05);
}

/* 特性卡片（质量保证/现货库存等）：整体上浮 + 边框点亮（图标变色模板自带） */
.feature-item {
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.feature-item:hover {
    transform: translateY(-6px);
    border-color: var(--bs-primary) !important;
    box-shadow: 0 14px 30px rgba(30, 78, 140, .12);
}

/* 服务行业图标卡：底色反转为深蓝 */
.industry-card {
    transition: background .35s ease, transform .35s ease, box-shadow .35s ease;
}

.industry-card i,
.industry-card h6 {
    transition: color .35s ease;
}

.industry-card:hover {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(30, 78, 140, .25);
}

.industry-card:hover i,
.industry-card:hover h6 {
    color: #fff !important;
}

/* 团队卡片：照片放大（社交浮层模板自带） */
.team .team-item img {
    transition: transform .5s ease;
}

.team .team-item:hover img {
    transform: scale(1.06);
}

/* 页脚产品图集：小图快速放大 */
.footer .col-4 {
    overflow: hidden;
}

.footer .col-4 img {
    transition: transform .4s ease;
}

.footer .col-4 img:hover {
    transform: scale(1.12);
}

/* 资质徽章：轻微浮起 */
.cert-badge {
    transition: transform .3s ease, box-shadow .3s ease;
}

.cert-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
}

/* 带箭头的按钮：箭头右移 */
.btn .bi-arrow-right {
    display: inline-block;
    transition: transform .3s ease;
}

.btn:hover .bi-arrow-right {
    transform: translateX(5px);
}

/* 分类筛选标签：平滑过渡 */
.nav-pills .nav-link {
    transition: background .3s ease, color .3s ease, transform .3s ease;
}

.nav-pills .nav-link:hover {
    transform: translateY(-2px);
}

/* FAQ 手风琴：标题悬停底色 */
.accordion-button {
    transition: background .3s ease, color .3s ease;
}

.accordion-button:hover {
    background: rgba(30, 78, 140, .06);
}

/* 关于我们主图：轻微放大 */
.about-img img {
    transition: transform .6s ease;
}

.about-img:hover img {
    transform: scale(1.03);
}

/* 系统开启"减少动态效果"时关闭全部 hover 动画 */
@media (prefers-reduced-motion: reduce) {
    .service .service-item img,
    .feature-item,
    .industry-card,
    .team .team-item img,
    .footer .col-4 img,
    .cert-badge,
    .btn .bi-arrow-right,
    .nav-pills .nav-link,
    .about-img img {
        transition: none !important;
        transform: none !important;
    }
}

/* ===== 首屏：代表案例热点 Hero ===== */
.hero-cases {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: stretch;
    background: url("../img/carousel-1.jpg") center center / cover no-repeat; /* 视频加载失败时的兜底背景 */
    overflow: hidden;
}

/* 首屏背景视频（序列01.mp4） */
.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-cases::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .35) 50%, rgba(0, 0, 0, .65) 100%);
}

.hero-cases-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 78vh;
}

/* 热点：圆形案例图 + 卖点标签 + 悬浮简介卡 */
.hero-hotspot {
    position: absolute;
    z-index: 3; /* 高于 .hero-slogan，避免 hover 简介卡被大标语遮挡 */
    text-align: center;
    width: 270px;
    transform: translateX(-50%);
}

.hero-hotspot-img {
    display: block;
    width: 215px;
    height: 215px;
    margin: 0 auto;
    padding: 0;
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    overflow: hidden;
    background: none;
    cursor: pointer;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .15);
    transition: transform .3s, box-shadow .3s;
}

.hero-hotspot-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-hotspot:hover .hero-hotspot-img,
.hero-hotspot.active .hero-hotspot-img {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(30, 78, 140, .4);
}

.hero-hotspot-label {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 22px;
    background: var(--bs-primary, #1e4e8c);
    color: #fff;
    font-weight: 600;
    border-radius: 3px;
}

/* 首屏左侧文案块（仿参考风格：眉线 + 大标题 + 描述 + 双按钮） */
.hero-copy {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    max-width: 560px;
    color: #fff;
    z-index: 3; /* 必须高于全覆盖的 .hero-cases-inner(z-index:2)，否则按钮点不到 */
}

.hero-copy-eyebrow {
    font-size: 15px;
    letter-spacing: .05em;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 14px;
}

.hero-copy-eyebrow span {
    color: #4f8fdd;
    margin: 0 8px;
}

.hero-copy-title {
    font-family: "Oswald", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}

.hero-copy-title .accent {
    color: #4f8fdd;
}

/* 英文版首屏标题字号略缩，避免三行断行 */
html[lang="en"] .hero-copy-title {
    font-size: clamp(1.9rem, 3.2vw, 3rem);
}

.hero-copy-desc {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 26px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.hero-copy-cta {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.hero-play {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.hero-play:hover {
    color: #fff;
}

.hero-play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 2px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    transition: background .3s, border-color .3s;
}

.hero-play:hover .hero-play-icon {
    background: var(--bs-primary, #1e4e8c);
    border-color: var(--bs-primary, #1e4e8c);
}

/* 移动端：文案块改为静态流内布局 */
@media (max-width: 991.98px) {
    .hero-cases {
        flex-direction: column;
    }
    .hero-copy {
        position: static;
        transform: none;
        max-width: 100%;
        padding: 28px 20px 0;
    }
    .hero-copy-title {
        font-size: 1.9rem;
    }
    .hero-cases-inner.d-lg-none {
        flex: 1;
    }
}

/* 中小桌面屏：热点略缩小，避免右侧溢出 */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-hotspot {
        width: 230px;
    }
    .hero-hotspot-img {
        width: 180px;
        height: 180px;
    }
    .hero-copy {
        max-width: 420px;
    }
}

/* 热点常显摘要（标签下方一行小字） */
.hero-hotspot-sub {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}

/* 热点缓慢漂浮（以各自定位点为中心），鼠标悬停暂停 */
@keyframes heroFloat1 {
    0%, 100% { transform: translateX(-50%) translate(0, 0); }
    25% { transform: translateX(-50%) translate(12px, -14px); }
    50% { transform: translateX(-50%) translate(-8px, -6px); }
    75% { transform: translateX(-50%) translate(-12px, 10px); }
}

@keyframes heroFloat2 {
    0%, 100% { transform: translateX(-50%) translate(0, 0); }
    25% { transform: translateX(-50%) translate(-14px, 10px); }
    50% { transform: translateX(-50%) translate(6px, 14px); }
    75% { transform: translateX(-50%) translate(12px, -8px); }
}

@keyframes heroFloat3 {
    0%, 100% { transform: translateX(-50%) translate(0, 0); }
    33% { transform: translateX(-50%) translate(10px, 12px); }
    66% { transform: translateX(-50%) translate(-10px, -12px); }
}

.hero-hotspot:nth-of-type(1) { animation: heroFloat1 9s ease-in-out infinite; }
.hero-hotspot:nth-of-type(2) { animation: heroFloat2 11s ease-in-out infinite; }
.hero-hotspot:nth-of-type(3) { animation: heroFloat3 10s ease-in-out infinite; }

.hero-hotspot:hover {
    animation-play-state: paused;
}

/* 用户系统开启"减少动态效果"时关闭漂浮 */
@media (prefers-reduced-motion: reduce) {
    .hero-hotspot {
        animation: none;
    }
}

/* 悬浮简介卡跟随热点漂移时保持可读：卡片不随 hover 缩放 */
.hero-hotspot-card {
    cursor: default;
}

/* 悬浮简介卡：桌面 hover / 点击展开 */
.hero-hotspot-card {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .96);
    border-radius: 4px;
    text-align: left;
    color: #333;
    font-size: 14px;
    line-height: 1.7;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
    z-index: 5;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}

.hero-hotspot-card h6 {
    font-size: 15px;
    margin-bottom: 6px;
}

.hero-hotspot:hover .hero-hotspot-card,
.hero-hotspot.active .hero-hotspot-card {
    opacity: 1;
    visibility: visible;
}

/* 更多案例入口（右上角，与左上角引导文案呼应） */
.hero-more {
    position: absolute;
    right: 5%;
    top: 7%;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, .8);
    padding: 10px 22px;
    border-radius: 3px;
    transition: background .3s, color .3s;
}

.hero-more:hover {
    background: #fff;
    color: #222;
}

/* 底部大标语 */
.hero-slogan {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 6%;
    margin: 0;
    text-align: center;
    color: #fff;
    font-family: "Oswald", "Microsoft YaHei", sans-serif;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: clamp(28px, 5vw, 64px);
    text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}

/* 移动端：隐藏图上热点，改用卡片列表 */
@media (max-width: 991.98px) {
    .hero-cases,
    .hero-cases-inner {
        min-height: 52vh;
    }
    .hero-hotspot,
    .hero-more {
        display: none;
    }
}

/* ===== 数据 + 资质条 ===== */
.stats-cert-bar .stat-item h2 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 0;
}

.stats-cert-bar .stat-item small {
    color: #777;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    height: 64px;
    padding: 0 14px;
    border: 2px solid #333;
    border-radius: 4px;
    font-weight: 800;
    font-size: 1.25rem;
    color: #333;
    background: #fff;
}

.cert-badge img {
    max-height: 44px;
    max-width: 72px;
    object-fit: contain;
}

/* ===== 移动端悬浮电话按钮 ===== */
.float-call {
    position: fixed;
    right: 16px;
    bottom: 86px;
    z-index: 98;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}

/* ===== 产品筛选 ===== */
.product-item .product-stock {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

/* ===== 页面横幅（子页） ===== */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url("../img/carousel-2.jpg") center center / cover no-repeat; /* TODO(待替换): 横幅图 */
    padding: 110px 0 70px;
}

.page-header h1 {
    color: #fff;
    font-weight: 800;
}

.page-header .breadcrumb {
    background: none;
    padding: 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, .85);
}
