body,
h1,
h2,
p,
ul {
    margin: 0;
    padding: 0;
}

#all-container {
    display: flex;
    width: 100%;
    margin: auto;
    justify-content: center;
    gap: 5%;
}


/* 基本页面样式 */

#all-box {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    margin-top: 1em;
    padding: 0 2.5em;
}

#detail-message-container {
    height: 500px;
    position: relative;
    width: 100%;
    background-color: #49b1f5;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#detail-message-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

#detail-message-container h1 {
    color: white;
    position: relative;
    z-index: 1;
    font-size: 28px;
    margin-bottom: 10px;
}

#detail-message-container p {
    color: white;
    position: relative;
    z-index: 1;
    font-size: 16px;
    margin: 5px 0;
}

header {
    background-color: #007bff;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

article,
aside {
    background-color: white;
    padding: 20px 0;
    margin-bottom: 5em;
    border-radius: 10px;
}

aside h3 {
    font-size: 20px;
    color: #007bff;
    margin-bottom: 15px;
}

aside li {
    font-size: 16px;
    margin-bottom: 8px;
}

footer {
    text-align: center;
    font-size: 14px;
    color: #777;
    padding: 20px 0;
}

#CommentCard {
    margin: 20px 0;
    border-radius: 10px;
}
#CommentCardTip{
    color: black;
    font-size: 20px;
    text-align: left;
    font-weight: bold;
}
#submitCommentContainer {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2em 0;
    gap: 5%;
}

#submitComment {
    width: 90%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#submitComment::placeholder {
    color: #999;
}

#subbmit {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#cancelSubmitButton {
    background-color: rgb(255, 0, 0);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#subbmit:hover {
    background-color: #555;
}


/* 评论区样式 */

.article-comment {
    margin-bottom: 10px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    color: #333333;
    font-size: 14px;
    line-height: 1.5;
}

.article-comment:hover {
    background-color: #f0f0f0;
}

.article-comment-detail {
    display: flex;
    align-items: center;
}

.article-comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    border: 2px solid #ddd;
}

.article-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-comment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: baseline;
}

.article-user-name {
    float: left;
    font-weight: bold;
    width: 100%;
}

.article-comment-time {
    float: left;
    font-weight: bold;
}

.article-comment-text {
    margin-top: 20px;
    font-size: 17px;
    word-break: break-all;
}

.article-reply-button {
    cursor: pointer;
    color: #4caf50;
    /* Green color for a cute look */
    margin-left: 10px;
    background-color: #fff;
    border: 2px solid #4caf50;
    border-radius: 5px;
    padding: 5px 10px;
    transition: background-color 0.3s, color 0.3s;
}

.article-reply-button:hover {
    background-color: #4caf50;
    color: #fff;
}

.article-comment-container {
    border-radius: 10px;
    overflow: hidden;
    /* Add a border for better visibility */
    margin-bottom: 20px;
    /* Adjust as needed */
}


/* 给文章类使用的 */
#quillContainer{
    margin-top: 20px;
    white-space:normal
}

#quillContainer p {
    margin: 5px 0;
    line-height: 1.5;
}

#quillContainer img {
    width: 70%;
}

#quillContainer p img {
    display: block;
    margin: 0 auto;
    padding: 30px 0;
}

#quillContainer pre {
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    line-height: 1.5;
}

.good_article_box:hover::before {
    background: transparent;
}

.good_article_box {
    position: relative;
    display: inline-block;
    overflow: hidden;
    margin: 3px;
    width: calc(33.333% - 6px);
    height: 240px;
    background: #000;
    vertical-align: bottom;
    border-radius: 0.5em;
}

.good_article_little_box {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translate(0, -50%);
    text-align: center;
}

.good_article_img {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    transition: all 0.6s, filter 375ms ease-in 0.2s;
    object-fit: cover;
}

.good_article_box:hover .good_article_img {
    opacity: 0.8;
    transform: scale(1.1);
}

.good_article_time,
.good_article_title {
    color: white;
    z-index: 10;
    position: relative;
    padding: 0 1em;
}

