/* 插件展示页面样式 - 基于个人网站 #b5cfee 蓝色配色 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Google Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #202124;
    background: #fafafa;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 简洁导航栏 - 参考dkfile设计 */
.navbar {
    background: #F9FAFB;
    border-bottom: 1px solid #F0F1F2;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.04);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-icon {
    width: 24px;
    height: 24px;
    color: #4A90E2;
}

.nav-brand h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    letter-spacing: -0.02em;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.nav-link {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #4A90E2;
    background: rgba(74, 144, 226, 0.08);
    border-color: rgba(74, 144, 226, 0.2);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
}

/* 插件展示部分 */
.plugins {
    background: #fafafa;
    padding: 48px 0 80px;
}

/* 顶部控制区 - 简洁两栏布局 */
.controls-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 24px;
    flex-wrap: wrap;
}

/* 搜索框 - 右侧位置 */
.search-container {
    flex-shrink: 0;
    width: auto;
    max-width: 300px;
    position: absolute;
    right: 32px;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 24px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
}

.search-input:focus {
    border-color: #4A90E2;
    background: white;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.search-input::placeholder {
    color: #5f6368;
}

/* 分类导航 - Google风格 */
.category-nav {
    display: flex;
    gap: 8px;
    background: white;
    padding: 6px;
    border-radius: 32px;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
    border: 1px solid #e8eaed;
}

.category-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background: transparent;
    color: #5f6368;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    white-space: nowrap;
}

.category-btn:hover {
    color: #202124;
    background: #f8f9fa;
}

.category-btn.active {
    background: #4A90E2;
    color: white;
    box-shadow: 0 1px 3px rgba(74, 144, 226, 0.3);
}

/* 插件网格 */
.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

/* 插件卡片 - Google Material Design */
.plugin-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08), 0 1px 2px rgba(60, 64, 67, 0.16);
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: 1px solid #e8eaed;
    position: relative;
}

.plugin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(60, 64, 67, 0.15), 0 1px 2px rgba(60, 64, 67, 0.3);
}

/* 精选标识 */
.featured-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    z-index: 10;
}

/* 标题行 */
.plugin-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* 插件分类元信息 */
.plugin-meta {
    margin-bottom: 16px;
}

.plugin-category-label {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    color: #1e40af;
    background: #dbeafe;
    border-radius: 0.375rem;
    font-weight: 500;
}

/* 查看插件图标链接 */
.plugin-link-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa0a6;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.plugin-link-icon:hover {
    color: #4A90E2;
    background: rgba(74, 144, 226, 0.08);
}

.plugin-header {
    padding: 24px;
}

.plugin-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.plugin-description {
    color: #5f6368;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 0.875rem;
    margin-top: 0;
}

.plugin-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
}

.plugin-tag {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #95a5a6;
}

/* 标题样式 */
.section-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #202124;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

/* 联系部分 - Google风格 */
.contact {
    background: white;
    padding: 24px 0;
    border-top: 1px solid #e8eaed;
}

.contact-simple {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-simple p {
    font-size: 0.95rem;
    color: #5f6368;
    margin-bottom: 12px;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #202124;
    margin-bottom: 16px;
}

.contact-info a {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: #357ABD;
}

.footer-copyright {
    border-top: 1px solid #e8eaed;
    padding-top: 12px;
    margin-top: 4px;
}

.footer-copyright p {
    color: #9aa0a6 !important;
    font-size: 0.8rem !important;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 0 20px;
        height: 56px;
    }

    .nav-brand h1 {
        font-size: 1.125rem;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .plugins {
        padding: 32px 0 60px;
    }

    .controls-section {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 32px;
    }

    .search-container {
        max-width: none;
        order: 1;
    }

    .category-nav {
        order: 2;
        justify-content: center;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .category-nav::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        flex-shrink: 0;
    }

    .plugins-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .plugin-header {
        padding: 16px;
    }

    .plugin-actions {
        padding: 12px 16px;
    }

    .contact {
        padding: 16px 0;
    }

    .contact-info {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 48px;
    }

    .nav-brand h1 {
        font-size: 1rem;
    }

    .plugins {
        padding: 16px 0 48px;
    }

    .plugin-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .plugin-title {
        font-size: 1.125rem;
    }

    .plugin-description {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .plugin-link {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}

/* 动画和过渡效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

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

/* 隐藏状态 */
.hidden {
    display: none !important;
}