/*
 * front-page.css
 * 来源: 前端各页面特有样式
 * 每个页面的独特样式（非公共部分）
 */

/* === from: about.php === */
html { scroll-behavior: smooth; }

/* 按钮文本兜底：防止链接按钮出现下划线 */
a.btn-geek, a.btn-secondary, a.btn-danger, a.btn,
button.btn-geek, button.btn-secondary, button.btn-danger, button.btn {
    text-decoration: none !important;
}
a.btn-geek *, a.btn-secondary *, a.btn-danger *, a.btn * {
    text-decoration: none !important;
}

.sidebar-overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar.open { right: 0; }

.btn-geek:hover { color: var(--bg-deep); background: var(--accent-primary); }

.theme-toggle:hover { color: var(--accent-primary); border-color: var(--accent-primary); }

.content-wrapper { max-width: 800px; margin: 0 auto; padding: 5rem 1rem 2rem; }

.page-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; display: flex; align-items: center; }

.page-title::before { content: '//'; color: var(--accent-primary); margin-right: 0.5rem; font-family: 'JetBrains Mono', monospace; }

.page-content { line-height: 1.8; color: var(--text-muted); font-size: 0.9rem; }

.page-content h1, .page-content h2, .page-content h3 { color: var(--text-main); margin: 1.5rem 0 0.75rem; }

.page-content h2 { font-size: 1.2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }

.page-content h3 { font-size: 1rem; }

.page-content p { margin-bottom: 1rem; }

.page-content ul, .page-content ol { margin: 1rem 0; padding-left: 1.5rem; }

.page-content li { margin-bottom: 0.5rem; }

.page-content a { color: var(--accent-primary); }

.page-content code { background: rgba(0, 255, 157, 0.1); padding: 0.1rem 0.3rem; border-radius: 3px; font-family: 'JetBrains Mono', monospace; font-size: 0.85em; }

.page-content pre { background: rgba(0, 0, 0, 0.3); padding: 1rem; border-radius: 6px; overflow-x: auto; margin: 1rem 0; }

.page-content pre code { background: none; padding: 0; }

.page-content blockquote { border-left: 3px solid var(--accent-primary); padding-left: 1rem; margin: 1rem 0; color: var(--text-muted); }

.page-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }

.page-content th, .page-content td { border: 1px solid var(--border-color); padding: 0.5rem; text-align: left; }

.page-content th { background: rgba(0, 255, 157, 0.1); }

.page-content img { max-width: 100%; border-radius: 6px; }

.page-content hr { border: none; border-top: 1px solid var(--border-color); margin: 2rem 0; }

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

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

.footer-custom-left { flex: 1; text-align: left; min-width: 100px; }

.footer-custom-center { flex: 1; text-align: center; min-width: 100px; }

.footer-custom-right { flex: 1; text-align: right; min-width: 100px; }

.footer-custom-wrapper img, .footer-custom-wrapper svg { max-height: 24px; vertical-align: middle; }

.footer-custom-wrapper a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }

.footer-custom-wrapper a:hover { color: var(--accent-primary); }

/* === from: api-detail.php === */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { font-family: 'Noto Sans SC', sans-serif; background: var(--bg-deep); color: var(--text-main); min-height: 100vh; transition: background 0.4s, color 0.4s; }

.font-mono { font-family: 'JetBrains Mono', monospace; }

#shader-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.grid-overlay { position: fixed; inset: 0; z-index: 1; pointer-events: none; background-image: linear-gradient(rgba(0, 255, 157, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 157, 0.03) 1px, transparent 1px); background-size: 50px 50px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%); opacity: 0.5; }

[data-theme="light"] .grid-overlay { opacity: 0.1; }

.main-wrapper { position: relative; z-index: 10; }

.nav-bar { position: fixed; top: 0; width: 100%; z-index: 100; padding: 0.75rem 1rem; display: flex; justify-content: space-between; align-items: center; background: var(--bg-panel); border-bottom: 1px solid var(--border-color); backdrop-filter: blur(12px); height: 60px; }

.sidebar-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 199; opacity: 0; visibility: hidden; transition: all 0.3s; }

.sidebar-overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar { position: fixed; top: 0; right: -280px; width: 280px; height: 100%; background: var(--bg-panel); border-left: 1px solid var(--border-color); z-index: 200; padding: 1.5rem; transition: right 0.3s; display: flex; flex-direction: column; }

.mobile-sidebar.open { right: 0; }

.qrcode-img-small { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }

.footer-custom-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

.footer-custom-left { flex: 1; text-align: left; min-width: 100px; }

.footer-custom-center { flex: 1; text-align: center; min-width: 100px; }

.footer-custom-right { flex: 1; text-align: right; min-width: 100px; }

@media (max-width: 768px) {
            .footer-custom-grid { flex-direction: column; align-items: center; }
            .footer-custom-left, .footer-custom-center, .footer-custom-right { text-align: center; }
        }

.footer-custom-wrapper img, .footer-custom-wrapper svg { max-height: 24px; vertical-align: middle; }

.footer-custom-wrapper a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }

.footer-custom-wrapper a:hover { color: var(--accent-primary); }

.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }

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

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

.btn-geek { background: transparent; border: 1px solid var(--accent-primary); color: var(--accent-primary); padding: 0.5rem 1rem; font-weight: 600; font-size: 0.8rem; cursor: pointer; transition: all 0.3s; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); text-decoration: none; display: inline-block; }

.btn-geek:hover { color: var(--bg-deep); background: var(--accent-primary); }

.btn-copy { background: transparent; border: 1px solid var(--border-color); color: var(--text-muted); padding: 0.25rem 0.5rem; font-size: 0.7rem; cursor: pointer; border-radius: 4px; transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.25rem; }

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

.theme-toggle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-color); background: transparent; color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }

.theme-toggle:hover { color: var(--accent-primary); border-color: var(--accent-primary); }

.detail-header { padding: 5rem 1rem 1.5rem; border-bottom: 1px solid var(--border-color); }

.section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; display: flex; align-items: center; justify-content: space-between; }

.section-title::before { content: '//'; color: var(--accent-primary); margin-right: 0.5rem; font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; }

.method-badge { font-size: 0.75rem; padding: 3px 8px; border-radius: 4px; font-weight: bold; font-family: 'JetBrains Mono', monospace; }

.get { background: rgba(0, 255, 157, 0.15); color: var(--accent-primary); }

.post { background: rgba(0, 212, 255, 0.15); color: var(--accent-secondary); }

.card { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }

.endpoint-box { background: var(--endpoint-bg); border: 1px solid var(--endpoint-border); border-radius: 6px; padding: 0.75rem; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--accent-primary); word-break: break-all; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }

.code-block { background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden; }

[data-theme="light"] .code-block { background: rgba(0, 0, 0, 0.03); }

.code-header { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border-color); background: rgba(0,0,0,0.1); }

.code-content { padding: 0.75rem; overflow-x: auto; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; line-height: 1.5; }

.code-content pre { margin: 0; white-space: pre-wrap; word-break: break-all; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

@media (min-width: 768px) { .info-grid { grid-template-columns: repeat(4, 1fr); } }

.info-item { padding: 0.75rem; background: rgba(0, 0, 0, 0.2); border-radius: 6px; }

[data-theme="light"] .info-item { background: rgba(0, 0, 0, 0.03); }

.info-label { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.25rem; }

.info-value { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; }

/* 测试终端 */
        .playground-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }

@media (min-width: 768px) { 
            .playground-grid { 
                grid-template-columns: 1fr 1fr; 
                align-items: start;
            }
            .playground-grid > div {
                display: flex;
                flex-direction: column;
            }
            .playground-grid .response-container {
                flex: 1;
                min-height: 300px;
                height: auto;
            }
        }

/* 请求方式选择器 */
        .method-option {
            padding: 0.35rem 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            font-size: 0.75rem;
            font-family: 'JetBrains Mono', monospace;
            cursor: pointer;
            transition: all 0.2s;
            color: var(--text-muted);
            background: transparent;
        }

.method-option:hover {
            border-color: var(--accent-primary);
            color: var(--accent-primary);
        }

.method-option.active {
            background: rgba(0, 255, 157, 0.15);
            border-color: var(--accent-primary);
            color: var(--accent-primary);
        }

.response-container { background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border-color); border-radius: 4px; height: 200px; overflow: auto; position: relative; }

[data-theme="light"] .response-container { background: rgba(0, 0, 0, 0.03); }

.response-pre { margin: 0; padding: 0.75rem; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; line-height: 1.5; color: var(--text-muted); white-space: pre-wrap; word-break: break-all; }

