/* 文章頁面樣式 */
.article-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.article-header {
    position: relative;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.article-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.article-image img {
    transition: transform 0.3s ease;
}

.article-image:hover img {
    transform: scale(1.02);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.article-body h2 {
    font-size: 1.8rem;
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
}

.article-body h3 {
    font-size: 1.5rem;
    color: #495057;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body blockquote {
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.article-body a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.article-tags .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.article-tags .badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-share .btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.article-share .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 側邊欄樣式 */
.sidebar-sticky {
    position: sticky;
    top: 100px;
    z-index: 1020;
}

.sidebar-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.author-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 2rem;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.author-avatar:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.related-articles {
    background: white;
}

.related-article-item {
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-article-item:hover {
    background: #f8f9fa;
    color: inherit;
    text-decoration: none;
    transform: translateX(5px);
}

.related-article-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.related-article-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.contact-cta {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.contact-cta .btn {
    background: white;
    color: #28a745;
    font-weight: 600;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.contact-cta .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 麵包屑導航 */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #0d6efd;
}

.breadcrumb-item.active {
    color: #495057;
}

/* 進度指示器 */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* 回到頂部按鈕 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.back-to-top.show {
    display: flex;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .article-content {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .sidebar-sticky {
        position: static;
        margin-top: 2rem;
    }
    
    .author-card {
        padding: 1.5rem;
    }
    
    .author-avatar {
        width: 80px;
        height: 80px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-content,
.sidebar-card {
    animation: fadeInUp 0.6s ease-out;
}

.sidebar-card:nth-child(2) {
    animation-delay: 0.1s;
}

.sidebar-card:nth-child(3) {
    animation-delay: 0.2s;
}

.sidebar-card:nth-child(4) {
    animation-delay: 0.3s;
}