:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --dark: #0f172a;
    --darker: #0b1120;
    --light: #f1f5f9;
    --gray: #94a3b8;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --card-bg: rgba(15, 23, 42, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: var(--light);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* 头部样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.logo span {
    color: var(--gray);
    font-weight: 300;
    font-size: 16px;
    margin-left: 10px;
}

/* 主标题和搜索 */
.main-header {
    text-align: center;
    margin: 40px 0 50px;
    position: relative;
}

.main-header h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #8b5cf6, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(139, 92, 246, 0.2);
}

.main-header p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--gray);
    font-size: 18px;
    line-height: 1.8;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 16px 60px 16px 25px;
    color: white;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-box button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--gray);
    font-size: 20px;
    cursor: pointer;
}

/* 工具分类 */
.categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0 30px;
    flex-wrap: wrap;
}

.category-btn {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
}

.category-btn.active, .category-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 工具网格 */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform: translateY(0);
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
}

.tool-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.airdrop .tool-icon { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), transparent); color: var(--danger); }
.sweep .tool-icon { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), transparent); color: var(--success); }
.approve .tool-icon { background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), transparent); color: var(--primary); }
.deploy .tool-icon { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), transparent); color: var(--warning); }
.multi .tool-icon { background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), transparent); color: #8b5cf6; }
.nft .tool-icon { background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), transparent); color: #ec4899; }
.primary .tool-icon { background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), transparent); color: var(--primary); }

.tool-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    color: var(--light);
}

.tool-card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.tool-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.tool-tag {
    background: rgba(30, 41, 59, 0.7);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.view-btn {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.view-btn i {
    transition: transform 0.3s ease;
}

.tool-card:hover .view-btn i {
    transform: translateX(5px);
}

/* 页脚 */
footer {
    text-align: center;
    padding: 40px 0 30px;
    color: var(--gray);
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* 响应式调整 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .main-header h2 {
        font-size: 36px;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card {
        height: auto;
    }
}

/* 背景装饰元素 */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.bg-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(50px);
}

.bg-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    left: 5%;
}

.bg-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: 10%;
    right: 5%;
}

.bg-3 {
    width: 200px;
    height: 200px;
    background: #8b5cf6;
    top: 40%;
    right: 15%;
}

.counter-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin: 30px auto;
    max-width: 800px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.counter-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary);
}

.counters {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.counter-item {
    flex: 1;
    min-width: 150px;
}

.counter-value {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.counter-label {
    color: var(--gray);
    font-size: 16px;
}

/* 公告弹窗 */
.announcement-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.announcement-content {
    background: var(--darker);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-header {
    background: var(--primary);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.announcement-body {
    padding: 30px 20px;
    line-height: 1.8;
    font-size: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.announcement-footer {
    padding: 15px 20px;
    background: rgba(30, 41, 59, 0.5);
    text-align: right;
}

/* 添加到现有文件末尾 */

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a {
    display: block;
    padding: 10px 18px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.pagination a.active {
    background: var(--primary);
    color: white;
}

.pagination .prev, .pagination .next {
    display: flex;
    align-items: center;
    gap: 6px;
}