/* Reset some default styles */

body,
h1,
h2,
p,
ul,
li {
    margin: 0;
    padding: 0;
}

body {
    overflow: hidden; /* 禁止页面滚动 */
}
/* Basic page styles */

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 36px;
    margin: 0;
}

main {
    padding: 20px;
    margin: 0 auto;
}

article {
    margin: 20px 0;
    background-color: white;
    color: black;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.article-content-div-left {
    display: flex;
    flex-direction: row-reverse;
    height: 18em;
    gap: 5%;
}
.article-content-div-right {
    display: flex;
    flex-direction: row;
    height: 18em;
    gap: 5%;
}
.article-content-left {
    width: 45%;
    margin: 2em 0;
    margin-right: 2em;
    text-align: left;
}
.article-content-right{
    width: 45%;
    margin: 2em 0;
    margin-left: 2em;
    text-align: left;
}
h2 {
    font-size: 25px;
    margin: 10px 0;
}



.article-href {
    text-decoration: none;
    color: #333;
}

.home-article-img {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    -webkit-transition: filter 375ms ease-in 0.2s, -webkit-transform 0.6s;
    -moz-transition: filter 375ms ease-in 0.2s, -moz-transform 0.6s;
    -o-transition: filter 375ms ease-in 0.2s, -o-transform 0.6s;
    -ms-transition: filter 375ms ease-in 0.2s, -ms-transform 0.6s;
    transition: filter 375ms ease-in 0.2s, transform 0.6s;
    object-fit: cover;
}

.article-href:hover .article-image {
    transform: scale(1.1);
}



p {
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere
}


.article_time,
.article_label,
.article_writer{
    color: #858585;
    font-size: 85%;
}
.article-about{
    display: flex;
    flex-direction: column;
}


#all-container {
    display: flex;
    flex: 1 auto;
    align-items: flex-start;
    flex-direction: row;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    margin-top: 40px;
}

#articles-container {
    display: inline-block;
    max-width: 900px;
    min-width: 900px;
}



#itemMenu {
    display: flex;
    width: 100%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgb(0 0 0 / 10%);
}

#PicMenu {
    transition: transform 0.5s ease-in-out;
    overflow: hidden;
    width: 50%;
    height: 250px;
}

#ArticleMenu {
    transition: transform 0.5s ease-in-out;
    overflow: hidden;
    height: 250px;
    padding: 0 1em;
}

.slide {
    width: 100%;
    transition: transform 0.5s ease;
    text-align: center;
}

.articleDiv {
    transition: transform 0.5s ease;
}

.slideImg {
    width: 100%;
    height: 250px;
    transition: filter 375ms ease-in 0.2s, transform 0.6s;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 0.5em;
}

.articleDiv {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.articleTime{
    font-size: 1em;
    padding: 0.5em 0.1em;
    width: 100%;
    text-align: center;
}
.articleName{
    font-size: 1.5em;
    font-weight: bold;
    padding: 0.5em 0.1em;
    width: 100%;
    text-align: center;
}
.articleAbout{
    line-height: 1.3;
    padding: 0.5em 0.1em;
    width: 100%;
    text-align: left;
}
.top-icon {
    position: absolute;
    top: -1em;
    right: -1em;
    width: 6em;
    height: 6em;
    z-index: 1;
}
.indicators {
    display: flex;
    justify-content: center;
    margin: 1em;
}

.indicator {
    width: 1.5em;
    height: 0.8em;
    border-radius: 1em;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
}
.slide-img-box{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    position: relative;
}
.indicator.active {
    background: #007bff; /* 激活状态的颜色 */
}
@media (max-width: 768px) {
    main {
        padding: 0;
        margin: 0 auto;
    }

    #all-container {
        display: flex;
        flex: 1 auto;
        align-items: flex-start;
        flex-direction: column;
        margin: 0 auto;
        max-width: 768px;
        width: 100%;
        margin-top: 40px;

    }
    #articles-container {
        display: inline-block;
        max-width: 768px;
        min-width: 0;
        padding: 0.8em;
    }


    .article-about{
        display: flex;
        flex-direction: row;
        gap: 1%;
        font-size: 0.8rem;
        justify-content: space-evenly;
    }


    .article-content-div-left,
    .article-content-div-right{
        display: flex;
        flex-direction: column-reverse;
        height: 22em;
        gap: 0%;
    }
    .article-content-left h2,
    .article-content-right h2 {
        flex: 1; /* 使 h2 元素占据可用空间 */
        font-size: 1.2em;
        margin: 0.5em 0;
        /* 可以添加其他样式以实现所需的外观 */
    }
    .article-content-right,
    .article-content-left{
        width: 100%;
        margin: 0;
        margin-right: 0;
        text-align: center;
    }
    .home-article-img {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: flex-end;
        overflow: hidden;
    }
    #itemMenu {
        display: flex;
        width: 100%;
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 0 10px rgb(0 0 0 / 10%);
        flex-direction: column;
    }
    #PicMenu {
        transition: transform 0.5s ease-in-out;
        overflow: hidden;
        width: 100%;
        height: 250px;
    }
    #ArticleMenu {
        transition: transform 0.5s ease-in-out;
        overflow: hidden;
        height: 200px;
        padding: 0 1em;
    }
    .articleTime {
        font-size: 1em;
        padding: 0.5em 0.1em;
        width: 100%;
        font-weight: 700;
        text-align: center;
        color: #4c4948;
    }
    .articleName {
        font-size: 1.2em;
        font-weight: bold;
        padding: 0.1em 0.1em;
        width: 100%;
        text-align: center;
        color: #4c4948;
    }
    .articleAbout {
        line-height: 1.3;
        padding: 0.3em 0.1em;
        width: 100%;
        text-align: center;
        font-weight: 700;
    }

    .slideImg {
        width: 100%;
        height: 250px;
        transition: filter 375ms ease-in 0.2s, transform 0.6s;
        object-fit: cover;
        flex-shrink: 0;
        border-radius: 0.5em;
    }

    .article-information-content{
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: anywhere;
        padding: 0.3em;
        max-height: 3em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
        overflow: hidden;
    }
}