* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header {
    background: #fff;
    padding: 4rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.back-link {
    align-self: flex-end;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: #333;
    border-color: #333;
}

.logo {
    text-align: center;
}

.header h1 {
    font-size: 2rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.main {
    padding: 4rem 0;
}

.intro {
    text-align: center;
    margin-bottom: 3rem;
}

.intro h2 {
    font-size: 1.75rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.intro p {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.search-filter {
    margin-bottom: 3rem;
}

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

#searchInput {
    width: 100%;
    padding: 0.8rem 3rem 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease;
}

#searchInput:focus {
    outline: none;
    border-color: #333;
}

.clear-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.clear-btn:hover {
    color: #333;
}

.filter-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.filter-btn.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.no-results {
    text-align: center;
    padding: 3rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.no-results p {
    color: #666;
    font-size: 1rem;
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.plugin-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 2rem;
    transition: border-color 0.2s ease;
}

.plugin-card:hover {
    border-color: #999;
}

.plugin-card.hidden {
    display: none;
}

.plugin-header {
    margin-bottom: 2rem;
}

.plugin-header h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.tag {
    display: inline-block;
    background: #f5f5f5;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 400;
}

.download-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fafafa;
    border-left: 3px solid #333;
}

.file-name {
    font-family: "Menlo", "Monaco", "Consolas", monospace;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.install-command {
    display: block;
    font-family: "Menlo", "Monaco", "Consolas", monospace;
    font-size: 0.85rem;
    color: #333;
    background: #fff;
    padding: 1rem;
    border: 1px solid #ddd;
    cursor: pointer;
    user-select: all;
}

.install-command:hover {
    background: #f5f5f5;
}

.download-btn {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    border: none;
}

.download-btn:hover {
    background: #333;
}

.usage-section {
    margin-bottom: 0;
}

.usage-section h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.usage-section p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.usage-section code {
    font-family: "Menlo", "Monaco", "Consolas", monospace;
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9rem;
    color: #333;
}

.methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.method {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 400;
    color: #fff;
}

.method.qq { background: #12b7f5; }
.method.wechat { background: #07c160; }
.method.alipay { background: #1677ff; }
.method.weibo { background: #e6162d; }
.method.baidu { background: #2932e1; }
.method.huawei { background: #c7000b; }
.method.dingtalk { background: #0089ff; }
.method.google { background: #4285f4; }
.method.microsoft { background: #00a4ef; }
.method.facebook { background: #1877f2; }
.method.twitter { background: #1da1f2; }

.footer {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #333;
}

.copyright-info {
    max-width: 800px;
    margin: 0 auto;
}

.copyright-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.copyright-detail {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.8rem;
}

.footer-links {
    font-size: 0.9rem;
    color: #888;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: #333;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .header {
        padding: 3rem 0;
    }
    
    .header h1 {
        font-size: 1.75rem;
    }
    
    .main {
        padding: 3rem 0;
    }
    
    .intro h2 {
        font-size: 1.5rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .plugins-grid {
        grid-template-columns: 1fr;
    }
    
    .plugin-card {
        padding: 1.5rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 2rem 0;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .header-content {
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .intro h2 {
        font-size: 1.25rem;
    }
    
    .intro p {
        font-size: 0.95rem;
    }
    
    .stats {
        padding: 1.5rem;
    }
    
    .filter-box {
        gap: 0.4rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .plugin-card {
        padding: 1.25rem;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

::selection {
    background: #333;
    color: #fff;
}

::-moz-selection {
    background: #333;
    color: #fff;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1a1a1a;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}
