/* Article Page Styles */
.banner-container {
    color: white;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
}

.banner-container h2 {
    font-size: 3rem;
    font-weight: bold;
}

.banner-container p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-top: 20px;
}

#container.section {
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
}

.article-panel {
    background: #FDFDFD;
    border: 1px solid #e3e3e3;
    margin-top: 20px;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.3);
    padding-bottom: 40px; /* Keep bottom padding */
    position: relative; /* For positioning the close button */
}

/* Style for breadcrumb inside the panel */
.article-panel .header {
    padding: 20px 40px;
    margin-bottom: 30px;
    position: relative;
}

.article-panel .header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e3e3e3;
}

.article-panel h1 {
    text-align: left;
    font-size: 28px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #333;
    padding: 0 40px; /* Add padding here */
}

.meta-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Align items to the bottom */
    color: #999;
    font-size: 14px;
    padding: 0 40px;
    position: relative;
}

.meta-info::after {
    content: '';
    position: absolute;
    bottom: -12px; /* Position on top of the border */
    left: 40px; /* Align with padding */
    width: 120px;
    height: 3px;
    background-color: #BD2B2E;
}

.meta-left {
    display: flex;
    flex-direction: column;
}

.meta-left .date {
    margin-top: 8px; /* Add space between source and date */
}

.font-controls span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 24px;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 5px;
    user-select: none; /* 防止文本被选中 */
    font-size: 14px; /* 统一字体大小 */
    line-height: 1; /* 确保行高不会影响垂直对齐 */
}

.font-controls span:hover {
    background-color: #f0f0f0;
}

.article-content {
    font-size: 16px; /* 默认字体大小 */
    line-height: 1.8;
    color: #333;
    padding: 0 40px; /* Add padding here */
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* Close Button - Centered on the top-right corner of the panel */
#toClose {
    position: fixed;
    margin-left: 1570px;
    width: 60px;
    height: 60px;
    background-color: #fff;
    color: #BD2B2E;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

#toClose:hover {
    transform: scale(1.1);
}