.param-item { margin-bottom: 0.5rem; }

.param-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.25rem; }

.param-required { color: #ef4444; }

.param-input { width: 100%; padding: 0.4rem 0.6rem; background: transparent; border: 1px solid var(--border-color); border-radius: 4px; color: var(--text-main); font-size: 0.8rem; }

.param-input:focus { outline: none; border-color: var(--accent-primary); }

.search-input { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); padding: 0.4rem 0.6rem; border-radius: 4px; outline: none; transition: all 0.3s; font-size: 0.8rem; }

.search-input:focus { border-color: var(--accent-primary); }

/* Markdown样式 */
        .markdown-content { line-height: 1.8; color: var(--text-muted); font-size: 0.85rem; }

.markdown-content h1, .markdown-content h2, .markdown-content h3 { color: var(--text-main); margin: 1rem 0 0.5rem; }

.markdown-content h2 { font-size: 1.1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }

.markdown-content h3 { font-size: 1rem; }

.markdown-content p { margin-bottom: 0.75rem; }

.markdown-content pre { background: var(--bg-code); padding: 1rem; border-radius: 8px; overflow-x: auto; margin: 0.75rem 0; border: 1px solid var(--border-color); }

.markdown-content code { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; }

.markdown-content pre code { background: none; padding: 0; }

.markdown-content :not(pre) > code { background: rgba(0, 255, 157, 0.1); padding: 0.1rem 0.4rem; border-radius: 4px; color: var(--accent-secondary); }

.markdown-content table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; font-size: 0.8rem; }

.markdown-content th, .markdown-content td { border: 1px solid var(--border-color); padding: 0.5rem; text-align: left; }

.markdown-content th { background: var(--bg-code); color: var(--text-main); }

.markdown-content ul, .markdown-content ol { padding-left: 1.5rem; margin: 0.5rem 0; }

.markdown-content li { margin-bottom: 0.25rem; }

.markdown-content blockquote { border-left: 3px solid var(--accent-primary); padding-left: 1rem; margin: 0.75rem 0; color: var(--text-muted); }

.markdown-preview { line-height: 1.8; color: var(--text-muted); font-size: 0.85rem; max-height: 150px; overflow: hidden; position: relative; background: var(--bg-code); border-radius: 6px; padding: 0.5rem; }

.markdown-preview::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: linear-gradient(transparent, var(--bg-code)); }

/* 卡片标题样式 */
        .card .section-title { background: transparent; }

/* 代码高亮样式 */
        .hljs { background: transparent !important; }

