﻿/* 新闻/攻略页面通用样式 */

.news-container {
    display: flex;
    gap: 24px;
    padding:0 20px;
}

.news-main {
    flex: 1;
}

.news-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.news-card.featured {
    display: flex;
    gap: 20px;
    padding: 24px;
}

.news-image {
    width: 200px;
    height: 120px;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: box;
    line-clamp: 2;
    box-orient: vertical;
}

.news-card.featured .news-title {
    font-size: 20px;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: box;
    line-clamp: 2;
    box-orient: vertical;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding-bottom: 30px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled) {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.pagination-btn.active {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sidebar-section {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sidebar-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.sidebar-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid #0066cc;
}

.hot-news-list {
    padding: 0;
    margin: 0;
}

.hot-news-item {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.hot-news-item:last-child {
    border-bottom: none;
}

.hot-news-item:hover {
    padding-left: 8px;
    color: #0066cc;
}

.hot-news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 4px;
    height: 4px;
    background: #0066cc;
    border-radius: 50%;
}

.hot-news-item a {
    display: block;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    padding-left: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: box;
    line-clamp: 2;
    box-orient: vertical;
    transition: color 0.2s ease;
}

.hot-news-item:hover a {
    color: #0066cc;
}

.hot-news-item .hot-badge {
    display: inline-block;
    margin-left: 5px;
    padding: 1px 4px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    border-radius: 2px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    display: inline-block;
    padding: 4px 12px;
    background: #f5f5f5;
    color: #666;
    font-size: 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-cloud a:hover {
    background: #0066cc;
    color: #fff;
}

.tag-item {
    padding: 4px 12px;
    background: #f5f5f5;
    color: #666;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background: #0066cc;
    color: #fff;
}

.hot-tools-list {
    padding: 0;
    margin: 0;
}

.hot-tools-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hot-tools-item:hover {
    padding-left: 8px;
    color: #0066cc;
}

.hot-tools-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.hot-tools-item:hover a {
    color: #0066cc;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .news-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px;
    }

    .news-sidebar {
        width: 100%;
    }

    .news-card.featured {
        flex-direction: column;
        gap: 15px;
    }

    .news-image {
        width: 100%;
        height: 180px;
    }

    .news-card.featured .news-image {
        width: 100%;
        height: 180px;
    }
}

/* 素材详情页样式 */
.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
}

.detail-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f5f7fa;
    border-radius: 8px;
}

.detail-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-header {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.detail-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin-bottom: 16px;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #999;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.detail-category {
    display: inline-block;
    padding: 4px 12px;
    background: #0066cc;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
}

.detail-video {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
}

.detail-body {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.video-wrapper {
    margin-bottom: 24px;
}

.article-content {
    line-height: 1.8;
}

.article-content h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    text-indent: 2em;
}

.article-content ul {
    margin: 12px 0;
    padding-left: 24px;
}

.article-content li {
    font-size: 14px;
    color: #666;
    line-height: 2;
    margin-bottom: 6px;
}

.article-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 12px 0;
}

.return-btn {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.detail-stats {
    display: flex;
    gap: 30px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.stat-value {
    font-weight: 600;
    color: #333;
}

.detail-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.price-tag {
    font-size: 14px;
    color: #666;
    margin-right: 12px;
}

.price-value {
    font-size: 20px;
    font-weight: bold;
    color: #ff9900;
}

.btn-buy {
    background: #eb4500;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-buy:hover {
    background: #ff8533;
}

.detail-content {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}

.detail-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.detail-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
}

.detail-content ul {
    margin: 0;
    padding-left: 20px;
}

.detail-content li {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 8px;
}

.section-divider {
    height: 16px;
    background: #f5f7fa;
}

.comment-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.comment-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.comment-tips {
    font-size: 12px;
    color: #999;
}

.comments-list {
    margin-top: 24px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

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

.comment-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 素材详情页样式 */
.publisher-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.publisher-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0066cc, #0088ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    margin-bottom: 12px;
}

.publisher-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin-bottom: 4px;
}

