/* ================================
   Detail-pages.css - 详情页专用样式
   ================================ */

/* 新闻详情页特定样式 */
.news-title-info-background {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #ffffff;
}

.news-title-info-background .article-title {
    color: #ffffff !important;
    margin-bottom: 10px;
}

.news-title-info-background .article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #cccccc !important;
}

.article-meta > * {
    color: #cccccc !important;
}

/* 调整原有的 article-meta（现在只包含分类）的样式 */
.article-meta:not(.news-title-info-background .article-meta) {
    margin-top: 15px;
    padding-left: 5px;
}

/* 垂直新闻列表布局样式 */
.news-list-container {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 25px;
}

.news-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    gap: 15px;
}

.news-item:first-child {
    padding-top: 0;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item:hover .news-title {
    color: #c00;
}

.news-item-image-container {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.news-item-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
}

.news-title {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-meta {
    display: flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.news-date {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.news-author {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.news-meta-separator {
    margin: 0 8px;
    color: #ccc;
}

/* 详情页评测卡片 - 恢复原始布局 */
.review-card {
    display: flex;
    align-items: center;
    background-color: #2c2c2c;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.review-card-image {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    margin-right: 30px;
    overflow: hidden;
    border-radius: 6px;
    background-color: #f0f0f0;
}

.review-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
}

.review-card-content {
    flex-grow: 1;
    padding-left: 10px;
    position: relative;
}

.review-card-title {
    font-size: 24px;
    margin: 0 80px 10px 0;
    font-weight: 600;
    line-height: 1.3;
}

.review-card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    color: #ccc;
}

/* 评论区样式 */
.comments-container {
    padding: 20px;
    margin-top: 20px;
    background-color: #ffffff;
    border-radius: 8px;
}

.comments-container h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

#comment-form-container p {
    font-size: 16px;
}

#comment-form-container a {
    color: #3366cc;
    text-decoration: underline;
}

#comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 80px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

#comment-form button {
    display: block;
    width: auto;
    padding: 10px 20px;
    background-color: #3366cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-left: auto;
}

#comment-form button:hover {
    background-color: #2a5298;
}

#comments-list .comment {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

#comments-list .comment:last-child {
    border-bottom: none;
}

#comments-list .comment p {
    margin: 0 0 5px 0;
    line-height: 1.6;
}

#comments-list .comment strong {
    color: #333;
    font-size: 15px;
}

#comments-list .comment .comment-date {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
}

#comments-list .comment img {
    max-width: 300px;
    max-height: 300px;
    height: auto;
    border-radius: 6px;
    margin: 10px 0;
    display: block;
}

/* 新评测表单样式 */
.new-review-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.new-review-form h2 {
    margin-bottom: 20px;
    text-align: center;
}

.new-review-form input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.new-review-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 150px;
    resize: vertical;
}

.new-review-form button {
    width: 100%;
    padding: 10px;
    background-color: #3366cc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.new-review-form button:hover {
    background-color: #2a5298;
}

/* 详情页评测卡片 - 覆盖之前的冲突样式 */
.review-card {
    display: flex !important;
    align-items: center !important;
    background-color: #2c2c2c !important;
    color: #fff !important;
    padding: 20px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    overflow: visible !important;
    position: relative !important;
}

/* 图片区域 - 详情页布局 */
.review-card-image {
    flex-shrink: 0 !important;
    width: 130px !important;
    height: 130px !important;
    margin-right: 30px !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    background-color: #f0f0f0 !important;
    background: none !important;
}

.review-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 4px !important;
}

/* 内容区域 - 详情页内容布局 */
.review-card-content-wrapper {
    flex-grow: 1 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    min-height: 80px !important;
    background: transparent !important;
    position: relative !important;
    z-index: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 左侧信息区域 - 详情页样式 */
.review-card-info {
    flex: 1 !important;
    min-width: 0 !important;
    padding-left: 10px !important;
}

/* 内容容器 - 详情页布局 */
.review-card-content {
    flex-grow: 1 !important;
    padding-left: 10px !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 标题样式 - 详情页白色文字 */
.review-card-title {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin: 0 80px 10px 0 !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
    display: block !important;
    overflow: visible !important;
}

.review-card-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    font-size: 14px !important;
    color: #ccc !important;
    margin: 0 !important;
}

.review-card-meta .meta-item {
    display: block !important;
    margin-bottom: 2px !important;
    font-weight: 500 !important;
    color: #ccc !important;
}

/* 右侧分享按钮容器 - 详情页右下角位置 */
.review-card-actions {
    position: absolute !important;
    bottom: 20px !important;
    right: 30px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 80px !important;
    z-index: 10 !important;
}

/* 移动端分享按钮位置调整 */
@media (max-width: 768px) {
    .review-card-actions {
        position: static !important;
        margin-top: 15px !important;
        justify-content: flex-start !important;
    }
}

/* 分享按钮样式 - 详情页设计 */
.share-button {
    background: #007bff !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    position: relative !important;
    z-index: 10 !important;
}

.share-button:hover {
    background: #0056b3 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
}

/* 移动端特殊优化 */
@media (max-width: 768px) {
    .review-card-image {
        height: 180px;
    }
    
    /* 新闻列表项移动端优化 */
    .news-item {
        flex-direction: column;
        gap: 12px;
        background: #ffffff;
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        border: 1px solid #e2e8f0;
        transition: all 0.3s ease;
    }

    .news-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }
    
    .news-item-image-container {
        width: 100%;
        height: 140px;
        border-radius: 12px;
        overflow: hidden;
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    }

    .news-item-image-container img {
        transition: transform 0.3s ease;
    }

    .news-item-image-container:hover img {
        transform: scale(1.05);
    }

    .news-title {
        font-size: 16px;
        font-weight: 600;
        color: #1a202c;
        line-height: 1.5;
        margin-bottom: 8px;
    }

    .news-date,
    .news-author {
        font-size: 12px;
        color: #718096;
        font-weight: 500;
    }

    /* 评论区域优化 */
    .comments-container {
        background: #ffffff;
        border-radius: 16px;
        padding: 20px;
        margin-top: 20px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        border: 1px solid #e2e8f0;
    }

    .comments-container h3 {
        font-size: 20px;
        color: #1a202c;
        font-weight: 700;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 2px solid #e2e8f0;
        position: relative;
    }

    .comments-container h3::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 40px;
        height: 2px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        border-radius: 1px;
    }

    /* 评论表单优化 */
    #comment-form-container {
        margin-bottom: 24px;
    }

    #comment-form textarea {
        background: #f8fafc;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        padding: 16px;
        font-size: 15px;
        line-height: 1.6;
        transition: all 0.3s ease;
    }

    #comment-form textarea:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        outline: none;
    }

    #comment-form button {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 12px;
        padding: 12px 24px;
        font-size: 16px;
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        transition: all 0.3s ease;
    }

    #comment-form button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

    /* 评论列表优化 */
    #comments-list .comment {
        background: #f8fafc;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
        border: 1px solid #e2e8f0;
        transition: all 0.3s ease;
    }

    #comments-list .comment:hover {
        background: #f1f5f9;
        border-color: #cbd5e0;
    }

    #comments-list .comment p {
        font-size: 15px;
        line-height: 1.6;
        color: #2d3748;
    }

    #comments-list .comment strong {
        color: #1a202c;
        font-weight: 600;
    }

    #comments-list .comment .comment-date {
        font-size: 12px;
        color: #718096;
        font-weight: 500;
    }

    #comments-list .comment img {
        border-radius: 8px;
        margin: 12px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}