.hljs-keyword { color: #c678dd; }

.hljs-string { color: #98c379; }

.hljs-number { color: #d19a66; }

.hljs-function { color: #61afef; }

.hljs-comment { color: #5c6370; font-style: italic; }

.hljs-variable { color: #e06c75; }

.hljs-built_in { color: #e6c07b; }

.hljs-title { color: #61afef; }

.hljs-params { color: #abb2bf; }

.hljs-attr { color: #d19a66; }

.hljs-literal { color: #56b6c2; }

.hljs-type { color: #e6c07b; }

.hljs-symbol { color: #61afef; }

.hljs-bullet { color: #61afef; }

.hljs-addition { color: #98c379; }

.hljs-deletion { color: #e06c75; }

/* 代码块样式 */
        pre { background: var(--bg-code) !important; border-radius: 6px; overflow-x: auto; border: 1px solid var(--border-color); }

pre code { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; }

/* 响应示例和参数块 */
        .response-block, .code-block, .param-block { background: var(--bg-code) !important; border-radius: 6px; border: 1px solid var(--border-color); }

footer { border-top: 1px solid var(--border-color); background: var(--bg-panel); padding-top: 2rem; padding-bottom: 1rem; margin-top: 2rem; }

.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }

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

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

/* 语法高亮 */
        .syntax-k { color: #c792ea; }

.syntax-s { color: #c3e88d; }

.syntax-c { color: #546e7a; }

[data-theme="light"] .syntax-c { color: #64748b; }

[data-theme="light"] .syntax-k { color: #9333ea; }

[data-theme="light"] .syntax-s { color: #059669; }

/* 复制成功提示 */
        .copy-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--accent-primary); color: #000; padding: 0.5rem 1rem; border-radius: 4px; font-size: 0.8rem; font-weight: 600; z-index: 1000; opacity: 0; transition: opacity 0.3s; }

.copy-toast.show { opacity: 1; }

/* 视频播放器样式 */
        video {
            outline: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

video::-webkit-media-controls-panel {
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
        }

video::-webkit-media-controls-play-button,
        video::-webkit-media-controls-mute-button,
        video::-webkit-media-controls-fullscreen-button {
            filter: invert(1);
        }

/* 音频播放器样式 */
        audio {
            outline: none;
            height: 40px;
            border-radius: 20px;
        }

audio::-webkit-media-controls-panel {
            background: var(--bg-panel);
            border: 1px solid var(--border-color);
            border-radius: 20px;
        }

audio::-webkit-media-controls-play-button,
        audio::-webkit-media-controls-mute-button {
            filter: invert(0.8);
        }

audio::-webkit-media-controls-current-time-display,
        audio::-webkit-media-controls-time-remaining-display {
            color: var(--text-muted);
        }

/* 媒体容器响应式 */
        @media (max-width: 640px) {
            video {
                max-height: 250px !important;
            }
            audio {
                width: 100% !important;
            }
        }

/* === from: api-docs.php === */
* { margin: 0; padding: 0; box-sizing: border-box; }

.font-mono { font-family: 'JetBrains Mono', monospace; }

#shader-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.nav-bar { position: fixed; top: 0; width: 100%; z-index: 100; padding: 0.75rem 1rem; display: flex; justify-content: space-between; align-items: center; background: var(--bg-panel); border-bottom: 1px solid var(--border-color); backdrop-filter: blur(12px); height: 60px; }

.btn-geek { background: transparent; border: 1px solid var(--accent-primary); color: var(--accent-primary); padding: 0.5rem 1rem; font-weight: 600; font-size: 0.8rem; cursor: pointer; transition: all 0.3s; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); text-decoration: none; display: inline-block; }

.btn-geek:hover { background: var(--accent-primary); color: var(--bg-deep); }

.sidebar-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 199; opacity: 0; visibility: hidden; transition: all 0.3s; }

.sidebar-overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar { position: fixed; top: 0; right: -280px; width: 280px; height: 100%; background: var(--bg-panel); border-left: 1px solid var(--border-color); z-index: 200; padding: 1.5rem; transition: right 0.3s; display: flex; flex-direction: column; }

.mobile-sidebar.open { right: 0; }

/* 桌面端侧边栏 - 使用fixed但不覆盖底部栏 */
        .sidebar { width: 260px; background: var(--bg-panel); border-right: 1px solid var(--border-color); position: fixed; left: 0; top: 60px; bottom: 0; overflow: hidden; padding: 0.75rem; z-index: 50; display: flex; flex-direction: column; padding-bottom: 350px; }

.sidebar .search-box { flex-shrink: 0; }

.sidebar .sidebar-title { flex-shrink: 0; }

.sidebar .api-list { flex: 1; overflow-y: auto; min-height: 0; }

.sidebar-title { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; padding-left: 0.5rem; }

.api-list { list-style: none; }

.api-item { padding: 0.5rem 0.6rem; border-radius: 6px; cursor: pointer; transition: all 0.2s; margin-bottom: 0.2rem; font-size: 0.8rem; border: 1px solid transparent; display: flex; align-items: center; gap: 0.4rem; }

.api-item:hover { background: rgba(0, 255, 157, 0.05); }

.api-item.active { background: rgba(0, 255, 157, 0.1); border-color: var(--accent-primary); }

.api-item .method-tags { display: flex; gap: 2px; flex-shrink: 0; }

.api-item .method { font-size: 0.6rem; padding: 1px 5px; border-radius: 3px; font-weight: 600; }

.api-item .method.get { background: rgba(16, 185, 129, 0.2); color: #10b981; }

.api-item .method.post { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }

.api-item .api-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.content { flex: 1; margin-left: 260px; padding: 1rem; max-width: 100%; overflow-x: hidden; }

/* 搜索框 */
        .search-box { margin-bottom: 0.75rem; position: relative; }

.search-input { width: 100%; padding: 0.5rem 0.6rem 0.5rem 2rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-main); font-size: 0.8rem; }

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

.search-icon { position: absolute; left: 0.6rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 14px; height: 14px; }

/* 移动端API选择器 */
        .mobile-api-selector { display: none; position: relative; margin-bottom: 0.75rem; }

.mobile-select-btn { width: 100%; padding: 0.6rem 0.8rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-main); font-size: 0.8rem; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }

.api-dropdown { position: relative; background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 6px; display: none; box-shadow: 0 10px 40px rgba(0,0,0,0.3); z-index: 1000; flex-direction: column; margin-top: 0.3rem; }

.api-dropdown.open { display: flex; }

.api-dropdown-search { padding: 0.5rem; border-bottom: 1px solid var(--border-color); background: var(--bg-panel); flex-shrink: 0; }

.api-dropdown-search input { width: 100%; padding: 0.4rem 0.6rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 4px; color: var(--text-main); font-size: 0.75rem; }

.api-dropdown-list { padding: 0.3rem; overflow-y: auto; flex: 1; min-height: 0; max-height: 200px; }

.api-dropdown-item { padding: 0.5rem 0.6rem; border-radius: 4px; cursor: pointer; font-size: 0.8rem; display: flex; align-items: center; gap: 0.4rem; }

.api-dropdown-item:hover { background: rgba(0, 255, 157, 0.05); }

.api-dropdown-item.active { background: rgba(0, 255, 157, 0.1); }

.api-dropdown-item .method-tags { display: flex; gap: 2px; flex-shrink: 0; }

.api-dropdown-item .method { font-size: 0.6rem; padding: 1px 5px; border-radius: 3px; font-weight: 600; }

.api-dropdown-item .method.get { background: rgba(16, 185, 129, 0.2); color: #10b981; }

.api-dropdown-item .method.post { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }

@media (max-width: 768px) {
            .sidebar { display: none; }
            .content { margin-left: 0; padding: 0.75rem; }
            .mobile-api-selector { display: block; }
        }

/* 文档样式 - 未选API时区域紧凑，便于底部露出 */
        .doc-container { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 8px; padding: 1rem; overflow-x: hidden; min-height: 0; }

.doc-header { margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-color); }

.doc-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }

.doc-endpoint { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem; background: rgba(0, 255, 157, 0.08); border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; word-break: break-all; }

/* Markdown样式 - 移动端适配 */
        .markdown-body { line-height: 1.7; color: var(--text-muted); font-size: 0.85rem; overflow-x: hidden; }

.markdown-body h1, .markdown-body h2, .markdown-body h3 { color: var(--text-main); margin: 1rem 0 0.5rem; }

.markdown-body h2 { font-size: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.4rem; }

.markdown-body h3 { font-size: 0.9rem; }

.markdown-body p { margin-bottom: 0.75rem; }

.markdown-body pre { background: var(--bg-code); padding: 0.75rem; border-radius: 6px; overflow-x: auto; margin: 0.75rem 0; border: 1px solid var(--border-color); font-size: 0.75rem; position: relative; }

.markdown-body code { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; }

.markdown-body pre code { background: none; padding: 0; }

/* 代码复制按钮 */
        .code-block-wrapper { position: relative; }

.copy-code-btn {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            padding: 0.3rem 0.6rem;
            background: rgba(0, 255, 157, 0.1);
            border: 1px solid var(--border-color);
            border-radius: 4px;
            color: var(--accent-primary);
            font-size: 0.7rem;
            cursor: pointer;
            opacity: 0;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.3rem;
            z-index: 10;
        }

.markdown-body pre:hover .copy-code-btn,
        .copy-code-btn:hover {
            opacity: 1;
        }

.copy-code-btn:hover {
            background: rgba(0, 255, 157, 0.2);
        }

.copy-code-btn.copied {
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
            opacity: 1;
        }

.markdown-body :not(pre) > code { background: rgba(0, 255, 157, 0.1); padding: 0.1rem 0.3rem; border-radius: 3px; color: var(--accent-secondary); }

.markdown-body table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; font-size: 0.75rem; display: block; overflow-x: auto; }

.markdown-body th, .markdown-body td { border: 1px solid var(--border-color); padding: 0.4rem; text-align: left; min-width: 80px; }

.markdown-body th { background: var(--bg-code); color: var(--text-main); }

.markdown-body ul, .markdown-body ol { padding-left: 1.2rem; margin: 0.5rem 0; }

.markdown-body blockquote { border-left: 3px solid var(--accent-primary); padding-left: 0.75rem; margin: 0.75rem 0; color: var(--text-muted); }

/* 代码高亮增强 */
        .hljs { background: transparent !important; padding: 0 !important; }

.hljs-keyword { color: #c678dd; }

.hljs-string { color: #98c379; }

.hljs-number { color: #d19a66; }

.hljs-function { color: #61afef; }

.hljs-comment { color: #5c6370; font-style: italic; }

.hljs-variable { color: #e06c75; }

.hljs-built_in { color: #e6c07b; }

.hljs-title { color: #61afef; }

.hljs-params { color: #abb2bf; }

.hljs-attr { color: #d19a66; }

.hljs-literal { color: #56b6c2; }

.no-api { text-align: center; padding: 2rem 1rem; color: var(--text-muted); }

.theme-toggle:hover { background: rgba(255,255,255,0.1); color: var(--accent-primary); border-color: var(--accent-primary); }

/* 底部栏贴底布局 - 全端通用 */
        body { display: flex; flex-direction: column; min-height: 100vh; }

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

.beian-link { color: var(--text-muted); text-decoration: none; transition: color 0.2s; display: inline-flex; align-items: center; gap: 0.25rem; }

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

/* 小尺寸二维码样式 */
        .qrcode-box-small { width: 70px; height: 70px; padding: 4px; background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }

.qrcode-img-small { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }

/* 自定义底部栏样式 */
        .footer-custom-wrapper { width: 100%; }

.footer-custom-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

.footer-custom-left { flex: 1; text-align: left; min-width: 100px; }

.footer-custom-center { flex: 1; text-align: center; min-width: 100px; }

.footer-custom-right { flex: 1; text-align: right; min-width: 100px; }

@media (max-width: 768px) {
            .footer-custom-grid { flex-direction: column; align-items: center; }
            .footer-custom-left, .footer-custom-center, .footer-custom-right { text-align: center; }
        }

.footer-custom-wrapper img, .footer-custom-wrapper svg { max-height: 24px; vertical-align: middle; }

.footer-custom-wrapper a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }

.footer-custom-wrapper a:hover { color: var(--accent-primary); }

/* === from: apis.php === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: 'Noto Sans SC', sans-serif; background: var(--bg-deep); color: var(--text-main); min-height: 100vh; transition: background 0.4s, color 0.4s; }

.font-mono { font-family: 'JetBrains Mono', monospace; }

#shader-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.main-wrapper { position: relative; z-index: 10; }

.nav-bar { position: fixed; top: 0; width: 100%; z-index: 100; padding: 0.75rem 1rem; display: flex; justify-content: space-between; align-items: center; background: var(--bg-panel); border-bottom: 1px solid var(--border-color); backdrop-filter: blur(12px); height: 60px; }

.btn-geek::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: var(--accent-primary); transition: left 0.3s; z-index: -1; }

.btn-geek:hover { color: var(--bg-deep); box-shadow: 0 0 20px var(--glow-primary); }

.btn-geek:hover::before { left: 0; }

.theme-toggle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-color); background: transparent; color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }

.theme-toggle:hover { color: var(--accent-primary); border-color: var(--accent-primary); }

.page-header { padding: 5rem 1rem 1.5rem; border-bottom: 1px solid var(--border-color); }

.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }

.section-title::before { content: '//'; color: var(--accent-primary); margin-right: 0.5rem; font-family: 'JetBrains Mono', monospace; }

.search-input { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); padding: 0.4rem 0.6rem; border-radius: 4px; outline: none; transition: all 0.3s; font-size: 0.8rem; }

.search-input:focus { border-color: var(--accent-primary); }

/* 分类标签 */
        .category-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; align-items: center; }

.category-tag { padding: 0.35rem 0.75rem; border: 1px solid var(--border-color); border-radius: 4px; font-size: 0.75rem; color: var(--text-muted); text-decoration: none; transition: all 0.2s; cursor: pointer; }

.category-tag:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

.category-tag.active { background: var(--accent-primary); color: #000; border-color: var(--accent-primary); }

.category-more { padding: 0.35rem 0.75rem; border: 1px dashed var(--border-color); border-radius: 4px; font-size: 0.75rem; color: var(--text-muted); cursor: pointer; background: transparent; }

.category-more:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

.category-hidden { display: none; }

.category-hidden.show { display: inline-block; }

/* 卡片网格 */
        .card-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

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

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

.api-card { background: var(--bg-panel); border: 1px solid var(--border-color); padding: 1rem; transition: all 0.3s ease; position: relative; display: flex; flex-direction: column; }

.api-card:hover { border-color: var(--accent-primary); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 255, 157, 0.1); }

.method-badge { font-size: 0.65rem; padding: 2px 6px; border-radius: 2px; font-weight: bold; font-family: 'JetBrains Mono', monospace; }

.get { background: rgba(0, 255, 157, 0.15); color: var(--accent-primary); }

.post { background: rgba(0, 212, 255, 0.15); color: var(--accent-secondary); }

.endpoint-box { background: rgba(0, 255, 157, 0.08); border: 1px solid rgba(0, 255, 157, 0.2); border-radius: 4px; padding: 0.4rem 0.6rem; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--accent-primary); word-break: break-all; margin-top: auto; }

.pagination { display: flex; gap: 0.25rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }

.pagination a, .pagination span { padding: 0.4rem 0.75rem; border: 1px solid var(--border-color); border-radius: 4px; font-size: 0.8rem; color: var(--text-muted); text-decoration: none; transition: all 0.2s; }

.pagination a:hover, .pagination span.active { border-color: var(--accent-primary); color: var(--accent-primary); }

footer { border-top: 1px solid var(--border-color); background: var(--bg-panel); padding-top: 2rem; padding-bottom: 1rem; margin-top: 2rem; }

.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }

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

.beian-link { color: var(--text-muted); text-decoration: none; transition: color 0.2s; display: inline-flex; align-items: center; gap: 0.25rem; }

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

/* 小尺寸二维码样式 */
        .qrcode-box-small { width: 70px; height: 70px; padding: 4px; background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }

.qrcode-img-small { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }

/* 自定义底部栏样式 */
        .footer-custom-wrapper { width: 100%; }

.footer-custom-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

.footer-custom-left { flex: 1; text-align: left; min-width: 100px; }

.footer-custom-center { flex: 1; text-align: center; min-width: 100px; }

.footer-custom-right { flex: 1; text-align: right; min-width: 100px; }

@media (max-width: 768px) {
            .footer-custom-grid { flex-direction: column; align-items: center; }
            .footer-custom-left, .footer-custom-center, .footer-custom-right { text-align: center; }
        }

.footer-custom-wrapper img, .footer-custom-wrapper svg { max-height: 24px; vertical-align: middle; }

.footer-custom-wrapper a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }

.footer-custom-wrapper a:hover { color: var(--accent-primary); }

.sidebar-overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar { position: fixed; top: 0; right: -280px; width: 280px; height: 100%; background: var(--bg-panel); border-left: 1px solid var(--border-color); z-index: 200; padding: 1.5rem; transition: right 0.3s; display: flex; flex-direction: column; }

.mobile-sidebar.open { right: 0; }

.menu-btn { display: none; padding: 0.5rem; background: transparent; border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-main); cursor: pointer; }

.menu-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

@media (max-width: 768px) {
            .menu-btn { display: flex; align-items: center; gap: 0.5rem; }
        }

/* === from: apply-link.php === */
[data-theme="light"] {
            --bg-deep: #ffffff;
            --bg-panel: rgba(255, 255, 255, 0.98);
            --text-main: #0f172a;
            --text-muted: #64748b;
            --accent-primary: #059669;
            --accent-secondary: #0284c7;
            --border-color: rgba(5, 150, 105, 0.15);
            --particle-color: 100, 116, 139;
        }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { font-family: 'Noto Sans SC', sans-serif; background: var(--bg-deep); color: var(--text-main); min-height: 100vh; transition: background 0.4s, color 0.4s; }

.font-mono { font-family: 'JetBrains Mono', monospace; }

#shader-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.grid-overlay { position: fixed; inset: 0; z-index: 1; pointer-events: none; background-image: linear-gradient(rgba(0, 255, 157, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 157, 0.03) 1px, transparent 1px); background-size: 50px 50px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%); opacity: 0.5; }

[data-theme="light"] .grid-overlay { opacity: 0.1; }

.main-wrapper { position: relative; z-index: 10; }

.sidebar-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 199; opacity: 0; visibility: hidden; transition: all 0.3s; }

.sidebar-overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar.open { right: 0; }

.btn-geek { background: transparent; border: 1px solid var(--accent-primary); color: var(--accent-primary); padding: 0.65rem 1.5rem; font-weight: 600; font-size: 0.85rem; position: relative; overflow: hidden; cursor: pointer; transition: all 0.3s; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); text-decoration: none; display: inline-block; }

.btn-geek::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: var(--accent-primary); transition: left 0.3s; z-index: -1; }

.btn-geek:hover { color: var(--bg-deep); box-shadow: 0 0 20px var(--glow-primary); }

.btn-geek:hover::before { left: 0; }

.theme-toggle:hover { color: var(--accent-primary); border-color: var(--accent-primary); }

.page-header { padding: 6rem 1.5rem 2rem; border-bottom: 1px solid var(--border-color); }

.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; }

.section-title::before { content: '//'; color: var(--accent-primary); margin-right: 0.75rem; font-family: 'JetBrains Mono', monospace; }

.form-card { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 8px; padding: 2rem; max-width: 600px; margin: 2rem auto; }

.form-group { margin-bottom: 1.25rem; }

.form-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }

.form-input { width: 100%; padding: 0.75rem 1rem; background: transparent; border: 1px solid var(--border-color); border-radius: 4px; color: var(--text-main); font-size: 0.9rem; transition: border-color 0.3s; }

.form-input:focus { outline: none; border-color: var(--accent-primary); }

.form-input::placeholder { color: var(--text-muted); }

.alert { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.85rem; }

.alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid #10b981; color: #10b981; }

.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid #ef4444; color: #ef4444; }

.tips-card { background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border-color); border-radius: 8px; padding: 1.5rem; margin-top: 2rem; }

.tips-title { font-weight: 600; margin-bottom: 0.75rem; color: var(--accent-primary); }

.tips-list { list-style: none; }

.tips-list li { padding: 0.5rem 0; padding-left: 1.5rem; position: relative; color: var(--text-muted); font-size: 0.85rem; }

.tips-list li::before { content: '>'; position: absolute; left: 0; color: var(--accent-primary); font-family: 'JetBrains Mono', monospace; }

.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }

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

.beian-link { color: var(--text-muted); text-decoration: none; }

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

.qrcode-img-small { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }

.footer-custom-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

.footer-custom-left { flex: 1; text-align: left; min-width: 100px; }

.footer-custom-center { flex: 1; text-align: center; min-width: 100px; }

.footer-custom-right { flex: 1; text-align: right; min-width: 100px; }

@media (max-width: 768px) {
            .footer-custom-grid { flex-direction: column; align-items: center; }
            .footer-custom-left, .footer-custom-center, .footer-custom-right { text-align: center; }
        }

.footer-custom-wrapper img, .footer-custom-wrapper svg { max-height: 24px; vertical-align: middle; }

.footer-custom-wrapper a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }

.footer-custom-wrapper a:hover { color: var(--accent-primary); }

/* === from: article.php === */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { font-family: 'Noto Sans SC', sans-serif; background: var(--bg-deep); color: var(--text-main); min-height: 100vh; transition: background 0.4s, color 0.4s; }

.font-mono { font-family: 'JetBrains Mono', monospace; }

#shader-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.main-wrapper { position: relative; z-index: 10; }

.nav-bar { position: fixed; top: 0; width: 100%; z-index: 100; padding: 0.75rem 1rem; display: flex; justify-content: space-between; align-items: center; background: var(--bg-panel); border-bottom: 1px solid var(--border-color); backdrop-filter: blur(12px); height: 60px; }

.menu-btn { display: none; padding: 0.5rem; background: transparent; border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-main); cursor: pointer; }

.menu-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

.sidebar-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 199; opacity: 0; visibility: hidden; transition: all 0.3s; }

.sidebar-overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar { position: fixed; top: 0; right: -280px; width: 280px; height: 100%; background: var(--bg-panel); border-left: 1px solid var(--border-color); z-index: 200; padding: 1.5rem; transition: right 0.3s; display: flex; flex-direction: column; }

.mobile-sidebar.open { right: 0; }

@media (max-width: 768px) {
            .menu-btn { display: flex; align-items: center; gap: 0.5rem; }
        }

.btn-geek { background: transparent; border: 1px solid var(--accent-primary); color: var(--accent-primary); padding: 0.5rem 1rem; font-weight: 600; font-size: 0.8rem; cursor: pointer; transition: all 0.3s; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); text-decoration: none; display: inline-block; }

.btn-geek:hover { color: var(--bg-deep); background: var(--accent-primary); }

.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color); background: transparent; color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; flex-shrink: 0; }

.theme-toggle:hover { background: rgba(255,255,255,0.1); color: var(--accent-primary); border-color: var(--accent-primary); }

.content-wrapper { max-width: 800px; margin: 0 auto; padding: 5rem 1rem 2rem; }

.article-header { margin-bottom: 2rem; }

.article-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.4; }

.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); }

.article-cover { width: 100%; max-height: 400px; object-fit: cover; border-radius: 8px; margin-bottom: 1.5rem; }

.article-content { line-height: 1.9; color: var(--text-muted); font-size: 0.95rem; }

.article-content h1, .article-content h2, .article-content h3 { color: var(--text-main); margin: 1.5rem 0 0.75rem; }

.article-content h2 { font-size: 1.3rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }

.article-content h3 { font-size: 1.1rem; }

.article-content p { margin-bottom: 1rem; }

.article-content ul, .article-content ol { margin: 1rem 0; padding-left: 1.5rem; }

.article-content li { margin-bottom: 0.5rem; }

.article-content a { color: var(--accent-primary); }

.article-content code { background: rgba(0, 255, 157, 0.1); padding: 0.1rem 0.3rem; border-radius: 3px; font-family: 'JetBrains Mono', monospace; font-size: 0.85em; }

.article-content pre { 
            background: var(--bg-panel); 
            border: 1px solid var(--border-color);
            padding: 1rem; 
            border-radius: 6px; 
            overflow-x: auto; 
            margin: 1rem 0; 
            font-size: 0.85rem; 
            position: relative;
        }

.article-content pre code { background: none; padding: 0; color: var(--text-main); }

.article-content blockquote { border-left: 3px solid var(--accent-primary); padding-left: 1rem; margin: 1rem 0; color: var(--text-muted); }

.article-content img { max-width: 100%; border-radius: 6px; margin: 1rem 0; }

/* 代码复制按钮 */
        .code-copy-btn {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            padding: 0.25rem 0.75rem;
            background: rgba(0, 255, 157, 0.1);
            border: 1px solid var(--border-color);
            border-radius: 4px;
            color: var(--text-muted);
            font-size: 0.75rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

.code-copy-btn:hover {
            background: rgba(0, 255, 157, 0.2);
            color: var(--accent-primary);
            border-color: var(--accent-primary);
        }

.code-copy-btn.copied {
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
            border-color: #10b981;
        }

/* 评论区样式 - QQ/微信聊天风格 */
        .comments-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }

.comments-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }

.comments-list { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 1rem; }

/* 评论项 - 左右布局 */
        .comment-item { display: flex; gap: 0.75rem; max-width: 85%; }

.comment-item.self { align-self: flex-end; flex-direction: row-reverse; }

.comment-item.other { align-self: flex-start; }

/* 头像 */
        .comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* 评论内容区 */
        .comment-content { display: flex; flex-direction: column; gap: 0.25rem; }

.comment-item.self .comment-content { align-items: flex-end; }

.comment-item.other .comment-content { align-items: flex-start; }

/* 用户名和时间 */
        .comment-meta { font-size: 0.7rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }

.comment-name { font-weight: 600; color: var(--text-main); }

/* 聊天气泡 */
        .comment-bubble { 
            padding: 0.75rem 1rem; 
            border-radius: 12px; 
            font-size: 0.85rem; 
            line-height: 1.6; 
            position: relative;
            word-break: break-word;
        }

.comment-item.other .comment-bubble { 
            background: var(--bg-card); 
            border: 1px solid var(--border-color);
            border-top-left-radius: 4px;
        }

.comment-item.self .comment-bubble { 
            background: rgba(0, 255, 157, 0.15); 
            border: 1px solid rgba(0, 255, 157, 0.3);
            border-top-right-radius: 4px;
            color: var(--text-main);
        }

/* 引用回复 */
        .comment-quote {
            background: rgba(0, 0, 0, 0.2);
            border-left: 3px solid var(--accent-primary);
            padding: 0.5rem 0.75rem;
            margin-bottom: 0.5rem;
            border-radius: 4px;
            font-size: 0.75rem;
            color: var(--text-muted);
        }

.comment-quote-author { font-weight: 600; color: var(--accent-primary); margin-bottom: 0.25rem; }

.comment-quote-text { 
            display: -webkit-box; 
            -webkit-line-clamp: 2; 
            -webkit-box-orient: vertical; 
            overflow: hidden;
        }

/* 回复按钮 */
        .comment-actions { display: flex; gap: 0.5rem; margin-top: 0.25rem; }

.comment-reply-btn { 
            font-size: 0.7rem; 
            padding: 0.15rem 0.5rem; 
            background: transparent; 
            border: 1px solid var(--border-color); 
            border-radius: 4px; 
            color: var(--text-muted); 
            cursor: pointer;
            transition: all 0.2s;
        }

.comment-reply-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

/* 评论表单 */
        .comment-form { margin-top: 2rem; background: var(--bg-panel); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border-color); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }

@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-input { width: 100%; padding: 0.6rem 0.8rem; background: transparent; border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-main); font-size: 0.85rem; }

.form-input:focus { outline: none; border-color: var(--accent-primary); }

.form-textarea { min-height: 100px; resize: vertical; }

/* 回复提示 */
        #replyHint { 
            padding: 0.75rem 1rem; 
            background: rgba(0, 255, 157, 0.1); 
            border: 1px solid rgba(0, 255, 157, 0.2);
            border-radius: 8px; 
            margin-bottom: 1rem; 
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

#replyHint button { background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.8rem; }

#replyHint button:hover { color: var(--accent-primary); }

.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }

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

.beian-link { color: var(--text-muted); text-decoration: none; transition: color 0.2s; display: inline-flex; align-items: center; gap: 0.25rem; }

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

/* 小尺寸二维码样式 */
        .qrcode-box-small { width: 70px; height: 70px; padding: 4px; background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }

.qrcode-img-small { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }

/* 自定义底部栏样式 */
        .footer-custom-wrapper { width: 100%; }

.footer-custom-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

.footer-custom-left { flex: 1; text-align: left; min-width: 100px; }

.footer-custom-center { flex: 1; text-align: center; min-width: 100px; }

.footer-custom-right { flex: 1; text-align: right; min-width: 100px; }

@media (max-width: 768px) {
            .footer-custom-grid { flex-direction: column; align-items: center; }
            .footer-custom-left, .footer-custom-center, .footer-custom-right { text-align: center; }
        }

.footer-custom-wrapper img, .footer-custom-wrapper svg { max-height: 24px; vertical-align: middle; }

.footer-custom-wrapper a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }

