/* ========================================
   全局样式重置
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主题色 */
    --primary-color: #667eea;
    --primary-hover: #7c8ff0;
    --primary-light: #ede9fe;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #ff4d4f;
    --info-color: #667eea;
    
    /* 中性色 */
    --text-primary: #262626;
    --text-secondary: #595959;
    --text-disabled: #bfbfbf;
    --border-color: #d9d9d9;
    --divider-color: #f0f0f0;
    --background: #ffffff;
    --background-light: #fafafa;
    --background-dark: #f5f5f5;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 6px 24px rgba(0, 0, 0, 0.12);
    
    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    
    /* 布局尺寸 */
    --header-height: 64px;
    --footer-height: 30px;
    --sidebar-width: 300px;
    --sidebar-collapsed-width: 60px;

    /* 字体 scale 系统 */
    --font-xs: 12px;
    --font-sm: 14px;
    --font-base: 16px;
    --font-lg: 18px;
    --font-xl: 20px;
    --font-2xl: 24px;
    --font-3xl: 28px;
    --font-4xl: 32px;
    --font-6xl: 48px;

    /* 行高系统 */
    --leading-tight: 1.2;
    --leading-normal: 1.6;
    --leading-relaxed: 1.8;

    /* 精简中性色（5级） */
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-50: #f9fafb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #f5f5f5;
    font-size: 14px;
}

/* ========================================
   顶部导航栏
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--background);
    border-bottom: 1px solid var(--divider-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-lg);
    overflow-x: auto;
    overflow-y: hidden;
}

/* 隐藏header的滚动条，但保留滚动功能 */
.header::-webkit-scrollbar {
    height: 4px;
}

.header::-webkit-scrollbar-track {
    background: transparent;
}

.header::-webkit-scrollbar-thumb {
    background: var(--divider-color);
    border-radius: 2px;
}

.header::-webkit-scrollbar-thumb:hover {
    background: var(--text-disabled);
}

.header-content {
    width: 100%;
    min-width: fit-content;
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.logo:hover::before {
    opacity: 1;
}

.logo:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.logo-text-wrapper {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 27px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    line-height: 1;
}

.logo-badge {
    display: none;
}

/* 导航菜单 */
.header-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-left: var(--spacing-lg);
    flex-shrink: 0;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

.nav-link.active {
    color: var(--primary-color);
    background: var(--primary-light);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* 搜索栏 */
.header-search,
.sidebar-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    height: 40px;
    padding: 0 var(--spacing-md) 0 40px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--background-light);
    font-size: 14px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--background);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-input::placeholder {
    color: var(--text-disabled);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-disabled);
    font-size: 16px;
}

/* API Grid Button */
.api-grid-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.api-grid-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* API Grid Modal */
.api-grid-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.api-grid-modal.active {
    display: flex;
}

.api-grid-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.api-grid-modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.api-grid-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--divider-color);
}

.api-grid-modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.api-grid-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.api-grid-modal-close:hover {
    background: var(--background-light);
    color: var(--text-primary);
}

.api-grid-modal-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafafa;
}

.api-grid-modal-body {
    padding: var(--spacing-xl);
    overflow-y: auto;
    flex: 1;
}

.api-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.api-grid-item {
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.api-grid-item:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.api-grid-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.api-grid-item-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.api-grid-loading {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .api-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .api-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 480px) {
    .api-grid-container {
        grid-template-columns: 1fr;
    }
}

/* 用户操作区 */
.user-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-left: auto;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--divider-color);
}

/* 头像点击区域 */
#userAvatarBtn {
    position: relative;
    cursor: pointer;
}

/* 头像弹窗 */
.avatar-popup {
    position: fixed;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    min-width: 150px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    z-index: 9999;
    white-space: nowrap;
}

.avatar-popup-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.avatar-popup-logout {
    width: 100%;
    padding: 6px 0;
    background: none;
    border: none;
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s;
}

.avatar-popup-logout:hover {
    color: #dc2626;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.user-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.user-name-jindou {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
}

.jindou-icon-sm {
    width: 14px;
    height: 14px;
}

.user-apikey {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 12px;
    color: var(--text-secondary);
}

.user-apikey code {
    background: var(--background);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    color: #374151;
    font-size: 12px;
}

.user-jindou {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recharge-btn, .member-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.recharge-btn {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}

.recharge-btn:hover {
    background: #e0e7ff;
    border-color: #a5b4fc;
    transform: translateY(-1px);
}

.member-btn {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}

.member-btn:hover {
    background: #ede9fe;
    border-color: #c4b5fd;
    transform: translateY(-1px);
}

.user-actions button {
    height: 36px;
    padding: 0 var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

#loginBtn {
    background: var(--primary-color);
    color: white;
}

#loginBtn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

#logoutBtn {
    background: var(--background-dark);
    color: var(--text-secondary);
}

#logoutBtn:hover {
    background: var(--border-color);
}

/* ========================================
   主要布局容器
   ======================================== */
.main-container {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* ========================================
   左侧边栏 - API导航
   ======================================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--background);
    border-right: 1px solid var(--divider-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: var(--header-height);
    bottom: 0;
    z-index: 100;
    transition: width 0.3s;
}

/* 隐藏侧边栏（非首页） */
.sidebar.page-hidden {
    display: none;
}

.sidebar-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--divider-color);
}

