
/* 顶部导航样式 */
header {
    background-color: var(--dark);
    color: white;
    padding: 0.8rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--metal);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

nav a:hover {
    color: var(--metal);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--metal);
}

.login-btn {
    background-color: var(--fire);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-left: 1rem;
    transition: var(--transition);
}

.login-btn:hover {
    background-color: #e63e00;
    transform: translateY(-2px);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 1.5rem 0;
    background-color: #f8f5f0;
}

.breadcrumb a {
    color: var(--fire);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
}

/* 主要内容区域 */
.news-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 3rem 0;
}

.news-detail-main {
    flex: 1;
    min-width: 300px;
}

.news-detail-sidebar {
    flex: 0 0 350px;
}

/* 新闻详情内容 */
.news-detail-content {
    background-color: white;
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.news-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}

.news-title {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.news-category {
    display: inline-block;
    background-color: rgba(255, 69, 0, 0.1);
    color: var(--fire);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
}

.news-date, .news-author, .news-views {
    color: #666;
}

.news-cover {
    margin-bottom: 2rem;
}

.news-cover img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.news-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.news-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.news-body h3 {
    color: var(--fire);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.news-body ul, .news-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.news-body li {
    margin-bottom: 0.5rem;
}

.news-image {
    margin: 1.5rem 0;
    text-align: center;
}

.news-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

.news-quote {
    background-color: rgba(255, 215, 0, 0.05);
    border-left: 4px solid var(--metal);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.news-quote p {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.news-quote .quote-author {
    text-align: right;
    color: var(--fire);
    font-weight: bold;
}

.news-video {
    margin: 2rem 0;
    text-align: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.news-tag:hover {
    background-color: var(--fire);
    color: white;
}

.news-share {
    display: flex;
    gap: 0.8rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #666;
    text-decoration: none;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.wechat:hover {
    background-color: #09bb07;
    color: white;
}

.share-btn.weibo:hover {
    background-color: #e6162d;
    color: white;
}

.share-btn.qq:hover {
    background-color: #12b7f5;
    color: white;
}

/* 侧边栏 */
.related-news {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.related-news h3 {
    color: var(--fire);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--metal);
}

.related-news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-news-item {
    display: flex;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.related-news-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.related-news-image {
    flex: 0 0 80px;
    margin-right: 1rem;
}

.related-news-image img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.related-news-content {
    flex: 1;
}

.related-news-title {
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.related-news-title a {
    color: var(--dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.related-news-title a:hover {
    color: var(--fire);
}

.related-news-date {
    font-size: 0.8rem;
    color: #999;
}

.news-author-info {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.author-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--metal);
    margin-right: 1rem;
}

.author-info h4 {
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.author-title {
    color: #666;
    font-size: 0.9rem;
}

.author-bio {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 页脚样式 */
footer {
    background-color: var(--dark);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
}

.social-links {
    margin: 1rem 0;
}

.social-links a {
    color: white;
    margin: 0 0.8rem;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--metal);
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    nav li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 0.8rem 1rem;
    }

    .login-btn {
        margin: 0.5rem auto;
        display: block;
        width: 200px;
        text-align: center;
    }

    .news-detail-container {
        flex-direction: column;
    }

    .news-detail-sidebar {
        flex: 0 0 auto;
    }

    .news-title {
        font-size: 1.8rem;
    }

    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .news-footer {
        flex-direction: column;
        gap: 1rem;
    }
}