body *:not(.detail-content):not(.info-section):not(.params-table):not(.code-box):not(.description-box):not(.info-item label):not(.api-path):not(.enum-select):not(.copy-btn):not(.back-btn):not(span) {
  font-size: calc(1rem - 3px);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease;
}

.back-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(-5px);
}

.api-title {
    flex: 1;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-content {
    animation: slideInUp 0.8s ease;
}

.info-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.info-section:hover {
    box-shadow: var(--shadow-lg);
}

.info-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-section h2 i {
    color: var(--primary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-item span {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.api-path {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--glass-border);
}

.description-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
}

.description-box p {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Parameters Table */
.params-table-container {
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
}

.params-table th,
.params-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.params-table th {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
    font-weight: 600;
}

.params-table td {
    color: var(--text-secondary);
}

.params-table tr:hover {
    background: rgba(99, 102, 241, 0.1);
}

.param-type {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.enum-select {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: var(--text-primary);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 200px;
}

.enum-select:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
}

.enum-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

/* 下拉面板玻璃效果（梅花） */
.enum-select option {
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
  backdrop-filter: blur(10px);
}

.code-box {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-box pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.error-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
}

.error-box pre {
    color: #fecaca;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .api-title {
        font-size: 2rem;
    }
    
    .info-section {
        padding: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .params-table {
        font-size: 0.875rem;
    }
    
    .params-table th,
    .params-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .api-title {
        font-size: 1.5rem;
    }
    
    .info-section {
        padding: 1.25rem;
    }
    
    .code-box {
        padding: 1rem;
    }
    
    .copy-btn {
        position: static;
        margin-top: 1rem;
        width: 100%;
    }
}

/* Scrollable Tables */
.params-table-container {
    max-height: 400px;
    overflow: auto;
}

.params-table-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.params-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.params-table-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Animation for sections */
.info-section {
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
}

.info-section:nth-child(1) { animation-delay: 0.1s; }
.info-section:nth-child(2) { animation-delay: 0.2s; }
.info-section:nth-child(3) { animation-delay: 0.3s; }
.info-section:nth-child(4) { animation-delay: 0.4s; }
.info-section:nth-child(5) { animation-delay: 0.5s; }



/* =======  提高饱和度·雾面色组件  ======= */

/* =======  高亮·雾面色组件  ======= */

/* 1. 亮青绿 */
.info-item label.misty-teal {
    color: #2dd4ca;              /* 明度 80 %，饱和度 70 % */
    background: rgba(45, 212, 202, .15);
    padding: 2px 8px 3px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

/* 2. 亮暖橙 */
.info-item label.misty-warm {
    color: #fbbf24;              /* 明度 80 %，饱和度 75 % */
    background: rgba(251, 191, 36, .15);
    padding: 2px 8px 3px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

/* 3. 亮冷蓝紫 */
.info-item label.misty-cold {
    color: #a78bfa;              /* 明度 75 %，饱和度 70 % */
    background: rgba(167, 139, 250, .15);
    padding: 2px 8px 3px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

/* 4. 亮橄榄黄 */
.info-item label.misty-olive {
    color: #d9f99d;              /* 明度 85 %，饱和度 65 % */
    background: rgba(217, 249, 157, .15);
    padding: 2px 8px 3px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}



/* 仅对非 span 的元素放大一级 */
.detail-content,
.info-section,
.params-table,
.code-box pre,
.description-box p,
.info-item label,
.api-path,
.enum-select,
.copy-btn,
.back-btn {
  font-size: 1.162em;
}
/* 显式把 span 恢复为原来的 1rem（浏览器默认 14px） */
.detail-content span,
.info-item span,
.params-table span,
.code-box span,
.description-box span {
  font-size: 0.7rem;
}



/* =====  QPS 开关独立卡片（含文字前缀） ===== */
.qps-switch-card {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

/* 统一前缀文字 */
.qps-switch-card:before {
  content: "QPS 开关状态：";
  font-weight: 500;
  opacity: 0.8;
}

/* 开启状态 */
.qps-switch-card.on {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.25);
}

/* 关闭状态 */
.qps-switch-card.off {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.25);
}

.qps-switch-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}


/* =====  新卡片：参数类型 + 请求方式  ===== */
.method-type-card {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

/* 参数类型徽章 */
.method-type-card .type-badge {
  color: #a78bfa;               /* 亮冷蓝紫 */
  background: rgba(167, 139, 250, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 0.5rem;
}

/* 请求方式徽章 */
.method-type-card .method-badge {
  color: #34d399;               /* 亮青绿 */
  background: rgba(52, 211, 153, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 0.5rem;
}

.method-type-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* =====  标题行右侧小标签 ===== */
.title-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: #10b981;          /* 鲜绿色，可换任意色 */
  border-radius: 0.25rem;
  white-space: nowrap;
}