.sidebar-header .sidebar-search {
    max-width: 100%;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.sidebar-toggle:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

/* API列表容器 */
.api-nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md) var(--spacing-md) 0 var(--spacing-md);
}

.api-nav::-webkit-scrollbar {
    width: 6px;
}

.api-nav::-webkit-scrollbar-track {
    background: transparent;
}

.api-nav::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.api-nav::-webkit-scrollbar-thumb:hover {
    background: var(--text-disabled);
}

/* API分组 */
.api-category {
    margin-bottom: 0;
    position: relative;
    padding-top: 5px;
}

.api-category::before {
    content: '';
    display: block;
    height: 1px;
    background: #f1f5f9;
    margin: 4px 0;
}

.api-category:first-child::before {
    display: none;
}

.api-category:first-child {
    padding-top: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 10px 12px;
    min-height: 40px;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    background: transparent;
    margin-bottom: 0;
    border: none;
    position: relative;
}

.category-header::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-header:hover {
    background: #f8fafc;
    border-radius: 6px;
}

.category-header:hover .category-title {
    color: #0f172a;
}

.category-header:hover::before {
    height: 60%;
}

.category-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.1px;
    transition: color 0.2s ease;
}

.category-count {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 22px;
    text-align: center;
    transition: all 0.2s ease;
}

/* 分类箭头 */
.category-arrow {
    font-size: 10px;
    color: #94a3b8;
    transition: transform 150ms ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.api-category.active .category-arrow,
.api-category.expanded .category-arrow {
    transform: rotate(90deg);
}

/* API列表项 */
.api-items {
    margin-top: var(--spacing-xs);
    padding-left: 8px;
}

.api-items.collapsed {
    display: none;
}

.api-item {
    display: flex;
    align-items: center;
    padding: 9px 12px 9px 24px;
    margin: 2px 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
}

.api-item::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    background: #cbd5e1;
    border-radius: 1px;
    transition: all 0.2s ease;
}

.api-item:hover {
    background: rgba(248, 250, 252, 0.8);
}

.api-item:hover::before {
    height: 50%;
}

.api-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.api-item.active::before {
    height: 60%;
    background: #ffffff;
    width: 2px;
}

.api-item.active .api-name {
    color: #ffffff;
    font-weight: 600;
}

.api-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    min-width: 34px;
    text-align: center;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-right: var(--spacing-sm);
}

.api-method.get {
    background: #ede9fe;
    color: #6d28d9;
}

.api-method.post {
    background: #dcfce7;
    color: #16a34a;
}

.api-method.put {
    background: #fef3c7;
    color: #d97706;
}

.api-method.delete {
    background: #fee2e2;
    color: #dc2626;
}

.api-method-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 8px;
}

.api-name {
    flex: 1;
    font-size: 14px;
    color: #262626;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.api-status-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    line-height: 1;
    margin-left: var(--spacing-sm);
    white-space: nowrap;
}

/* 特殊API项 - "新增API接口" */
.no-api-item {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-left: 3px solid #0ea5e9;
    margin-top: var(--spacing-md);
}

.no-api-item:hover {
    background: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.no-api-item .api-method.special {
    background: #0ea5e9;
    color: white;
    font-size: 16px;
    padding: 4px 10px;
    min-width: auto;
}

.no-api-item .api-name {
    color: #0369a1;
    font-weight: 700;
}

.no-api-item .api-hint {
    font-size: 12px;
    color: #0369a1;
    margin-left: auto;
    padding-left: var(--spacing-sm);
}

.api-status-tag.maintenance {
    background: #ff4d4f;
    color: #ffffff;
}

/* ========================================
   主内容区域
   ======================================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: calc(100vh - var(--header-height));
    transition: margin-left 0.3s;
    background: #ffffff;
    position: relative;
}

/* 侧边栏与主内容之间的 10px 灰色分隔线 */
.main-content::before {
    content: "";
    position: fixed;
    top: var(--header-height);
    left: var(--sidebar-width);
    width: 10px;
    height: calc(100vh - var(--header-height));
    background: #e8e8e8;
    z-index: 90;
    pointer-events: none;
}

/* 当页面不是首页时，主内容区占据全宽 */
body.hide-sidebar .main-content {
    margin-left: 0;
}

body.hide-sidebar .main-content::before {
    display: none;
}

/* 页面内容切换 */
.page-content {
    display: none;
    margin-top: 0;
    padding-top: 0;
    overflow: hidden;
    background: #ffffff;
}

.page-content.active {
    display: block;
}

/* 页面卡片 *//* ========================================
   业务动态页面
   ======================================== */
.business-line-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.business-card {
    background: var(--background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.business-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.business-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.business-card .date {
    font-size: 12px;
    color: var(--text-disabled);
}

.business-line-loading {
    text-align: center;
    padding: var(--spacing-xl);
    font-size: 16px;
    color: var(--text-disabled);
}

/* ========================================
   公司简介页面
   ======================================== */
.about-content {
    padding: var(--spacing-lg);
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

/* ========================================
   联系我们页面
   ======================================== */

.contact-qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 40px 20px;
    max-width: 900px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* 单个二维码区域 */
.qr-section {
    text-align: center;
    flex: 1;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 二维码标题 */
.qr-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qr-title img {
    width: 24px;
    height: 24px;
}

/* 二维码图片包装器 */
.qr-code-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    display: inline-block;
}

/* 二维码图片 */
.qr-code-image {
    width: 200px;
    height: 200px;
    display: block;
}

/* 二维码提示文字 */
.qr-tip {
    font-size: 14px;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .contact-qr-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 20px;
    }
}

.page-card {
    background: var(--background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) auto;
    max-width: 1200px;
}

/* ========================================
   新版关于我们页面
   ======================================== */

.about-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
    color: white;
    padding: 60px var(--spacing-lg);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.about-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 1px;
}

.about-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-top: var(--spacing-sm);
}

.about-section {
    margin-bottom: var(--spacing-xl);
}

/* ========================================
   新版业务动态页面
   ======================================== */

.page-title-center {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.page-title-center::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.business-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
    max-width: 1000px;
    margin: 0 auto;
}

.business-item-card {
    background: var(--background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    border: 1px solid var(--divider-color);
}

.business-item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.business-item-img {
    width: 180px;
    height: 140px;
    object-fit: cover;
    flex-shrink: 0;
}

.business-item-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.business-item-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.business-item-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.business-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-disabled);
}