.footer-custom-wrapper a:hover { color: var(--accent-primary); }

/* === from: articles.php === */
:root {
            --bg-deep: #050508;
            --bg-panel: rgba(12, 12, 18, 0.95);
            --text-main: #e4e4e7;
            --text-muted: #71717a;
            --accent-primary: #00ff9d;
            --accent-secondary: #00d4ff;
            --border-color: rgba(0, 255, 157, 0.15);
        }

[data-theme="light"] {
            --bg-deep: #ffffff;
            --bg-panel: rgba(255, 255, 255, 0.98);
            --text-main: #0f172a;
            --text-muted: #64748b;
            --accent-primary: #059669;
            --accent-secondary: #0284c7;
            --border-color: rgba(5, 150, 105, 0.15);
        }

* { margin: 0; padding: 0; box-sizing: border-box; }

.font-mono { font-family: 'JetBrains Mono', monospace; }

#shader-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.main-wrapper { position: relative; z-index: 10; }

.nav-bar { position: fixed; top: 0; width: 100%; z-index: 100; padding: 0.75rem 1rem; display: flex; justify-content: space-between; align-items: center; background: var(--bg-panel); border-bottom: 1px solid var(--border-color); backdrop-filter: blur(12px); height: 60px; }

.menu-btn { display: none; padding: 0.5rem; background: transparent; border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-main); cursor: pointer; }

