:root {
            --primary: #2B6FF2;
            --primary-light: #EBF2FF;
            --dark: #1E2A3A;
            --gray: #6E7B8C;
            --bg: #F5F8FC;
            --border: #DCE3EC;
            --radius: 16px;
        }

        * { margin:0; padding:0; box-sizing:border-box; font-family: system-ui, sans-serif; }
        body { background: var(--bg); color: var(--dark); }

        .topnav { background: white; border-bottom: 2px solid var(--border); position: sticky; top: 0; z-index: 1000; padding: 0 2rem; height: 64px; display: flex; align-items: center; justify-content: space-between; }
        .topnav a { text-decoration: none; color: var(--dark); font-weight: 600; }
        .topnav-links { display: flex; gap: 2rem; }
        .topnav-links a { font-size: 15px; padding-bottom: 4px; border-bottom: 2px solid transparent; }
        .topnav-links a:hover { color: var(--primary); border-bottom-color: var(--primary); }

        .api-header { text-align: center; padding: 50px 2rem 30px; background: white; margin-bottom: 20px; }
        .api-header h1 { font-size: 38px; font-weight: 800; margin-bottom: 10px; }
        .api-header p { font-size: 16px; color: var(--gray); max-width: 700px; margin: 0 auto 30px; }
        .api-meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
        .meta-card { background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
        .meta-label { font-size: 14px; color: var(--gray); margin-bottom: 8px; }
        .meta-value { font-size: 24px; font-weight: 700; }
        .status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 20px; font-size: 13px; }
        .status-green { background: #D1FAE5; color: #059669; }
        .status-red { background: #FEE2E2; color: #DC2626; }
        .status-yellow { background: #FEF3C7; color: #D97706; }

        .container { max-width: 1100px; margin: 0 auto; padding: 0 2rem 60px; }
        .section { background: white; border: 2px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
        .section h2 { font-size: 22px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
        .url-box { background: #F1F5F9; padding: 14px; border-radius: 12px; font-family: monospace; word-break: break-all; }
        .param-table { width: 100%; border-collapse: collapse; }
        .param-table th, .param-table td { padding: 12px; border: 1px solid var(--border); text-align: left; }
        .param-table th { background: #F8FAFC; }
        .qps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
        .qps-card { background: #F8FAFC; border-radius: 12px; padding: 18px; text-align: center; }
        .btn-test { background: var(--primary); color: white; border: none; border-radius: 24px; padding: 14px 28px; font-weight: 600; width: 100%; cursor: pointer; margin-top: 12px; }
        .response-area {
            background: #F8FAFC;
            border-radius: 12px;
            padding: 18px;
            min-height: 300px;
            max-width: 100%;
            overflow: auto;
            word-break: normal;
            overflow-wrap: normal;
        }

        #response-output {
            white-space: pre;
            word-break: normal;
            overflow-wrap: normal;
            margin: 0;
        }
        .tester-grid > div:last-child {
            min-width: 0;
            overflow: hidden;
        }
        .code-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
        .tab-btn { padding: 8px 20px; border-radius: 20px; border: 2px solid var(--border); background: white; cursor: pointer; }
        .tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
        .code-panel { display: none; }
        .code-panel.active { display: block; }
        .code-panel pre { 
            background: #F1F5F9; 
            padding: 16px; 
            border-radius: 12px; 
            overflow-x: auto; 
            font-family: 'Courier New', monospace; 
            line-height: 1.5; 
            white-space: pre-wrap;
            word-break: break-word;
            max-width: 100%; 
        }

        .mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 2px solid var(--border); z-index: 999; padding: 8px 0 12px; justify-content: space-around; }
        .mobile-nav a { flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); font-size: 12px; display: flex; gap: 4px; }
        .mobile-nav a.active { color: var(--primary); }

        .footer { background: #1E2A3A; color: #B0BEC5; text-align: center; padding: 30px 30px 90px; margin-top: 60px; }

        .modal-overlay {
            position: fixed; top:0; left:0; width:100%; height:100%;
            background: rgba(0,0,0,0.5); z-index:9999;
            display: none; justify-content: center; align-items: center;
        }
        .modal-container {
            background: white; border-radius: var(--radius);
            width: 90%; max-width: 900px; max-height: 80vh;
            display: flex; flex-direction: column;
        }
        .modal-header {
            display: flex; justify-content: space-between; align-items: center;
            padding: 16px 24px; border-bottom: 2px solid var(--border);
        }
        .modal-body {
            display: flex; flex: 1; overflow: hidden;
        }
        .example-sidebar {
            width: 250px; border-right: 2px solid var(--border); overflow-y: auto;
            padding: 16px;
        }
        .example-content {
            flex: 1; padding: 24px; overflow-y: auto;
        }
        .example-item {
            padding: 12px; border-radius: 8px; cursor: pointer;
            margin-bottom: 8px; background: var(--bg);
        }
        .example-item.active { background: var(--primary-light); color: var(--primary); }
        .copy-btn {
            background: var(--primary); color: white; border: none;
            border-radius: 20px; padding: 6px 16px; cursor: pointer; font-size: 12px;
        }
        .copy-btn:hover { opacity: 0.9; }
        .empty-state { text-align: center; color: var(--gray); padding: 40px; }
        #request-method-select {
            margin-left: 8px;
            padding: 4px 12px;
            border-radius: 20px;
            border: 2px solid var(--border);
            background: white;
            font-size: 14px;
            cursor: pointer;
        }
        .response-toolbar {
            display: flex;
            gap: 8px;
            margin-bottom: 10px;
        }
        @media (max-width: 768px) {
            .topnav { justify-content: center; }
            .topnav-links { display: none; }
            .mobile-nav { display: flex; }
            .api-header { padding: 30px 1.2rem; }
            .api-header h1 { font-size: 28px; }
            .api-meta-grid { grid-template-columns: repeat(2, 1fr); }
            .container { padding: 0 1rem 100px; }
            .tester-grid { grid-template-columns: 1fr; }
            .modal-container { width: 95%; height: 90vh; }
            .modal-body { flex-direction: column; }
            .example-sidebar { width: 100%; height: 40%; border-right: none; border-bottom: 2px solid var(--border); }
            .example-content { height: 60%; }
            .footer { padding-bottom: 100px; }
            .response-toolbar {
                flex-direction: column;
            }
            .response-toolbar .copy-btn {
                width: 100%;
            }
        }
