* {
    margin: 0;
    padding: 0;
}
.box {
    background: #ffffff;
}

/* 主要内容 */
main {
    box-sizing: border-box;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

main section {
    display: flex;
    align-items: center;
    justify-content: center;
}

main section h2 {
    /* width: 60%; */
    font-family: Helvetica, Helvetica;
    font-weight: bold;
    font-size: 40px;
    color: #3f2f2f;
    line-height: 60px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    margin: 60px 0;
}

/* Blog Banner */
.blog-banner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 60px 20px;
    box-sizing: border-box;
    /* background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%); */
}

.blog-banner h1 {
    font-family: Helvetica;
    font-size: 36px;
    color: #333333;
    line-height: 46px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-align: center;
}

.blog-banner .subtitle {
    font-family: Helvetica;
    font-size: 18px;
    color: #555555;
    line-height: 28px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    width: 70%;
    max-width: 800px;
}

/* Blog Container */
.blog-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    /* margin: 40px auto; */
    padding: 0 20px;
    box-sizing: border-box;
}

.blog-posts {
    flex: 2;
    margin-right: 30px;
}

.blog-post {
    display: flex;
    /* flex-direction: column; */
    justify-content: flex-end;
    height: 367px;
    background: #ffffff;
    border-radius: 10px;
    /* overflow: hidden; */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 90px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.post-image {
    width: 531px;
    height: 378px;
    /* background: #d8d8d8; */
    border-radius: 8px;
    position: absolute;
    top: 25px;
    left: -120px;
    border-radius: 8px;
}

.post-image img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    transition: transform 0.5s ease;
    border-radius: 8px;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
    width: 60%;
}

.post-title {
    font-family: Helvetica, Helvetica;
    font-weight: bold;
    font-size: 24px;
    color: #333333;
    line-height: 34px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2;
}

.post-excerpt {
    font-family: Helvetica;
    font-size: 16px;
    color: #555555;
    line-height: 30px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 5;
}

@media (max-width: 1450px) {
    .post-content {
        padding: 25px;
    }
}

@media (min-width: 769px) and (max-width: 1400px) {
    .blog-post {
        padding-left: 400px;
    }

    .post-content {
        width: 90%;
    }

    .post-image {
        left: 0;
        top: 0;
        width: 380px;
        height: 280px;
    }
}

@media (max-width: 1200px) {
    .blog-container {
        flex-direction: column;
    }

    .blog-posts {
        margin-right: 0;
        margin-bottom: 30px;
    }

    .blog-sidebar {
        width: 100%;
    }
}