.menu-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

.sidebar-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 199; opacity: 0; visibility: hidden; transition: all 0.3s; }

.sidebar-overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar { position: fixed; top: 0; right: -280px; width: 280px; height: 100%; background: var(--bg-panel); border-left: 1px solid var(--border-color); z-index: 200; padding: 1.5rem; transition: right 0.3s; display: flex; flex-direction: column; }

.mobile-sidebar.open { right: 0; }

@media (max-width: 768px) {
            .menu-btn { display: flex; align-items: center; gap: 0.5rem; }
        }

.btn-geek { background: transparent; border: 1px solid var(--accent-primary); color: var(--accent-primary); padding: 0.5rem 1rem; font-weight: 600; font-size: 0.8rem; cursor: pointer; transition: all 0.3s; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); text-decoration: none; display: inline-block; }

.btn-geek:hover { color: var(--bg-deep); background: var(--accent-primary); }

.theme-toggle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-color); background: transparent; color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }

.content-wrapper { max-width: 900px; margin: 0 auto; padding: 5rem 1rem 2rem; }

.page-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; }

.page-title::before { content: '//'; color: var(--accent-primary); margin-right: 0.5rem; font-family: 'JetBrains Mono', monospace; }

.article-card { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 1rem; transition: all 0.3s; overflow: hidden; position: relative; }

