        /* ==================== CSS Reset ==================== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* ==================== 基礎樣式 ==================== */
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", "微軟正黑體", sans-serif;
            background: #f5f7fa;
            color: #495057;
            line-height: 1.6;
            min-height: 100vh;
        }

        /* ==================== 頂部導航列 ==================== */
        .top-navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: #2c3e50;
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 24px;
            z-index: 1000;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .brand {
            font-size: 18px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 16px;
            font-size: 14px;
        }

        .logout-btn {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            color: white;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .logout-btn:hover {
            background: rgba(255,255,255,0.2);
        }

        /* ==================== 主選單列 ==================== */
        .main-menu {
            position: fixed;
            top: 60px;
            left: 0;
            right: 0;
            height: 50px;
            background: #FFFFFF;
            display: flex;
            align-items: center;
            padding: 0 24px;
            gap: 8px;
            z-index: 999;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        }

        .menu-item {
            padding: 8px 16px;
            color: #5a6c7d;
            font-size: 14px;
            font-weight: 500;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
            background: none;
        }

        .menu-item:hover {
            background: #f0f2f5;
            color: #27ae60;
        }

        .menu-item.active {
            background: #d4edda;
            color: #27ae60;
        }

        /* ==================== 內容區域 ==================== */
        .content-area {
            padding-top: 110px;
            padding-left: 24px;
            padding-right: 24px;
            padding-bottom: 40px;
            max-width: 1400px;
            margin: 0 auto;
            min-height: 100vh;
        }

        .page-header {
            margin-bottom: 32px;
        }

        .page-title {
            font-size: 28px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 8px;
        }

        .page-subtitle {
            font-size: 14px;
            color: #7f8c8d;
        }

        /* ==================== 統計卡片 ==================== */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 24px;
        }

        .stat-card {
            background: #FFFFFF;
            padding: 24px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            border-left: 4px solid #27ae60;
            cursor: pointer;
            transition: all 0.3s;
        }

        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.12);
        }

        .stat-value {
            font-size: 36px;
            font-weight: 700;
            color: #27ae60;
            margin-bottom: 8px;
        }

        .stat-label {
            font-size: 16px;
            font-weight: 500;
            color: #2c3e50;
        }

        .stat-sublabel {
            font-size: 13px;
            color: #95a5a6;
            margin-top: 4px;
        }

        /* ==================== 區塊容器 ==================== */
        .section {
            background: #FFFFFF;
            border-radius: 8px;
            padding: 24px;
            margin-bottom: 24px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .section-header {
            font-size: 18px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid #ecf0f1;
        }

        /* ==================== 篩選工具列 ==================== */
        .filter-bar {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
            flex-wrap: wrap;
            align-items: center;
        }

        .filter-bar select,
        .filter-bar input {
            padding: 10px;
            border: 1px solid #ced4da;
            border-radius: 4px;
            font-size: 14px;
            min-width: 150px;
        }

        .filter-bar button {
            padding: 10px 20px;
            background: #27ae60;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
        }

        .filter-bar button:hover {
            transform: scale(1.05);
            background: #229954;
        }

        /* ==================== 表格樣式 ==================== */
        .table-container {
            overflow-x: auto;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        thead th {
            background: #f8f9fa;
            padding: 12px;
            text-align: left;
            font-weight: 600;
            color: #5a6c7d;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 2px solid #e9ecef;
        }

        tbody td {
            padding: 16px 12px;
            border-bottom: 1px solid #f1f3f5;
            font-size: 14px;
            color: #495057;
        }

        tbody tr {
            transition: background 0.2s;
        }

        tbody tr:hover {
            background: #f8f9fa;
        }

        tbody tr.clickable {
            cursor: pointer;
        }

        tbody tr.clickable:hover {
            background: #e8f4fd;
        }

        /* ==================== 徽章元件 ==================== */
        .badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }

        .badge-pending {
            background: #fff3cd;
            color: #856404;
        }

        .badge-active {
            background: #d4edda;
            color: #155724;
        }

        .badge-completed {
            background: #cce5ff;
            color: #004085;
        }

        .badge-warning {
            background: #f8d7da;
            color: #721c24;
        }

        .badge-scratch {
            background: #ff6900;
            color: white;
        }

        .badge-appinventor {
            background: #4caf50;
            color: white;
        }

        /* ==================== 進度條 ==================== */
        .progress-bar {
            width: 120px;
            height: 20px;
            background: #e9ecef;
            border-radius: 10px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #27ae60, #229954);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 11px;
            font-weight: 600;
            transition: width 0.3s;
        }

        /* ==================== 按鈕樣式 ==================== */
        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
            font-weight: 500;
        }

        .btn-primary {
            background: #27ae60;
            color: white;
        }

        .btn-primary:hover {
            transform: scale(1.05);
            background: #229954;
        }

        .btn-secondary {
            background: white;
            border: 1px solid #27ae60;
            color: #27ae60;
        }

        .btn-secondary:hover {
            background: #f0f8f4;
        }

        .btn-danger {
            background: #e74c3c;
            color: white;
        }

        .btn-danger:hover {
            background: #c0392b;
        }

        .btn-icon {
            width: 32px;
            height: 32px;
            background: #f1f3f5;
            border-radius: 4px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
        }

        .btn-icon:hover {
            background: #27ae60;
            color: white;
        }

        /* ==================== 模態框 ==================== */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: #FFFFFF;
            border-radius: 8px;
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
        }

        .modal-content.large {
            max-width: 900px;
        }

        .modal-header {
            padding: 24px;
            border-bottom: 1px solid #e9ecef;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            font-size: 20px;
            color: #2c3e50;
            margin: 0;
            font-weight: 600;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            color: #6c757d;
            cursor: pointer;
            line-height: 1;
        }

        .modal-close:hover {
            color: #2c3e50;
        }

        .modal-body {
            padding: 24px;
        }

        .modal-footer {
            padding: 16px 24px;
            border-top: 1px solid #e9ecef;
            display: flex;
            justify-content: flex-end;
            gap: 12px;
        }

        /* ==================== 表單設計 ==================== */
        .form-group {
            margin-bottom: 16px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            color: #495057;
            font-weight: 500;
        }

        .form-label .required {
            color: #e74c3c;
        }

        .error-text {
            display: block;
            color: #e74c3c;
            font-size: 12px;
            margin-top: 4px;
        }

        .form-input,
        .form-select,
        .form-textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ced4da;
            border-radius: 4px;
            font-size: 14px;
            font-family: inherit;
        }

        .form-input:focus,
        .form-select:focus,
        .form-textarea:focus {
            outline: none;
            border-color: #27ae60;
            box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
        }

        .form-textarea {
            min-height: 100px;
            resize: vertical;
        }

        .form-error {
            color: #e74c3c;
            font-size: 12px;
            margin-top: 4px;
        }

        .char-count {
            text-align: right;
            font-size: 12px;
            color: #95a5a6;
            margin-top: 4px;
        }

        /* ==================== 評分滑桿 ==================== */
        .score-item {
            margin-bottom: 24px;
            padding: 16px;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 3px solid #27ae60;
        }

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

        .score-label {
            font-size: 15px;
            font-weight: 600;
            color: #2c3e50;
        }

        .score-weight {
            font-size: 13px;
            color: #7f8c8d;
        }

        .score-input-group {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .score-slider {
            flex: 1;
            height: 8px;
            border-radius: 4px;
            -webkit-appearance: none;
            appearance: none;
            background: #e9ecef;
            outline: none;
        }

        .score-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #27ae60;
            cursor: pointer;
        }

        .score-slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #27ae60;
            cursor: pointer;
            border: none;
        }

        .score-number {
            width: 80px;
            padding: 8px;
            border: 1px solid #ced4da;
            border-radius: 4px;
            text-align: center;
            font-size: 14px;
            font-weight: 600;
        }

        .total-score {
            padding: 20px;
            background: #d4edda;
            border-radius: 8px;
            text-align: center;
            margin-top: 24px;
        }

        .total-score-label {
            font-size: 14px;
            color: #155724;
            margin-bottom: 8px;
        }

        .total-score-value {
            font-size: 42px;
            font-weight: 700;
            color: #27ae60;
        }

        /* ==================== 作品展示區 ==================== */
        .work-display {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            text-align: center;
            margin-bottom: 24px;
        }

        .work-thumbnail {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            margin-bottom: 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .work-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
        }

        /* ==================== 作品資訊面板 ==================== */
        .info-panel {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 24px;
        }

        .info-item {
            display: flex;
            padding: 8px 0;
            border-bottom: 1px solid #e9ecef;
        }

        .info-item:last-child {
            border-bottom: none;
        }

        .info-label {
            flex: 0 0 120px;
            font-weight: 600;
            color: #5a6c7d;
        }

        .info-value {
            color: #2c3e50;
        }

        /* ==================== 進度指示器 ==================== */
        .progress-indicator {
            background: #f8f9fa;
            padding: 16px 20px;
            border-radius: 8px;
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .progress-text {
            font-size: 14px;
            color: #5a6c7d;
            min-width: 100px;
        }

        .progress-bar-full {
            flex: 1;
            height: 24px;
            background: #e9ecef;
            border-radius: 12px;
            overflow: hidden;
        }

        .progress-bar-full .progress-fill {
            height: 100%;
            font-size: 12px;
        }

        .progress-percent {
            font-size: 16px;
            font-weight: 600;
            color: #27ae60;
            min-width: 60px;
            text-align: right;
        }

        /* ==================== 操作按鈕組 ==================== */
        .action-buttons {
            display: flex;
            gap: 12px;
            justify-content: center;
            margin-top: 24px;
            flex-wrap: wrap;
        }

        /* ==================== 分頁控制 ==================== */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 24px;
            flex-wrap: wrap;
        }

        .pagination button {
            padding: 8px 12px;
            border: 1px solid #ced4da;
            background: white;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
        }

        .pagination button:hover {
            background: #f8f9fa;
        }

        .pagination button.active {
            background: #27ae60;
            color: white;
            border-color: #27ae60;
        }

        .pagination button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* ==================== 空狀態 ==================== */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #95a5a6;
        }

        .empty-state-icon {
            font-size: 64px;
            margin-bottom: 16px;
        }

        .empty-state-text {
            font-size: 18px;
            margin-bottom: 8px;
        }

        .empty-state-subtext {
            font-size: 14px;
        }

        /* ==================== 載入狀態 ==================== */
        .loading {
            text-align: center;
            padding: 40px;
            color: #7f8c8d;
        }

        .loading-spinner {
            display: inline-block;
            width: 40px;
            height: 40px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #27ae60;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* ==================== 響應式設計 ==================== */
        @media (max-width: 768px) {
            .content-area {
                padding-left: 16px;
                padding-right: 16px;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .main-menu {
                overflow-x: auto;
            }

            .filter-bar {
                flex-direction: column;
                align-items: stretch;
            }

            .filter-bar select,
            .filter-bar input {
                width: 100%;
            }

            .action-buttons {
                flex-direction: column;
            }

            .action-buttons .btn {
                width: 100%;
            }

            .modal-content {
                width: 95%;
                max-height: 95vh;
            }

            .table-container {
                overflow-x: auto;
            }

            table {
                min-width: 600px;
            }
        }

        /* ==================== 工具類別 ==================== */
        .hidden {
            display: none !important;
        }

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

        .text-right {
            text-align: right;
        }

        .mt-20 {
            margin-top: 20px;
        }

        .mb-20 {
            margin-bottom: 20px;
        }

        .flex-between {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .gap-12 {
            gap: 12px;
        }
