/* 文章頁面專用樣式 */

/* 麵包屑導航 */
.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2980b9;
}

.breadcrumb span {
    margin: 0 8px;
}

.breadcrumb .current {
    color: #2c3e50;
    font-weight: 500;
}

/* 文章標題區 */
.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.article-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    font-size: 0.9rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-meta .category-tag {
    background-color: #e67e22;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 500;
}

.article-meta .publish-date,
.article-meta .views,
.article-meta .likes {
    color: #7f8c8d;
}

/* 文章內容 */
.article-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-description {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e67e22;
}

.article-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    margin: 0;
}

/* 文章圖片畫廊 */
.image-gallery-article {
    margin-bottom: 30px;
}

.image-item {
    margin-bottom: 30px;
    text-align: center;
}

.image-item img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-item img:hover {
    transform: scale(1.02);
}

.image-caption {
    margin-top: 15px;
    font-style: italic;
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 文章正文 */
.article-content-text {
    margin-bottom: 30px;
}

.article-content-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: justify;
}

/* 標籤 */
.article-tags {
    margin-bottom: 40px;
    padding: 15px 0;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
}

.tag-label {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 10px;
}

.tag {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 5px;
    transition: background-color 0.3s ease;
}

.tag:hover {
    background-color: #2980b9;
    cursor: default;
}

/* 評論區 */
.comments-section {
    margin-bottom: 40px;
}

.comments-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 8px;
}

.comment-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.submit-btn {
    background-color: #e67e22;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #d35400;
}

/* 評論列表 */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ecf0f1;
}

.comment-author {
    font-weight: 600;
    color: #2c3e50;
}

.comment-date {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.comment-content p {
    margin: 0;
    line-height: 1.6;
    color: #2c3e50;
}

/* 相關推薦 */
.related-articles {
    margin-top: 40px;
}

.related-articles h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 8px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.related-item:hover {
    transform: translateY(-3px);
}

.related-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.related-info {
    padding: 12px;
}

.related-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

.related-views {
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .article-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

