/* Blog Detail Page Styles */

/* 博客詳情區塊 */
.blog-detail-section {
    padding: 40px 0 80px;
    background: #ffffff;
}

/* 麵包屑導航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-gold);
}

.breadcrumb .separator {
    color: var(--light-text);
}

.breadcrumb .current {
    color: var(--primary-color);
    font-weight: 500;
}

/* 博客標題區 */
.blog-detail-header {
    max-width: 1200px;
    margin: 0 auto 40px;
}

.blog-category-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-gold);
    background: rgba(255, 207, 112, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.blog-detail-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 24px 0;
    line-height: 1.2;
}

.blog-meta-info {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0f2f7;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--light-text);
}

.meta-item .layui-icon {
    font-size: 18px;
    color: var(--primary-gold);
}

/* 文章主圖 */
.blog-featured-image {
    max-width: 1200px;
    margin: 0 auto 50px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文章內容 */
.blog-content {
    margin: 0 auto;
}

.content-wrapper {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-color);
}

.content-wrapper p {
    margin: 0 0 24px 0;
}

.lead-text {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.8;
    margin-bottom: 40px !important;
}

.content-wrapper h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 48px 0 24px 0;
    line-height: 1.3;
}

.content-wrapper h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 32px 0 16px 0;
}

/* 高亮框 */
.highlight-box {
    background: linear-gradient(135deg, rgba(255, 207, 112, 0.1) 0%, rgba(255, 175, 69, 0.1) 100%);
    border-left: 4px solid var(--primary-gold);
    padding: 24px 32px;
    margin: 32px 0;
    border-radius: 8px;
}

.highlight-box h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.highlight-box ul {
    margin: 16px 0 0 0;
    padding-left: 20px;
}

.highlight-box li {
    margin-bottom: 12px;
    color: var(--text-color);
}

.highlight-box li:last-child {
    margin-bottom: 0;
}

/* 圖片畫廊 */
.blog-image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-caption {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--light-text);
    margin: 0;
    text-align: center;
}

/* CTA框 */
.cta-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 48px 40px;
    border-radius: 16px;
    text-align: center;
    margin: 48px 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* .cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
} */

.cta-box h3 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.cta-box p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 28px 0;
}

.cta-button {
    display: inline-block;
    padding: 8px 32px;
    background: var(--primary-gold);
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 207, 112, 0.3);
}

.cta-button:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 207, 112, 0.4);
}

/* 分享與標籤 */
.blog-share-tags {
    margin: 0 auto;
    padding: 0 0 30px 0;
    border-bottom: 1px solid #f0f2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.share-section,
.tags-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.share-label,
.tags-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--primary-gold);
    color: #ffffff;
    transform: translateY(-2px);
}

.share-btn .layui-icon {
    font-size: 18px;
}

.tags-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f8f9fa;
    color: var(--text-color);
    font-size: 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-gold);
    color: #ffffff;
}

/* 相關文章推薦 */
.related-posts {
    margin: 60px auto 0;
}

.related-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 32px 0;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f2f7;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-gold);
}

.related-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: #f8f9fa;
}

.related-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 20px;
}

.related-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    font-size: 13px;
    color: var(--light-text);
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .blog-detail-title {
        font-size: 40px;
    }

    .blog-image-gallery {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-detail-section {
        padding: 40px 0 60px;
    }

    .blog-detail-title {
        font-size: 32px;
    }

    .blog-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .blog-featured-image {
        margin-bottom: 32px;
    }

    .content-wrapper {
        font-size: 16px;
    }

    .lead-text {
        font-size: 18px;
    }

    .content-wrapper h2 {
        font-size: 26px;
    }

    .content-wrapper h3 {
        font-size: 20px;
    }

    .highlight-box {
        padding: 20px 24px;
    }

    .cta-box {
        padding: 32px 24px;
    }

    .cta-box h3 {
        font-size: 24px;
    }

    .blog-share-tags {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-detail-title {
        font-size: 28px;
    }

    .blog-share-tags {
        padding: 32px 0;
    }

    .share-section,
    .tags-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tags-list {
        gap: 6px;
    }
}

