/* ========== CSS Reset & Variables ========== */
:root {
    /* 主色调 - ScholarClaw 品牌色 */
    --primary-color: #1E3A5F;
    --primary-hover: #2A4A73;
    --primary-light: #3D5A80;
    --accent-color: #E53935;
    --accent-hover: #EF5350;

    /* 背景和表面 */
    --bg-color: #F8FAFC;
    --surface-color: #ffffff;

    /* 文字颜色 */
    --text-primary: #1E3A5F;
    --text-secondary: #5A6A7A;
    --text-tertiary: #8A9AAA;

    /* 边框 */
    --border-color: #E8EEF4;
    --border-hover: #C8D4E0;

    /* 布局 */
    --sidebar-width: 240px;
    --header-height: 64px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --bottom-search-height: 140px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    font-size: 14px;
}

/* ========== Layout ========== */
.main-layout {
    display: flex;
    height: 100vh;
    overflow: hidden; /* Prevent body scroll */
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary-color);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.sidebar-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: contain;
    background: white;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: white;
}

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 4px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.nav-item.active {
    background: rgba(255,255,255,0.15);
    color: white;
    font-weight: 600;
}

.nav-icon {
    margin-right: 12px;
    opacity: 0.7;
}

.nav-item.active .nav-icon {
    opacity: 1;
    color: var(--accent-color);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Gemini 风格布局 */
.main-content.gemini-style {
    overflow: hidden;
}

/* 内容滚动区域 */
.content-scroll-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: var(--bottom-search-height);
}

/* ========== Search Header & Toolbar ========== */
#searchSection {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 32px;
    flex-shrink: 0;
}

.search-header {
    max-width: 1200px;
    margin: 0 auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.main-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 4px 8px;
    color: var(--text-primary);
}

