/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: #2563eb;
    font-weight: bold;
    border-bottom: 5px solid;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.primary-btn {
    background-color: #2563eb;
    color: #fff;
}

.primary-btn:hover {
    background-color: #1d4ed8;
    color: #fff;
}

.secondary-btn {
    background-color: #64748b;
    color: #fff;
}

.secondary-btn:hover {
    background-color: #475569;
    color: #fff;
}

.card-btn {
    background-color: #f3f4f6;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.card-btn:hover {
    background-color: #e0e7ff;
    color: #1d4ed8;
}

/* 英雄区样式 */
.hero {
    background-color: #1e3a8a;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    margin: 0 10px;
}

/* 插件预览区样式 */
.plugins-preview {
    padding: 80px 0;
}

.plugins-preview h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #2d3748;
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 强制一行4列 */
    gap: 20px; /* 缩小间距，适配4列布局 */
}

.plugin-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.plugin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.plugin-card-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.plugin-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.plugin-card p {
    color: #4a5568;
    margin-bottom: 20px;
}

/* 关于我们样式 */
.about, .support {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.about h2, .support h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2d3748;
}

.about p, .support p {
    max-width: 800px;
    margin: 0 auto 20px;
    color: #4a5568;
    text-align: center;
}

/* 页脚样式 */
.footer {
    background-color: #2d3748;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-top>a{
    background-color: #fff;
    padding: 10px;
    border-radius: 20px;
    width: 120px;
    text-align: center;
}
.footer-logo img {
    height: auto;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

/* 插件列表页样式 */
.page-header {
    padding: 40px 0;
    background-color: #fff;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.page-header p {
    color: #4a5568;
}

.plugins-list {
    padding: 0 0 80px;
}

.plugins-list .plugins-grid {
    gap: 40px;
}

.plugin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.plugin-card-body p{
    height: 160px;
}

.plugin-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.plugin-version {
    background-color: #e0e7ff;
    color: #2563eb;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plugin-card-body h3 {
    margin-bottom: 15px;
    color: #2d3748;
}

.plugin-card-body p {
    color: #4a5568;
    margin-bottom: 20px;
}

.plugin-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 插件详情页样式 */
.plugin-header {
    background-color: #fff;
    padding: 40px 0;
    margin-bottom: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.plugin-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.plugin-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.plugin-header-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.plugin-meta h1 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.plugin-meta-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #4a5568;
    font-size: 0.9rem;
}

.plugin-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.plugin-details {
    padding: 0 0 80px;
}

.plugin-tabs {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.tab-content h3 {
    font-size: 1.4rem;
    color: #2d3748;
    margin: 30px 0 15px;
}

.tab-content h4 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.step-list {
    padding-left: 25px;
    margin: 20px 0;
    color: #4a5568;
}

.step-list li {
    margin-bottom: 10px;
}

.step-list li:last-child {
    margin-bottom: 0;
}

code {
    background-color: #f5f5f5;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.faq-list {
    margin: 20px 0;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-question::before {
    content: "?";
    background-color: #2563eb;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

.faq-answer {
    color: #4a5568;
    padding-left: 30px;
}

.changelog-item {
    margin-bottom: 30px;
}

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

.changelog-item h3 {
    color: #2563eb;
    margin-bottom: 10px;
}

.plugin-tabs-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-btn {
    background-color: #f3f4f6;
    color: #4a5568;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.tab-btn:hover {
    background-color: #e2e8f0;
    color: #2d3748;
}

.tab-btn.active {
    background-color: #2563eb;
    color: #fff;
}

/* 响应式样式（手机/平板适配） */
@media (max-width: 768px) {
    /* 导航栏 */
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* 英雄区 */
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero .btn {
        margin: 10px 5px;
        width: 100%;
        max-width: 300px;
    }

    /* 插件卡片 */
    .plugins-grid {
        
    grid-template-columns: repeat(1, 1fr); /* 强制一行4列 */
        gap: 20px;
    }
    .plugin-card {
        padding: 20px;
    }

    /* 插件列表页 */
    .plugin-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .plugin-card-actions {
        flex-direction: column;
    }
    .plugin-card-actions .btn {
        width: 100%;
    }

    /* 插件详情页 */
    .plugin-header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .plugin-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .plugin-meta h1 {
        font-size: 1.8rem;
    }
    .plugin-meta-details {
        gap: 10px;
    }
    .plugin-actions {
        width: 100%;
        flex-direction: column;
    }
    .plugin-actions .btn {
        width: 100%;
    }

    /* 标签页导航 */
    .plugin-tabs-nav {
        justify-content: center;
    }
    .tab-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    /* 功能列表 */
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* 按钮适配 */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* 插件详情页标题 */
    .tab-content h2 {
        font-size: 1.5rem;
    }
    .tab-content h3 {
        font-size: 1.2rem;
    }

    /* FAQ适配 */
    .faq-answer {
        padding-left: 25px;
        font-size: 0.9rem;
    }
}


/* 语言切换样式 - 可加到global.css或页面style标签 */
.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #eee;
}
.language-switch .active-lang {
    color: #ffbb00;
    font-weight: 600;
}
.language-switch .lang-link {
    color: #666;
    text-decoration: none;
}
.language-switch .lang-link:hover {
    color: #0073aa;
}