        /* 全局樣式 */
        :root {
            --primary-color: #0088cc;
            --secondary-color: #2a2f3b;
            --light-color: #ffffff;
            --dark-color: #1e2127;
            --gray-color: #6c757d;
            --border-color: #e9ecef;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f8f9fa;
            overflow-x: hidden;
        }
        
        a {
            text-decoration: none;
            color: var(--primary-color);
            transition: all 0.3s ease;
        }
        
        a:hover {
            color: #005580;
        }
        
        ul {
            list-style: none;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* 頭部樣式 */
        header {
            background-color: var(--light-color);
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }
        
        .logo {
            display: flex;
            align-items: center;
        }
        
        .logo h1 {
            font-size: 24px;
            color: var(--primary-color);
        }
        
        .logo i {
            margin-right: 10px;
            font-size: 28px;
        }
        
        nav ul {
            display: flex;
        }
        
        nav ul li {
            margin-left: 20px;
        }
        
        nav ul li a {
            font-weight: 500;
            padding: 8px 12px;
            border-radius: 4px;
        }
        
        nav ul li a:hover {
            background-color: rgba(0, 136, 204, 0.1);
        }
        
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--primary-color);
        }
        
        /* 麵包屑導航 */
        .breadcrumb {
            padding: 15px 0;
            background-color: #f1f3f5;
            margin-bottom: 30px;
        }
        
        .breadcrumb a {
            color: var(--gray-color);
        }
        
        .breadcrumb a:hover {
            color: var(--primary-color);
        }
        
        .breadcrumb span {
            margin: 0 8px;
            color: var(--gray-color);
        }
        
        /* 主要內容區 */
        .main-content {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 30px;
            margin-bottom: 40px;
        }
        
        /* 文章內容樣式 */
        .article-header {
            background-color: var(--light-color);
            border-radius: 8px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: var(--shadow);
        }
        
        .article-title {
            font-size: 32px;
            margin-bottom: 15px;
            color: var(--dark-color);
            line-height: 1.3;
        }
        
        .article-meta {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            color: var(--gray-color);
            font-size: 14px;
            flex-wrap: wrap;
        }
        
        .article-meta i {
            margin-right: 5px;
        }
        
        .article-meta span {
            margin-right: 20px;
            display: flex;
            align-items: center;
        }
        
        .article-description {
            background-color: #f8f9fa;
            padding: 15px;
            border-left: 4px solid var(--primary-color);
            font-style: italic;
            color: #555;
            margin-bottom: 20px;
            border-radius: 0 6px 6px 0;
        }
        
        .article-thumb {
            width: 100%;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 25px;
        }
        
        .article-thumb img {
            width: 100%;
            height: auto;
            display: block;
        }
        
        .article-body {
            background-color: var(--light-color);
            border-radius: 8px;
            padding: 30px;
            box-shadow: var(--shadow);
            margin-bottom: 30px;
            overflow: hidden;
        }
        
        .article-content {
            font-size: 16px;
            line-height: 1.8;
            color: #444;
            overflow: visible;
        }
        
        .article-content p {
            margin-bottom: 20px;
        }
        
        .article-content img {
            max-width: 100%;
            height: auto;
            border-radius: 6px;
            margin: 20px 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .article-footer {
            background-color: var(--light-color);
            border-radius: 8px;
            padding: 20px 30px;
            box-shadow: var(--shadow);
            margin-bottom: 30px;
        }
        
        /* 文章導航 - 優化後的樣式 */
        .article-navigation {
            display: flex;
            justify-content: space-between;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid var(--border-color);
            gap: 15px;
        }
        
        .nav-prev, .nav-next {
            flex: 1;
            min-width: 0; /* 防止內容溢出 */
        }
        
        .nav-next {
            text-align: right;
        }
        
        .nav-link {
            display: flex;
            align-items: center;
            padding: 15px;
            background-color: #f8f9fa;
            border-radius: 8px;
            transition: all 0.3s ease;
            cursor: pointer;
            border: 1px solid var(--border-color);
            height: 100%;
        }
        
        .nav-link:hover {
            background-color: rgba(0, 136, 204, 0.1);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .nav-link i {
            font-size: 18px;
            margin: 0 10px;
            color: var(--primary-color);
            flex-shrink: 0;
        }
        
        .nav-text {
            flex: 1;
            min-width: 0; /* 防止文字溢出 */
            overflow: hidden;
        }
        
        .nav-title {
            font-weight: 600;
            margin-bottom: 5px;
            color: var(--dark-color);
            font-size: 16px;
            line-height: 1.4;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        
        .nav-label {
            font-size: 13px;
            color: var(--gray-color);
            font-weight: 500;
        }
        
        /* 側邊欄樣式 */
        .sidebar-widget {
            background-color: var(--light-color);
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: var(--shadow);
        }
        
        .widget-title {
            font-size: 20px;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
        }
        
        .widget-title i {
            margin-right: 10px;
            color: var(--primary-color);
        }
        
        .latest-list li, .popular-list li, .random-list li {
            padding: 12px 0;
            border-bottom: 1px solid var(--border-color);
        }
        
        .latest-list li:last-child, .popular-list li:last-child, .random-list li:last-child {
            border-bottom: none;
        }
        
        .latest-list a, .popular-list a, .random-list a {
            display: flex;
            align-items: center;
        }
        
        .latest-list img, .popular-list img, .random-list img {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 4px;
            margin-right: 15px;
        }
        
        .latest-info, .popular-info, .random-info {
            flex: 1;
            min-width: 0;
        }
        
        .latest-title, .popular-title, .random-title {
            font-size: 16px;
            margin-bottom: 5px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .latest-meta, .popular-meta, .random-meta {
            font-size: 12px;
            color: var(--gray-color);
        }
        
        /* 底部樣式 */
        footer {
            background-color: var(--dark-color);
            color: var(--light-color);
            padding: 40px 0 20px;
        }
        
        .footer-container {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 30px;
        }
        
        .footer-widget h3 {
            font-size: 18px;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .footer-links li {
            margin-bottom: 10px;
        }
        
        .footer-links a {
            color: rgba(255, 255, 255, 0.7);
        }
        
        .footer-links a:hover {
            color: var(--light-color);
        }
        
        .copyright {
            text-align: center;
            padding-top: 20px;
            margin-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
        }
        
        /* 返回頂部按鈕 */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background-color: var(--primary-color);
            color: var(--light-color);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 20px;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 999;
            border: none;
            outline: none;
        }
        
        .back-to-top.active {
            opacity: 1;
            visibility: visible;
        }
        
        .back-to-top:hover {
            background-color: #005580;
            transform: translateY(-3px);
        }
        
        /* 響應式設計 - 優化移動端 */
        @media (max-width: 992px) {
            .main-content {
                grid-template-columns: 1fr;
            }
            
            .footer-container {
                grid-template-columns: 1fr 1fr;
            }
        }
        
        @media (max-width: 768px) {
            .header-container {
                flex-wrap: wrap;
            }
            
            nav {
                width: 100%;
                margin-top: 15px;
                display: none;
            }
            
            nav.active {
                display: block;
            }
            
            nav ul {
                flex-direction: column;
            }
            
            nav ul li {
                margin: 5px 0;
            }
            
            .mobile-menu-btn {
                display: block;
            }
            
            .footer-container {
                grid-template-columns: 1fr;
            }
            
            .article-title {
                font-size: 26px;
            }
            
            .article-meta {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .article-meta span {
                margin-bottom: 8px;
            }
            
            /* 移動端文章導航優化 */
            .article-navigation {
                flex-direction: column;
                gap: 15px;
            }
            
            .nav-prev, .nav-next {
                width: 100%;
            }
            
            .nav-link {
                padding: 12px;
            }
            
            .nav-title {
                font-size: 15px;
                -webkit-line-clamp: 2;
            }
            
            .nav-label {
                font-size: 12px;
            }
            
            .article-content {
                font-size: 15px;
            }
            
            .article-body {
                padding: 20px;
            }
            
            .article-header {
                padding: 20px;
            }
            
            .article-footer {
                padding: 15px 20px;
            }
        }
        
        @media (max-width: 480px) {
            .container {
                padding: 0 10px;
            }
            
            .article-title {
                font-size: 22px;
            }
            
            .nav-link {
                padding: 10px;
            }
            
            .nav-title {
                font-size: 14px;
            }
            
            .nav-link i {
                font-size: 16px;
                margin: 0 8px;
            }
        }

        /* 動畫效果 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .fade-in-up {
            animation: fadeInUp 0.5s ease forwards;
        }
        
        /* 閱讀進度條 */
        .reading-progress {
            position: fixed;
            top: 0;
            left: 0;
            width: 0;
            height: 3px;
            background-color: var(--primary-color);
            z-index: 1001;
            transition: width 0.3s ease;
        }