@import "base.css";

.color-red {
    color: #c00000;
}

.color-red-dark {
    color: #bf0000;
}

.color-white {
    color: #fff;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* padding: 15px 20px; */
    background-color: rgba(0, 0, 0, 0.1);
    height: 70px;
    z-index: 1000;
    /* display: flex;
    justify-content: space-between;
    align-items: center; */
}

.logo {
    width: 70px;
    height: 70px;
}



/* 横幅样式 */
.banner {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('../images/banner_1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    /* padding: 20px; */
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 50px;
}

.banner .company-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    height: 60px;
    z-index: 3;
}

.banner h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.banner h2 {
    font-size: 1.8rem;
    background: #c00000;
    color: white;
    padding: 4px 80px;
    margin: 20px 0;
    display: inline-block;
}

/* 小白色上指三角形 */
.triangle-up-small {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 16px solid #fff;
}


.triangle-1 {
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 26px solid #000;
}

.triangle-2 {
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-bottom: 38px solid #000;
    transform: rotate(90deg);
}


/* 港口图片展示区样式 */
.port-gallery {
    width: 100%;
    padding: 50px 20px;
    background-color: #f5f5f5;
    box-sizing: border-box;
}

.main-image {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-main {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-main:hover {
    transform: scale(1.02);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.gallery-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* 相关服务部分样式 */
.related-services {
    width: 100%;
    padding: 60px 20px;
    background-color: #ffffff;
    box-sizing: border-box;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 30px; */
    padding-bottom: 15px;
    /* border-bottom: 2px solid #c00000; */
}

.services-header h2 {
    font-size: 2.2rem;
    font-weight: bold;
    color: #c00000;
    margin: 0;
}

.services-header .subtitle {
    font-size: 1.2rem;
    font-weight: bold;

}

.services-logo {
    height: 80px;
}

/* 主服务图片 */
.main-service-image {
    width: 100%;
    margin-bottom: 20px;
}

.main-service-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 服务布局 */
.services-layout {
    display: flex;
    gap: 20px;
    flex-direction: row;
}

/* 服务图片网格 */
.service-images {
    display: grid;
    /* grid-template-columns: repeat(4, 1fr); */
    gap: 10px;
    /* 设置网格或弹性布局中子项之间的间距为 10 像素 */
    width: 60%;
}

.service-image-item {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-image-item:hover {
    transform: scale(1.05);
}

/* 服务信息 */
.services-info {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    /* gap: 20px; */
}

.service-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    width: 100%;
    padding-left: 20%;
    margin-bottom: 40px;
}

.service-number {
    background-color: hsl(0, 100%, 38%);
    color: #fff;
    /* padding: 8px 16px; */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    font-weight: bold;
    font-size: 1rem;
    margin-right: 10px;
    margin-bottom: 10px;
}

.service-number-3 {
    background-color: rgba(192, 0, 0, 0.3);
}

.service-number-6 {
    background-color: rgba(192, 0, 0, 0.6);
}

.service-number-8 {
    background-color: rgba(192, 0, 0, 0.8);
}

.service-number-10 {
    background-color: rgba(192, 0, 0, 1);
}

.service-block h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 5px 0;
}

.service-block p {
    font-size: 0.9rem;
    margin: 0;
    font-weight: bold;
}

/* 公司简介部分样式 */
.company-profile {
    width: 100%;
    padding: 60px 20px;
    background-color: #fff;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #c00000;
}

.profile-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0;
    position: relative;
}

.profile-subtitle {
    font-size: 1.2rem;
    margin-left: 20px;
    font-weight: normal;
}

.profile-logo {
    height: 80px;
}

.profile-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.profile-text {
    flex: 1;
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
}

.profile-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.profile-image {
    flex: 0 0 400px;
    position: relative;
    background: linear-gradient(to top, #4c4c4c, #f6f8f8);
}

.profile-img {
    width: 100%;
    height: auto;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-image-text {
    margin-top: -8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* .section-15 {
    background-image: url('../images/section15.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
} */

.footer {
    background-image: url('../images/section16_1.jpg');
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-thumb {
        height: 180px;
    }

    .profile-content {
        flex-direction: column;
        gap: 30px;
    }

    .profile-image {
        flex: none;
        max-width: 500px;
        margin: 0 auto;
    }


    .service-images,
    .services-info {
        width: 100%;
    }

    .service-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .banner h1 {
        font-size: 2rem;
    }

    .banner h2 {
        font-size: 1.4rem;
        padding: 8px 20px;
    }

    .values {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .value-item {
        font-size: 0.9rem;
    }

    .port-gallery {
        padding: 30px 15px;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-thumb {
        height: 150px;
    }

    .company-profile {
        padding: 40px 15px;
    }

    .profile-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .profile-title {
        font-size: 1.8rem;
    }

    .profile-subtitle {
        font-size: 1rem;
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }

    .profile-logo {
        height: 60px;
    }

    .profile-image {
        max-width: 100%;
    }

    .related-services {
        padding: 40px 15px;
    }

    .services-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .services-header h2 {
        font-size: 1.8rem;
    }

    .services-header .subtitle {
        font-size: 1rem;
        display: block;
        margin-top: 5px;
    }

    .services-logo {
        height: 60px;
    }

    .service-image-item {
        height: 120px;
    }

    .service-block {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .banner .company-logo {
        height: 40px;
        top: 15px;
        right: 15px;
    }

    .banner h1 {
        font-size: 1.5rem;
    }

    .banner h2 {
        font-size: 1.2rem;
        padding: 6px 15px;
    }

    .pdf-link {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .thumbnail-grid {
        grid-template-columns: 1fr;
    }

    .gallery-thumb {
        height: 180px;
    }

    .company-profile {
        padding: 30px 10px;
    }

    .profile-title {
        font-size: 1.6rem;
    }

    .profile-subtitle {
        font-size: 0.9rem;
    }

    .profile-logo {
        height: 50px;
    }

    .profile-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .profile-image-text {
        font-size: 0.85rem;
        padding: 12px;
    }

    .related-services {
        padding: 30px 10px;
    }

    .services-header h2 {
        font-size: 1.6rem;
    }

    .services-header .subtitle {
        font-size: 0.9rem;
    }

    .services-logo {
        height: 50px;
    }

    .service-images {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-image-item {
        height: 100px;
    }

    .service-number {
        font-size: 0.9rem;
        /* padding: 6px 12px; */
    }

    .service-block h3 {
        font-size: 1rem;
    }

    .service-block p {
        font-size: 0.85rem;
    }
}