/* 基础重置与全局 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

:root {
    --common-color-940c11: #940c11;
}

/* 全局滚动分屏 */
html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    height: 100%;
    overflow-y: auto;
    font-size: 16px;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;
}

a {
    text-decoration: none;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px; */
}

.fcontainer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.flex {
    display: flex;
}

/* .column {
    flex: 1;
} */

/* 头部导航 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 80px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

.logo img {
    height: 80px;
    width: 100%;
    /* 保持原始宽高比 */
    margin: 0;
    /* 移除图片的边距 */
    padding: 0 0 0 50px;
    /* 移除图片的内边距 */
    object-fit: contain;
    /* 确保图片完整显示 */
}

/* 桌面端一级菜单 */
.nav-first {
    display: flex;
    list-style: none;
    margin-left: auto;
    /* 将导航移到右侧 */
    padding: 0 5% 0 0;
    /* 移除导航的内边距 */
}

.nav-first-item {
    /*position: relative;*/
    margin: 0 20px;
}

.nav-first-link {
    display: block;
    padding: 0 8px;
    height: 80px;
    line-height: 80px;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

/* 导航激活/hover样式 */
.nav-first-link.active,
.nav-first-link:hover {
    color: #940c11;
}

.nav-first-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #940c11;
    transition: all 0.3s;
}

.nav-first-link.active::after,
.nav-first-link:hover::after {
    left: 0;
    width: 100%;
}

/* 更新二级下拉菜单样式 */
.nav-second {
    display: none;
    position: absolute;
    width: 100%;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 350px;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    animation: drawerOpen 0.3s ease-out forwards;
    padding: 15px 15px 0;
    border: 1px solid #eee;
}

@keyframes drawerOpen {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.nav-second-container {
    display: flex;
    /*align-items: flex-start;*/
    min-height: 200px;
    max-width: 1200px;
    margin: auto;
}

.nav-second-left {
    flex-basis: 50%;
    padding: 0 15px;
    border-right: 1px solid #eee;

    .nav-img {
        width: 270px;
        height: 170px;
    }

    .flex .column:nth-child(2) {
        padding-left: 20px
    }

    .cateName {
        font-size: 20px;
        color: rgb(47, 47, 47);
        margin-bottom: 10px;
    }

    .cateDesc {
        font-size: 16px;
        color: rgb(103, 103, 103);
        padding-bottom: 20px;
    }

}

.nav-second-right {
    flex: 1;
    padding: 0 15px;
    min-width: 250px;
}

.nav-second-menu {
    margin-bottom: 20px;
    padding-top: 40px;
}

.nav-second-menu a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 20px;
    padding: 10px 20px;
    display: inline-block;
    margin: 0px 30px;
}

.nav-second-menu a:hover {
    color: #940c11;
}

.nav-second-more {
    display: inline-block;
    padding: 12px 50px;
    color: #fff;
    background-color: #940c11;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
}

.nav-second-more:hover {
    background-color: #fff;
    color: #940c11;
}

/* 移动端汉堡菜单 */
.mobile-toggle {
    display: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu li {
    padding: 0;
}

.mobile-menu li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.mobile-menu li a:hover,
.mobile-menu li a.active {
    color: #940c11;
}

.mobile-link .arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: transform 0.3s;
}

.mobile-link.expanded .arrow {
    transform: translateY(-50%) rotate(180deg);
}

.mobile-second {
    display: none;
    background-color: #f9f9f9;
}

.mobile-second.active {
    display: block;
}

.mobile-second li a {
    padding-left: 40px;
    font-size: 14px;
    border-bottom: 1px solid #eaeaea;
}

/* 底部样式 */
.footer {
    background-color: rgb(34, 40, 42);
    color: #fff;
    padding: 40px 20px;
}

.fsyfooter {
    background-color: rgb(34, 40, 42);
    color: #fff;
    padding: 40px 20px;
    margin-top: 60px;
}



.footer-top {
    display: flex;
    /* flex-wrap: wrap; */
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-column {
    width: 12.5%;
    padding: 0 15px;
    border-left: 1px solid #666;
}

#footer-container {
    width: 100%;
    height: 100%;
}

.footer {
    background: url("../img/dbbg.png") center center no-repeat;
    background-size: cover;

    .footer-logo {
        text-align: center
    }

    .qrcode {
        text-align: center;
        padding: 3rem 0 5rem 0;

        img {
            height: 12rem;
            padding: 0 3rem;
        }
    }

    .footer-column {
        border-left: 1px solid #666;
        width: 12.5%;
        padding: 0 15px;
    }

    .footer-column:last-child {
        border:0;
        width: 50%;
    }
}

.footer-column h3 {
    font-size: 18px;
    padding-bottom: 10px;
    margin-top: -10px;
    color: #fff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-column p {
    margin: 5px 0;
    color: #ccc;
    font-size: 15px;
    line-height: 1.7;
}

.fQRcodeBox {
    text-align: right
}

.fQRcode {
    height: 145px;
    margin-right: 50px;
}

