/* Overlay 样式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

/* 弹窗样式 */
.popup {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 9999;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    display: none;
    max-width: 900px;
    width: 90%;
    max-height: 90%;
    overflow: hidden;
}

.popup-content-container {
    display: flex;
    flex-direction: column;
    max-height: calc(100% - 40px);
    overflow-y: auto;
}

.popup.pc .popup-content-container {
    flex-direction: row;
}

.popup.mobile .popup-content-container {
    flex-direction: column;
}

.popup img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.popup iframe {
    width: 100%;
    height: 650px;
    border: none;
}

.popup .checkbox-container {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup .checkbox-container input {
    margin-right: 10px;
}

.popup .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    position: relative;
    background: #fff;
    border-bottom: 0px solid #ddd;
}

.popup .checkbox-container {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 14px;
}

.popup .checkbox-container input {
    margin-right: 5px;
}

/* 针对移动端调整布局 */
@media screen and (max-width: 768px) {
    .popup-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .popup .checkbox-container {
        margin-top: 10px;
    }

    .popup {
        top: 15%;
        width: 95%;
    }

    .popup iframe {
        height: 800px;
    }
}

/* 新闻样式 */
.related-news-container {
    all: unset;
    display: block;
    width: 100%;
    margin: 20px auto;
    padding: 20px 0;
    overflow: hidden;
}

.related-news-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding: 0 10px;
}

.news-item {
    width: calc(25% - 20px);
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    margin: 0;
    padding: 0;
}

.news-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    margin: 0;
    padding: 0;
    display: block;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.news-title {
    font-size: 18px;
    font-weight: bold;
    margin: 12px 8px 8px;
    color: #333333;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.news-time {
    font-size: 14px;
    color: #888888;
    margin: 4px 0;
}

.news-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-keywords {
    margin-top: 8px;
    font-size: 14px;
    color: #666666;
    text-align: center;
}

.news-keywords span {
    display: inline-block;
    margin: 5px 5px 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: #007bff;
}

.news-keywords span:hover {
    background-color: #007bff;
    color: #ffffff;
}

.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 0px 0;
    transition: color 0.3s;
}

.news-link:hover .news-title {
    color: #007bff;
}

/* 移动端单列布局 */
@media (max-width: 768px) {
    .news-item {
        width: 100%;
    }

    .news-item img {
        height: 220px;
    }

    .news-title {
        font-size: 16px;
    }

    .news-description {
        -webkit-line-clamp: 2;
    }
}

.current-news-keywords {
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    color: #666666;
}

.current-news-keywords span {
    display: inline-block;
    margin: 5px 5px 10px;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: background-color 0.3s, color 0.3s;
}

.current-news-keywords span a {
    text-decoration: none;
    color: #007bff;
}

.current-news-keywords span:hover {
    background-color: #007bff;
    color: #ffffff;
}

/* 评论区样式 */
.container_comments {
    margin-top: 20px;
    margin: auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.comment {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    line-height: 50px;
    margin-right: 15px;
}

.comment-content {
    flex: 1;
}

.comment-name {
    font-size: 16px;
    font-weight: bold;
}

.comment-time {
    font-size: 12px;
    color: #777;
}

.comment-text {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.5;
}

.form-container {
    margin-top: 20px;
}

.form-container input,
.form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-container button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-container button:hover {
    background-color: #0056b3;
}