.main-search-btn {
    background: var(--text-primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.main-search-btn:hover {
    background: #1e293b;
}

/* ========== 底部搜索容器（Gemini 风格） ========== */
.bottom-search-container {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    background: linear-gradient(to top, #ffffff 180px, rgba(255,255,255,0.95) 200px, transparent);
    z-index: 1000;
    padding: 16px 32px 24px;
}

.bottom-search-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.search-input-large {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 14px 18px 14px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-large:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 24px rgba(30, 58, 95, 0.12), 0 2px 8px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.search-input-large .search-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-bottom: 2px;
}

.main-search-textarea {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background: transparent;
    resize: none;
    min-height: 28px;
    max-height: 150px;
    overflow-y: auto;
    font-family: inherit;
    padding: 0;
}

.main-search-textarea::placeholder {
    color: var(--text-tertiary);
}

/* 滚动条样式 */
.main-search-textarea::-webkit-scrollbar {
    width: 4px;
}

.main-search-textarea::-webkit-scrollbar-track {
    background: transparent;
}

.main-search-textarea::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.search-btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-btn-large:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.search-btn-large:active {
    transform: scale(0.95);
}

.search-btn-large:disabled {
    background: var(--text-tertiary);
    cursor: not-allowed;
    opacity: 0.6;
}

.search-toolbar-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.toolbar-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    flex-wrap: wrap;
    gap: 16px;
}

.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Filter Chips */
.search-mode-group {
    display: flex;
    background: #f1f5f9;
    padding: 2px;
    border-radius: 6px;
}

.tool-btn {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
}

.tool-btn.active {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.sort-select-minimal {
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    padding-right: 12px;
}

.database-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.db-pill span {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.db-pill input { display: none; }
.db-pill input:checked + span {
    background: #eff6ff;
    color: var(--primary-color);
    border-color: #bfdbfe;
}

.db-action-btn {
    font-size: 12px;
    color: var(--text-tertiary);
    background: none;
    border: none;
    cursor: pointer;
}
.db-action-btn:hover { color: var(--text-primary); }

/* ========== Results Area ========== */
.results-area {
    width: 100%;
    max-width: 1200px; /* Wider reading area */
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.2s;
}

.result-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

/* Result Items */
.source-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 4px;
    vertical-align: middle;
}

.source-badge-link {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

.source-badge-link:hover {
    background: #e0e7ff;
    color: var(--primary-color);
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a0dab; /* Classic search link color or use primary */
    text-decoration: none;
    line-height: 1.4;
    vertical-align: middle;
}
.result-title:hover { text-decoration: underline; }

.result-meta-row {
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.result-snippet {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Actions Row */
.result-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.citation-badge {
    font-size: 12px;
    font-weight: 500;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-btn, .reputation-btn {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: white;
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}

.blog-btn:hover, .reputation-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ========== Pagination (Clean Style) ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 32px 0 64px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.pagination-btn, .pagination-page {
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.pagination-page:hover, .pagination-btn:hover:not(:disabled) {
    background: #f1f5f9;
    color: var(--text-primary);
}

.pagination-page.active {
    background: var(--text-primary);
    color: white;
}

.pagination-btn:disabled {
    color: var(--text-tertiary);
    cursor: not-allowed;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-left: 16px;
}

/* ========== Loading ========== */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 14px;
    display: none;
}

.loading::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    margin: 16px auto;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========== Full Width Sections (SOTA, Blog, Reputation) ========== */
.sota-section, .blog-section {
    width: 100%;
    height: 100%;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    overflow: hidden; /* 确保内部滚动区域正确工作 */
}

/* Allow these to scroll internally if needed, or fill page */
.sota-content, .blog-content {
    flex: 1;
    width: 100%;
    height: 100%; /* 确保有明确的高度 */
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0; /* Flexbox 滚动的关键修复 */
}

/* 当显示 SOTA、Blog 或 Reputation 时，隐藏滚动区域的内容 */
body.tab-sota .content-scroll-area,
body.tab-blog .content-scroll-area,
body.tab-reputation .content-scroll-area {
    display: none;
}

.reputation-section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f1f5f9;
    padding: 16px;
}

.reputation-section iframe {
    width: 100%;
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
}

/* Hide default H1s in these sections */
.sota-section > h1, .blog-section > h1 {
    display: none;
}

/* 在 SOTA 和 Blog 标签页激活时隐藏底部搜索框 */
.main-content:not(.gemini-style) .bottom-search-container {
    display: none;
}

/* 当 SOTA 或 Blog 区域显示时，隐藏底部搜索 */
.sota-section:not([style*="display: none"]) ~ .bottom-search-container,
.blog-section:not([style*="display: none"]) ~ .bottom-search-container {
    display: none;
}

/* 更可靠的方式：使用类控制 */
body.tab-sota .bottom-search-container,
body.tab-blog .bottom-search-container,
body.tab-reputation .bottom-search-container,
body.tab-recommend .bottom-search-container {
    display: none;
}

body.tab-sota .content-scroll-area,
body.tab-blog .content-scroll-area,
body.tab-reputation .content-scroll-area {
    padding-bottom: 0;
}

/* ========== 推荐论文网格布局 ========== */
.recommend-papers {
    padding: 32px 32px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.recommend-header {
    text-align: center;
    margin-bottom: 32px;
    margin-top: 20px;
}

.recommend-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.recommend-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

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

.paper-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
}

.paper-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.paper-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.paper-card-source {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.paper-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 0 0 auto;
}

.paper-card-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.paper-card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.paper-card-authors {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 0 0 auto;
}

.paper-card-abstract {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 1 auto;
    margin-bottom: 12px;
}

.paper-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    flex: 0 0 auto;
}

.paper-card-btn {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.paper-card-btn:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.paper-card-btn.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.paper-card-btn.primary:hover {
    background: var(--primary-hover);
}

/* 空状态 */
.recommend-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.recommend-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.recommend-empty-text {
    font-size: 16px;
    margin-bottom: 8px;
}

.recommend-empty-subtext {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* 隐藏推荐区域 */
.hidden {
    display: none !important;
}

/* Helper for result rendering */
.result-card.arxiv::before { border-left: 3px solid #b91c1c; }
.result-card.bocha::before { border-left: 3px solid #059669; }
.result-card.google::before { border-left: 3px solid #2563eb; }
/* ...etc... */

/* Snippet styles */
.snippet-content.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.snippet-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    margin-top: 4px;
    user-select: none;
}

.snippet-toggle:hover {
    text-decoration: underline;
}

/* ========== 推荐页面样式 ========== */
body.tab-recommend .bottom-search-container {
    display: none;
}

.recommend-section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-color);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10;
}

.recommend-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}

/* arXiv 搜索框 */
.recommend-search-box {
    margin-bottom: 32px;
}

.recommend-search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.recommend-search-input-wrapper svg {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.recommend-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--text-primary);
    background: transparent;
}

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

.recommend-search-btn {
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.recommend-search-btn:hover {
    background: var(--primary-hover);
}

/* 搜索结果容器 */
.recommend-search-result {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}

.recommend-search-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.recommend-search-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.recommend-search-header p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.recommend-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.recommend-close-btn:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.recommend-search-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.recommend-loading-spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto 16px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.recommend-search-repos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recommend-search-repo-item {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 16px;
}

.recommend-search-repo-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.recommend-search-repo-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.recommend-search-repo-name:hover {
    color: var(--primary-color);
}

.recommend-search-repo-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.recommend-search-issues-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.recommend-issues-header {
    margin-bottom: 12px;
}

.recommend-issues-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.recommend-issues-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommend-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.recommend-section-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.recommend-section-header p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.recommend-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

.recommend-block-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommend-papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 16px;
}

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

.recommend-paper-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.recommend-paper-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.recommend-paper-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.recommend-paper-title-section {
    flex: 1;
    min-width: 0;
}

.recommend-paper-title {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.recommend-paper-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.recommend-paper-title a:hover {
    color: var(--primary-color);
}

.recommend-paper-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
}

.recommend-paper-arxiv {
    color: var(--text-tertiary);
    font-family: monospace;
}

.recommend-paper-repos {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
}

.recommend-paper-authors {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.recommend-paper-summary {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.recommend-repo-toggle,
.recommend-issues-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.recommend-repo-toggle:hover,
.recommend-issues-toggle:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.recommend-toggle-icon {
    transition: transform 0.2s;
}

.recommend-repo-list {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.recommend-repo-item {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 8px;
}

.recommend-repo-item:last-child {
    margin-bottom: 0;
}

.recommend-repo-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.recommend-repo-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
}

.recommend-repo-name:hover {
    color: var(--primary-color);
}

.recommend-repo-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.recommend-repo-stars {
    display: flex;
    align-items: center;
    gap: 3px;
}

.recommend-repo-language {
    padding: 2px 6px;
    background: #e0e7ff;
    color: #4f46e5;
    border-radius: 4px;
    font-size: 11px;
}

.recommend-repo-description {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.recommend-issues-container {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.recommend-issue-item {
    padding: 10px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
}

.recommend-issue-item:last-child {
    margin-bottom: 0;
}

.recommend-issue-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.recommend-issue-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    flex: 1;
}

.recommend-issue-title:hover {
    color: var(--primary-color);
}

.recommend-issue-state {
    flex-shrink: 0;
}

.recommend-issue-number {
    font-size: 12px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.recommend-issue-body {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.recommend-issue-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--text-tertiary);
}

.recommend-no-repos,
.recommend-no-issues {
    font-size: 12px;
    color: var(--text-tertiary);
    padding: 8px 0;
    text-align: center;
}

.recommend-blogs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommend-blog-card {
    display: block;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-decoration: none;
    transition: all 0.2s;
}

.recommend-blog-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.recommend-blog-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.recommend-blog-summary {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommend-blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--text-tertiary);
}

.recommend-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 14px;
}

.recommend-error {
    text-align: center;
    padding: 20px;
    color: #dc2626;
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .recommend-content {
        grid-template-columns: 1fr;
    }

    .recommend-papers-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .recommend-container {
        padding: 16px;
    }

    .recommend-section-header h1 {
        font-size: 22px;
    }

    .recommend-papers-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 用户认证相关样式 ========== */

/* 未登录状态 - 登录按钮 */
.user-not-logged-in {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #E53935 0%, #FF5252 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
    background: linear-gradient(135deg, #C62828 0%, #E53935 100%);
}

.login-btn svg {
    flex-shrink: 0;
}

/* GitHub 按钮 */
.sidebar-github-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.sidebar-github-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

/* Sidebar Language Switch */
.sidebar-lang-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    margin-bottom: 8px;
}

.sidebar-lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
    transition: color 0.2s;
    font-weight: 500;
}

.sidebar-lang-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-lang-btn.active {
    color: white;
    font-weight: 600;
}

.sidebar-lang-divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 2px;
    font-size: 11px;
}

/* 已登录状态 */
.user-logged-in {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-info:hover {
    background: rgba(255,255,255,0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E53935 0%, #FF5252 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.user-name {
    color: white;
    font-size: 14px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu {
    position: absolute;
    bottom: 100%;
    left: 16px;
    right: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: none;
    overflow: hidden;
    margin-bottom: 8px;
    z-index: 100;
}

.user-menu.show {
    display: block;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    font-size: 14px;
}

.user-menu-item:hover {
    background: #f5f5f5;
}

.user-menu-item.logout {
    color: #dc3545;
}

.user-menu-item.logout:hover {
    background: #fef2f2;
}

.user-menu-divider {
    height: 1px;
    background: #eee;
    margin: 4px 0;
}

/* API Key 管理模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.api-key-list {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.api-key-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

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

.api-key-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.api-key-prefix {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
    color: #666;
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.api-key-meta {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.api-key-actions {
    display: flex;
    gap: 8px;
    margin-left: 12px;
}

.api-key-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-copy {
    background: #007bff;
    color: white;
}

.btn-copy:hover {
    background: #0056b3;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

.api-key-create {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.api-key-create h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #333;
}

.api-key-create .form-group {
    display: flex;
    gap: 10px;
}

.api-key-create input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.api-key-create input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.api-key-create .btn-primary {
    background: linear-gradient(135deg, #1E3A5F 0%, #3D5A80 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.api-key-create .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.3);
}

.no-api-keys {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

/* 新创建的 API Key 显示样式 */
.new-api-key-banner {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    animation: slideIn 0.3s ease;
}

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

.new-key-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: #155724;
}

.new-key-header .btn-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #155724;
    padding: 0;
    line-height: 1;
}

.new-key-header .btn-close:hover {
    color: #0d4a1a;
}

.new-key-info {
    font-size: 13px;
    color: #155724;
    margin-bottom: 8px;
}

.new-key-value {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.new-key-value code {
    flex: 1;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

.btn-copy-full {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-copy-full:hover {
    background: #218838;
    transform: translateY(-1px);
}

.new-key-warning {
    font-size: 12px;
    color: #856404;
    background: #fff3cd;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Toast 提示样式 */
.auth-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
}

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

/* ========== Skill 页面样式 ========== */
/* 参考 LobsterAI 设计风格 - 深色主题 + 渐变 + 发光效果 */

body.tab-skill .bottom-search-container {
    display: none;
}

body.tab-skill .main-content {
    background: #0f0f1a;
}

.skill-section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10;
}

.skill-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px 60px;
}

.skill-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* ========== Hero 区域 ========== */
.skill-hero {
    position: relative;
    padding: 80px 0 60px;
    text-align: center;
    overflow: hidden;
}

.skill-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.skill-hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(255, 68, 34, 0.15) 0%, rgba(139, 92, 246, 0.1) 30%, transparent 70%);
    filter: blur(60px);
}

.skill-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.skill-hero-content {
    position: relative;
    z-index: 1;
}

.skill-hero-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(255, 68, 34, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 1px solid rgba(255, 68, 34, 0.3);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b4d;
    box-shadow:
        0 0 40px rgba(255, 68, 34, 0.2),
        inset 0 0 30px rgba(255, 68, 34, 0.1);
}

.skill-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.skill-hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.skill-hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.skill-tag-version {
    background: linear-gradient(135deg, rgba(255, 68, 34, 0.2) 0%, rgba(255, 107, 77, 0.2) 100%);
    border: 1px solid rgba(255, 68, 34, 0.3);
    color: #ff6b4d;
}

.skill-tag-type {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.skill-tag-auth {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.skill-tag-author {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.skill-hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.skill-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-stat-value {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #ff6b4d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

/* ========== Section 通用样式 ========== */
.skill-section {
    padding: 0;
}

.skill-section-header {
    margin-bottom: 32px;
}

.skill-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.skill-section-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(255, 68, 34, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 1px solid rgba(255, 68, 34, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b4d;
}

.skill-section-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========== Capabilities 网格 ========== */
.skill-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.skill-capability-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-capability-card:hover {
    border-color: var(--card-color);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skill-capability-card:hover .skill-capability-glow {
    opacity: 1;
}

.skill-capability-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--card-color) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    filter: blur(40px);
    pointer-events: none;
}

.skill-capability-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--card-color) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.skill-capability-content {
    position: relative;
    z-index: 1;
}

.skill-capability-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
}

.skill-capability-name-en {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    display: block;
}

.skill-capability-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.skill-capability-endpoint {
    display: inline-block;
    font-size: 12px;
    color: var(--card-color);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    font-family: 'SF Mono', Monaco, monospace;
}

/* ========== Commands 网格 ========== */
.skill-commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.skill-command-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.skill-command-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 68, 34, 0.3);
}

.skill-command-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.skill-command-name {
    font-size: 14px;
    font-weight: 600;
    color: #ff6b4d;
    background: rgba(255, 68, 34, 0.1);
    padding: 4px 12px;
    border-radius: 8px;
    font-family: 'SF Mono', Monaco, monospace;
}

.skill-command-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.skill-command-example {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    font-size: 12px;
    overflow-x: auto;
}

.skill-command-prompt {
    color: #10b981;
    font-weight: 600;
    flex-shrink: 0;
}

.skill-command-example code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

/* ========== Config 区域 ========== */
.skill-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.skill-config-card {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px;
}

.skill-config-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    flex-shrink: 0;
}

.skill-config-content {
    flex: 1;
}

.skill-config-content h3 {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skill-config-code {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
}

.skill-config-code code {
    flex: 1;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 14px;
    color: #34d399;
}

.skill-copy-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
    flex-shrink: 0;
}

.skill-copy-btn:hover {
    background: rgba(255, 68, 34, 0.1);
    border-color: rgba(255, 68, 34, 0.3);
    color: #ff6b4d;
}

.skill-copy-btn.copied {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.skill-config-deps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-dep-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'SF Mono', Monaco, monospace;
}

/* ========== Skill 页面响应式 ========== */
@media (max-width: 768px) {
    .skill-container {
        padding: 0 16px 40px;
    }

    .skill-hero {
        padding: 60px 0 40px;
    }

    .skill-hero-icon {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    .skill-hero-icon svg {
        width: 36px;
        height: 36px;
    }

    .skill-hero-title {
        font-size: 32px;
    }

    .skill-hero-desc {
        font-size: 15px;
        padding: 0 16px;
    }

    .skill-hero-tags {
        gap: 8px;
    }

    .skill-tag {
        padding: 6px 12px;
        font-size: 12px;
    }

    .skill-hero-stats {
        gap: 40px;
    }

    .skill-stat-value {
        font-size: 28px;
    }

    .skill-section-title {
        font-size: 20px;
    }

    .skill-capabilities-grid {
        grid-template-columns: 1fr;
    }

    .skill-commands-grid {
        grid-template-columns: 1fr;
    }

    .skill-config-grid {
        grid-template-columns: 1fr;
    }

    .skill-config-card {
        flex-direction: column;
    }
}