#article_about_div {
    box-shadow: 0 0 10px rgb(0 0 0 / 10%);
    background-color: white;
    margin-top: 30px;
    padding: 40px 2.5em;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#article_about_content {
    font-weight: bolder;
}

#user_op {
    background-color: white;
    margin-top: 1em;
    padding: 1em 2.5em;
    display: flex;
    justify-content: space-around;
}

/* 初始样式 */
.op_div {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: 8px;
    font-size: 18px;
    padding: 1em 2em;
    margin: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer; /* 鼠标指针样式为手型 */
}

.op_name {
    margin-left: 1em;
    text-align: center;
    width: 4em;
    font-weight: 700;
}

.child-comment-box{
    padding: 2em;
}

/* 点赞后的样式 */
#like_div.liked {
    background-color: aliceblue;
}
#select_div.liked {
    background-color: cornsilk;
}

.op_div.liked .fa-thumbs-up {
    color: white;
}

.content_catalog{
    display: inline-block;
}

/*网易云音乐外联播放器样式*/
.videoIframe{
    text-align: center;
    margin: 1em;
}

.videoIframe iframe{
    width: 60%;
}
/*end*/

#like_count,#select_count{
    padding: 0.2em;
    font-weight: bolder;
    font-size: 1.2em;
}
 .article-all-div{
     display:flex;
     flex-direction: column;
     width: 60%;
 }
#comment-choose{
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    margin: 1em;
}

#comment-choose {
    display: flex;
    justify-content: space-evenly;
    margin: 1em;
    width: 50%;
}

#submitCommentContainer {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2em 0;
    gap: 5%;
    flex-direction: row;
}

.wangyi-music-loading-overlay {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    display: flex;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    height: 3em !important;
    width: 100%;
    color: #333;
    z-index: 10;
    pointer-events: none;
    align-items: center;
}

#file-box{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.node-file-a {
    width: auto;
    display: block;
    z-index: 3;
    position: relative;
    background: lightblue;
    text-decoration: none !important;
    padding: 1rem;
    border-radius: 1rem;
}
.node-file-box{
    display: flex;
    flex-direction: row;
    text-align: center;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.node-file-box-img{
    height: 3rem;
}
.node-file-box-text{
    color: black;
    font-weight: 700;
    font-size: 1.1rem;
}

.article-detail-box{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: white;
}
.segmentation-line{
    width: .1rem;
    height: 100%;
    background: white;
    z-index: 1;
}
@media (max-width: 768px) {

    #all-box {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        background-color: white;
        margin-top: 1em;
        padding: 0 0.5em;
    }

    #all-container {
        display: flex;
        width: 100%;
        margin: auto;
        justify-content: center;
        gap: 5%;
        flex-direction: column;
    }
    .article-all-div{
        display:flex;
        flex-direction: column;
        width: 100%;
    }
    #user_op {
        background-color: white;
        margin-top: 1em;
        display: flex;
        justify-content: space-around;
        padding: 0;
    }
    .op_div {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        background-color: white;
        border-radius: 8px;
        font-size: 1em;
        padding: 0.5em 0.5em;
        margin: 5px;
        display: flex;
        flex-direction: row;
        align-items: center;
        cursor: pointer;
    }
    #theLink{
        display: flex;
        width: 100%;
        flex-direction: column;
    }
    .good_article_box {
        position: relative;
        display: inline-block;
        overflow: hidden;
        margin: 3px;
        width: 100%;
        height: 240px;
        background: #000;
        vertical-align: bottom;
        border-radius: 0.5em;
    }
    #submitCommentContainer {
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 2em 0;
        gap: 5%;
        flex-direction: column;
    }

    #comment-choose{
        display: flex;
        justify-content: space-evenly;
        width: 100%;
        margin: 1em;
    }
    #quillContainer{
        margin-top: 0;
        white-space: normal;
        font-size: 0.75rem;
    }
    #detail-message-container {
        height: 400px;
    }
    .article-comment-container {
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 1em;
    }
    .article-comment-text {
        margin-top: 1em;
        font-size: 0.8rem;
        word-break: break-all;
    }
    .article-comment {
        font-size: 0.8rem;
    }
    .child-comment-box {
        padding: 0.5em;
    }

    .videoIframe iframe{
        width: 100%;
    }

}