.read-more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

/* 无图片业务动态卡片 */
.business-item-card-no-img {
    background: var(--background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--divider-color);
}

.business-item-card-no-img:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.business-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.business-item-card-no-img .business-item-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.business-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.business-status-badge.status-online {
    background: #d4edda;
    color: #155724;
}

.business-status-badge.status-developing {
    background: #fff3cd;
    color: #856404;
}

.business-status-badge.status-maintaining {
    background: #cce5ff;
    color: #004085;
}

.business-status-badge.status-pending {
    background: #e2e3e5;
    color: #383d41;
}

.business-status-badge.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.business-status-badge.status-default {
    background: #f8f9fa;
    color: #6c757d;
}

.business-item-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.business-item-date {
    font-size: 13px;
    color: var(--text-disabled);
}

/* 业务动态响应式设计 */
@media (max-width: 768px) {
    .business-item-card {
        flex-direction: column;
    }

    .business-item-img {
        width: 100%;
        height: 180px;
    }

    .business-item-content {
        padding: var(--spacing-md);
    }

    .business-item-title {
        font-size: 18px;
    }

    .business-item-excerpt {
        font-size: 13px;
    }

    .business-item-card-no-img .business-item-title {
        font-size: 18px;
    }

    .business-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
}

/* ========================================
   新版提交需求页面 - 赛博朋克风格由requirement.css控制
   ======================================== */

/* 基础样式由requirement.css接管 */

.about-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    align-items: start;
}

.about-main-content .about-section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: var(--spacing-sm);
    display: inline-block;
}

.about-main-content p {
    font-size: 16px;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.about-sidebar .sidebar-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.service-card {
    display: flex;
    gap: var(--spacing-md);
    background: var(--background);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 48px;
    height: 48px;
    padding: 8px;
    background-color: var(--primary-light);
    border-radius: 50%;
}

.service-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.service-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
    }
}

/* requirement-info-wrapper样式由requirement.css控制 */

/* ========================================
   新版联系我们页面
   ======================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
}

.contact-form-container, .contact-info-container {
    background: linear-gradient(145deg, #ffffff, #fafafa);
    padding: var(--spacing-xl);
    border-radius: 16px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form-container::before, .contact-info-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.1), rgba(124, 143, 240, 0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.contact-form-container:hover, .contact-info-container:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 2px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.contact-form-container h3, .contact-info-container h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 12px;
}

.contact-form-container h3::after, .contact-info-container h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

.contact-form-container .form-group {
    margin-bottom: var(--spacing-md);
}

.contact-form-container .form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.contact-form-container .form-group input,
.contact-form-container .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    background: #fafafa;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.contact-form-container .form-group input:focus,
.contact-form-container .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.05),
        0 0 0 3px rgba(102, 126, 234, 0.1);
}

.contact-form-container .form-group textarea {
    resize: vertical;
}

.contact-form-container .btn-primary {
    width: 100%;
    margin-top: var(--spacing-md);
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.contact-qr-container-redesigned {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.qr-section-redesigned {
    text-align: center;
    background: #fafafa;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.qr-section-redesigned:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.qr-section-redesigned .qr-code-image {
    width: 250px;
    height: 250px;
    border-radius: 10px;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-section-redesigned p {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 8px;
}

.contact-map-placeholder {
    display: none;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}


/* requirement-container响应式样式由requirement.css控制 */

.section-title-center::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
}



.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--divider-color);
    text-align: center;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.about-content p:last-child {
    margin-bottom: 0;
}

.content-wrapper {
    padding: 0 0 0 var(--spacing-md);
    margin-top: 0;
    overflow: hidden;
    background: #ffffff;
}

/* ========================================
   Homepage Sections
   ======================================== */

/* Homepage Welcome Container */
.homepage-welcome {
    display: block;
}

.homepage-welcome.hidden {
    display: none;
}

/* Hero Section */
.homepage-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 40px;
    margin: 0;
    border-radius: 0;
    color: white;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-description-sub {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.75;
    background: linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(139,92,246,0.08) 100%);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 20px;
    padding: 4px 14px;
    color: #6d28d9;
    letter-spacing: 0.3px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 18px var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Featured APIs Section */
.featured-apis {
    padding: 60px 40px 40px 40px;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 32px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.featured-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

.featured-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
    border-color: var(--primary-color);
}

.featured-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.featured-icon svg {
    width: 28px;
    height: 28px;
}