.publisher-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
}

.btn-follow {
    background: #ff6b6b;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-follow:hover {
    background: #ee5a5a;
}

.related-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-item {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.related-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.r-content-video-link {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
}

.r-content-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.r-content-category {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0, 102, 204, 0.9);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 1;
}

.r-content-video::-webkit-media-controls {
    display: none !important;
}

.r-content-video::-webkit-media-controls-enclosure {
    display: none !important;
}

.r-content-video::-webkit-media-controls-panel {
    display: none !important;
}

.r-content-stats {
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    z-index: 1;
}

.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.copy-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 900px) {
    .detail-container {
        flex-direction: column;
    }

    .detail-sidebar {
        width: 100%;
    }

    .detail-title {
        font-size: 20px;
    }

    .detail-meta {
        flex-wrap: wrap;
    }

    .detail-stats {
        flex-wrap: wrap;
    }
}

/* 新闻详情页独有样式 */
.news-detail-container {
    display: flex;
    gap: 24px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.news-detail-main {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.news-detail-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-detail-header {
    margin-bottom: 24px;
}

.news-detail-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin-bottom: 16px;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #999;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.news-detail-category {
    display: inline-block;
    padding: 4px 12px;
    background: #0066cc;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
}

.news-detail-category.hot {
    background: #dc3545;
}

.news-detail-image {
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.news-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.news-detail-content p {
    margin-bottom: 16px;
    text-indent: 2em;
}

.news-detail-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.news-detail-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 12px;
}

.news-detail-content ul,
.news-detail-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.news-detail-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.news-detail-buttons {
    display: flex;
    gap: 15px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.related-news-list {
    padding: 0;
    margin: 0;
}

.related-news-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    position: relative;
}

.related-news-list li:last-child {
    border-bottom: none;
}

.related-news-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 4px;
    height: 4px;
    background: #0066cc;
    border-radius: 50%;
}

.related-news-list li a {
    padding-left: 12px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: block;
    line-height: 1.5;
}

.related-news-list li a:hover {
    color: #0066cc;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid #ddd;
}

.back-btn:hover {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

@media (max-width: 900px) {
    .news-detail-container {
        flex-direction: column;
    }

    .news-detail-sidebar {
        width: 100%;
    }

    .news-detail-title {
        font-size: 22px;
    }

    .news-detail-meta {
        flex-wrap: wrap;
    }
}

/* 攻略详情页样式 */
.guide-detail-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
}

.guide-detail-header {
    margin-bottom: 20px;
}

.guide-detail-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin-bottom: 15px;
}

.guide-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #999;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.guide-detail-category {
    display: inline-block;
    padding: 3px 10px;
    background: #e8f4fc;
    color: #0066cc;
    border-radius: 4px;
    font-size: 12px;
}

.guide-share-btn {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 3px 10px;
    border-radius: 4px;
    background: #0066cc;
    color: #fff;
}

.guide-share-btn:hover {
    background: #0052a3;
    color: #fff;
}

.guide-detail-image {
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.guide-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.guide-detail-content p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.guide-detail-content h2 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: #222;
}

.guide-detail-content h3 {
    font-size: 18px;
    margin: 20px 0 12px;
    color: #333;
}

.guide-detail-content ul, .guide-detail-content ol {
    padding-left: 2em;
    margin-bottom: 15px;
}

.guide-detail-content li {
    margin-bottom: 8px;
}

.guide-detail-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.guide-detail-tags span {
    display: inline-block;
    margin-right: 10px;
    padding: 4px 12px;
    background: #f5f5f5;
    color: #666;
    border-radius: 20px;
    font-size: 13px;
}

.guide-detail-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.guide-related-news {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.guide-related-news h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.guide-related-news ul {
    padding: 0;
    margin: 0;
}

.guide-related-news li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    position: relative;
}

.guide-related-news li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 4px;
    height: 4px;
    background: #0066cc;
    border-radius: 50%;
}

.guide-related-news li a {
    padding-left: 12px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.guide-related-news li a:hover {
    color: #0066cc;
}
