/* PC端样式 */
@media (min-width: 960px) {
    .primary {
        margin: auto;
        max-width: 90vw;
        width: 1200px;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Merriweather', serif;
        font-size: 1rem;
        font-weight: 100;
    }

    .nav-links {
        display: flex;
        gap: 20px;
    }

    .nav-links a {
        text-decoration: none;
        color: #000;
        font-size: 16px;
        font-style: italic;
        font-weight: 400;
    }

    .header-left a {
        text-decoration: none;
        color: #000000;
        font-size: 16px;
        font-style: italic;
        font-weight: 700;
    }

    .header-left .imgs {
        width: 25px;
        height: 25px;
        margin-right: 10px;
    }

    .header-left img {
        width: 100%;
        height: 100%;
    }

    .header-right a {
        text-decoration: none;
        color: #000000;
        font-size: 14px;
        font-style: italic;
        font-weight: 500;
    }

    .header-left {
        display: flex;
        align-items: center;
        /* flex-grow: 1; */
        justify-content: flex-start;
        /* 将内容挨着左边 */
    }

    .header-right {
        display: flex;
        align-items: center;
    }

    header {
        flex-direction: row;
        /* 保持水平排列 */
        justify-content: space-between;
        /* 左右两边对齐 */
        align-items: center;
    }

    .nav-links {
        display: none;
    }

    .nav-links a {
        font-size: 14px;
    }

    .header-right {
        margin-left: 20px;
    }

    .logo h1 {
        font-size: 20px;
        /* 调整Logo字体大小 */
        color: black;
    }

    h1 {
        font-family: 'Oswald', sans-serif;
        font-size: 48px;
        font-weight: 500;
        text-transform: uppercase;
    }

    .site {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        margin: 0 auto;
    }

    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #ddd;
        padding: 16px 0px;
    }

    .header-left {
        display: flex;
        align-items: center;
    }

    .menu-icon {
        font-size: 1.5rem;
        padding: 10px;
        cursor: pointer;
        background-color: #ffffff;
        color: #000000;
    }

    .nav-links {
        display: flex;
        gap: 30px;
    }

    .nav-links a {
        text-decoration: none;
        color: #000000;
        font-size: 14px;
        font-style: italic;
        font-weight: 500;
    }

    .header-right a {
        text-decoration: none;
        color: #000000;
        font-size: 14px;
        font-style: italic;
        font-weight: 500;
    }

    .header-left a {
        text-decoration: none;
        color: #000000;
        font-size: 16px;
        font-style: italic;
        font-weight: 700;
    }

    .header-left .imgs {
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }

    .header-left img {
        width: 100%;
        height: 100%;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .banner {
        height: 500px;
        background-color: #000000;
        display: flex;
    }

    .banner_box {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        color: white;
        padding: 20px;
    }

    .banner_box .title {
        font-size: 32px;
        margin-bottom: 10px;
        font-weight: bold;
    }

    .banner_box .description {
        font-size: 18px;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .banner_box .author {
        font-size: 16px;
        margin-bottom: 20px;
        font-style: italic;
    }

    .banner_box .cta_button {
        background-color: #CC0000;
        color: white;
        font-size: 16px;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .banner_box .cta_button:hover {
        background-color: #CC0000;
    }

    .banner_img {
        width: 50%;
        height: 100%;
    }

    .banner_img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .image-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 45px;
        padding: 50px 0px;
    }

    .box-item a{
        color: #000;
        text-decoration: none;
    }

    .image-item {
        position: relative;
        width: calc(33.33% - 30px);
        height: 280px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .image-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: white;
        box-sizing: border-box;
        padding: 10px;
    }

    /* 标题样式 */
    .title {
        font-size: 18px;
        font-weight: bold;
        margin: 5px 0;
    }

    /* 描述文本样式 */
    .description {
        font-size: 14px;
        margin: 5px 0;
    }

    /* 作者样式 */
    .author {
        font-size: 12px;
        font-style: italic;
        margin: 5px 0;
    }

    .text-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        padding: 0px 0px 10px 0px;
    }

    .text-item {
        width: calc(25% - 20px);
        height: 270px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 10px;
        box-sizing: border-box;
    }

    .text-item a {
        color: #000;
        text-decoration: none;
    }

    .text-title {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        /* 限制显示三行 */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .text-author {
        font-size: 16px;
        font-style: italic;
        margin-bottom: 10px;
    }

    .text-description {
        font-size: 14px;
        line-height: 1.5;
    }

    .button-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100px;
    }

    .cta-button {
        background-color: #CC0000;
        color: white;
        font-size: 16px;
        padding: 10px 60px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .cta-button:hover {
        background-color: #990000;
    }

    .box-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        padding: 20px 0px 10px 0px;
    }

    .box-item {
        width: calc(33.33% - 20px);
        /* height: 350px; */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .itemImg {
        flex-grow: 0;
        flex-shrink: 0;
        width: 100%;
        background-color: rgb(3, 90, 109);
        display: block;
        overflow: hidden;
        position: relative;
        padding-top: 55.56%;
    }

    .itemImg img {
        position: absolute;
        height: 100%;
        width: 100%;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        color: transparent;
        object-fit: cover;
    }

    .box-title {
        font-size: 20px;
        font-weight: bold;
        margin-top: 10px;
    }

    .box-description {
        font-size: 14px;
        line-height: 1.5;
        margin: 10px 0;
    }

    .box-author {
        font-size: 14px;
        font-style: italic;
        color: #515151;
    }

    .footer {
        align-items: center;
        width: 100%;
        padding: 36px 90px;
        background-color: #F7F7F7;
    }

    .footer_box {
        font-family: 'Oswald', sans-serif;
        display: flex;
        justify-content: space-between;
        margin: 0 auto;
        max-width: 1360px;
        width: 100%;
        padding-top: 10px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .footer .copyright {
        font-size: 18px;
        color: #565656;
    }

    .footer .links {
        display: flex;
        gap: 20px;
    }

    .footer .links a {
        color: #565656;
        text-decoration: none;
        font-size: 14px;
        text-transform: uppercase;
        transition: color 0.3s ease;
    }

    .footer .links a:hover {
        color: #565656;
    }

}

/* 移动端样式 */
@media (max-width: 960px) {
    a {
        text-decoration: none;
    }

    body {
        font-family: 'Georgia', serif;
        font-size: 1rem;
        font-weight: 100;
        margin: 0;
        /* 移除默认的外边距 */
        padding: 0;
        /* 移除默认的内边距 */
        border: none;
        /* 移除边框 */
    }

    /* 全局样式 */
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        background-color: #fff;
        border-bottom: 1px solid #ddd;
        flex-wrap: nowrap;
        /* 确保内容不换行 */
    }

    .nav-links {
        display: flex;
        gap: 20px;
    }

    .nav-links a {
        text-decoration: none;
        color: #000;
        font-size: 16px;
        font-style: italic;
        font-weight: 400;
    }

    .text-item a{
        color: #000 !important;
    }

    .box-title a{
        color: #000 !important;
    }

    .header-left a {
        text-decoration: none;
        color: #000000;
        font-size: 16px;
        font-style: italic;
        font-weight: 700;
    }

    .header-left .imgs {
        width: 25px;
        height: 25px;
        margin-right: 10px;
    }

    .header-left img {
        width: 100%;
        height: 100%;
    }

    .header-right a {
        text-decoration: none;
        color: #000000;
        font-size: 14px;
        font-style: italic;
        font-weight: 500;
    }

    .header-left {
        display: flex;
        align-items: center;
        flex-grow: 1;
        justify-content: flex-start;
        /* 将内容挨着左边 */
    }

    .header-right {
        display: flex;
        align-items: center;
    }

    header {
        flex-direction: row;
        /* 保持水平排列 */
        justify-content: space-between;
        /* 左右两边对齐 */
        align-items: center;
    }

    .nav-links {
        display: none;
    }

    .nav-links a {
        font-size: 14px;
    }

    .header-right {
        margin-left: 20px;
    }

    .logo h1 {
        font-size: 20px;
        /* 调整Logo字体大小 */
        color: black;
    }

    /* Banner */
    #banner {
        display: flex;
        flex-direction: column;
        /* 使banner的子元素垂直排列 */
        background-color: #000000;
        /* 设置背景为黑色 */
        color: white;
        /* 设置字体颜色为白色 */
    }

    /* Banner 图片部分 */
    .banner_img {
        width: 100%;
        /* 图片占满宽度 */
        height: auto;
        /* 高度自适应 */
    }

    .banner_img img {
        width: 100%;
        /* 图片占满容器宽度 */
        height: auto;
        /* 保持图片比例 */
        object-fit: cover;
        /* 保证图片按比例裁剪 */
    }

    /* Banner 内容部分 */
    .banner_box {
        display: flex;
        flex-direction: column;
        /* 文本内容从上到下排列 */
        justify-content: center;
        align-items: center;
        /* 内容居中 */
        padding: 20px;
        text-align: center;
        /* 文本居中对齐 */
        background-color: #000000;
        /* 确保背景颜色为黑色 */
    }

    .title {
        font-size: 32px;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .description {
        font-size: 18px;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .author {
        font-size: 16px;
        margin-bottom: 20px;
        font-style: italic;
    }

    .cta_button {
        background-color: #CC0000;
        /* 红色背景 */
        color: white;
        /* 白色文字 */
        font-size: 16px;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .cta_button:hover {
        background-color: #990000;
        /* 鼠标悬停时的红色 */
    }

    /* 图片网格样式 */
    .image-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        padding: 20px 0px 0px 0px;
    }

    .image-item {
        position: relative;
        width: 100%;
        /* 设置最大宽度 */
        height: 220px;
        /* 长方形图片的高度 */
        overflow: hidden;
        box-sizing: border-box;
    }

    .image-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* 保证图片按比例裁剪，填充整个容器 */
    }

    .image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        /* 半透明黑色背景，增加图片的深色效果 */
        color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* 垂直居中 */
        align-items: center;
        /* 水平居中 */
        padding: 10px;
        box-sizing: border-box;
        text-align: center;
    }

    .image-overlay .title {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .image-overlay .description {
        font-size: 14px;
        margin-bottom: 10px;
        line-height: 1.5;
    }

    .image-overlay .author {
        font-size: 12px;
        font-style: italic;
    }

    .text-item {
        padding: 10px 20px 0px 20px;
    }

    .button-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .cta-button {
        background-color: #cc0000;
        /* 红色背景 */
        color: white;
        /* 白色字体 */
        font-size: 18px;
        /* 字体大小 */
        padding: 6px 40px;
        /* 按钮内边距 */
        border: none;
        /* 去掉按钮的默认边框 */
        border-radius: 5px;
        /* 设置圆角 */
        cursor: pointer;
        /* 鼠标悬停时显示为手指 */
        transition: background-color 0.3s ease;
        /* 按钮颜色过渡效果 */
    }

    .cta-button:hover {
        background-color: #b30000;
        /* 悬停时按钮颜色稍微变暗 */
    }

    .text-title {
        font-weight: 100 !important;
    }

    /* Box grid container */
    .box-grid {
        display: flex;
        flex-direction: column;
        padding: 20px 0px 20px 0px;
        width: 100%;
    }

    /* Individual box item */
    .box-item {
        width: 100%;
        /* Each item takes full width on mobile */
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        padding: 10px 0px;
    }

    .itemImg {
        width: 100%;
        height: 230px;
        object-fit: cover;
    }

    .itemImg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Title styling */
    .box-title {
        font-size: 18px;
        font-weight: bold;
        margin: 10px 0;
        padding: 0px 20px;
        color: #000;
    }

    /* Description styling */
    .box-description {
        font-size: 14px;
        color: #666;
        padding: 0px 20px;
        margin: 0px !important;
    }

    /* Author styling */
    .box-author {
        font-size: 12px;
        color: #999;
        padding: 0px 20px;
    }

    .footer {
        display: flex;
        justify-content: center;
        /* 水平居中整个 footer_box */
        width: 100%;
        font: 700 13px / 19px "Univers W01", "Helvetica Neue", Helvetica, Arial, sans-serif;
        padding-top: 45px;
        padding-bottom: 60px;
        background-color: #222;
        text-transform: uppercase;
        margin-top: 40px;
    }

    .footer_box {
        display: flex;
        flex-direction: column;
        /* 垂直排列 */
        align-items: center;
        /* 水平居中 */
        gap: 20px;
    }

    .footer .links {
        order: 1;
        /* 将 links 放在第一位 */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer .copyright {
        order: 2;
        /* 将 copyright 放在第二位 */
        font-size: 14px;
        color: white;
        margin-top: 20px;
    }

    .footer .links a {
        color: #ccc;
        text-decoration: none;
        font-size: 12px;
        text-transform: uppercase;
        transition: color 0.3s ease;
    }

    .footer .links a:hover {
        color: #fff;
    }
}

@media (min-width: 768px) {
    .site {
        /* max-width: 2000px; */
        /* 设置最大宽度，防止内容过宽 */
        margin: 0 auto;
        /* 居中对齐 */
    }

    .primary {
        margin: auto;
        max-width: 90vw;
        width: 1200px;
    }

    header {
        margin: auto;
        max-width: 90vw;
        width: 1200px;
    }
}