.footer-bottom {
    background: #192124;
    text-align: center;
    border-top: 1px solid #666;
    font-size: 14px;
    color: #fff;
    padding: 20px 0;

    .icp {
        padding: 0 60px 0 50px;
    }

    .ga {
        vertical-align: bottom;
        width: 30px;
    }
}

/* 页面通用内容区域 */
.page-content {
    padding: 40px 0;
}

.page-content h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #666;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    height: 500px;
    /* 匹配参考图高度 */
    overflow: hidden;
    /* scroll-snap-align: start;  */
}

.carousel-inner {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 保持图片比例并铺满 */
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    color: #fff;
}

.carousel-caption h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.carousel-caption p {
    font-size: 24px;
    margin-bottom: 30px;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* 半透明遮罩提升文字可读性 */
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s;
}

.carousel-indicator.active {
    opacity: 1;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.carousel-control {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 新闻中心样式 */
.media-center {
    padding: 60px 0;
    background-color: #e9e9e9;
}

.media-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.media-title::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background-color: #940c11;
    margin-right: 15px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.media-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    transition: transform 0.3s;
}

.media-card:hover {
    transform: translateY(-5px);
    /* hover上浮效果 */
}

.media-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.media-card-content {
    padding: 20px;
}

.media-card-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.media-card-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.media-card-date {
    font-size: 13px;
    color: #999;
}

/* 关于冀钢样式 */
.about-jigang {
    padding: 60px 0;
    background: url('https://picsum.photos/id/1073/1920/600') center/cover no-repeat;
    color: #fff;
    position: relative;
}

.about-jigang::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* 深色遮罩 */
}

.about-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.about-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-desc {
    font-size: 16px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 30px;
}

.about-capacity {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.about-capacity-unit {
    font-size: 24px;
    font-weight: normal;
}

.about-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fff;
    color: #940c11;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.about-btn:hover {
    background-color: #940c11;
    color: #fff;
}

/* 产品中心样式 */
.product-service {
    padding: 60px 0;
    background-color: #fff;
}

.product-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.product-title::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background-color: #940c11;
    margin-right: 15px;
}

.product-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.product-slider-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.product-slide {
    flex: 0 0 100%;
    padding: 0 20px;
}

.product-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.product-slide-desc {
    margin-top: 20px;
    text-align: center;
}

.product-slider-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.product-slider-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product-slider-control.active {
    background-color: #940c11;
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.product-tab {
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding-bottom: 10px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.product-tab.active {
    color: #940c11;
    border-bottom: 2px solid #940c11;
}

/* 响应式：小屏幕适配 */
@media (max-width: 992px) {
    .nav-first {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-second {
        position: static;
        width: 100%;
        transform: none;
        box-shadow: none;
        border-top: 1px solid #eee;
        animation: none;
        padding: 15px 0;
        min-width: auto;
    }

    .nav-second-container {
        flex-direction: column;
    }

    .nav-second-left,
    .nav-second-right {
        flex: 0 0 100%;
        border-right: none;
        padding: 15px 20px;
        margin-bottom: 15px;
    }

    .nav-second-vertical-title {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        display: inline-block;
        margin-bottom: 15px;
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        flex-wrap: wrap;
        gap: 30px;
        margin-bottom: 0;
    }

    .footer-column {
        min-width: 45%;
        margin: 0;border:0 !important;
    }
    .footer-top {
        .footer-column:last-child {
            width: 100%;

            .flex {
                display: block;

                .fQRcodeBox {
                    text-align: center;
                    padding-bottom: 30px;

                }
            }
        }
    }

}

.arrow {
    width: 40px;
    height: 40px;
}

.arrow::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border-top: 3px solid var(--common-color-940c11);
    border-right: 3px solid var(--common-color-940c11);
    -webkit-transform: rotate(45deg)translateY(5px) translateX(5px);
    /*箭头方向可以自由切换角度*/
    transform: rotate(45deg)translateY(5px) translateX(5px);
}

.arrow-right::after {
    -webkit-transform: rotate(45deg)translateY(5px) translateX(5px);
    /*箭头方向可以自由切换角度*/
    transform: rotate(45deg)translateY(5px) translateX(5px);
}

.triangle {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #333;
}

@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: 1fr;
    }

    .carousel-caption h1 {
        font-size: 36px;
    }

    .carousel-caption p {
        font-size: 18px;
    }

    .about-title {
        font-size: 28px;
    }

    .about-capacity {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .header {
        height: 60px;
    }

    .logo img {
        height: 40px;
    }

    .logo-text {
        font-size: 18px;
    }

    .mobile-toggle {
        font-size: 24px;
    }

    .mobile-menu {
        top: 60px;
    }

    .carousel {
        height: 300px;
        /* 小屏下调高度 */
    }

    .carousel-caption h1 {
        font-size: 24px;
    }

    .carousel-caption p {
        font-size: 14px;
    }

    .about-title {
        font-size: 24px;
    }

    .about-capacity {
        font-size: 24px;
    }
}
