/* CSS 变量 */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-code: #1e293b;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --sidebar-width: 300px;
    --header-height: 60px;
    
    --transition: all 0.2s ease;
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* 应用容器 */
.app {
    height: 100vh;
    display: grid;
    grid-template-rows: var(--header-height) 1fr;
    overflow: hidden;
    box-sizing: border-box;
}

/* 顶部导航 */
.header {
    height: var(--header-height);
    min-height: var(--header-height);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: relative;
    z-index: 100;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.home-trigger:hover h1 {
    color: var(--primary-color);
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #60a5fa);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.header h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 语言切换 */
.lang-switch {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.lang-btn {
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.4;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.lang-active {
    background: var(--primary-color);
    color: white;
}

.search-box {
    position: relative;
    width: 280px;
}

.search-box input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-secondary);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* 主容器 */
.main-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    overflow: hidden;
}

/* 侧边栏 */
.sidebar {
    height: 100%;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.api-count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 12px;
}

.nav-menu {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

/* 导航项 */
.nav-folder {
    margin-bottom: 4px;
}

.folder-header {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.folder-header:hover {
    background: var(--bg-secondary);
}

.folder-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: var(--warning-color);
    transition: transform 0.2s;
}

.nav-folder.collapsed .folder-icon {
    transform: rotate(-90deg);
}

.folder-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.folder-count {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 1px 6px;
    border-radius: 10px;
}

.folder-children {
    padding-left: 12px;
}

.nav-folder.collapsed .folder-children {
    display: none;
}

.nav-api {
    display: flex;
    align-items: center;
    padding: 8px 16px 8px 32px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-api:hover {
    background: var(--bg-secondary);
}

.nav-api.active {
    background: #eff6ff;
    border-left-color: var(--primary-color);
}

.api-method {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
    text-transform: uppercase;
    min-width: 44px;
    text-align: center;
}

.api-method.get {
    background: #dbeafe;
    color: #1e40af;
}

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

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

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

/* 文档类型样式 */
.nav-doc {
    display: flex;
    align-items: center;
    padding: 8px 16px 8px 32px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-doc:hover {
    background: var(--bg-secondary);
}

.nav-doc.active {
    background: #fefce8;
    border-left-color: #f59e0b;
}

.doc-icon {
    color: #f59e0b;
    margin-right: 8px;
}

.doc-name {
    font-size: 13px;
    color: #475569;
}

.api-method.patch {
    background: #f3e8ff;
    color: #6b21a8;
}

.api-name {
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.nav-api:hover .api-name {
    color: var(--primary-color);
}

/* 内容区 */
.content {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-header {
    flex-shrink: 0;
    height: 50px;
    min-height: 50px;
    padding: 0 24px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-item {
    color: var(--text-secondary);
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--text-muted);
}

.breadcrumb-item:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.content-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    box-sizing: border-box;
}

/* 首页 */
.welcome-page {
    max-width: 1100px;
    margin: 0 auto;
}

.integration-home {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-hero {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
}

.home-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
}

.home-hero h2 {
    font-size: 26px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.home-hero p,
.home-panel p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.platform-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.platform-flow span:not(.flow-arrow) {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.flow-arrow {
    color: var(--text-muted);
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.home-panel {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 22px;
}

.home-panel-wide {
    grid-column: 1 / -1;
}

.home-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.home-step-badge {
    min-width: 34px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.home-panel h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.integration-steps {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.integration-steps li {
    margin: 6px 0;
}

.home-api-link {
    border: none;
    background: transparent;
    color: var(--primary-color);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.home-api-link:hover {
    text-decoration: underline;
}

.api-sequence {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sequence-item {
    width: 100%;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 4px 10px;
    align-items: center;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-align: left;
}

button.sequence-item {
    cursor: pointer;
    font: inherit;
}

button.sequence-item:hover {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.sequence-item span {
    grid-row: 1 / span 2;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.sequence-item strong {
    font-size: 14px;
}

.sequence-item small {
    color: var(--text-secondary);
    font-size: 12px;
}

.home-note {
    margin-top: 12px;
}

.home-panel .code-block code {
    color: #e2e8f0;
}

.warning-panel {
    border-color: #fde68a;
    background: #fffbeb;
}

.quick-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.stat-card {
    background: var(--bg-primary);
    padding: 24px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* 接口详情 */
.api-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.api-header {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.api-title-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

/* 文档详情样式 */
.doc-header {
    background: #fefce8;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #fde68a;
}

.doc-title-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.doc-title-icon {
    color: #f59e0b;
    flex-shrink: 0;
}

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

.doc-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.api-title-section .api-method {
    font-size: 12px;
    padding: 4px 10px;
    margin-right: 0;
}

.api-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.api-path {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    color: var(--text-primary);
}

.api-path-text {
    flex: 1;
    word-break: break-all;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.api-description {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.api-description h1,
.api-description h2,
.api-description h3,
.api-description h4,
.api-description h5,
.api-description h6 {
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.api-description h1 { font-size: 20px; }
.api-description h2 { font-size: 18px; }
.api-description h3 { font-size: 16px; }
.api-description h4 { font-size: 15px; }

.api-description p {
    margin: 12px 0;
}

.api-description ul,
.api-description ol {
    margin: 12px 0;
    padding-left: 24px;
}

.api-description li {
    margin: 6px 0;
}

.api-description code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    color: var(--danger-color);
}

.api-description pre {
    background: var(--bg-code);
    padding: 16px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 12px 0;
}

.api-description pre code {
    background: transparent;
    padding: 0;
    color: #abb2bf;
}

.api-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.api-description th,
.api-description td {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.api-description th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.api-description blockquote {
    margin: 12px 0;
    padding: 8px 16px;
    border-left: 4px solid var(--primary-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.api-description a {
    color: var(--primary-color);
    text-decoration: none;
}

.api-description a:hover {
    text-decoration: underline;
}

/* 图片展示区域 */
.api-images {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.api-images-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.api-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.api-image-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.api-image-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.api-image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* 内容卡片 */
.content-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-header-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.card-body {
    padding: 20px;
}

/* 参数表格 */
.param-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.param-table th,
.param-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}

.param-table th {
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.param-table tr:hover td {
    background: var(--bg-secondary);
}

.param-name {
    font-family: monospace;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
}

.param-type {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    font-family: monospace;
}

.param-required {
    display: inline-block;
    padding: 2px 8px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.param-optional {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-radius: 4px;
    font-size: 11px;
}

.param-desc {
    color: var(--text-secondary);
}

.param-example {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 代码块 */
.code-block {
    background: var(--bg-code);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #0f172a;
    border-bottom: 1px solid #334155;
}

.code-title {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.code-actions {
    display: flex;
    gap: 8px;
}

.code-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid #475569;
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: #94a3b8;
    cursor: pointer;
    transition: var(--transition);
}

.code-action-btn:hover {
    background: #334155;
    color: #e2e8f0;
}

.code-block pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
}

.code-block code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* 响应标签页 */
.response-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.response-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.response-tab:hover {
    color: var(--text-primary);
}

.response-tab.active {
    background: var(--bg-primary);
    color: var(--primary-color);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.response-content {
    display: none;
}

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

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

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

/* 图片模态框 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.image-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Toast 提示 */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 20px;
    height: 20px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* 密码验证遮罩层 */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.password-modal {
    background: white;
    padding: 48px 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    max-width: 320px;
    width: 90%;
    position: relative;
}

.password-lang-switch {
    position: absolute;
    top: 16px;
    right: 16px;
}

.password-icon {
    margin-bottom: 24px;
}

.password-icon svg {
    color: #333;
}

.password-modal h2 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.password-modal > p {
    margin: 0 0 28px;
    color: #999;
    font-size: 13px;
}

.password-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.password-input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.password-input-group input:focus {
    outline: none;
    border-color: #999;
}

.password-input-group button {
    width: 100%;
    padding: 14px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.password-input-group button:hover {
    background: #555;
}

.password-error {
    color: #e53935;
    font-size: 12px;
    margin: 12px 0 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        z-index: 99;
        transition: left 0.3s ease;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .search-box {
        width: 180px;
    }
    
    .content-body {
        padding: 16px;
    }

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

    .home-hero {
        padding: 22px;
    }

    .home-hero h2 {
        font-size: 22px;
    }
    
    .api-path {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .param-table {
        font-size: 12px;
    }
    
    .param-table th,
    .param-table td {
        padding: 8px 10px;
    }
}

/* 搜索高亮 */
.highlight {
    background: #fef08a;
    padding: 0 2px;
    border-radius: 2px;
}

.nav-api.hidden {
    display: none;
}

.nav-folder.hidden {
    display: none;
}

/* 响应状态码 */
.status-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: monospace;
    font-size: 13px;
    font-weight: 600;
}

.status-code.success {
    color: var(--success-color);
}

.status-code.error {
    color: var(--danger-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-code.success .status-dot {
    background: var(--success-color);
}

.status-code.error .status-dot {
    background: var(--danger-color);
}