.featured-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.featured-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Value Propositions Section */
.value-section {
    padding: 40px;
    margin-bottom: var(--spacing-xl);
    background: var(--background-light);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.value-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.value-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-md);
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.value-icon svg {
    width: 24px;
    height: 24px;
}

.value-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.value-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .homepage-hero {
        padding: 24px 24px;
    }

    .featured-apis,
    .value-section {
        padding: 24px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .featured-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md);
    }

    .value-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* ========================================
   API详情卡片
   ======================================== */
.api-detail-card {
    border-radius: var(--radius-lg);
    box-shadow: none;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    background: #ffffff;
}

.api-detail-card:last-child {
    margin-bottom: 0;
}

/* API头部 */
.api-header {
    padding: 0 var(--spacing-md) var(--spacing-md);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.api-title-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.api-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.api-badges {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.badge {
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 4px;
}

.api-description {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.95;
    margin-top: var(--spacing-md);
}

/* ========================================
   标签页导航
   ======================================== */
.api-tabs {
    display: flex;
    background: var(--background-dark);
    border-bottom: 2px solid var(--divider-color);
}

.api-tab {
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
    bottom: -2px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.api-tab:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.api-tab.active {
    color: var(--primary-color);
    background: var(--background);
    border-bottom-color: var(--primary-color);
}

/* 标签页内容 */
.api-tab-content {
    display: none;
    padding: var(--spacing-md);
}

.api-tab-content.active {
    display: block;
}

/* ========================================
   文档区域
   ======================================== */
.doc-section {
    margin-bottom: var(--spacing-lg);
}

.doc-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1.5px solid var(--divider-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-content {
    padding: 6px 0;
}

/* 请求信息盒子 */
.request-info {
    background: var(--background-dark);
    border: 1px solid var(--divider-color);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 8px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 80px;
    font-size: 13px;
}

.info-value {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.url-text {
    flex: 1;
    padding: 6px 10px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #237bf8;
    overflow-x: auto;
    white-space: nowrap;
}

/* URL显示区域 */
.url-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.url-text-plain {
    /* flex: 1; */
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    color: #237bf8;
    word-break: break-all;
    line-height: 1.6;
}

.method-tag {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 12px;
}

/* 参数表格 */
.params-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    table-layout: fixed;
}

/* 列宽设置 */
.params-table th:nth-child(1),
.params-table td:nth-child(1) {
    width: 18%;
    white-space: nowrap;
}

.params-table th:nth-child(2),
.params-table td:nth-child(2) {
    width: 12%;
    white-space: nowrap;
}

.params-table th:nth-child(3),
.params-table td:nth-child(3) {
    width: 10%;
    white-space: nowrap;
}

.params-table th:nth-child(4),
.params-table td:nth-child(4) {
    width: 60%;
}

.params-table thead {
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
}

.params-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #262626;
    font-size: 13px;
    border-bottom: 2px solid #e8e8e8;
    white-space: nowrap;
}

.params-table th:first-child {
    padding-left: 20px;
}

.params-table th:last-child {
    padding-right: 20px;
}

.params-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    line-height: 1.6;
    color: #595959;
}

.params-table td:first-child {
    padding-left: 20px;
}

.params-table td:last-child {
    padding-right: 20px;
}

.params-table tbody tr:last-child td {
    border-bottom: none;
}

.params-table tbody tr {
    transition: all 0.2s ease;
}

.params-table tbody tr:hover {
    background: #fafafa;
}

.param-name {
    font-family: 'Courier New', Consolas, Monaco, monospace;
    color: #333333;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.param-required {
    color: #ff4d4f;
    font-weight: 600;
    font-size: 12px;
    display: inline-block;
    padding: 2px 8px;
    background: #fff1f0;
    border-radius: 4px;
}

.param-optional {
    color: #8c8c8c;
    font-size: 12px;
    display: inline-block;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 4px;
}

.no-params {
    text-align: center;
    padding: var(--spacing-md);
    color: var(--text-disabled);
    font-style: italic;
    font-size: 13px;
}

/* ========================================
   调试器区域
   ======================================== */
.debugger-container {
    display: grid;
    grid-template-columns: minmax(320px, calc(33.333% - 1px)) minmax(420px, calc(66.667% + 1px));
    gap: 0;
    margin-top: 0;
    padding-top: 0;
    height: calc(100vh - var(--header-height) - var(--footer-height));
    overflow: hidden;
    background: #ffffff;
}

/* 右侧页签容器 */
.debugger-tabs-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border: none;
    border-radius: 0;
    overflow: hidden;
    height: 100%;
}

/* 页签导航栏 */
.debugger-tabs-nav,
.debugger-tabs {
    display: flex;
    background: var(--background-dark);
    border-bottom: 1px solid var(--divider-color);
    flex-shrink: 0;
}

.debugger-tab-btn,
.debugger-tab {
    flex: 1;
    padding: var(--spacing-md);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.debugger-tab-btn:hover,
.debugger-tab:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.08);
}

.debugger-tab-btn.active,
.debugger-tab.active {
    color: var(--primary-color);
    background: var(--background);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

/* 页签内容区 */
.debugger-tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff;
}

.debugger-tab-content.active {
    display: flex;
    flex-direction: column;
}

/* 调试结果页签特殊样式 - 确保充分利用空间 */
.debugger-tab-content[data-debugger-content="debug-result"] {
    padding: 0;
    background: #1e1e1e !important;
}

