/* ============================================
   MIDI Hub - Professional Sidebar Layout
   ============================================ */

:root {
    --bg: #0a0a0f;
    --bg-sidebar: #0c0c14;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-hover: rgba(255, 255, 255, 0.06);
    --bg-active: rgba(0, 212, 170, 0.1);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --text: #f0f0f5;
    --text-secondary: #9090a0;
    --text-muted: #606070;
    
    --accent: #00d4aa;
    --accent-blue: #3b82f6;
    --accent-purple: #a855f7;
    --gradient: linear-gradient(135deg, var(--accent), var(--accent-blue));
    
    --sidebar-width: 260px;
    --radius: 8px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
}

/* ============================================
   LAYOUT
   ============================================ */

.layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--gradient);
    border-radius: var(--radius);
    color: white;
    flex-shrink: 0;
}

.brand-text h1 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.brand-text span {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 16px;
}

.search-box input {
    width: 100%;
    padding: 8px 32px 8px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.search-box kbd {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 2px 6px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 10px;
    color: var(--text-muted);
    font-family: inherit;
}

/* Sidebar Nav */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: auto;
    overflow-y: auto;
    padding-right: 4px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-section-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px 4px;
    user-select: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.nav-item.active {
    background: var(--bg-active);
    color: var(--accent);
}

.nav-item span {
    font-size: 16px;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.sidebar-footer p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Top Bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.breadcrumb {
    font-size: 16px;
    font-weight: 600;
}

.top-stats {
    font-size: 12px;
    color: var(--text-muted);
}

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.content-area::-webkit-scrollbar {
    width: 6px;
}

.content-area::-webkit-scrollbar-track {
    background: transparent;
}

.content-area::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.content-area::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* ============================================
   HOME PAGE
   ============================================ */

.welcome-section {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.welcome-section h2 {
    font-size: 20px;
    margin-bottom: 6px;
}

.welcome-section p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Level Legend */
.level-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 12px;
    color: var(--text-secondary);
}

.level-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Featured Section */
.featured-section {
    margin-bottom: 24px;
}

.featured-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.featured-card {
    display: block;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
}

.featured-card:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.featured-card:active {
    transform: translateY(0);
}

.refresh-hint {
    font-size: 12px;
    margin-left: 8px;
    opacity: 0.6;
}

.featured-level {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    color: white;
}

.featured-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    padding-right: 50px;
}

.featured-card p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.featured-cat {
    font-size: 11px;
    color: var(--text-muted);
}

.refresh-hint {
    font-size: 12px;
    margin-left: 8px;
    opacity: 0.6;
}

/* Home Stats */
.home-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-box {
    text-align: center;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Home Tags Section */
.home-tags-section {
    margin-bottom: 24px;
}

.home-tags-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.home-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-tag-item {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.home-tag-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--text);
}

.home-tag-item .tag-count {
    padding: 2px 6px;
    background: var(--bg);
    border-radius: 4px;
    font-size: 10px;
    color: var(--text-muted);
}

/* 等级标签样式 */
.home-tag-item.level-tag {
    background: var(--tag-bg);
    border: 1px solid var(--tag-color);
    color: var(--tag-color);
    font-weight: 500;
}

.home-tag-item.level-tag:hover {
    background: var(--tag-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.home-tag-item.level-tag .tag-icon {
    font-size: 14px;
    margin-right: 4px;
}

.home-tag-item.level-tag .tag-name {
    font-weight: 600;
}

/* Home Tips */
.home-tips {
    margin-bottom: 24px;
}

.home-tips h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.tip-icon {
    font-size: 18px;
}

.tip-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.tip-text kbd {
    padding: 2px 6px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 11px;
    font-family: inherit;
}

/* Quick Access */
.quick-access {
    margin-bottom: 24px;
}

.quick-access h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.quick-card:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.quick-card.beginner {
    border-color: #22c55e40;
}

.quick-card.beginner:hover {
    border-color: #22c55e;
}

.quick-icon {
    font-size: 24px;
}

.quick-name {
    font-size: 13px;
    font-weight: 500;
}

.quick-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   WORKFLOWS PAGE
   ============================================ */

.page-header {
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.page-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.workflows-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.workflow-card-large {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.workflow-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.workflow-icon {
    font-size: 28px;
}

.workflow-header h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.workflow-header p {
    font-size: 12px;
    color: var(--text-secondary);
}

.workflow-steps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.workflow-step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.workflow-step-item:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
    transform: translateX(4px);
}

.step-hint {
    display: block;
    font-size: 11px;
    color: var(--accent);
    margin-top: 6px;
    opacity: 0.8;
}

.workflow-step-item .step-number {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.workflow-step-item .step-content {
    flex: 1;
}

.workflow-step-item .step-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.workflow-step-item .step-desc {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.workflow-step-item .step-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tool-tag {
    padding: 2px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 10px;
    color: var(--text-muted);
}

/* ============================================
   CATEGORIES PAGE
   ============================================ */

.active-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(0, 212, 170, 0.08);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.active-filter span {
    font-size: 12px;
    color: var(--text-secondary);
}

.active-filter .filter-tag {
    padding: 2px 10px;
    background: rgba(0, 212, 170, 0.15);
    border-radius: 4px;
    font-size: 12px;
    color: var(--accent);
}

.active-filter button {
    margin-left: auto;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
}

.active-filter button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.category-section {
    margin-bottom: 24px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.category-header .icon {
    font-size: 24px;
}

.category-info {
    flex: 1;
}

.category-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.category-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.level-badge-small {
    padding: 3px 10px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 11px;
}

.site-count {
    font-size: 12px;
    color: var(--text-muted);
}

.subcategory {
    margin-bottom: 16px;
}

.subcategory:last-child {
    margin-bottom: 0;
}

.subcategory-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 10px;
}

.subcategory-desc {
    color: var(--text-muted);
    font-weight: normal;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.site-card {
    display: block;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.site-card:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
}

.site-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.site-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 10px;
}

.site-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.site-tag {
    padding: 3px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.site-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.site-tag.active {
    background: rgba(0, 212, 170, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================
   TAGS PAGE
   ============================================ */

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tag-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--text);
}

.tag-item .count {
    padding: 2px 8px;
    background: var(--bg);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.tag-item.hot {
    background: rgba(0, 212, 170, 0.1);
    border-color: rgba(0, 212, 170, 0.3);
    color: var(--text);
}

/* ============================================
   ENHANCED TAGS
   ============================================ */

.tags-categories {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tags-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.tags-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tags-section.hot h3 {
    color: #f59e0b;
}

.tags-section.common h3 {
    color: #3b82f6;
}

.tags-section.other h3 {
    color: var(--text-muted);
}

.tags-cloud.enhanced {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item.enhanced {
    padding: 10px 16px;
    background: var(--tag-bg, rgba(0, 212, 170, 0.1));
    border: 1px solid var(--tag-color, var(--accent));
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--tag-color, var(--accent));
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tag-item.enhanced:hover {
    background: var(--tag-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tag-item.enhanced .tag-icon {
    font-size: 16px;
}

.tag-item.enhanced .tag-name {
    font-weight: 500;
}

.tag-item.enhanced .tag-count {
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* ============================================
   NO RESULTS
   ============================================ */

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results-icon {
    font-size: 40px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ============================================
   RESPONSIVE - 已移至文件末尾移动端优化区域
   ============================================ */

/* ============================================
   FILTER SECTION - 快速筛选区
   ============================================ */

.filter-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.filter-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.filter-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-label {
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 6px;
    min-width: 50px;
    flex-shrink: 0;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-btn {
    padding: 6px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--text);
}

.filter-btn.active {
    background: rgba(0, 212, 170, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

/* 价格筛选按钮特殊样式 */
.filter-btn.price-free {
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.filter-btn.price-free:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
}

.filter-btn.price-freemium {
    border-color: rgba(245, 158, 11, 0.4);
    color: #f59e0b;
}

.filter-btn.price-freemium:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
}

.filter-btn.price-paid {
    border-color: rgba(168, 85, 247, 0.4);
    color: #a855f7;
}

.filter-btn.price-paid:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: #a855f7;
}

.filter-btn.price-sub {
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

.filter-btn.price-sub:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

/* 难度筛选按钮 */
.filter-btn.level-beginner {
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.filter-btn.level-beginner:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
}

.filter-btn.level-intermediate {
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

.filter-btn.level-intermediate:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.filter-btn.level-pro {
    border-color: rgba(168, 85, 247, 0.4);
    color: #a855f7;
}

.filter-btn.level-pro:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: #a855f7;
}

/* 筛选提示文字 */
.filter-hint {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: normal;
    margin-left: 8px;
}

/* ============================================
   WORKFLOW FILTERS - 工作流程筛选
   ============================================ */

.workflow-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.workflow-filters .filter-label {
    padding-top: 0;
    min-width: auto;
}

.workflow-filters .filter-btn {
    padding: 5px 12px;
}

/* ============================================
   TAGS FILTER DIMENSIONS - 标签多维度分组
   ============================================ */

.tags-filter-dims {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tags-dim-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
}

.tags-dim-group h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   CATEGORY MINI - 迷你分类推荐
   ============================================ */

.category-recommendations {
    margin-bottom: 24px;
}

.category-recommendations h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.category-section-mini {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.category-section-mini:last-child {
    border-bottom: none;
}

.category-header-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.category-header-mini .icon {
    font-size: 18px;
}

.category-header-mini h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.category-header-mini h4:hover {
    color: var(--accent);
}

.sites-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    padding-left: 26px;
}

.site-card-mini {
    display: block;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.site-card-mini:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.site-card-mini h5 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.site-card-mini p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* ============================================
   MAIN FOOTER - 页面底部版权
   ============================================ */

.main-footer {
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.main-footer p {
    font-size: 12px;
    color: var(--text-muted);
}

.desktop-only {
    display: block;
}

/* ============================================
   MOBILE RESPONSIVE - 移动端优化
   ============================================ */

@media (max-width: 768px) {
    body {
        overflow: auto;
    }
    
    /* 移动端隐藏的元素 */
    .mobile-hidden {
        display: none !important;
    }
    
    .layout {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    
    /* 侧边栏在移动端变为顶部导航栏 */
    .sidebar {
        width: 100%;
        height: auto;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 12px;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .brand {
        margin-bottom: 12px;
    }
    
    .brand-text h1 {
        font-size: 16px;
    }
    
    .brand-text span {
        font-size: 11px;
    }
    
    .search-box {
        margin-bottom: 12px;
    }
    
    /* 导航简化 - 横向滚动 */
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-section {
        flex-direction: row;
        gap: 4px;
        flex-shrink: 0;
    }
    
    .nav-section-title {
        display: none;
    }
    
    .nav-item {
        flex: 0 0 auto;
        min-width: auto;
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .nav-item span {
        margin-right: 4px;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    /* 主内容区域调整 */
    .main-content {
        padding: 12px;
    }
    
    .top-bar {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .top-stats {
        font-size: 12px;
    }
    
    /* 首页内容调整 */
    .welcome-section {
        padding: 16px;
    }
    
    .welcome-section h2 {
        font-size: 18px;
    }
    
    .home-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-card {
        padding: 12px;
    }
    
    .quick-icon {
        font-size: 20px;
    }
    
    /* 筛选区简化 */
    .filter-section {
        padding: 12px;
    }
    
    .filter-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-label {
        min-width: auto;
        padding-top: 0;
    }
    
    .filter-options {
        gap: 6px;
    }
    
    .filter-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    /* 分类页面简化 */
    .category-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .category-header .icon {
        font-size: 20px;
    }
    
    .category-info h3 {
        font-size: 14px;
    }
    
    .category-desc {
        font-size: 11px;
    }
    
    .subcategory-title {
        font-size: 12px;
    }
    
    .sites-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .site-card {
        padding: 12px;
    }
    
    .site-card h4 {
        font-size: 13px;
    }
    
    .site-card p {
        font-size: 11px;
    }
    
    .site-tag {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    /* 工作流程页面简化 */
    .workflows-container {
        grid-template-columns: 1fr;
    }
    
    .workflow-card-large {
        padding: 12px;
    }
    
    .workflow-icon {
        font-size: 24px;
    }
    
    .workflow-header h3 {
        font-size: 14px;
    }
    
    /* 标签页面简化 */
    .tag-item.enhanced {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .tag-item.enhanced .tag-icon {
        font-size: 14px;
    }
    
    /* 底部版权 */
    .main-footer {
        margin-top: 24px;
        padding: 16px;
    }
    
    .main-footer p {
        font-size: 11px;
    }
}

/* ============================================
   CATEGORY NAVIGATION BAR
   ============================================ */

.category-nav-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}

.category-nav-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.category-nav-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.category-nav-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--text);
}

.category-nav-item .nav-icon {
    font-size: 14px;
}

.category-nav-item .nav-name {
    white-space: nowrap;
}
