        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* CSS 變數定義 - 支援明暗模式 */
        :root {
            /* Light Mode Colors */
            --bg-primary: #ffffff;
            --bg-secondary: #f8fafc;
            --bg-gradient-start: #667eea;
            --bg-gradient-end: #764ba2;
            --text-primary: #2c3e50;
            --text-secondary: #64748b;
            --text-muted: #6b7280;
            --header-bg-start: #4f46e5;
            --header-bg-end: #7c3aed;
            --accent-color: #4f46e5;
            --border-color: #e2e8f0;
            --highlight-bg: #f8fafc;
            --highlight-border: #4f46e5;
            --card-bg: #f8fafc;
            --card-border: #e2e8f0;
            --code-bg: #1e293b;
            --code-text: #e2e8f0;
            --success-bg: #ecfdf5;
            --success-border: #10b981;
            --success-text: #047857;
            --footer-bg: #1e293b;
            --footer-text: #e2e8f0;
            --link-color: #60a5fa;
            --link-hover: #93c5fd;
        }

        /* Dark Mode Colors */
        @media (prefers-color-scheme: dark) {
            :root {
                --bg-primary: #0f172a;
                --bg-secondary: #1e293b;
                --bg-gradient-start: #1e293b;
                --bg-gradient-end: #334155;
                --text-primary: #f1f5f9;
                --text-secondary: #cbd5e1;
                --text-muted: #94a3b8;
                --header-bg-start: #3730a3;
                --header-bg-end: #581c87;
                --accent-color: #6366f1;
                --border-color: #334155;
                --highlight-bg: #1e293b;
                --highlight-border: #6366f1;
                --card-bg: #1e293b;
                --card-border: #334155;
                --code-bg: #0f172a;
                --code-text: #e2e8f0;
                --success-bg: #064e3b;
                --success-border: #059669;
                --success-text: #34d399;
                --footer-bg: #020617;
                --footer-text: #e2e8f0;
                --link-color: #60a5fa;
                --link-hover: #93c5fd;
            }
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            line-height: 1.6;
            color: var(--text-primary);
            background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
            min-height: 100vh;
            padding: 20px;
            transition: all 0.3s ease;
        }

        .newsletter-container {
            max-width: 800px;
            margin: 0 auto;
            background: var(--bg-primary);
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .header {
            background: linear-gradient(135deg, var(--header-bg-start) 0%, var(--header-bg-end) 100%);
            color: white;
            padding: 40px 30px;
            text-align: center;
            position: relative;
        }

        .header h1 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .header .subtitle {
            font-size: 1.1rem;
            opacity: 0.9;
            font-weight: 300;
        }

        .version-badge {
            background: rgba(255, 255, 255, 0.2);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            margin-top: 10px;
            display: inline-block;
        }

        .content {
            padding: 40px 30px;
        }

        .section {
            margin-bottom: 40px;
        }

        .section-title {
            font-size: 1.8rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 3px solid var(--border-color);
            position: relative;
        }

        .section-title::before {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            width: 50px;
            height: 3px;
            background: linear-gradient(90deg, var(--header-bg-start), var(--header-bg-end));
            border-radius: 2px;
        }

        .highlight-box {
            background: var(--highlight-bg);
            border-left: 4px solid var(--highlight-border);
            padding: 20px;
            margin: 20px 0;
            border-radius: 8px;
            border: 1px solid var(--border-color);
        }

        .tech-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin: 20px 0;
        }

        .tech-card {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            padding: 20px;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .tech-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        }

        .tech-card h4 {
            color: var(--accent-color);
            font-weight: 600;
            margin-bottom: 8px;
        }

        .code-block {
            background: var(--code-bg);
            color: var(--code-text);
            padding: 24px;
            border-radius: 12px;
            font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
            font-size: 13px;
            line-height: 1.8;
            overflow-x: auto;
            margin: 20px 0;
            white-space: pre-wrap;
            word-break: break-word;
            position: relative;
            border: 1px solid var(--border-color);
        }

        .code-block::before {
            content: attr(data-lang);
            position: absolute;
            top: 8px;
            right: 16px;
            font-size: 11px;
            color: var(--text-muted);
            background: var(--bg-secondary);
            padding: 4px 8px;
            border-radius: 4px;
        }

        .keyword { color: #c792ea; }
        .string { color: #c3e88d; }
        .comment { color: var(--text-muted); }
        .function { color: #82aaff; }
        .class { color: #ffcb6b; }
        .import { color: #89ddff; }

        .architecture-container {
            text-align: center;
            margin: 30px 0;
            padding: 20px;
            background: var(--bg-secondary);
            border-radius: 12px;
            border: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
        }

        /* 改善 SVG 圖表的顯示 */
        .architecture-container svg {
            max-width: 100%;
            height: auto;
            min-height: 400px;
            cursor: grab;
            transition: transform 0.3s ease;
        }

        .architecture-container svg:active {
            cursor: grabbing;
        }

        /* 縮放控制按鈕 */
        .zoom-controls {
            position: absolute;
            top: 10px;
            right: 10px;
            display: flex;
            gap: 8px;
            z-index: 10;
        }

        .zoom-btn {
            background: var(--accent-color);
            color: white;
            border: none;
            border-radius: 6px;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 18px;
            font-weight: bold;
            transition: all 0.2s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .zoom-btn:hover {
            background: var(--header-bg-start);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .zoom-btn:active {
            transform: translateY(0);
        }

        /* 響應式改進 */
        @media (max-width: 768px) {
            .architecture-container {
                padding: 15px;
                margin: 20px 0;
            }
            
            .architecture-container svg {
                min-height: 300px;
            }
            
            .zoom-controls {
                top: 5px;
                right: 5px;
            }
            
            .zoom-btn {
                width: 28px;
                height: 28px;
                font-size: 16px;
            }
        }

        .use-case {
            background: var(--success-bg);
            border: 1px solid var(--success-border);
            border-radius: 8px;
            padding: 16px;
            margin: 12px 0;
        }

        .use-case h4 {
            color: var(--success-text);
            font-weight: 600;
            margin-bottom: 8px;
        }

        .qa-container {
            background: var(--bg-secondary);
            border-radius: 12px;
            padding: 25px;
            margin: 20px 0;
            border: 1px solid var(--border-color);
        }

        .qa-question {
            color: var(--accent-color);
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 20px;
            padding: 15px;
            background: var(--highlight-bg);
            border-radius: 8px;
            border-left: 4px solid var(--accent-color);
        }

        .qa-section {
            margin-bottom: 25px;
        }

        .qa-section h4 {
            margin-bottom: 12px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .qa-highlight {
            padding: 15px;
            border-radius: 8px;
            margin: 12px 0;
        }

        .qa-highlight.success {
            background: var(--success-bg);
            border-left: 4px solid var(--success-border);
        }

        .qa-highlight.warning {
            background: #fef2f2;
            border-left: 4px solid #ef4444;
            color: #dc2626;
        }

        .qa-highlight.info {
            background: #f0f9ff;
            border-left: 4px solid #3b82f6;
            color: #1d4ed8;
        }

        /* Dark mode 下的特殊調整 */
        @media (prefers-color-scheme: dark) {
            .qa-highlight.warning {
                background: #450a0a;
                border-left: 4px solid #dc2626;
                color: #fca5a5;
            }

            .qa-highlight.info {
                background: #0c4a6e;
                border-left: 4px solid #0ea5e9;
                color: #7dd3fc;
            }
        }

        .footer {
            background: var(--footer-bg);
            color: var(--footer-text);
            padding: 40px 30px;
            text-align: center;
        }

        .footer h3 {
            color: var(--footer-text);
            margin-bottom: 25px;
            font-size: 1.4rem;
        }

        .footer a {
            color: var(--link-color);
            text-decoration: none;
            font-weight: 600;
        }

        .footer a:hover {
            color: var(--link-hover);
            text-decoration: underline;
        }

        .links-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .link-card {
            background: #34495e;
            padding: 25px;
            border-radius: 12px;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid #4a5f7a;
            color: #ecf0f1;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .link-card h4 {
            color: #ecf0f1;
            margin-bottom: 12px;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .link-card p {
            color: #bdc3c7;
            margin-top: 10px;
            font-size: 0.9rem;
            line-height: 1.5;
        }

        .link-card a {
            color: #3498db;
            text-decoration: none;
            font-weight: 600;
            font-size: 1rem;
            display: inline-block;
            margin: 8px 0;
        }

        .link-card a:hover {
            color: #5dade2;
            text-decoration: underline;
        }

        .link-card:hover {
            background: #3a526b;
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        /* 響應式設計 */
        @media (max-width: 768px) {
            .header h1 {
                font-size: 2rem;
            }
            
            .content {
                padding: 30px 20px;
            }
            
            .tech-grid, .links-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Pattern-specific styles */
        .pattern-intro {
            margin: 30px 0 20px 0;
            padding: 20px;
            background: var(--highlight-bg);
            border-radius: 12px;
            border: 1px solid var(--border-color);
        }

        .pattern-intro h4 {
            color: var(--accent-color);
            font-size: 1.3rem;
            margin-bottom: 15px;
        }

        .pattern-benefits {
            margin-top: 15px;
            padding: 15px;
            background: var(--success-bg);
            border-left: 4px solid var(--success-border);
            border-radius: 8px;
        }

        .pattern-benefits ul {
            margin: 10px 0 0 20px;
            color: var(--success-text);
        }

        .pattern-benefits li {
            margin-bottom: 5px;
        }