.article-card:hover { border-color: var(--accent-primary); transform: translateY(-2px); }

.article-card.has-bg { background: transparent; }

.article-card-inner { display: flex; gap: 1rem; padding: 1.25rem; align-items: flex-start; position: relative; z-index: 1; }

.article-card-inner.left-image { flex-direction: row; }

.article-card-inner.right-image { flex-direction: row; }

.article-card-inner.none-image { flex-direction: row; }

.article-card-inner.background-image { flex-direction: row; min-height: unset; align-items: flex-start; background: transparent; }

.article-card-cover { width: 100px; height: 70px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }

.article-card-cover.left { margin-right: 0; order: -1; }

.article-card-cover.right { margin-left: auto; order: 1; }

.article-card-content { flex: 1; min-width: 0; }

.article-card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-main); text-decoration: none; display: block; }

.article-card-title:hover { color: var(--accent-primary); }

.article-card-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.article-card-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; gap: 1rem; }

.article-card-bg { 
            position: absolute; 
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 0; 
            background-size: cover; 
            background-position: center;
            opacity: 0.25;
            pointer-events: none;
        }

[data-theme="light"] .article-card-bg { 
            opacity: 0.4;
        }

@media (max-width: 640px) {
            .article-card-cover { width: 80px; height: 56px; }
        }

.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }

footer { border-top: 1px solid var(--border-color); background: var(--bg-panel); padding-top: 2rem; padding-bottom: 1rem; margin-top: 2rem; }

.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }

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

.beian-link { color: var(--text-muted); text-decoration: none; transition: color 0.2s; display: inline-flex; align-items: center; gap: 0.25rem; }

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

/* 小尺寸二维码样式 */
        .qrcode-box-small { width: 70px; height: 70px; padding: 4px; background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }

.qrcode-img-small { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }

/* 自定义底部栏样式 */
        .footer-custom-wrapper { width: 100%; }

.footer-custom-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

.footer-custom-left { flex: 1; text-align: left; min-width: 100px; }

.footer-custom-center { flex: 1; text-align: center; min-width: 100px; }

.footer-custom-right { flex: 1; text-align: right; min-width: 100px; }

@media (max-width: 768px) {
            .footer-custom-grid { flex-direction: column; align-items: center; }
            .footer-custom-left, .footer-custom-center, .footer-custom-right { text-align: center; }
        }

.footer-custom-wrapper img, .footer-custom-wrapper svg { max-height: 24px; vertical-align: middle; }

.footer-custom-wrapper a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }

.footer-custom-wrapper a:hover { color: var(--accent-primary); }

/* === from: contributors.php === */
:root {
            --bg-deep: #050508;
            --bg-panel: rgba(12, 12, 18, 0.95);
            --text-main: #e4e4e7;
            --text-muted: #71717a;
            --accent-primary: #00ff9d;
            --accent-secondary: #00d4ff;
            --border-color: rgba(0, 255, 157, 0.15);
        }

[data-theme="light"] {
            --bg-deep: #ffffff;
            --bg-panel: rgba(255, 255, 255, 0.98);
            --text-main: #0f172a;
            --text-muted: #64748b;
            --accent-primary: #059669;
            --accent-secondary: #0284c7;
            --border-color: rgba(5, 150, 105, 0.15);
        }

* { margin: 0; padding: 0; box-sizing: border-box; }

.font-mono { font-family: 'JetBrains Mono', monospace; }

#shader-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.grid-overlay { position: fixed; inset: 0; z-index: 1; pointer-events: none; background-image: linear-gradient(rgba(0, 255, 157, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 157, 0.03) 1px, transparent 1px); background-size: 50px 50px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%); opacity: 0.5; }

[data-theme="light"] .grid-overlay { opacity: 0.1; }

.main-wrapper { position: relative; z-index: 10; }

.nav-bar { position: fixed; top: 0; width: 100%; z-index: 100; padding: 0.75rem 1rem; display: flex; justify-content: space-between; align-items: center; background: var(--bg-panel); border-bottom: 1px solid var(--border-color); backdrop-filter: blur(12px); height: 60px; }

.sidebar-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 199; opacity: 0; visibility: hidden; transition: all 0.3s; }

.sidebar-overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar { position: fixed; top: 0; right: -280px; width: 280px; height: 100%; background: var(--bg-panel); border-left: 1px solid var(--border-color); z-index: 200; padding: 1.5rem; transition: right 0.3s; display: flex; flex-direction: column; }

.mobile-sidebar.open { right: 0; }

.btn-geek { background: transparent; border: 1px solid var(--accent-primary); color: var(--accent-primary); padding: 0.5rem 1rem; font-weight: 600; font-size: 0.8rem; cursor: pointer; transition: all 0.3s; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); text-decoration: none; display: inline-block; }

.btn-geek:hover { background: var(--accent-primary); color: #000; }

.theme-toggle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-color); background: transparent; color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }

.theme-toggle:hover { color: var(--accent-primary); border-color: var(--accent-primary); }

.page-header { padding: 5rem 1rem 2rem; text-align: center; border-bottom: 1px solid var(--border-color); }

.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }

.section-title::before { content: '//'; color: var(--accent-primary); margin-right: 0.5rem; font-family: 'JetBrains Mono', monospace; }

.contributors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; padding: 2rem 1rem; max-width: 1200px; margin: 0 auto; }

.contributor-card { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.5rem; text-align: center; transition: all 0.3s; }

.contributor-card:hover { border-color: var(--accent-primary); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 255, 157, 0.1); }

.contributor-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--accent-primary); object-fit: cover; margin: 0 auto 1rem; }

.contributor-avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--accent-primary); background: rgba(0, 255, 157, 0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }

.contributor-avatar-placeholder span { font-size: 2rem; font-weight: 700; color: var(--accent-primary); }

.contributor-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }

.contributor-name a { color: var(--text-main); text-decoration: none; }

.contributor-name a:hover { color: var(--accent-primary); }

.contributor-bio { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.5; }

.contributor-stats { display: flex; justify-content: center; gap: 1.5rem; font-size: 0.8rem; }

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

.contributor-stat-value { font-weight: 700; color: var(--accent-primary); font-family: 'JetBrains Mono', monospace; }

.contributor-stat-label { color: var(--text-muted); font-size: 0.7rem; }

.thank-you-banner { background: linear-gradient(135deg, rgba(0, 255, 157, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%); border: 1px solid var(--border-color); border-radius: 12px; padding: 2rem; margin: 2rem 1rem; max-width: 800px; margin-left: auto; margin-right: auto; text-align: center; }

.thank-you-banner h2 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--accent-primary); }

.thank-you-banner p { color: var(--text-muted); line-height: 1.8; }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }

footer { border-top: 1px solid var(--border-color); background: var(--bg-panel); padding-top: 2rem; padding-bottom: 1rem; margin-top: 2rem; }

.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }

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

.beian-link { color: var(--text-muted); text-decoration: none; transition: color 0.2s; display: inline-flex; align-items: center; gap: 0.25rem; }

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

/* 小尺寸二维码样式 */
        .qrcode-box-small { width: 70px; height: 70px; padding: 4px; background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }

.qrcode-img-small { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }

/* 自定义底部栏样式 */
        .footer-custom-wrapper { width: 100%; }

.footer-custom-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

.footer-custom-left { flex: 1; text-align: left; min-width: 100px; }

.footer-custom-center { flex: 1; text-align: center; min-width: 100px; }

.footer-custom-right { flex: 1; text-align: right; min-width: 100px; }

@media (max-width: 768px) {
            .footer-custom-grid { flex-direction: column; align-items: center; }
            .footer-custom-left, .footer-custom-center, .footer-custom-right { text-align: center; }
        }

.footer-custom-wrapper img, .footer-custom-wrapper svg { max-height: 24px; vertical-align: middle; }

