* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ==================== 导航栏样式 ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-area:hover {
    transform: translateY(-2px);
}

.logo-area img {
    height: 48px;
    width: auto;
}

.logo-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: #383838;
    letter-spacing: -0.8px;
    line-height: 1;
    background: linear-gradient(135deg, #383838 0%, #0657C5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtext {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    letter-spacing: 2px;
    line-height: 1;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    background: rgba(6, 87, 197, 0.04);
    padding: 6px;
    border-radius: 50px;
}

.nav-menu a {
    text-decoration: none;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 22px;
    border-radius: 50px;
    display: block;
}

.nav-menu a:hover {
    color: #383838;
    background: rgba(255, 255, 255, 0.8);
}

.nav-menu a.active {
    color: white;
    background: linear-gradient(135deg, #0657C5 0%, #054a9e 100%);
    box-shadow: 0 4px 15px rgba(6, 87, 197, 0.25);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #0657C5 0%, #054a9e 100%);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(6, 87, 197, 0.2);
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(6, 87, 197, 0.35);
}

/* ==================== 英雄区 ==================== */
.hero-section {
    margin-top: 85px;
    min-height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* 背景装饰 */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(6, 87, 197, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 87, 197, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    background-repeat: repeat;
    background-position: 0 0, 0 0;
    animation: gridMove 15s linear infinite;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(6, 87, 197, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(6, 87, 197, 0.08) 0%, transparent 50%);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float var(--duration, 10s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.floating-element:hover {
    opacity: 1;
}

/* 插件拼图图标 */
.plugin-icon { 
    top: 15%; 
    left: 8%; 
    animation: float var(--duration, 8s) ease-in-out infinite, rotate 20s linear infinite;
}

/* 齿轮工具图标 */
.tool-icon { 
    top: 25%; 
    right: 12%; 
    animation: float var(--duration, 10s) ease-in-out infinite, spin 15s linear infinite;
}

/* 代码图标 */
.code-icon { 
    bottom: 35%; 
    left: 15%; 
    animation: float var(--duration, 12s) ease-in-out infinite, pulse 8s ease-in-out infinite;
}

/* 软件包图标 */
.package-icon { 
    bottom: 25%; 
    right: 8%; 
    animation: float var(--duration, 9s) ease-in-out infinite, bounce-soft 6s ease-in-out infinite;
}

/* 扩展图标 */
.extension-icon { 
    top: 55%; 
    left: 45%; 
    animation: float var(--duration, 11s) ease-in-out infinite, glow 10s ease-in-out infinite;
}

/* 主要内容 */
.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 0;
    position: relative;
    z-index: 3;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(6, 87, 197, 0.1);
    color: #0657C5;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(6, 87, 197, 0.2);
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.hero-title-highlight {
    display: block;
    background: linear-gradient(135deg, #0657C5 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 20px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 英雄区搜索 */
.hero-search {
    margin-bottom: 40px;
    position: relative;
    z-index: 5;
}

.hero-search-box {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 60px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 4;
}

.hero-search-box:focus-within {
    box-shadow: 0 20px 60px rgba(6, 87, 197, 0.15);
    border-color: #0657C5;
}

.hero-search-icon {
    width: 24px;
    height: 24px;
    color: #94a3b8;
    margin-left: 20px;
    margin-right: 15px;
}

.hero-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 18px;
    color: #1e293b;
    outline: none;
    padding: 15px 0;
}

.hero-search-input::placeholder {
    color: #94a3b8;
}

.hero-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #0657C5 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6, 87, 197, 0.3);
}

/* 热门标签 */
.hero-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 4;
}

.hero-tags-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.hero-tag {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-tag:hover {
    background: #0657C5;
    color: white;
    border-color: #0657C5;
    transform: translateY(-2px);
}

/* 统计数据 */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #0657C5;
    margin-bottom: 5px;
    line-height: 1;
}

.hero-stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #64748b;
    animation: bounce 2s infinite;
}

.scroll-indicator-line {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, #64748b);
}

.scroll-indicator-text {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator-arrow {
    width: 20px;
    height: 20px;
}

/* 动画 */
@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* 新增图标动画 */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes bounce-soft {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes glow {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(6, 87, 197, 0.3));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(6, 87, 197, 0.6));
        transform: scale(1.1);
    }
}

/* ==================== 搜索和筛选区 ==================== */
.filter-section {
    background: white;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 85px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px 40px;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 8px 20px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    background: #e9ecef;
    color: #333;
}

.filter-tag.active {
    background: linear-gradient(135deg, #0657C5 0%, #054a9e 100%);
    color: white;
    border-color: #0657C5;
}

.sort-select {
    padding: 8px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.sort-select:hover {
    border-color: #0657C5;
}

.sort-select:focus {
    border-color: #0657C5;
    background: white;
}

/* ==================== 插件网格区 ==================== */
.plugins-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 40px 80px;
}

.section-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.result-count {
    font-size: 16px;
    color: #666;
}

.result-count strong {
    color: #0657C5;
    font-weight: 700;
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
}

.view-btn:hover {
    border-color: #0657C5;
    background: #f8f9fa;
}

.view-btn.active {
    border-color: #0657C5;
    background: #0657C5;
    color: white;
}

.view-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.plugins-grid.list-view {
    grid-template-columns: 1fr;
}

/* ==================== 插件卡片样式 ==================== */
.plugin-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.plugin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #0657C5;
}

.plugins-grid.list-view .plugin-card {
    flex-direction: row;
}

.plugins-grid.list-view .plugin-card:hover {
    transform: translateX(5px);
}

.plugin-image-container {
    position: relative;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.plugins-grid.list-view .plugin-image-container {
    min-width: 250px;
    min-height: 150px;
}

.plugin-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plugin-badge.new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.plugin-badge.hot {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.plugin-logo {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.plugin-card:hover .plugin-logo {
    transform: scale(1.1);
}

.plugin-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.plugin-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.plugin-header {
    margin-bottom: 15px;
}

.plugin-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.plugin-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.plugin-category {
    font-size: 13px;
    color: #0657C5;
    background: rgba(6, 87, 197, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
}

.plugin-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.plugin-rating svg {
    width: 16px;
    height: 16px;
    fill: #fbbf24;
}

.plugin-rating-number {
    font-weight: 600;
    color: #333;
}

.plugin-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.plugin-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.plugin-price-tag {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.plugin-price-label {
    font-size: 12px;
    color: #999;
}

.plugin-price {
    font-size: 24px;
    font-weight: 800;
    color: #0657C5;
}

.plugin-detail-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #0657C5 0%, #054a9e 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.plugin-detail-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(6, 87, 197, 0.3);
}

.plugin-detail-btn svg {
    width: 16px;
    height: 16px;
}

/* ==================== 工具类 ==================== */
.hidden {
    display: none !important;
}

/* ==================== 加载指示器 ==================== */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 60px 20px;
    margin-top: 30px;
}

/* 加载动画容器 */
.loading-animation {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 跳动的点 */
.loading-dots {
    position: absolute;
    display: flex;
    gap: 12px;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #0657C5 0%, #3b82f6 100%);
    border-radius: 50%;
    animation: bounce-dot 1.4s ease-in-out infinite;
}

.dot-1 {
    animation-delay: 0s;
}

.dot-2 {
    animation-delay: 0.2s;
}

.dot-3 {
    animation-delay: 0.4s;
}

@keyframes bounce-dot {
    0%, 80%, 100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    40% {
        transform: translateY(-30px) scale(1.2);
        opacity: 0.8;
    }
}

/* 旋转的插件图标 */
.loading-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate-pulse 3s ease-in-out infinite;
    z-index: 1;
}

.loading-icon svg {
    width: 60px;
    height: 60px;
    color: #0657C5;
    filter: drop-shadow(0 4px 12px rgba(6, 87, 197, 0.3));
}

@keyframes rotate-pulse {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 1;
    }
}

/* 加载文字 */
.loading-text {
    font-size: 18px;
    color: #475569;
    font-weight: 600;
    animation: fade-pulse 2s ease-in-out infinite;
}

@keyframes fade-pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* 进度条 */
.loading-progress {
    width: 200px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0657C5 0%, #3b82f6 50%, #0657C5 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progress-slide 1.5s ease-in-out infinite;
}

@keyframes progress-slide {
    0% {
        width: 0%;
        background-position: 0% 50%;
    }
    50% {
        width: 100%;
        background-position: 100% 50%;
    }
    100% {
        width: 0%;
        background-position: 0% 50%;
    }
}

/* ==================== 已加载全部提示 ==================== */
.all-loaded {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 60px 20px;
    margin-top: 30px;
    position: relative;
}

/* 成功动画容器 */
.success-animation {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 成功圆圈 */
.success-circle {
    width: 50px;
    height: 50px;
    position: relative;
    animation: scale-in 0.5s ease-out;
}

@keyframes scale-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 勾选标记 */
.checkmark {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #10b981;
    stroke-miterlimit: 10;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke: #10b981;
    fill: #d1fae5;
    animation: stroke-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #10b981;
    stroke-width: 2;
    animation: stroke-check 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke-circle {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes stroke-check {
    100% {
        stroke-dashoffset: 0;
    }
}

/* 彩纸动画 */
.confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 12px;
    border-radius: 2px;
    opacity: 0;
    animation: confetti-fall 1.5s ease-out forwards;
}

.confetti-piece:nth-child(1) {
    background: #ef4444;
    left: 10%;
    animation-delay: 0.1s;
}

.confetti-piece:nth-child(2) {
    background: #3b82f6;
    left: 30%;
    animation-delay: 0.2s;
}

.confetti-piece:nth-child(3) {
    background: #10b981;
    left: 50%;
    animation-delay: 0.15s;
}

.confetti-piece:nth-child(4) {
    background: #f59e0b;
    left: 70%;
    animation-delay: 0.25s;
}

.confetti-piece:nth-child(5) {
    background: #8b5cf6;
    left: 20%;
    animation-delay: 0.3s;
}

.confetti-piece:nth-child(6) {
    background: #ec4899;
    left: 80%;
    animation-delay: 0.2s;
}

@keyframes confetti-fall {
    0% {
        top: -20px;
        opacity: 1;
        transform: rotate(0deg);
    }
    100% {
        top: 120px;
        opacity: 0;
        transform: rotate(720deg);
    }
}

/* 成功文字 */
.success-text {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
    animation: bounce-in 0.6s ease-out 0.8s both;
}

.success-subtext {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
    animation: fade-in 0.6s ease-out 1s both;
}

.success-subtext span {
    color: #0657C5;
    font-weight: 700;
}

@keyframes bounce-in {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    60% {
        transform: translateY(-5px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 页脚 ==================== */
footer {
    background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
    padding: 60px 40px 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(6, 87, 197, 0.5), transparent);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    flex: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    font-size: 24px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.footer-tagline {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 400px;
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    gap: 50px;
}

.footer-nav-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-title {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.footer-nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #0657C5;
    transition: width 0.3s ease;
}

.footer-nav-link:hover {
    color: white;
    padding-left: 8px;
}

.footer-nav-link:hover::before {
    width: 100%;
}

.footer-bottom {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-links-inline {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-links-inline a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-links-inline a:hover {
    color: #0657C5;
}

.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-social-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-right: 8px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-link:hover {
    background: #0657C5;
    border-color: #0657C5;
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .plugins-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 968px) {
    .nav-center {
        display: none;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-stats {
        gap: 20px;
        padding: 30px 20px;
    }
    
    .hero-search-box {
        margin: 0 20px 20px;
    }
    
    .hero-tags {
        padding: 0 20px;
    }
    
    /* 筛选区移动端适配 */
    .filter-section {
        position: relative;
        top: 85px;
    }
    
    .filter-container {
        padding: 20px 15px;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .filter-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .filter-label {
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .filter-tags {
        width: 100%;
        gap: 8px;
    }
    
    .filter-tag {
        padding: 10px 16px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    .sort-select {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .plugins-grid {
        grid-template-columns: 1fr;
    }
    
    .plugins-grid.list-view .plugin-card {
        flex-direction: column;
    }
    
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
    
    .footer-nav {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .hero-section {
        min-height: 60vh;
    }
    
    .hero-container {
        padding: 0 20px;
    }
    
    .hero-content {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }
    
    .hero-description {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .hero-search-box {
        margin: 0 0 20px;
        padding: 6px;
    }
    
    .hero-search-input {
        font-size: 16px;
        padding: 12px 0;
    }
    
    .hero-search-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* 筛选区小屏幕优化 */
    .filter-section {
        margin-bottom: 20px;
    }
    
    .filter-container {
        padding: 15px 10px 20px;
    }
    
    .filter-controls {
        gap: 18px;
    }
    
    .filter-label {
        font-size: 14px;
        font-weight: 700;
    }
    
    .filter-tags {
        gap: 6px;
    }
    
    .filter-tag {
        padding: 8px 14px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .sort-select {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* 插件展示区 */
    .plugins-section {
        padding: 30px 10px 60px;
    }
    
    /* 结果信息区 */
    .section-info {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        margin-bottom: 25px;
        padding: 0 5px;
    }
    
    .result-count {
        font-size: 14px;
        flex: 1;
    }
    
    .view-toggle {
        flex-shrink: 0;
    }
    
    .view-btn {
        width: 36px;
        height: 36px;
    }
    
    .view-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .plugins-section {
        padding: 30px 20px 50px;
    }
    
    .section-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 50px;
    }
    
    footer {
        padding: 40px 20px 0;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-left {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-social {
        justify-content: center;
    }
}