.debugger-tab-content[data-debugger-content="debug-result"] .response-panel {
    height: 100%;
}

/* ========================================
   代码示例语言标签页
   ======================================== */
.code-lang-tabs {
    display: flex;
    gap: 0;
    padding: 0;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    overflow-x: auto;
    flex-shrink: 0;
}

.code-lang-tabs::-webkit-scrollbar {
    height: 6px;
}

.code-lang-tabs::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 3px;
}

.code-lang-tabs::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 3px;
}

.code-lang-tab {
    padding: 12px 24px;
    border: 1px solid #d9d9d9;
    border-bottom: none;
    border-left: none;
    background: #ffffff;
    color: #262626;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    box-shadow: none;
}

.code-lang-tab:first-child {
    border-left: 1px solid #d9d9d9;
}

.code-lang-tab:hover {
    color: var(--primary-color);
    background: #fafafa;
}

.code-lang-tab.active {
    color: var(--primary-color);
    background: #ffffff;
    border-color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 500;
    margin-bottom: -1px;
    z-index: 1;
}

.code-lang-tab.active:hover {
    background: #ffffff;
}

/* ========================================
   技术文档页签内容
   ======================================== */
.tech-doc-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--divider-color);
    background: #ffffff !important;
}

.tech-doc-title-row {
    margin-bottom: var(--spacing-md);
}

.tech-doc-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.tech-doc-badges {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.tech-doc-badges .badge {
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary-color);
}

.tech-doc-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.tech-doc-params {
    padding: var(--spacing-md);
    background: #ffffff !important;
}

/* ========================================
   代码示例内容区
   ======================================== */
.code-examples {
    position: relative;
    flex: 1;
}

.code-examples-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff !important;
}

/* 代码示例标签页容器 */
.code-examples-tabs {
    display: flex;
    gap: 0;
    padding: 0;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}

/* 代码示例内容容器 */
.code-examples-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 代码示例块 */
.code-example-block {
    display: none;
    flex-direction: column;
    height: 100%;
    background: #f5f5f5;
}

.code-example-block.active {
    display: flex;
}

/* 代码示例占位符 */
.code-examples-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-disabled);
    font-style: italic;
    font-size: 14px;
}

/* 代码操作栏 */
.code-actions {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    align-items: center;
}

.code-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    color: #595959;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
}

.code-action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.code-action-btn:active {
    transform: translateY(1px);
}

.code-action-btn.success {
    border-color: #52c41a;
    color: #52c41a;
}

/* 代码块样式 */
.code-example-block pre {
    flex: 1;
    margin: 0;
    padding: var(--spacing-lg);
    background: #f5f5f5;
    border: none;
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Courier New', Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: #262626;
    white-space: pre-wrap;
    word-wrap: break-word;
    box-shadow: none;
}

.code-example-block pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-example-block pre::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.code-example-block pre::-webkit-scrollbar-thumb {
    background: #bfbfbf;
    border-radius: 4px;
}

.code-example-block pre::-webkit-scrollbar-thumb:hover {
    background: #8c8c8c;
}

.code-example-block code {
    display: block;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: transparent;
}

/* 代码复制按钮 - 隐藏旧版悬浮按钮 */
.code-example-block .copy-btn,
.code-example-block .code-copy-btn {
    display: none;
}

/* 旧版兼容 */
.code-example {
    display: none;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.code-example.active {
    display: flex;
    flex-direction: column;
}

.code-example pre {
    flex: 1;
    margin: 0;
    padding: var(--spacing-lg);
    background: #f6f8fa;
    border-radius: var(--radius-md);
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Courier New', Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #24292f;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid #e1e4e8;
}

.code-example pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-example pre::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 4px;
}

.code-example pre::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

.code-example pre::-webkit-scrollbar-thumb:hover {
    background: #868e96;
}

.code-example code {
    display: block;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: transparent;
}