/* 响应式适配：小屏幕下堆叠排列 */
@media (max-width: 768px) {
    /* Header响应式优化 */
    header {
        padding: 0 15px;
        height: auto;
        min-height: 70px;
    }

    header .left img {
        width: 50px;
        height: 40px;
        margin-right: 10px;
    }

    header .left h1 {
        font-size: 14px;
        line-height: 16px;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    header .right .phone {
        margin-right: 10px;
    }

    header .right .phone img {
        width: 18px;
        height: 18px;
        margin-right: 5px;
    }

    header .right .phone p {
        font-size: 12px;
        line-height: 14px;
    }

    header .right .language img {
        width: 18px;
        height: 18px;
        margin-right: 5px;
    }

    header .right .language p {
        width: 30px;
        height: 25px;
        font-size: 12px;
        line-height: 20px;
        margin-right: 5px;
    }

    /* Nav响应式优化 */
    nav {
        height: auto;
        padding: 10px 0;
    }

    nav ul {
        width: 95%;
        flex-wrap: wrap;
    }

    nav ul li a {
        margin-right: 15px;
        margin-bottom: 5px;
        font-size: 14px;
    }

    /* Blog Banner响应式优化 */
    .blog-banner {
        padding: 40px 15px;
    }

    .blog-banner h1 {
        font-size: 28px;
        line-height: 36px;
    }

    .blog-banner .subtitle {
        font-size: 16px;
        line-height: 24px;
        width: 90%;
    }

    /* Blog Container响应式优化 */
    .blog-container {
        flex-direction: column;
        padding: 0 15px;
    }

    .blog-posts {
        margin-right: 0;
    }

    .blog-post {
        margin-bottom: 20px;
        flex-direction: column; /* 小屏幕下改为上下布局 */
        min-height: auto;
        position: static; /* 小屏幕下去掉相对定位 */
        height: auto;
        justify-content: flex-start;
    }

    .post-image {
        flex: 0 0 200px; /* 小屏幕下固定高度 */
        width: 100%;
        position: static; /* 小屏幕下去掉绝对定位 */
        height: 200px;
        border-radius: 8px;
    }

    .post-content {
        flex: 1;
        padding: 20px;
        width: 100%;
        display: block;
    }

    .post-title {
        font-size: 20px;
        line-height: 28px;
        -webkit-line-clamp: 1;
    }

    .post-excerpt {
        font-size: 15px;
        line-height: 22px;
        -webkit-line-clamp: 3;
    }

    /* Explore-box响应式优化 - 中等屏幕 */
    .explore-box {
        padding: 20px 40px;
    }

    .explore-box h2 {
        font-size: 20px;
        margin-bottom: 30px;
    }

    /* Footer响应式优化 */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        margin-bottom: 20px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 500px) {
    header .left h1 {
        max-width: 120px;
        font-size: 12px;
    }

    header .right .phone {
        display: none; /* 在极小屏幕隐藏电话号码 */
    }

    nav ul {
        width: 100%;
        justify-content: space-around;
    }

    nav ul li a {
        margin-right: 5px;
        font-size: 12px;
    }

    /* Blog Banner响应式优化 - 小屏幕 */
    .blog-banner {
        padding: 30px 10px;
    }

    .blog-banner h1 {
        font-size: 24px;
        line-height: 32px;
    }

    .blog-banner .subtitle {
        font-size: 15px;
        line-height: 22px;
        width: 95%;
    }

    /* Blog Container响应式优化 - 小屏幕 */
    .blog-container {
        padding: 0 10px;
    }

    .blog-post {
        flex-direction: column; /* 小屏幕下保持上下布局 */
        position: static; /* 小屏幕下去掉相对定位 */
        height: auto;
        justify-content: flex-start;
    }

    .post-image {
        flex: 0 0 180px; /* 更小屏幕下减小图片高度 */
        width: 100%;
        position: static; /* 小屏幕下去掉绝对定位 */
        height: 180px;
        border-radius: 8px;
    }

    .post-content {
        padding: 15px;
        width: 100%;
        display: block;
    }

    .post-title {
        font-size: 18px;
        line-height: 26px;
    }

    .post-excerpt {
        font-size: 14px;
        line-height: 20px;
        -webkit-line-clamp: 3;
    }

    .sidebar-widget {
        padding: 20px;
    }
}

/* 极小屏幕适配 */
@media (max-width: 320px) {
    /* Blog Banner响应式优化 - 极小屏幕 */
    .blog-banner {
        padding: 20px 8px;
    }

    .blog-banner h1 {
        font-size: 20px;
        line-height: 28px;
    }

    .blog-banner .subtitle {
        font-size: 14px;
        line-height: 20px;
        width: 98%;
    }

    /* Blog Container响应式优化 - 极小屏幕 */
    .blog-container {
        padding: 0 8px;
    }

    .blog-post {
        flex-direction: column; /* 极小屏幕下保持上下布局 */
        position: static; /* 极小屏幕下去掉相对定位 */
        height: auto;
        justify-content: flex-start;
    }

    .post-image {
        flex: 0 0 150px; /* 极小屏幕下进一步减小图片高度 */
        width: 100%;
        position: static; /* 极小屏幕下去掉绝对定位 */
        height: 150px;
        border-radius: 8px;
    }

    .post-content {
        padding: 12px;
        width: 100%;
        display: block;
    }

    .post-title {
        font-size: 16px;
        line-height: 24px;
    }

    .post-excerpt {
        font-size: 13px;
        line-height: 18px;
    }

    .sidebar-widget {
        padding: 15px;
    }
}