.footer-custom-wrapper a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }

.footer-custom-wrapper a:hover { color: var(--accent-primary); }

/* === from: index.php === */
html { scroll-behavior: smooth; }

.font-mono { font-family: 'JetBrains Mono', monospace; }

#shader-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.grid-overlay { position: fixed; inset: 0; z-index: 1; pointer-events: none; background-image: linear-gradient(rgba(0, 255, 157, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 157, 0.03) 1px, transparent 1px); background-size: 50px 50px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%); opacity: 0.5; }

.main-wrapper { position: relative; z-index: 10; }

.nav-bar { position: fixed; top: 0; width: 100%; z-index: 100; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; background: var(--bg-panel); border-bottom: 1px solid var(--border-color); backdrop-filter: blur(12px); height: 70px; }

.sidebar-overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar.open { right: 0; }

.btn-geek { background: transparent; border: 1px solid var(--accent-primary); color: var(--accent-primary); padding: 0.65rem 1.5rem; font-weight: 600; font-size: 0.85rem; position: relative; overflow: hidden; cursor: pointer; transition: all 0.3s; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); text-decoration: none; display: inline-block; }

.btn-geek::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: var(--accent-primary); transition: left 0.3s; z-index: -1; }

.btn-geek:hover { color: var(--bg-deep); box-shadow: 0 0 20px var(--glow-primary); }

.btn-geek:hover::before { left: 0; }

.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color); background: transparent; color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; flex-shrink: 0; }

.theme-toggle:hover { background: rgba(255,255,255,0.1); color: var(--accent-primary); border-color: var(--accent-primary); }

.hero-section { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 6rem 1.5rem 2rem; }

.tag-free { background: rgba(34, 197, 94, 0.15); color: #22c55e; }

.tag-new { background: rgba(255, 107, 53, 0.15); color: #ff6b35; }

/* 首页主标题文字大小调整 - 修改 clamp 的最大值来调整字体大小 */
        /* clamp(最小值, 首选值, 最大值) - 例如：clamp(2.5rem, 6vw, 4.5rem) */
        /* 如果要改小字体，减小最大值，如改为 4rem 或 3.5rem */
        .glitch-text { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1; text-transform: uppercase; position: relative; display: inline-block; letter-spacing: -2px; min-height: 1.2em; color: var(--text-main); }

.glitch-text.is-glitching::before, .glitch-text.is-glitching::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.glitch-text.is-glitching::before { left: 2px; text-shadow: -2px 0 var(--accent-secondary); animation: glitch-anim 3s infinite linear alternate-reverse; }

.glitch-text.is-glitching::after { left: -2px; text-shadow: -2px 0 var(--accent-primary); animation: glitch-anim2 2.5s infinite linear alternate-reverse; }

@keyframes glitch-anim { 0% { clip: rect(31px, 9999px, 94px, 0); } 20% { clip: rect(6px, 9999px, 3px, 0); } 40% { clip: rect(81px, 9999px, 55px, 0); } 60% { clip: rect(23px, 9999px, 2px, 0); } 80% { clip: rect(67px, 9999px, 59px, 0); } 100% { clip: rect(2px, 9999px, 34px, 0); } }

@keyframes glitch-anim2 { 0% { clip: rect(65px, 9999px, 100px, 0); } 20% { clip: rect(12px, 9999px, 2px, 0); } 40% { clip: rect(87px, 9999px, 32px, 0); } 60% { clip: rect(45px, 9999px, 66px, 0); } 80% { clip: rect(2px, 9999px, 85px, 0); } 100% { clip: rect(30px, 9999px, 12px, 0); } }

.terminal-window { background: var(--code-bg); border: 1px solid var(--border-color); border-radius: 10px; width: 100%; max-width: 650px; margin-top: 0; box-shadow: 0 20px 50px rgba(0,0,0,0.3); backdrop-filter: blur(10px); overflow: hidden; }

[data-theme="light"] .terminal-window { background: #ffffff; border-color: #e2e8f0; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

.terminal-header { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; background: rgba(255, 255, 255, 0.02); }

.terminal-body { padding: 1.5rem; font-size: 0.95rem; line-height: 1.8; color: var(--text-main); }

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

/* 电脑端终端位置和大小调整 */
        @media (min-width: 1024px) {
            .hero-section { padding-top: 4rem; }
            .hero-section > .flex { 
                flex-direction: row !important; 
                align-items: stretch;
                gap: 3rem;
            }
            .hero-left-content { 
                flex: 1 1 0; 
                min-width: 0; 
            }
            #hero-terminal-mount {
                flex: 1 1 0;
                min-width: 0;
                display: flex;
                align-items: flex-end;
            }
            .terminal-window { 
                margin-left: 0;
                margin-right: 0;
                margin-top: auto;
                margin-bottom: 3rem;
                width: 100%;
                flex: 0 0 auto;
            }
        }

/* API Cards - 响应式网格布局 */
        .card-container { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
        @media (min-width: 640px) { .card-container { grid-template-columns: repeat(2, 1fr); } }
        @media (min-width: 1024px) { .card-container { grid-template-columns: repeat(3, 1fr); } }
        @media (min-width: 1280px) { .card-container { grid-template-columns: repeat(4, 1fr); } }

.api-card { background: var(--bg-panel); border: 1px solid var(--border-color); padding: 1rem; transition: all 0.3s ease; position: relative; backdrop-filter: blur(5px); display: flex; flex-direction: column; }

.api-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--accent-primary); opacity: 0; transition: opacity 0.3s; }

.api-card:hover { border-color: var(--accent-primary); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 255, 157, 0.1); }

.api-card:hover::before { opacity: 1; }

.method-badge { font-size: 0.65rem; padding: 2px 6px; border-radius: 2px; font-weight: bold; font-family: 'JetBrains Mono', monospace; }

.get { background: rgba(0, 255, 157, 0.15); color: var(--accent-primary); }

.post { background: rgba(0, 212, 255, 0.15); color: var(--accent-secondary); }

.stat-value { font-family: 'JetBrains Mono', monospace; font-size: 2.5rem; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,0.1); font-variant-numeric: tabular-nums; }

.stat-green { color: var(--accent-primary); }

.stat-cyan { color: var(--accent-secondary); }

.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 2rem; display: flex; align-items: center; }

.section-title::before { content: '//'; color: var(--accent-primary); margin-right: 0.75rem; font-family: 'JetBrains Mono', monospace; }

.playground-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }

@media (min-width: 1024px) { .playground-grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 768px) {
    .playground-grid { overflow-x: hidden; }
    .playground-grid .api-card { overflow-x: hidden; max-width: 100vw; }
    .param-label { flex-wrap: wrap; }
    .param-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
    .modal-content { max-width: 95vw; width: 95vw; }
    .modal-body { overflow-x: hidden; }
}

::-webkit-scrollbar { width: 6px; height: 6px; }

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

::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 3px; }