.code-example button {
    position: absolute;
    top: calc(48px + var(--spacing-md));
    right: var(--spacing-md);
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.code-example button:hover {
    background: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.code-example button:active {
    transform: translateY(0);
}

/* 请求面板 */
.request-panel {
    background: #ffffff !important;
    border: none;
    border-left: 10px solid #e8e8e8;
    border-right: 2px solid #e5e7eb;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.panel-header {
    padding: var(--spacing-md) var(--spacing-lg);
    background: #ffffff !important;
    border-bottom: 1px solid var(--divider-color);
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    height: 48px;
    line-height: 1;
    flex-shrink: 0;
}

.panel-title {
    font-weight: 600;
    font-size: 14px;
}

.panel-body {
    padding: var(--spacing-md);
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff !important;
    /* 隐藏滚动条但保持可滚动 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.panel-body::-webkit-scrollbar {
    display: none;
}

.panel-footer {
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm) var(--spacing-md);
    border-top: 1px solid var(--divider-color);
    background: #ffffff !important;
    display: flex;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

/* Switch开关样式 */
.switch-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    user-select: none;
}

.switch-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.switch-input {
    display: none;
}

.switch-slider {
    position: relative;
    width: 40px;
    height: 20px;
    background: var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.switch-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-input:checked + .switch-slider {
    background: var(--primary-color);
}

.switch-input:checked + .switch-slider::before {
    transform: translateX(20px);
}

/* 表单组 */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-primary);
    font-size: 13px;
}

/* 必填参数的标签显示为黑色 */
.form-group[data-required="true"] .form-label {
    color: #262626;
    font-weight: 500;
}

/* 必填参数的输入框边框强调 */
.form-group[data-required="true"] .form-control {
    border-color: #d9d9d9;
}

.form-group[data-required="true"] .form-control:focus {
    border-color: var(--primary-color);
}

/* 选填参数的标签显示为灰色 */
.form-group[data-required="false"] .form-label {
    color: #8c8c8c;
    font-weight: 400;
}

/* 选填参数的输入框也显示为灰色 */
.form-group[data-required="false"] .form-control {
    color: #8c8c8c;
    border-color: #d9d9d9;
}

.form-group[data-required="false"] .form-control::placeholder {
    color: #bfbfbf;
}

/* 选填参数的帮助文本也显示为灰色 */
.form-group[data-required="false"] .form-help {
    color: #bfbfbf;
}

/* 选填参数的文件上传按钮也显示为灰色 */
.form-group[data-required="false"] .file-upload-btn {
    color: #8c8c8c;
    border-color: #d9d9d9;
}

.form-group[data-required="false"] .file-name {
    color: #bfbfbf;
}

.required-mark {
    color: #ff4d4f;
    font-weight: 700;
    font-size: 14px;
}

.param-type-tag {
    padding: 2px 8px;
    background: #ede9fe;
    border-radius: 4px;
    font-size: 12px;
    color: #7c3aed;
    font-weight: 500;
    display: inline-block;
}

/* 必填参数的类型标签显示为红色 */
.form-group[data-required="true"] .param-type-tag {
    background: #fff1f0;
    color: #ff4d4f;
    font-weight: 600;
}

/* 选填参数的类型标签显示为灰色 */
.form-group[data-required="false"] .param-type-tag {
    background: #f5f5f5;
    color: #8c8c8c;
}

.form-control {
    width: 100%;
    padding: 10px var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.3s;
    background: #ffffff !important;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control.error {
    border-color: var(--error-color);
    background: #ffffff;
}

.form-help {
    margin-top: var(--spacing-xs);
    font-size: 12px;
    color: var(--text-secondary);
}

/* 文件上传 */
.file-upload-area {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.file-upload-btn {
    padding: 8px var(--spacing-md);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 500;
}

.file-upload-btn:hover {
    background: #f5f5f5;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.file-name {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--divider-color);
}

.btn {
    padding: 10px var(--spacing-xl);
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    box-shadow:
        0 4px 12px rgba(102, 126, 234, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), #8da0f5);
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(102, 126, 234, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.btn-disabled,
.btn-primary:disabled {
    background: #d9d9d9;
    color: rgba(0, 0, 0, 0.25);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-primary.btn-disabled:hover,
.btn-primary:disabled:hover {
    background: #d9d9d9;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--background-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--background-dark);
    color: var(--text-primary);
    border-color: var(--text-disabled);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 响应面板 */
.response-panel {
    background: #1e1e1e !important;
    border: none;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: none;
}

.response-header {
    padding: var(--spacing-md) var(--spacing-lg);
    background: #ffffff !important;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    line-height: 1;
    flex-shrink: 0;
}

.response-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    line-height: 1;
}

.copy-btn {
    padding: 8px 16px;
    background: white;
    border: 1.5px solid #d0d7de;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #57606a;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.copy-btn:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
    box-shadow: 0 2px 6px rgba(82, 196, 26, 0.3);
}

.response-body {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    background: #1e1e1e !important;
    display: flex;
    flex-direction: column;
    min-height: 600px;
    /* 隐藏滚动条但保持可滚动 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏 webkit 浏览器的滚动条 */
.response-body::-webkit-scrollbar {
    display: none;
}

.response-content {
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 13.5px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-all;
    color: #d4d4d4;
    background: #1e1e1e;
    padding: var(--spacing-lg);
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow-y: auto;
    flex: 1;
    min-height: 600px;
    /* 隐藏滚动条但保持可滚动 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏 webkit 浏览器的滚动条 */
.response-content::-webkit-scrollbar {
    display: none;
}

/* JSON树状结构样式 */
.json-line {
    line-height: 1.6;
}

.json-toggle {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 14px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    margin-right: 4px;
    color: #858585;
    font-weight: bold;
    border: 1px solid #4a5568;
    border-radius: 2px;
    background: transparent;
    font-size: 12px;
    vertical-align: middle;
}

.json-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #569cd6;
    color: #569cd6;
}

.json-toggle.collapsed {
    background: transparent;
}

.json-collapsible {
    display: block;
}

.json-key {
    color: #9cdcfe;
    font-weight: 500;
}

.json-string {
    color: #ce9178;
}

.json-number {
    color: #b5cea8;
}

.json-boolean {
    color: #569cd6;
    font-weight: 600;
}

.json-null {
    color: #808080;
    font-style: italic;
}

.json-highlight {
    background: rgba(255, 235, 59, 0.3) !important;
    padding: 2px 4px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 235, 59, 0.6);
}

/* JSON搜索输入框 */
.json-search-input {
    width: 200px;
    height: 32px;
    padding: 4px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    margin-right: 8px;
    transition: all 0.3s;
}

.json-search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.json-search-input::placeholder {
    color: #bfbfbf;
}

.response-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.response-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    flex: 1;
    color: #8c8c8c;
    font-size: 15px;
    padding: var(--spacing-2xl);
    background: #1e1e1e;
    border-radius: 0;
    border: none;
    min-height: 600px;
    transition: all 0.3s ease;
}

/* 响应数据加载状态 */
.response-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-2xl);
    background: #1e1e1e;
    border-radius: 0;
    border: none;
    min-height: 600px;
    flex: 1;
}

.response-loading::before {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid #3a3a3a;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.response-loading-text {
    color: #8c8c8c;
    font-size: 14px;
    font-weight: 500;
}

/* 响应成功状态 */
.response-success {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应错误状态 */
.response-error {
    background: #1e1e1e;
    border: none;
    color: #ff7875;
    padding: var(--spacing-lg);
    border-radius: 0;
    flex: 1;
    min-height: 600px;
}

.response-error::before {
    content: "⚠️ ";
    font-size: 16px;
    margin-right: var(--spacing-xs);
}

/* 加载动画容器 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    gap: var(--spacing-lg);
}

/* 旋转加载器 */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--divider-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 加载文字 */
.loading-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 加载点动画 */
.loading-dots {
    display: flex;
    gap: 8px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 加载状态时的背景效果 */
.response-placeholder.loading {
    background: linear-gradient(
        90deg,
        rgba(102, 126, 234, 0.05) 0%,
        rgba(102, 126, 234, 0.1) 50%,
        rgba(102, 126, 234, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.response-content.success {
    color: var(--success-color);
}

.response-content.error {
    color: var(--error-color);
}

/* ========================================
   底部信息
   ======================================== */
.footer {
    background: transparent;
    border-top: 1px solid var(--divider-color);
    padding: 2px 0;
    margin-top: 0;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s;
    height: var(--footer-height);
    display: flex;
    align-items: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.8;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    transition: all 0.3s;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.contact-item:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

.contact-icon {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--divider-color);
    text-align: center;
}

.copyright {
    color: var(--text-disabled);
    font-size: 13px;
}

.copyright p {
    margin: 2px 0;
}

.beian {
    color: var(--text-disabled);
    text-decoration: none;
    transition: color 0.3s;
}

.beian:hover {
    color: var(--text-secondary);
}

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

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .debugger-container {
        grid-template-columns: 1fr;
    }
    
    .response-panel {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0;
    }

    .header {
        padding: 0 var(--spacing-md);
    }

    .header-search {
        max-width: 200px;
    }

    /* 移动端导航布局优化 */
    .header-nav {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
        margin-left: var(--spacing-sm);
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }

    .main-content::before {
        display: none;
    }
    
    .footer {
        margin-left: 0;
    }
    
    .api-header {
        padding: var(--spacing-lg);
    }
    
    .api-title {
        font-size: 22px;
    }
    
    .api-tab-content {
        padding: var(--spacing-md);
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
    width: 100%;
        justify-content: center;
    }
}

/* ========================================
   其他弹窗样式（保留原有功能）
   ======================================== */
.recharge-modal,
.member-modal,
.tip-modal,
.wechat-modal,
.qq-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal-content,
.recharge-content,
.member-content,
.tip-content,
.wechat-modal-content,
.qq-modal-content {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-disabled);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--background-light);
    color: var(--text-primary);
}

/* 会员标志样式 */
.member-status {
    margin-left: var(--spacing-sm);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 600;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b6914;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

.member-status.expired {
    background: #fff2f0;
    color: var(--error-color);
    box-shadow: none;
}

/* header 金豆右边的会员 badge */
.user-member-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    vertical-align: middle;
}

.user-member-badge.member-active {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b6914;
    box-shadow: 0 1px 4px rgba(255, 215, 0, 0.35);
}

.user-member-badge.member-expired {
    background: #fff2f0;
    color: var(--error-color);
}

/* ========================================
   充值和会员弹窗详细样式
   ======================================== */

/* 弹窗标题 */
.recharge-content h2,
.member-content h2 {
    margin: 0 0 var(--spacing-lg) 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* 套餐列表 */
.package-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* 套餐项 */
.package-item {
    padding: var(--spacing-md);
    border: 2px solid var(--divider-color);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--background);
}

.package-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.package-item.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(64, 158, 255, 0.1) 0%, rgba(64, 158, 255, 0.05) 100%);
    position: relative;
}

.package-item.active::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* 套餐金额 */
.package-amount {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

/* 套餐赠送 */
.package-bonus {
    font-size: 12px;
    color: var(--error-color);
    margin-bottom: var(--spacing-xs);
}

/* 套餐价格 */
.package-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

/* 支付方式 */
.payment-methods {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    justify-content: center;
}

.payment-method {
    flex: 1;
    max-width: 150px;
    padding: var(--spacing-md);
    border: 2px solid var(--divider-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    transition: all 0.3s;
    background: var(--background);
}

.payment-method:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.payment-method.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(64, 158, 255, 0.1) 0%, rgba(64, 158, 255, 0.05) 100%);
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.payment-method span {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* 支付按钮 */
.payment-btn,
.primary-btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color) 0%, #4096ff 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
}

.payment-btn:hover,
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(64, 158, 255, 0.4);
}

.payment-btn:active,
.primary-btn:active {
    transform: translateY(0);
}

/* 二维码容器 */
.qrcode-container {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--background-light);
    border-radius: var(--radius-md);
    text-align: center;
}

