/* 新闻弹窗样式 */
.news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.news-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.news-modal-container {
    background: #1a1a2e;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.news-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 123, 0, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.news-close-btn:hover {
    background: #ff7b00;
    transform: scale(1.1);
}

.news-modal-image-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.news-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-modal-details {
    padding: 2rem;
}

.news-modal-title {
    color: #ff7b00;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.news-modal-date {
    color: #ccd6f6;
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.news-modal-content {
    color: #a8b2d1;
    line-height: 1.7;
    font-size: 1.1rem;
}

.news-modal-content h3 {
    color: #ff7b00;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.news-modal-content h4 {
    color: #64ffda;
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1.2rem;
}

.news-modal-content p {
    margin-bottom: 1.2rem;
}

.news-modal-content ul {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.news-modal-content li {
    margin-bottom: 0.5rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.news-author {
    color: #64ffda;
    font-weight: bold;
}

.news-read-time {
    color: #8892b0;
    font-size: 0.9rem;
}

/* 加载状态 */
.news-modal-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-top: 4px solid #ff7b00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.news-modal-loading p {
    color: #ccd6f6;
    font-size: 1.1rem;
}

/* 错误状态 */
.news-error {
    text-align: center;
    padding: 2rem;
    color: #ccd6f6;
}

.news-error i {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.news-error h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.retry-btn {
    background: #ff7b00;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.retry-btn:hover {
    background: #ff9a44;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .news-modal-overlay {
        padding: 10px;
    }

    .news-modal-details {
        padding: 1.5rem;
    }

    .news-modal-title {
        font-size: 1.6rem;
    }

    .news-modal-image-container {
        height: 200px;
    }

    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@media screen and (max-width: 480px) {
    .news-modal-details {
        padding: 1rem;
    }

    .news-modal-title {
        font-size: 1.4rem;
    }

    .news-modal-content {
        font-size: 1rem;
    }
}