.syntax-k { color: #c792ea; }

.syntax-s { color: #c3e88d; }

.syntax-c { color: #546e7a; font-style: italic; }

[data-theme="light"] .syntax-c { color: #64748b; }

[data-theme="light"] .syntax-k { color: #9333ea; }

[data-theme="light"] .syntax-s { color: #059669; }

.typing-cursor { display: inline-block; width: 8px; height: 1.2em; background-color: var(--accent-primary); margin-left: 2px; animation: blink 1s infinite steps(1); vertical-align: text-bottom; box-shadow: 0 0 5px var(--glow-primary); }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.response-container { position: relative; width: 100%; overflow-x: auto; overflow-y: auto; background: rgba(0,0,0,0.2); border: 1px solid var(--border-color); border-radius: 4px; height: 16rem; }

[data-theme="light"] .response-container { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.1); }

.response-pre { margin: 0; padding: 1rem; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; line-height: 1.5; color: var(--text-muted); word-break: break-all; white-space: pre-wrap; }

[data-theme="light"] .response-pre { color: #1e293b; }

.search-input { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); padding: 0.5rem 1rem; border-radius: 4px; outline: none; transition: all 0.3s; }

.search-input:focus { border-color: var(--accent-primary); box-shadow: 0 0 10px rgba(0, 255, 157, 0.1); }

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

.cat-btn { padding: 0.25rem 0.75rem; border-radius: 4px; font-size: 0.75rem; border: 1px solid transparent; background: transparent; color: var(--text-muted); cursor: pointer; transition: all 0.2s; white-space: nowrap; }

.cat-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-main); }

.cat-btn.active { background: var(--accent-primary); color: #000; font-weight: 600; }

/* 分类展开/收起 */
        .cat-btn-more { padding: 0.25rem 0.75rem; border-radius: 4px; font-size: 0.75rem; border: 1px dashed var(--border-color); background: transparent; color: var(--accent-primary); cursor: pointer; transition: all 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 0.25rem; }

.cat-btn-more:hover { background: rgba(0, 255, 157, 0.1); }

.cat-btn-more .expand-icon { transition: transform 0.3s ease; }

.cat-btn-hidden { display: none; }

.cat-btn-hidden.show { display: inline-block; }

.view-more-link { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 2rem; padding: 1rem; color: var(--accent-primary); font-weight: 600; text-decoration: none; border: 1px dashed var(--border-color); border-radius: 8px; transition: all 0.3s; }

.view-more-link:hover { background: rgba(0, 255, 157, 0.05); border-style: solid; }

/* API Select Modal - 横向列表 */
        .modal-overlay { position: fixed; inset: 0; background: transparent; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease; }

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-content { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 12px; width: 100%; max-width: 900px; max-height: 70vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); transform: translateY(20px); transition: transform 0.2s ease; will-change: transform; }

.modal-overlay.open .modal-content { transform: translateY(0); }

.modal-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }

.modal-body { padding: 1rem; overflow-y: auto; flex: 1; max-height: 60vh; }

.modal-toolbar { display: flex; gap: 0.5rem; margin-bottom: 1rem; position: sticky; top: 0; background: var(--bg-panel); padding-bottom: 0.5rem; z-index: 10; align-items: center; }

/* 横向网格布局 */
        .modal-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }

@media (max-width: 768px) { .modal-list-grid { grid-template-columns: 1fr; } }

.api-group-title { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); margin-top: 0.5rem; margin-bottom: 0.25rem; padding-left: 0.5rem; border-left: 2px solid var(--accent-primary); grid-column: 1 / -1; }

.api-item { padding: 0.5rem 0.75rem; border-radius: 6px; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; display: flex; justify-content: space-between; align-items: center; overflow: hidden; }
.api-item > div { overflow: hidden; flex: 1; min-width: 0; }
.api-item .font-mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

.api-item:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--border-color); }

.api-item.selected { background: rgba(0, 255, 157, 0.1); border-color: var(--accent-primary); }

.api-select-trigger { width: 100%; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; overflow: hidden; }
.api-select-trigger #selected-api-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }

/* 参数输入区域 */
        .params-container { margin-top: 1rem; display: none; }

.params-container.show { display: block; }

.param-item { margin-bottom: 0.75rem; }

.param-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.5rem; }

.param-required { color: #ef4444; }

.param-input { width: 100%; padding: 0.5rem 0.75rem; background: transparent; border: 1px solid var(--border-color); border-radius: 4px; color: var(--text-main); font-size: 0.85rem; }

.param-input:focus { outline: none; border-color: var(--accent-primary); }

/* 请求方式选择器 */
        .method-option {
            padding: 0.35rem 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            font-size: 0.75rem;
            font-family: 'JetBrains Mono', monospace;
            cursor: pointer;
            transition: all 0.2s;
            color: var(--text-muted);
            background: transparent;
        }

.method-option:hover {
            border-color: var(--accent-primary);
            color: var(--accent-primary);
        }

.method-option.active {
            background: rgba(0, 255, 157, 0.15);
            border-color: var(--accent-primary);
            color: var(--accent-primary);
        }

footer { border-top: 1px solid var(--border-color); background: var(--bg-panel); padding-top: 3rem; padding-bottom: 1.5rem; }

.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }

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

.beian-link { color: var(--text-muted); text-decoration: none; transition: color 0.2s; display: inline-flex; align-items: center; gap: 0.25rem; }

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

/* 小尺寸二维码样式 */
        .qrcode-box-small { width: 70px; height: 70px; padding: 4px; background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }

.qrcode-img-small { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }

/* 自定义底部栏样式 */
        .footer-custom-wrapper { width: 100%; }

.footer-custom-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

.footer-custom-left { flex: 1; text-align: left; min-width: 100px; }

.footer-custom-center { flex: 1; text-align: center; min-width: 100px; }

.footer-custom-right { flex: 1; text-align: right; min-width: 100px; }

@media (max-width: 768px) {
            .footer-custom-grid { flex-direction: column; align-items: center; }
            .footer-custom-left, .footer-custom-center, .footer-custom-right { text-align: center; }
        }

.footer-custom-wrapper img, .footer-custom-wrapper svg { max-height: 24px; vertical-align: middle; }

.footer-custom-wrapper a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }

.footer-custom-wrapper a:hover { color: var(--accent-primary); }

/* 接口卡片紧凑样式 */
        .api-card-compact { padding: 0.75rem; }

.api-card-compact h3 { font-size: 0.9rem; margin-bottom: 0.25rem; }

.api-card-compact p { font-size: 0.75rem; margin-bottom: 0.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.api-card-compact .endpoint-box { font-size: 0.7rem; padding: 0.25rem 0.5rem; }

/* === from: links.php === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: 'Noto Sans SC', sans-serif; background: var(--bg-deep); color: var(--text-main); min-height: 100vh; }

.font-mono { font-family: 'JetBrains Mono', monospace; }

#shader-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.content-wrapper { max-width: 900px; margin: 0 auto; padding: 5rem 1rem 2rem; position: relative; z-index: 10; }

.nav-bar { position: fixed; top: 0; width: 100%; z-index: 100; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; background: var(--bg-panel); border-bottom: 1px solid var(--border-color); backdrop-filter: blur(12px); height: 70px; }

.sidebar-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 199; opacity: 0; visibility: hidden; transition: all 0.3s ease; }

.sidebar-overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar { position: fixed; top: 0; right: -280px; width: 280px; height: 100%; background: var(--bg-panel); border-left: 1px solid var(--border-color); z-index: 200; padding: 2rem 1.5rem; transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; box-shadow: -5px 0 30px rgba(0,0,0,0.2); }

.mobile-sidebar.open { right: 0; }

.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color); background: transparent; color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; flex-shrink: 0; }

.theme-toggle:hover { background: rgba(255,255,255,0.1); color: var(--accent-primary); border-color: var(--accent-primary); }

.menu-btn { display: none; padding: 0.5rem; background: transparent; border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-main); cursor: pointer; }

@media (max-width: 768px) { .menu-btn { display: flex; align-items: center; gap: 0.5rem; } }

.page-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; }

.page-title::before { content: '//'; color: var(--accent-primary); margin-right: 0.5rem; font-family: 'JetBrains Mono', monospace; }

.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

.link-card { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.25rem; transition: all 0.3s; display: flex; align-items: center; gap: 1rem; }

.link-card:hover { border-color: var(--accent-primary); transform: translateY(-2px); }

.link-avatar { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--bg-card); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: var(--accent-primary); }

.link-info { flex: 1; min-width: 0; }

.link-name { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--text-main); text-decoration: none; display: block; }

.link-name:hover { color: var(--accent-primary); }

.link-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.link-url { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; font-family: 'JetBrains Mono', monospace; }

.apply-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }

.apply-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; color: var(--accent-primary); }

.apply-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: transparent; border: 1px solid var(--accent-primary); color: var(--accent-primary); border-radius: 8px; font-weight: 600; text-decoration: none; transition: all 0.3s; }

.apply-btn:hover { background: var(--accent-primary); color: var(--bg-deep); }

.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }

footer { border-top: 1px solid var(--border-color); background: var(--bg-panel); padding-top: 3rem; padding-bottom: 1.5rem; }

.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }

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

.beian-link { color: var(--text-muted); text-decoration: none; transition: color 0.2s; display: inline-flex; align-items: center; gap: 0.25rem; }

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

/* 小尺寸二维码样式 */
        .qrcode-box-small { width: 70px; height: 70px; padding: 4px; background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }

.qrcode-img-small { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }

/* 自定义底部栏样式 */
        .footer-custom-wrapper { width: 100%; }

.footer-custom-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

.footer-custom-left { flex: 1; text-align: left; min-width: 100px; }

.footer-custom-center { flex: 1; text-align: center; min-width: 100px; }

.footer-custom-right { flex: 1; text-align: right; min-width: 100px; }

@media (max-width: 768px) {
            .footer-custom-grid { flex-direction: column; align-items: center; }
            .footer-custom-left, .footer-custom-center, .footer-custom-right { text-align: center; }
        }

.footer-custom-wrapper img, .footer-custom-wrapper svg { max-height: 24px; vertical-align: middle; }

.footer-custom-wrapper a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }

.footer-custom-wrapper a:hover { color: var(--accent-primary); }

