/* Blog Detail 頁面樣式 */

/* 頁面英雄區域 */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 150px 0 110px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/contact-bg.jpg') no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-breadcrumb {
    font-size: 15px;
    opacity: 0.8;
}

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

.hero-breadcrumb a:hover {
    opacity: 1;
}

/* 主要內容區域 */
.main {
    background: #f8f9fa;
    min-height: 100vh;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Blog Detail 區塊 */
.blog-detail-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
}

.blog-detail-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* 文章頭部信息 */
.blog-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f1f2f6;
}

.blog-header .blog-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 15px;
    color: #7f8c8d;
}

.blog-header .blog-date {
    background: #f1f2f6;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 500;
}

.blog-header .blog-category {
    color: #02345a;
    font-weight: 600;
}

.blog-header .blog-author {
    color: #7f8c8d;
    font-weight: 500;
}

.blog-header .blog-title {
    font-size: 30px;
    margin-bottom: 20px;
    color: #2c3e50;
    line-height: 1.3;
    font-weight: 700;
}

.blog-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* 特色圖片 */
.blog-featured-image {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

/* 文章內容 */
.blog-content {
    line-height: 1.8;
    color: #2c3e50;
    font-size: 15px;
}

.blog-content p {
    margin-bottom: 25px;
}

.blog-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f2f6;
}

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

.blog-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 圖片畫廊 */
.blog-image-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

/* 引用區塊 */
.blog-quote {
    background: linear-gradient(135deg, #347fb9 0%, #02345a 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    position: relative;
    font-style: italic;
}

.blog-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: serif;
}

.blog-quote p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-quote cite {
    font-size: 15px;
    opacity: 0.9;
    font-style: normal;
}

/* 標籤 */
.blog-tags {
    margin: 40px 0;
    padding-top: 30px;
    border-top: 2px solid #f1f2f6;
}

.tag {
    display: inline-block;
    background: #f1f2f6;
    color: #02345a;
    padding: 8px 20px;
    border-radius: 20px;
    margin: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tag:hover {
    background: #02345a;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* 文章導航 */
.blog-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f1f2f6;
}

.nav-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: #02345a;
    color: white;
    transform: translateY(-2px);
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.nav-item.prev .nav-link {
    flex-direction: row;
}

.nav-item.next .nav-link {
    flex-direction: row-reverse;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin: 0 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.nav-content {
    flex: 1;
}

.nav-label {
    display: block;
    font-size: 16px;
    opacity: 0.7;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-weight: 600;
    line-height: 1.4;
}

/* 動畫效果 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .blog-detail-section {
        padding: 20px;
        margin: 0 15px 40px;
    }

    .blog-header .blog-title {
        font-size: 2rem;
    }

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

    .blog-navigation {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .nav-item.next .nav-link {
        flex-direction: row;
    }

    .main-container {
        padding: 40px 15px;
    }
}

@media (max-width: 480px) {

    .blog-header .blog-title {
        font-size: 20px;
    }

    .blog-content ul{
        padding-left: 0;
    }
    .blog-content p{
        margin-bottom: 15px;
    }

    .blog-content {
        font-size: 15px;
    }

    .blog-quote {
        padding: 20px;
    }

    .blog-quote p {
        font-size: 16px;
    }

    .blog-detail-section {
        padding: 15px;
        margin: 0 10px 30px;
    }
    .blog-tags{
        margin: 20px 0;

    }
    .blog-navigation{
        margin-top: 20px;
    }
}