.pay-tip {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

#qrcode {
    display: inline-block;
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

#qrcode img {
    display: block;
    width: 200px;
    height: 200px;
}

/* 支付状态按钮 */
.payment-status-btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-status-btn:hover {
    background: #52c41a;
    transform: translateY(-2px);
}

/* 会员弹窗特殊样式 */
.member-content {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalFadeIn 0.3s ease;
}

.member-content h2 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 会员支付按钮特殊样式 */
.member-payment-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b6914;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.member-payment-btn:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.member-payment-btn:active {
    transform: translateY(0);
}

/* 会员套餐列表 */
.member-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* 会员套餐项 */
.member-item {
    padding: var(--spacing-md);
    border: 2px solid #ffd700;
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
    position: relative;
}

.member-item:hover {
    border-color: #d48806;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.3);
}

.member-item.active {
    border-color: #d48806;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.member-item.active::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: #d48806;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* 会员时长标签 */
.member-duration {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b6914;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* 充值金豆说明 */
.recharge-tip {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin: -8px 0 16px;
    line-height: 1.5;
}

/* 会员升级统一说明 */
.member-tip {
    font-size: 13px;
    color: #d48806;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 14px;
    text-align: center;
    margin: -8px 0 16px;
    line-height: 1.5;
}

/* 会员并发/QPS */
.member-concurrency {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

/* 会员价格 */
.member-price {
    font-size: 18px;
    font-weight: 700;
    color: #d48806;
    margin-top: var(--spacing-xs);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content,
    .recharge-content,
    .member-content {
        width: 95%;
        padding: var(--spacing-lg);
        max-width: none;
    }
    
    .package-list,
    .member-list {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .package-item,
    .member-item {
        padding: var(--spacing-sm);
    }
    
    .package-amount,
    .member-duration {
    font-size: 14px;
        padding: 4px 10px;
    }
    
    .payment-methods {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .payment-method {
        max-width: none;
        flex-direction: row;
        justify-content: center;
    }
    
    #qrcode img {
        width: 150px;
        height: 150px;
    }
}

/* ========================================
   业务动态区域（在footer-section内）
   ======================================== */
.business-line-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.business-line-loading {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: 13px;
}

.business-line-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid var(--divider-color);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.business-line-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.business-line-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.business-line-item:hover::before {
    width: 6px;
}

.business-line-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* margin-bottom: 4px; */
}

.business-line-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    /* margin: 0; */
    flex: 1;
    line-height: 1.2;
}

.business-line-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: var(--spacing-sm);
}

.business-line-status.pending {
    background: #fafafa;
    color: #8c8c8c;
    border: 1px solid #d9d9d9;
}

.business-line-status.developing {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.business-line-status.online {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.business-line-status.maintaining {
    background: #ede9fe;
    color: #667eea;
    border: 1px solid #c4b5fd;
}

.business-line-description {
    font-size: 10px;
    color: #AAAAAA;
    line-height: 1.2;
    /* margin: 2px 0 0 0; */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.business-line-empty {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--text-disabled);
    font-size: 13px;
}

/* 版权信息样式 */
.footer-copyright {
    text-align: center;
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.2;
}

.footer-copyright span {
    margin-right: 16px;
}

.footer-copyright a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-copyright a:hover {
    color: var(--primary-color);
}

/* 联系方式行 */
.footer-contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-xs);
    padding-top: var(--spacing-xs);
    border-top: 1px solid var(--divider-color);
}

.contact-items {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-md);
}

