        /* === 現代深色主題樣式 === */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
            color: #f9fafb;
            line-height: 1.6;
            min-height: 100vh;
        }

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

        /* === 預覽標識 === */
        .preview-banner {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: linear-gradient(90deg, #3b82f6, #06b6d4);
            color: white;
            text-align: center;
            padding: 8px;
            z-index: 9999;
            font-weight: 600;
            font-size: 0.875rem;
        }

        /* === 1. 標題區樣式 === */
        .hero-section {
            text-align: center;
            padding: 120px 0 60px;
            /* 增加頂部padding為預覽橫幅留空間 */
            background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #1f2937 100%);
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
            opacity: 0.5;
        }

        .hero-content {
            position: relative;
            z-index: 1;
        }

        .hero-title {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 800;
            background: linear-gradient(135deg, #3b82f6, #06b6d4, #10b981);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 1rem;
            letter-spacing: -0.02em;
        }

        .hero-subtitle {
            font-size: clamp(1rem, 2.5vw, 1.25rem);
            color: #9ca3af;
            max-width: 600px;
            margin: 0 auto 2rem;
            font-weight: 400;
        }

        .hero-stats {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-top: 2rem;
            flex-wrap: wrap;
        }

        .hero-stat {
            text-align: center;
        }

        .hero-stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: #3b82f6;
            display: block;
        }

        .hero-stat-label {
            font-size: 0.875rem;
            color: #9ca3af;
            margin-top: 0.25rem;
        }

        /* === 2. 成本估算器樣式 === */
        .calculator-section {
            background: #374151;
            margin: -30px auto 60px;
            max-width: 1100px;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            border: 1px solid #4b5563;
        }

        .calculator-title {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 30px;
            color: #f9fafb;
            text-align: center;
        }

        .calculator-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
        }

        .form-label {
            font-size: 0.875rem;
            font-weight: 600;
            color: #d1d5db;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .form-input,
        .form-select {
            background: #1f2937;
            border: 2px solid #4b5563;
            border-radius: 12px;
            padding: 12px 16px;
            color: #f9fafb;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-input:focus,
        .form-select:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .form-select option {
            background: #1f2937;
            color: #f9fafb;
        }

        .cost-result {
            background: linear-gradient(135deg, #059669, #047857);
            border-radius: 16px;
            padding: 24px;
            text-align: center;
            grid-column: 1 / -1;
        }

        .cost-label {
            font-size: 0.875rem;
            color: #d1fae5;
            font-weight: 600;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        .cost-value {
            font-size: 2.5rem;
            font-weight: 800;
            color: #ffffff;
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
        }

        .cost-breakdown {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
        }

        .cost-item {
            text-align: center;
            padding: 12px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
        }

        .cost-item-label {
            font-size: 0.75rem;
            color: #d1fae5;
            margin-bottom: 4px;
        }

        .cost-item-value {
            font-size: 1rem;
            font-weight: 600;
            color: #ffffff;
        }

        /* === 3. 價格比較表樣式 === */
        .table-section {
            background: #374151;
            border-radius: 20px;
            padding: 40px;
            margin-bottom: 60px;
            border: 1px solid #4b5563;
        }

        .table-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }

        .table-title {
            font-size: 1.75rem;
            font-weight: 700;
            color: #f9fafb;
        }

        .table-controls {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            margin-bottom: 25px;
        }

        .control-group {
            display: flex;
            flex-direction: column;
            min-width: 150px;
        }

        .control-label {
            font-size: 0.75rem;
            font-weight: 600;
            color: #d1d5db;
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .control-input,
        .control-select {
            background: #1f2937;
            border: 1px solid #4b5563;
            border-radius: 8px;
            padding: 8px 12px;
            color: #f9fafb;
            font-size: 0.875rem;
        }

        .btn {
            background: #3b82f6;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 0.875rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn:hover {
            background: #2563eb;
            transform: translateY(-1px);
        }

        .table-container {
            overflow-x: auto;
            border-radius: 12px;
            border: 1px solid #4b5563;
        }

        .models-table {
            width: 100%;
            border-collapse: collapse;
            background: #1f2937;
        }

        .models-table th {
            background: #111827;
            color: #f9fafb;
            padding: 16px 12px;
            text-align: left;
            font-weight: 600;
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            cursor: pointer;
            transition: background-color 0.3s ease;
            position: relative;
        }

        .models-table th:hover {
            background: #1f2937;
        }

        .models-table th.sortable::after {
            content: '⇅';
            position: absolute;
            right: 8px;
            opacity: 0.5;
        }

        .models-table th.sort-asc::after {
            content: '↑';
            opacity: 1;
            color: #3b82f6;
        }

        .models-table th.sort-desc::after {
            content: '↓';
            opacity: 1;
            color: #3b82f6;
        }

        .models-table td {
            padding: 16px 12px;
            border-bottom: 1px solid #374151;
            color: #d1d5db;
        }

        .models-table tr:hover {
            background: #374151;
        }

        .provider-cell {
            font-weight: 600;
            color: #3b82f6;
        }

        .model-cell {
            font-weight: 600;
            color: #f9fafb;
        }

        .price-cell {
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
            color: #10b981;
            font-weight: 600;
        }

        .speed-cell {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        .speed-world {
            background: #fef3c7;
            color: #92400e;
        }

        .speed-extremely-fast {
            background: #dcfce7;
            color: #166534;
        }

        .speed-very-fast {
            background: #dbeafe;
            color: #1e40af;
        }

        .speed-fast {
            background: #e0e7ff;
            color: #3730a3;
        }

        .speed-medium {
            background: #fde68a;
            color: #92400e;
        }

        /* === 4. 頁尾樣式 === */
        .footer-section {
            background: #111827;
            padding: 40px 0;
            text-align: center;
            border-top: 1px solid #374151;
        }

        .footer-content {
            color: #9ca3af;
            font-size: 0.875rem;
            line-height: 1.8;
        }

        .footer-content p {
            margin-bottom: 8px;
        }

        .footer-brand {
            color: #3b82f6;
            font-weight: 600;
        }

        /* === 響應式設計 === */
        @media (max-width: 768px) {
            .hero-section {
                padding: 100px 0 40px;
            }

            .hero-stats {
                flex-direction: column;
                gap: 1rem;
            }

            .calculator-section {
                margin: -20px 20px 40px;
                padding: 30px 20px;
            }

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

            .cost-result {
                margin-top: 20px;
            }

            .table-section {
                padding: 30px 20px;
                margin: 0 20px 40px;
            }

            .table-controls {
                flex-direction: column;
                gap: 10px;
            }

            .control-group {
                min-width: auto;
            }

            .cost-breakdown {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 480px) {

            .calculator-section,
            .table-section {
                margin-left: 10px;
                margin-right: 10px;
                padding: 20px 15px;
            }

            .cost-breakdown {
                grid-template-columns: 1fr;
            }
        }

        /* === 動畫效果 === */
        .fade-in {
            animation: fadeIn 0.6s ease-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

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

        .slide-up {
            animation: slideUp 0.8s ease-out;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }

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

        .pulse {
            animation: pulse 2s infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.5;
            }
        }

        /* === 演示用樣式 === */
        .demo-highlight {
            border: 2px solid #3b82f6 !important;
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2) !important;
        }

/* === Modal === */
.modal {
    display: none; 
    position: fixed; 
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    color: #000;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.read-more-btn {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    padding: 0;
    font-size: 0.875rem;
}

.read-more-btn:hover {
    text-decoration: underline;
}
