        :root { 
            --primary-color: #0055A4; 
            --secondary-color: #AE1C28; 
            --bg-color: #f4f7f6; 
            --text-color: #2d3748; 
            --card-bg: #ffffff; 
            --border-color: #e2e8f0; 
        }
        .desktop-only {
            display: inline;
        }
        body { 
            font-family: 'Inter', 'Noto Sans TC', sans-serif; 
            background-color: var(--bg-color); 
            color: var(--text-color); 
            line-height: 1.8; 
            margin: 0; 
            padding: 0; 
            overflow-wrap: break-word;
            word-wrap: break-word;
        }
        
        /* Banner Styles */
        .site-banner {
            width: 100%;
            height: 260px;
            background: linear-gradient(rgba(10, 25, 47, 0.75), rgba(10, 25, 47, 0.9)), url('history_banner_bg.png');
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            position: relative;
            overflow: hidden;
        }
        .banner-content {
            text-align: center;
            color: #ffffff;
            animation: fadeIn 1.2s ease-in-out;
            z-index: 1;
        }
        .banner-subtitle {
            font-size: 1.1rem;
            letter-spacing: 6px;
            text-transform: uppercase;
            color: #cbd5e0;
            margin-bottom: 12px;
            font-weight: 600;
        }
        .banner-title {
            font-size: 3rem;
            font-weight: 700;
            text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
            margin: 0;
            background: linear-gradient(45deg, #fbd38d, #ffffff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(15px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Three column layout */
        .layout {
            display: grid;
            grid-template-columns: 280px 1fr 300px;
            gap: 30px;
            max-width: 1600px;
            margin: 0 auto;
            padding: 30px 20px;
            min-height: 100vh;
            box-sizing: border-box;
        }

        /* Sidebars */
        .sidebar-left, .sidebar-right {
            background: var(--card-bg);
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.02);
            position: sticky;
            top: 30px;
            height: calc(100vh - 60px);
            overflow-y: auto;
            box-sizing: border-box;
            border: 1px solid var(--border-color);
        }
        
        .footer-header {
            display: none; /* Hidden on desktop */
        }
        
        #searchResults {
            max-height: calc(100vh - 280px);
            overflow-y: auto;
            margin-top: 10px;
        }
        
        .sidebar-title {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 15px;
            border-bottom: 2px solid var(--primary-color);
            padding-bottom: 8px;
        }

        /* Table of Contents */
        .toc-item {
            display: block;
            color: #4a5568;
            text-decoration: none;
            padding: 6px 0;
            font-size: 0.92rem;
            border-bottom: 1px solid var(--border-color);
            transition: all 0.2s;
            line-height: 1.5;
        }
        .toc-item:hover { color: var(--primary-color); padding-left: 5px; }
        .toc-h3 { padding-left: 15px; font-size: 0.83rem; color: #718096; border-bottom: none; }

        /* Main Content */
        .content-middle {
            background-color: var(--card-bg);
            padding: 40px 50px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.03);
            border-radius: 12px;
            border: 1px solid var(--border-color);
            box-sizing: border-box;
            min-width: 0; /* Prevents flexbox/grid blowout */
            overflow-wrap: break-word;
            word-wrap: break-word;
        }
        
        .course-page {
            animation: fadeIn 0.4s ease;
        }

        /* Article Grid & Cards */
        .article-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 20px;
        }
        .article-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            box-shadow: 0 4px 10px rgba(0,0,0,0.03);
        }
        .article-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 25px rgba(0,85,164,0.12);
            border-color: rgba(0,85,164,0.3);
        }
        .card-image {
            width: 100%;
            height: 130px;
            background-size: cover;
            background-position: center;
            border-bottom: 1px solid var(--border-color);
            transition: transform 0.5s ease;
        }
        .article-card:hover .card-image {
            transform: scale(1.05);
        }
        .card-content {
            padding: 15px 20px;
            background: #fff;
            position: relative;
            z-index: 1;
        }
        .card-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 8px;
            line-height: 1.4;
        }
        .card-meta {
            font-size: 0.8rem;
            color: #718096;
            display: flex;
            justify-content: space-between;
        }
        .article-card.doc-card .card-image { display: none; }
        .article-card.doc-card .card-content { border-top: 4px solid var(--secondary-color); }
        
        /* Floating Home Button */
        .floating-home-btn {
            position: fixed;
            bottom: 70px;
            right: 30px;
            background: var(--primary-color);
            color: white;
            padding: 12px 24px;
            border-radius: 30px;
            font-size: 1rem;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(0, 85, 164, 0.4);
            cursor: pointer;
            z-index: 2000;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: transform 0.3s ease, background 0.3s ease, right 0.3s ease;
        }
        .floating-home-btn:hover {
            background: #004080;
            transform: translateY(-2px);
            color: white;
            text-decoration: none;
        }
        .floating-home-btn::before {
            content: "🏠";
            font-size: 1.1rem;
        }

        /* Align Floating Home Button with main content column on desktop (clear of right sidebar) */
        @media (min-width: 1201px) {
            .layout:not(.doc-mode) ~ .floating-home-btn {
                right: 350px;
            }
        }
        @media (min-width: 1640px) {
            .layout:not(.doc-mode) ~ .floating-home-btn {
                right: calc(50vw - 470px);
            }
        }

        /* Update Log */
        .update-entry {
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px dashed #e2e8f0;
        }
        .update-entry:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }
        .update-date {
            font-weight: 700;
            color: var(--primary-color);
            font-size: 0.9rem;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .update-date::before {
            content: "📅";
            font-size: 0.8rem;
        }
        .update-list {
            list-style-type: none;
            padding: 0;
            margin: 0;
            font-size: 0.85rem;
            color: #4a5568;
            line-height: 1.6;
        }
        .update-list li {
            position: relative;
            padding-left: 15px;
            margin-bottom: 6px;
        }
        .update-list li::before {
            content: "•";
            color: var(--secondary-color);
            position: absolute;
            left: 0;
            top: 0;
            font-weight: bold;
        }
        
        
        /* 3-Column Document Layout */
        .layout.doc-mode {
            grid-template-columns: 1fr !important;
            max-width: 1400px;
        }
        .layout.doc-mode .sidebar-left { display: none !important; }
        /* Display sidebar-right at the bottom of the page in doc-mode on desktop */
        @media (min-width: 1201px) {
            .layout.doc-mode .sidebar-right {
                display: block !important;
                position: relative !important;
                top: 0 !important;
                height: auto !important;
                width: 100% !important;
                margin-top: 40px !important;
                box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
            }
        }
        
        .doc-3col-container {
            display: flex;
            flex-direction: column;
            gap: 15px;
            width: 100%;
        }
        .doc-3col-header {
            display: grid;
            grid-template-columns: 1.2fr 1.2fr 0.6fr;
            gap: 20px;
            font-weight: 700;
            color: var(--primary-color);
            border-bottom: 2px solid var(--primary-color);
            padding-top: 15px;
            padding-bottom: 10px;
            position: sticky;
            top: 0;
            background: var(--card-bg);
            z-index: 10;
            font-size: 1.05rem;
            text-align: center;
        }
        .doc-3col-row {
            display: grid;
            grid-template-columns: 1.2fr 1.2fr 0.6fr;
            gap: 20px;
            border-bottom: 1px dashed #e2e8f0;
            padding-bottom: 15px;
        }
        .doc-col {
            font-size: 0.95rem;
            line-height: 1.6;
            color: #2d3748;
        }
        .doc-original {
            background: #f7fafc;
            padding: 12px;
            border-radius: 8px;
            font-family: 'Times New Roman', serif;
            border-left: 3px solid #a0aec0;
        }
        .doc-translation {
            padding: 12px;
        }
        .doc-explanation {
            background: #fffdf5;
            padding: 10px;
            border-radius: 8px;
            border: 1px dashed #ecc94b;
            font-size: 0.8rem;
        }
        
        /* Collapsible Explanation Accordion Styles inside a single unified card */
        .doc-explanation ul {
            list-style-type: none;
            padding-left: 0;
            margin: 0;
        }
        .explanation-details {
            margin-bottom: 6px;
            border-bottom: 1px dashed rgba(229, 196, 75, 0.3);
            background: transparent;
            transition: all 0.2s ease;
        }
        .explanation-details:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }
        .explanation-summary {
            padding: 5px 0;
            font-weight: 600;
            color: #2d3748;
            cursor: pointer;
            outline: none;
            user-select: none;
            display: flex;
            align-items: center;
            list-style: none;
            font-size: 0.78rem;
        }
        .explanation-summary::-webkit-details-marker {
            display: none;
        }
        .explanation-summary::before {
            content: "▶";
            display: inline-block;
            margin-right: 6px;
            font-size: 0.65rem;
            color: #ecc94b;
            transition: transform 0.2s ease;
        }
        .explanation-details[open] .explanation-summary::before {
            transform: rotate(90deg);
        }
        .explanation-summary:hover {
            color: #b7791f;
        }
        .explanation-content {
            padding: 6px 10px;
            background: rgba(255, 255, 240, 0.5);
            color: #4a5568;
            font-size: 0.75rem;
            line-height: 1.5;
            border-radius: 4px;
            margin-bottom: 6px;
        }
        .explanation-term strong {
            color: #2d3748;
        }
        
        @keyframes contentFadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Search Box */
        .search-box input {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 0.95rem;
            margin-bottom: 15px;
            box-sizing: border-box;
            outline: none;
            transition: border-color 0.2s;
        }
        .search-box input:focus { border-color: var(--primary-color); }
        
        .search-result-item {
            background: #f7fafc;
            padding: 10px 12px;
            border-radius: 6px;
            margin-bottom: 8px;
            font-size: 0.83rem;
            cursor: pointer;
            border-left: 3px solid var(--primary-color);
            transition: background 0.2s;
            line-height: 1.5;
        }
        .search-result-item:hover { background: #edf2f7; }
        mark { background-color: #fbd38d; color: #000; padding: 0 2px; border-radius: 2px; }

        /* Typography */
        h1 { font-size: 2.1rem; color: var(--primary-color); text-align: center; border-bottom: 3px solid var(--secondary-color); padding-bottom: 20px; margin-bottom: 30px; margin-top: 0; clear: both; line-height: 1.4; }
        h2 { font-size: 1.55rem; color: var(--primary-color); border-left: 5px solid var(--secondary-color); padding-left: 15px; margin-top: 45px; scroll-margin-top: 90px; clear: both; line-height: 1.4; }
        h3 { font-size: 1.25rem; color: #4a5568; margin-top: 25px; scroll-margin-top: 90px; line-height: 1.4; clear: both; }
        p { font-size: 1.02rem; margin-bottom: 20px; text-align: justify; }
        
        figure.image-left {
            float: left;
            width: 35%;
            margin: 10px 25px 15px 0;
            background: var(--card-bg);
            padding: 10px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
            box-sizing: border-box;
            border: 1px solid var(--border-color);
        }
        figure.image-left img {
            width: 100%;
            height: auto;
            border-radius: 6px;
            display: block;
        }
        figure.image-left figcaption {
            text-align: center;
            font-size: 0.83rem;
            color: #718096;
            margin-top: 10px;
            line-height: 1.4;
        }

        table { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 0.92rem; box-shadow: 0 4px 6px rgba(0,0,0,0.02); clear: both; display: block; overflow-x: auto; }
        th, td { padding: 10px 12px; text-align: left; border: 1px solid var(--border-color); }
        th { background-color: var(--primary-color); color: white; }
        tr:nth-child(even) { background-color: #f7fafc; }
        ul, ol { font-size: 1.02rem; line-height: 1.8; }
        a { color: var(--primary-color); text-decoration: none; overflow-wrap: break-word; word-wrap: break-word; }
        a:hover { text-decoration: underline; }
        pre, code { overflow-x: auto; word-wrap: break-word; }
        img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

        /* ===== Document Title Section Style Adjustments ===== */
        .doc-title-section {
            text-align: left;
            margin-bottom: 30px;
        }
        .doc-title-section h1 {
            text-align: center;
        }
        .doc-title-section h2 {
            text-align: left;
        }
        .doc-title-section p {
            text-align: justify;
        }
        .doc-title-section ul, .doc-title-section ol {
            text-align: left;
            padding-left: 25px;
            margin-bottom: 20px;
        }
        .doc-title-section li {
            text-align: left;
        }
        .doc-title-section blockquote {
            text-align: left;
        }

/* ==========================================
   Social Sharing Bar & Toast Notification
   ========================================== */
.share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding: 12px 16px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    flex-wrap: wrap;
}
.share-bar-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #718096;
    margin-right: 5px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease, width 0.2s ease, height 0.2s ease, padding 0.2s ease, border-radius 0.2s ease;
    border: none;
    text-decoration: none;
}
.share-text {
    display: inline;
}
.share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.share-btn-fb {
    background-color: #1877F2;
}
.share-btn-fb:hover {
    background-color: #166FE5;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(24, 119, 242, 0.2);
}
.share-btn-line {
    background-color: #06C755;
}
.share-btn-line:hover {
    background-color: #05B34C;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(6, 199, 85, 0.2);
}
.share-btn-x {
    background-color: #1A1A1A;
}
.share-btn-x:hover {
    background-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.share-btn-copy {
    background-color: #4A5568;
}
.share-btn-copy:hover {
    background-color: #2D3748;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(74, 85, 104, 0.2);
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(45, 55, 72, 0.95);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.mobile-update-log {
    display: none;
}

        /* ===== Responsive Media Queries ===== */
        @media (max-width: 1200px) {
            .layout { grid-template-columns: 280px 1fr; }
            
            /* Sidebar transitions to floating bottom card */
            .sidebar-right {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                width: 100%;
                height: 280px;
                top: auto;
                background: rgba(255, 255, 255, 0.96);
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
                box-shadow: 0 -10px 30px rgba(0,0,0,0.12);
                border-top: 3px solid var(--primary-color);
                border-radius: 16px 16px 0 0;
                z-index: 1000;
                margin: 0;
                padding: 0;
                overflow: hidden;
                display: flex;
                flex-direction: column;
                transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            }
            
            /* Collapsed State */
            .sidebar-right.collapsed-footer {
                transform: translateY(calc(100% - 48px));
            }
            
            /* Show controls header */
            .footer-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                min-height: 48px;
                height: 48px;
                background: linear-gradient(135deg, var(--primary-color), #0a252f);
                color: white;
                padding: 0 20px;
                cursor: pointer;
                user-select: none;
                flex-shrink: 0;
            }
            
            .footer-header-title {
                font-weight: 700;
                font-size: 0.92rem;
                letter-spacing: 1px;
            }
            
            .footer-toggle-btn {
                background: rgba(255, 255, 255, 0.2);
                border: none;
                color: white;
                padding: 4px 12px;
                border-radius: 20px;
                font-size: 0.78rem;
                font-weight: 600;
                cursor: pointer;
                transition: background 0.2s;
            }
            
            .footer-toggle-btn:hover {
                background: rgba(255, 255, 255, 0.3);
            }
            
            /* Grid inside floating footer */
            .footer-main-content {
                display: grid;
                grid-template-columns: 260px 1fr 240px;
                gap: 25px;
                padding: 20px 25px;
                height: calc(100% - 48px);
                box-sizing: border-box;
                overflow: hidden;
            }
            
            .footer-search-col {
                display: flex;
                flex-direction: column;
            }
            
            .footer-search-col .sidebar-title {
                margin-top: 0;
                margin-bottom: 12px;
                font-size: 1.05rem;
                border-bottom: 2px solid var(--primary-color);
                padding-bottom: 6px;
            }
            
            .footer-search-col .search-box input {
                margin-bottom: 0;
            }
            
            .footer-results-col {
                display: flex;
                flex-direction: column;
                overflow: hidden;
                border-left: 1px solid var(--border-color);
                border-right: 1px solid var(--border-color);
                padding: 0 20px;
            }
            
            #searchResults {
                flex: 1;
                max-height: 100%;
                overflow-y: auto;
                margin-top: 0;
                padding-right: 5px;
            }
            
            .footer-version-col {
                display: flex;
                align-items: flex-start;
                justify-content: center;
                overflow-y: auto;
                padding-right: 5px;
            }
            
            .version-card {
                background: #f7fafc;
                border-radius: 8px;
                padding: 12px;
                width: 100%;
                box-sizing: border-box;
                font-size: 0.78rem;
                color: #4a5568;
                text-align: center;
                border-top: 3px solid var(--primary-color);
                box-shadow: 0 2px 8px rgba(0,0,0,0.01);
            }
        }
        .nav-mobile-header { display: none; }
        @media (max-width: 800px) {
            .nav-mobile-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: 100%;
                padding-bottom: 5px;
                border-bottom: 1px solid rgba(0,0,0,0.05);
            }
            .nav-mobile-title {
                font-weight: 700;
                color: var(--primary-color);
                font-size: 1.05rem;
                display: flex;
                align-items: center;
                gap: 8px;
            }
            .nav-mobile-toggle {
                background: var(--primary-color);
                border: none;
                color: white;
                padding: 4px 12px;
                border-radius: 20px;
                font-size: 0.78rem;
                font-weight: 600;
                cursor: pointer;
            }
            .top-nav {
                height: auto;
                padding: 10px 0;
            }
            .nav-container {
                flex-direction: column;
                gap: 10px;
                padding: 0 15px;
            }
            .nav-links {
                display: flex;
                flex-direction: column;
                width: 100%;
                gap: 15px;
                align-items: flex-start;
            }
            .nav-links.collapsed {
                display: none;
            }
            .nav-group {
                flex-direction: column;
                width: 100%;
                align-items: flex-start;
            }
            .nav-group-title {
                padding-left: 0;
                color: var(--primary-color);
                border-bottom: 2px solid var(--secondary-color);
                width: 100%;
                border-radius: 0;
                margin-bottom: 8px;
                padding-bottom: 5px;
            }
            .nav-group-title:hover { background: none; }
            .dropdown-arrow { display: none; }
            .nav-dropdown {
                display: flex;
                flex-wrap: wrap;
                width: 100%;
                gap: 8px;
            }
            .nav-tab-btn {
                padding: 6px 12px;
                font-size: 0.82rem;
                text-align: left;
                white-space: nowrap;
                justify-content: flex-start;
                box-sizing: border-box;
                flex: 0 0 calc(50% - 4px);
            }
            .desktop-only {
                display: none;
            }

            .layout { display: flex; flex-direction: column; padding: 15px; padding-bottom: 60px; }
            .site-banner { height: 180px; }
            .banner-title { font-size: 2rem; }
            .banner-subtitle { font-size: 0.85rem; letter-spacing: 3px; }
            .sidebar-left { display: none; }
            
            .sidebar-right {
                height: 340px;
            }
            .sidebar-right.collapsed-footer {
                transform: translateY(calc(100% - 48px));
            }
            .footer-main-content {
                display: flex;
                flex-direction: column;
                gap: 12px;
                padding: 15px 15px;
                height: calc(100% - 48px);
                overflow-y: auto;
            }
            .footer-search-col .sidebar-title {
                display: none;
            }
            .footer-results-col {
                border-left: none;
                border-right: none;
                padding: 0;
            }
            #searchResults {
                max-height: none;
                overflow-y: visible;
            }
            .footer-version-col {
                display: block;
                margin-top: 15px;
                border-top: 1px solid #e2e8f0;
                padding-top: 15px;
            }
            
            .content-middle { padding: 25px 18px; }
            figure.image-left { width: 100% !important; float: none !important; margin: 0 0 20px 0 !important; }
            h1 { font-size: 1.6rem; }
            
            /* Mobile Collapsible Heading Style */
            .content-middle h2 {
                cursor: pointer;
                position: relative;
                padding-right: 40px;
                padding-top: 12px;
                padding-bottom: 12px;
                margin-top: 25px;
                background-color: #f7fafc;
                border-radius: 6px;
                border-left: 5px solid var(--secondary-color);
                padding-left: 15px;
                font-size: 1.25rem;
                transition: background-color 0.2s, color 0.2s;
            }
            .content-middle h2:hover {
                background-color: #edf2f7;
            }
            .content-middle h2::after {
                content: '▲';
                position: absolute;
                right: 15px;
                top: 50%;
                transform: translateY(-50%);
                font-size: 0.75rem;
                color: var(--primary-color);
                transition: transform 0.3s ease;
            }
            .content-middle h2.collapsed::after {
                transform: translateY(-50%) rotate(180deg);
            }
            
            th, td { padding: 6px 8px; font-size: 0.8rem; }
            
            /* Mobile 3-Column Document Layout */
            .doc-3col-header { display: none; }
            .doc-3col-row {
                grid-template-columns: 1fr !important;
                gap: 12px;
                border-bottom: 2px solid var(--primary-color);
                padding-bottom: 20px;
                margin-bottom: 10px;
            }
            .doc-original::before { content: "原文："; font-weight: bold; color: var(--primary-color); display: block; margin-bottom: 8px; font-family: sans-serif; }
            .doc-translation::before { content: "譯文："; font-weight: bold; color: var(--secondary-color); display: block; margin-bottom: 8px; }
            .doc-explanation::before { content: "解釋筆記："; font-weight: bold; color: #d69e2e; display: block; margin-bottom: 12px; }

            /* 2-column cards layout on mobile */
            .article-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }
            .card-image {
                height: 95px;
            }
            .card-content {
                padding: 10px 12px;
            }
            .card-title {
                font-size: 0.9rem;
                margin-bottom: 4px;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                text-overflow: ellipsis;
                height: 2.8em; /* Equalize title heights for perfect card alignment */
                line-height: 1.4;
            }
            .card-meta {
                font-size: 0.72rem;
            }

            /* Share bar buttons mobile overrides */
            .share-text {
                display: none;
            }
            .share-btn {
                padding: 0;
                width: 36px;
                height: 36px;
                border-radius: 50%;
                justify-content: center;
                align-items: center;
            }
            .share-bar {
                gap: 8px;
                padding: 10px 12px;
            }
            .share-bar-title {
                font-size: 0.8rem;
                margin-right: 2px;
            }

            /* Mobile collapsible update log styles */
            .mobile-update-log {
                display: block;
                background-color: #f7fafc;
                border: 1px solid #e2e8f0;
                border-radius: 8px;
                margin-top: 10px;
                margin-bottom: 25px;
                padding: 12px 16px;
                box-shadow: 0 4px 10px rgba(0,0,0,0.02);
            }
            .mobile-update-log-summary {
                font-weight: 700;
                font-size: 0.95rem;
                color: var(--primary-color);
                cursor: pointer;
                outline: none;
                list-style: none;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
            .mobile-update-log-summary::-webkit-details-marker {
                display: none;
            }
            .mobile-update-log-summary::after {
                content: "▼";
                font-size: 0.8rem;
                color: var(--primary-color);
                transition: transform 0.2s ease;
            }
            .mobile-update-log[open] .mobile-update-log-summary::after {
                content: "▲";
            }
            .mobile-update-log-content {
                margin-top: 15px;
                border-top: 1px dashed #e2e8f0;
                padding-top: 15px;
                max-height: 250px;
                overflow-y: auto;
                text-align: left;
            }
        }
    }
}