.submit-requirement-wrapper {
    display: flex;
    align-items: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .business-line-item {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .business-line-header {
        flex-direction: column;
        /* gap: var(--spacing-xs); */
        align-items: flex-start;
    }

    .business-line-status {
        margin-left: 0;
    }

    .business-line-name {
        font-size: 13px;
    }

    .business-line-description {
        font-size: 10px;
		color: #AAAAAA;
    }

    .footer-contact-row {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: stretch;
    }

    .contact-items {
        flex-direction: row;
        gap: var(--spacing-md);
        flex-wrap: wrap;
    }

    .submit-requirement-wrapper {
        justify-content: center;
    }
}

/* ========================================
   强制左侧面板纯白背景（最高优先级）
   ======================================== */
html .request-panel,
html .panel-header,
html .panel-body,
html .panel-footer {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

html .debugger-container {
    background: #ffffff !important;
}

html .form-control,
html .file-upload-btn {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* ========================================
   Logo 响应式设计
   ======================================== */
@media (max-width: 768px) {
    .logo {
        padding: 6px 12px;
        gap: 10px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .logo-icon svg {
        width: 22px;
        height: 22px;
    }

    .logo-text {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .logo {
        padding: 6px 10px;
        gap: 8px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        border-radius: 7px;
    }

    .logo-icon svg {
        width: 20px;
        height: 20px;
    }

    .logo-text {
        font-size: 20px;
    }
}

/* ========================================
   小屏幕补充适配（480px）
   ======================================== */
@media (max-width: 480px) {
    .header {
        padding: 0 var(--spacing-sm);
    }

    .hero-title {
        font-size: 24px;
    }
}

/* ========================================
   侧边栏底部操作区
   ======================================== */
.sidebar-footer {
    display: none;
}

.sidebar-submit-item {
    padding: 16px 16px 20px;
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
}

.sidebar-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.15s ease;
    box-sizing: border-box;
}

.sidebar-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ========================================
   用户运动偏好：减少动效
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
