
    /* 文章詳情頁專用樣式 */
    :root {
        --primary-color: #5ba595;
        --secondary-color: #5ba595;
        --primary-hover: #4a8a7d;
        --secondary-hover: #8c3d3e;
        --light-primary: rgba(91, 165, 149, 0.1);
        --light-secondary: rgba(172, 76, 77, 0.1);
        --text-dark: #333333;
        --text-medium: #555555;
        --text-light: #777777;
        --border-color: #e0e0e0;
        --bg-light: #f8f9fa;
    }
    
    /* 文章頭部 */
    .article-header-area {
        padding: 60px 0 40px;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        color: white;
        position: relative;
    }
    
    .article-header-content {
        max-width: 800px;
        margin: 0 auto;
        position: relative;
        z-index: 2;
    }
    
    .article-breadcrumb {
        margin-bottom: 20px;
    }
    
    .article-breadcrumb .breadcrumb {
        background: none;
        padding: 0;
        margin: 0;
    }
    
    .article-breadcrumb .breadcrumb-item {
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.9rem;
    }
    
    .article-breadcrumb .breadcrumb-item a {
        color: white;
        text-decoration: none;
        transition: opacity 0.3s;
    }
    
    .article-breadcrumb .breadcrumb-item a:hover {
        opacity: 0.8;
    }
    
    .article-breadcrumb .breadcrumb-sep {
        color: rgba(255, 255, 255, 0.6);
        padding: 0 10px;
    }
    
    .article-title {
        font-size: 2.5rem;
        font-weight: 700;
        line-height: 1.2;
        margin: 20px 0;
        color: white;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .article-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .meta-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .meta-item i {
        color: white;
        opacity: 0.8;
    }
    
    .meta-item a {
        color: white;
        text-decoration: none;
        transition: opacity 0.3s;
    }
    
    .meta-item a:hover {
        opacity: 0.8;
    }
    
    .reading-time-badge {
        background: white;
        color: var(--primary-color);
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }
    
    /* 文章內容區域 */
    .article-content-area {
        padding: 40px 0;
        background: white;
    }
    
    .article-container {
        max-width: 1140px;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    /* 文章特色圖片 */
    .featured-image {
        margin-bottom: 40px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        position: relative;
    }
    
    .featured-image img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.5s;
    }
    
    .featured-image:hover img {
        transform: scale(1.02);
    }
    
    .image-caption {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 10px 20px;
        font-size: 0.9rem;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .featured-image:hover .image-caption {
        opacity: 1;
    }
    
    /* 文章主體 */
    .article-body {
        font-size: 1.1rem;
        line-height: 1.8;
        color: var(--text-dark);
        margin-bottom: 40px;
    }
    
    .article-body h2,
    .article-body h3,
    .article-body h4 {
        margin-top: 40px;
        margin-bottom: 20px;
        color: var(--text-dark);
        font-weight: 600;
    }
    
    .article-body h2 {
        font-size: 1.8rem;
        border-bottom: 2px solid var(--light-primary);
        padding-bottom: 10px;
    }
    
    .article-body h3 {
        font-size: 1.5rem;
    }
    
    .article-body h4 {
        font-size: 1.3rem;
    }
    
    .article-body p {
        margin-bottom: 20px;
        text-align: justify;
    }
    
    .article-body ul,
    .article-body ol {
        margin-bottom: 20px;
        padding-left: 30px;
    }
    
    .article-body li {
        margin-bottom: 8px;
    }
    
    .article-body img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 20px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .article-body blockquote {
        border-left: 4px solid var(--primary-color);
        padding-left: 20px;
        margin: 30px 0;
        font-style: italic;
        color: var(--text-medium);
        background: var(--light-primary);
        padding: 20px;
        border-radius: 0 8px 8px 0;
    }
    
    .article-body pre {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        overflow-x: auto;
        margin: 20px 0;
        font-family: 'Courier New', monospace;
        font-size: 0.9rem;
        border-left: 4px solid var(--primary-color);
    }
    
    .article-body code {
        background: #f8f9fa;
        padding: 2px 6px;
        border-radius: 4px;
        font-family: 'Courier New', monospace;
        color: var(--secondary-color);
    }
    
    .article-body table {
        width: 100%;
        margin: 20px 0;
        border-collapse: collapse;
    }
    
    .article-body table th,
    .article-body table td {
        padding: 12px 15px;
        border: 1px solid var(--border-color);
        text-align: left;
    }
    
    .article-body table th {
        background: var(--light-primary);
        font-weight: 600;
    }
    
    .article-body table tr:nth-child(even) {
        background: var(--bg-light);
    }
    
    /* 文章標籤 */
    .article-tags {
        margin: 40px 0;
        padding: 30px 0;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }
    
    .article-tags h4 {
        font-size: 1.2rem;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--text-dark);
    }
    
    .tags-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .tags-list .tag {
        display: inline-block;
        padding: 8px 16px;
        background: var(--light-primary);
        border: 1px solid var(--border-color);
        border-radius: 50px;
        color: var(--primary-color);
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.3s;
    }
    
    .tags-list .tag:hover {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        transform: translateY(-2px);
    }
    
    /* 社交分享 */
    .article-share {
        margin: 40px 0;
        padding: 30px;
        background: var(--bg-light);
        border-radius: 10px;
    }
    
    .article-share h4 {
        font-size: 1.2rem;
        margin-bottom: 20px;
        color: var(--text-dark);
    }
    
    .share-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .share-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 20px;
        border: none;
        border-radius: 8px;
        color: white;
        text-decoration: none;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s;
        min-width: 120px;
        justify-content: center;
    }
    
    .share-btn.facebook {
        background: #1877f2;
    }
    
    .share-btn.twitter {
        background: #1da1f2;
    }
    
    .share-btn.linkedin {
        background: #0077b5;
    }
    
    .share-btn.whatsapp {
        background: #25d366;
    }
    
    .share-btn.copy-link {
        background: var(--primary-color);
    }
    
    .share-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    .share-btn.copied {
        background: #28a745;
    }
    
    /* 文章導航 */
    .article-navigation {
        display: flex;
        justify-content: space-between;
        margin: 60px 0;
        padding: 30px 0;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link {
        display: flex;
        align-items: center;
        gap: 20px;
        width: 45%;
        text-decoration: none;
        color: var(--text-dark);
        transition: all 0.3s;
    }
    
    .nav-link:hover {
        color: var(--primary-color);
    }
    
    .nav-link.prev-article {
        text-align: left;
    }
    
    .nav-link.next-article {
        text-align: right;
        flex-direction: row-reverse;
    }
    
    .nav-arrow {
        font-size: 1.5rem;
        color: var(--primary-color);
    }
    
    .nav-content {
        flex: 1;
    }
    
    .nav-label {
        display: block;
        font-size: 0.9rem;
        color: var(--text-light);
        margin-bottom: 5px;
    }
    
    .nav-content h5 {
        font-size: 1.1rem;
        margin: 0;
        line-height: 1.4;
        font-weight: 500;
    }
    
    /* 側邊欄 */
    .article-sidebar {
        padding: 40px 0 40px 40px;
    }
    
    .sidebar-widget {
        margin-bottom: 40px;
        padding: 25px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        border: 1px solid var(--border-color);
    }
    
    .widget-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
        color: var(--text-dark);
        padding-bottom: 10px;
        border-bottom: 2px solid var(--primary-color);
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .widget-title i {
        color: var(--primary-color);
    }
    
    /* 作者小工具 */
    .author-bio {
        display: flex;
        align-items: center;
        gap: 20px;
    }
    
    .author-avatar img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid var(--light-primary);
    }
    
    .author-info h5 {
        margin: 0 0 10px 0;
        color: var(--text-dark);
        font-size: 1.1rem;
    }
    
    .author-info p {
        margin: 0;
        color: var(--text-light);
        line-height: 1.6;
        font-size: 0.9rem;
    }
    
    /* 相關文章 */
    .related-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .related-article a {
        display: flex;
        align-items: center;
        gap: 15px;
        text-decoration: none;
        color: inherit;
        transition: all 0.3s;
        padding: 10px;
        border-radius: 8px;
    }
    
    .related-article a:hover {
        background: var(--light-primary);
        transform: translateX(5px);
    }
    
    .related-image {
        flex-shrink: 0;
        width: 80px;
        height: 60px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .related-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s;
    }
    
    .related-article a:hover .related-image img {
        transform: scale(1.1);
    }
    
    .related-content h6 {
        margin: 0 0 5px 0;
        font-size: 0.9rem;
        line-height: 1.4;
        color: var(--text-dark);
        font-weight: 500;
    }
    
    .related-date {
        font-size: 0.8rem;
        color: var(--text-light);
    }
    
    .no-related {
        margin: 0;
        color: var(--text-light);
        font-style: italic;
        text-align: center;
        padding: 20px;
    }
    
    /* 熱門文章小工具 */
    .popular-posts-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .popular-posts-list li {
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .popular-posts-list li:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .popular-post-link {
        display: flex;
        align-items: center;
        gap: 15px;
        text-decoration: none;
        color: inherit;
        transition: all 0.3s;
    }
    
    .popular-post-link:hover {
        transform: translateX(5px);
    }
    
    .popular-post-image {
        flex-shrink: 0;
        width: 60px;
        height: 45px;
        border-radius: 5px;
        overflow: hidden;
    }
    
    .popular-post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .popular-post-content h5 {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 5px;
        color: var(--text-dark);
    }
    
    .popular-post-meta {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.8rem;
        color: var(--text-light);
    }
    
    .popular-post-meta span {
        display: flex;
        align-items: center;
        gap: 3px;
    }
    
    /* 電子報小工具 */
    .newsletter-widget {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        color: white;
    }
    
    .newsletter-widget .widget-title {
        color: white;
        border-bottom-color: rgba(255, 255, 255, 0.3);
    }
    
    .newsletter-widget p {
        margin-bottom: 20px;
        opacity: 0.9;
        font-size: 0.9rem;
    }
    
    .newsletter-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form input {
        padding: 12px 15px;
        border: none;
        border-radius: 5px;
        font-size: 0.9rem;
        color: var(--text-dark);
    }
    
    .newsletter-form input:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    }
    
    .newsletter-form .btn-subscribe {
        background: white;
        color: var(--primary-color);
        border: none;
        padding: 12px;
        border-radius: 5px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.3s;
    }
    
    .newsletter-form .btn-subscribe:hover {
        background: #f8f9fa;
        transform: translateY(-2px);
    }
    
    /* 返回頂部按鈕 */
    .scroll-to-top {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        box-shadow: 0 5px 15px rgba(91, 165, 149, 0.3);
        transition: all 0.3s;
        opacity: 0;
        visibility: hidden;
        z-index: 1000;
    }
    
    .scroll-to-top.visible {
        opacity: 1;
        visibility: visible;
    }
    
    .scroll-to-top:hover {
        background: var(--primary-hover);
        transform: translateY(-5px);
    }
    
    /* 閱讀進度條 */
    .reading-progress {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: rgba(255, 255, 255, 0.1);
        z-index: 9999;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .reading-progress.active {
        opacity: 1;
    }
    
    .reading-progress .progress-bar {
        height: 100%;
        background: var(--primary-color);
        width: 0%;
        transition: width 0.1s;
    }
    
    /* 文章目錄 */
    .table-of-contents {
        background: var(--light-primary);
        border-radius: 10px;
        margin-bottom: 30px;
        overflow: hidden;
        border: 1px solid var(--border-color);
    }
    
    .toc-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: var(--primary-color);
        color: white;
    }
    
    .toc-header h4 {
        margin: 0;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .toc-toggle {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        font-size: 1.2rem;
        padding: 5px;
        transition: transform 0.3s;
    }
    
    .toc-content {
        padding: 20px;
        max-height: 400px;
        overflow-y: auto;
        transition: max-height 0.3s;
    }
    
    .toc-content.collapsed {
        max-height: 0;
        padding: 0 20px;
    }
    
    .toc-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .toc-item {
        margin-bottom: 10px;
    }
    
    .toc-item:last-child {
        margin-bottom: 0;
    }
    
    .toc-level-2 {
        margin-left: 0;
    }
    
    .toc-level-3 {
        margin-left: 20px;
        font-size: 0.9rem;
    }
    
    .toc-link {
        display: block;
        padding: 8px 12px;
        color: var(--text-dark);
        text-decoration: none;
        border-radius: 5px;
        transition: all 0.3s;
    }
    
    .toc-link:hover {
        background: white;
        color: var(--primary-color);
    }
    
    .toc-link.active {
        background: white;
        color: var(--primary-color);
        font-weight: 500;
        border-left: 3px solid var(--primary-color);
    }
    
    /* 響應式設計 */
    @media (max-width: 991px) {
        .article-title {
            font-size: 2rem;
        }
        
        .article-meta {
            flex-direction: column;
            gap: 10px;
        }
        
        .article-sidebar {
            padding: 40px 0 0 0;
        }
        
        .nav-link {
            width: 100%;
        }
        
        .article-navigation {
            flex-direction: column;
            gap: 20px;
        }
    }
    
    @media (max-width: 767px) {
        .article-header-area {
            padding: 40px 0 20px;
        }
        
        .article-title {
            font-size: 1.8rem;
        }
        
        .share-buttons {
            flex-direction: column;
        }
        
        .share-btn {
            min-width: 100%;
        }
        
        .toc-content {
            max-height: 300px;
        }
    }
    
    @media (max-width: 576px) {
        .article-title {
            font-size: 1.5rem;
        }
        
        .article-body {
            font-size: 1rem;
        }
        
        .article-body h2 {
            font-size: 1.5rem;
        }
        
        .article-body h3 {
            font-size: 1.3rem;
        }
        
        .author-bio {
            flex-direction: column;
            text-align: center;
        }
        
        .related-article a {
            flex-direction: column;
            text-align: center;
        }
        
        .related-image {
            width: 100%;
            height: 120px;
        }
        
        .scroll-to-top {
            bottom: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
            font-size: 1rem;
        }
    }
	
	/* 在現有CSS中添加以下樣式 */

/* 留言區域 */
.article-comments {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.comments-header {
    margin-bottom: 40px;
    text-align: center;
}

.comments-header h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.comments-count {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
}

.comments-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0;
}

/* 留言列表 */
.comments-list {
    margin-bottom: 40px;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.no-comments i {
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-comments h4 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

/* 留言項目 */
.comment-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.comment-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comment-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.comment-author {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-reply-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.comment-reply-btn:hover {
    background: var(--primary-color);
    color: white;
}

.comment-body {
    margin-bottom: 15px;
}

.comment-body p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-dark);
}

/* 回覆列表 */
.comment-replies {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid var(--light-primary);
}

.comment-reply {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.comment-reply:first-child {
    margin-top: 15px;
    padding-top: 0;
    border-top: none;
}

.reply-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.reply-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reply-content {
    flex: 1;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reply-author {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.reply-date {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.reply-body p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* 留言表單 */
.comment-form-container {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.comment-form-container h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.logged-in-user {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h5 {
    margin: 0 0 5px 0;
    color: var(--text-dark);
}

.user-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--light-primary);
    outline: none;
}

.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

.anti-spam {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.spam-check-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.spam-equation {
    font-weight: 600;
    color: var(--primary-color);
}

.form-submit {
    margin-top: 30px;
    text-align: center;
}

.btn-submit-comment {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-submit-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-dark);
}

.form-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reply-cancel {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

#replying-to {
    color: var(--text-dark);
    font-weight: 500;
}

.btn-cancel-reply {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-cancel-reply:hover {
    background: var(--secondary-hover);
}

/* 評論政策 */
.comment-policy {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.comment-policy h5 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-policy ul {
    margin: 0;
    padding-left: 20px;
}

.comment-policy li {
    margin-bottom: 8px;
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.5;
}

.comment-policy li:last-child {
    margin-bottom: 0;
}

/* 留言功能已關閉 */
.comments-disabled {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-light);
    border-radius: 10px;
}

.comments-disabled i {
    color: var(--text-light);
    margin-bottom: 20px;
    opacity: 0.5;
}

.comments-disabled h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.comments-disabled p {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 留言成功指示 */
.comment-success {
    background: var(--light-primary);
    border: 1px solid var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
}

.comment-success i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.comment-success h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.comment-success p {
    margin-bottom: 15px;
    color: var(--text-medium);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .comment-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .comment-avatar {
        width: 50px;
        height: 50px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .comment-replies {
        margin-left: 0;
        padding-left: 15px;
    }
    
    .comment-reply {
        flex-direction: column;
        gap: 10px;
    }
    
    .reply-avatar {
        width: 35px;
        height: 35px;
    }
    
    .comment-form-container {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .reply-cancel {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* 留言訊息樣式 */
.custom-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 400px;
}

.custom-message.show {
    opacity: 1;
    transform: translateX(0);
}

.message-error {
    background: var(--secondary-color);
}

.message-success {
    background: var(--primary-color);
}

.message-info {
    background: #17a2b8;
}

.message-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.message-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.message-close:hover {
    opacity: 1;
}

/* 表單驗證樣式 */
.is-invalid {
    border-color: var(--secondary-color) !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(172, 76, 77, 0.25) !important;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* 在現有的CSS文件中添加 */
/* 推薦產品樣式 */
.recommended-products {
    margin: 60px 0;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.recommended-products .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.recommended-products .section-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.recommended-products .section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

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

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.badge-special {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.4;
}

.product-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
}

.current-price {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffc107;
    font-weight: 600;
}

.product-action-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.product-action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 後台產品選擇樣式 */
.product-card .card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(102, 126, 234, 0.05);
}

.product-select-btn {
    width: 100%;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .recommended-products .section-title {
        font-size: 1.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}