:root {
            --primary: #90c695;
            --success: #2ecc71;
            --warning: #f39c12;
            --danger: #e8999a;
            --light: #f8f9fa;
            --dark: #343a40;
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
            padding: 20px;
        }
        
        .container {
            max-width: 1000px;
            margin: 0 auto;
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        header {
            background: transparent;
            color: #333;
            padding: 20px;
            text-align: center;
        }
        
        h1 {
            font-size: 24px;
            margin-bottom: 10px;
        }
        
        .description {
            font-size: 14px;
            color: #666;
        }
        
        .config-section {
            padding: 20px;
            border-bottom: 1px solid #eee;
        }
        
        .section-title {
            font-size: 18px;
            margin-bottom: 15px;
            color: var(--primary);
            display: flex;
            align-items: center;
        }
        
        .section-title i {
            margin-right: 10px;
            font-size: 20px;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
        }
        
        select {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 14px;
            background-color: white;
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2390c695' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            padding-right: 36px;
            transition: border-color 0.3s, box-shadow 0.3s;
        }
        
        select:hover {
            border-color: var(--primary);
        }
        
        select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(144, 198, 149, 0.2);
        }
        
        .api-format-group {
            background: linear-gradient(135deg, #f8fffe 0%, #f5f9f5 100%);
            border: 1px solid rgba(144, 198, 149, 0.3);
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
        }
        
        .api-format-group label {
            color: var(--primary);
            font-size: 14px;
            margin-bottom: 8px;
        }
        
        .api-format-wrapper {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        textarea, input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 14px;
        }
        
        textarea {
            min-height: 100px;
            resize: vertical;
        }
        
        .test-case {
            background: var(--light);
            padding: 10px;
            border-radius: 5px;
            margin-bottom: 10px;
            border-left: 3px solid var(--primary);
        }
        
        .test-case-title {
            font-weight: 600;
            margin-bottom: 5px;
        }

        .test-case .model-input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 14px;
        }
        
        .test-case-controls {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }
        
        .btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        
        .btn i {
            margin-right: 8px;
        }
        
        .btn:hover {
            background: #7ab37f;
            transform: translateY(-2px);
        }
        
        .btn:disabled {
            background: #95a5a6;
            cursor: not-allowed;
            transform: none;
        }
        
        .btn-danger {
            background: var(--danger);
        }
        
        .btn-danger:hover {
            background: #d17a7b;
        }
        
        .controls {
            display: flex;
            gap: 10px;
            padding: 0 20px 20px;
        }
        
        .results-section {
            padding: 20px;
        }
        
        .progress-container {
            background: #f0f0f0;
            border-radius: 5px;
            height: 10px;
            margin-bottom: 20px;
            overflow: hidden;
        }
        
        .progress-bar {
            height: 100%;
            background: var(--primary);
            width: 0%;
            transition: width 0.3s;
        }
        
        .results-container {
            display: grid;
            gap: 15px;
        }
        
        .result-item {
            background: white;
            border: 1px solid #eee;
            border-radius: 5px;
            padding: 15px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            transition: all 0.3s;
        }
        
        .result-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .result-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        
        .result-title {
            font-weight: 600;
            color: var(--primary);
        }
        
        .result-status {
            background: var(--warning);
            color: white;
            padding: 3px 8px;
            border-radius: 20px;
            font-size: 12px;
        }
        
        .result-status.completed {
            background: var(--success);
        }
        
        .result-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
        }
        
        .result-box {
            background: var(--light);
            padding: 10px;
            border-radius: 5px;
        }
        
        .result-label {
            font-size: 12px;
            text-transform: uppercase;
            color: #777;
            margin-bottom: 5px;
        }
        
        .result-text {
            font-size: 14px;
        }

        .latency-info {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
        }

        .latency-info .metric {
            text-align: center;
            padding: 8px;
            background: rgba(52, 152, 219, 0.1);
            border-radius: 5px;
        }

        .latency-info .metric-value {
            font-weight: 600;
            color: var(--primary);
            font-size: 16px;
        }

        .latency-info .metric-label {
            font-size: 11px;
            color: #777;
            text-transform: uppercase;
            margin-top: 2px;
        }

        /* Markdown 渲染样式 */
        .markdown-content {
            line-height: 1.6;
        }
        
        .markdown-content code {
            background-color: #f4f4f4;
            padding: 2px 4px;
            border-radius: 3px;
            font-family: 'Courier New', monospace;
            font-size: 14px;
        }
        
        .markdown-content pre {
            background-color: #f4f4f4;
            padding: 10px;
            border-radius: 5px;
            overflow-x: auto;
        }
        
        .markdown-content pre code {
            background: none;
            padding: 0;
        }
        
        .hidden {
            display: none;
        }
        
        @media (max-width: 768px) {
            .result-content {
                grid-template-columns: 1fr;
            }
            
            .controls {
                flex-direction: column;
            }
        }