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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0f0f2f 100%);
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* 头部 */
.header {
    text-align: center;
    padding: 20px 0 30px;
}

.site-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 12px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #00d4ff, #7b2dff, #ff00e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #888;
    font-size: 14px;
    margin-top: 8px;
}

/* 搜索框 */
.search-box {
    position: relative;
    margin-bottom: 24px;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: #666;
}

.search-box input:focus {
    border-color: #7b2dff;
    background: rgba(123, 45, 255, 0.1);
    box-shadow: 0 0 20px rgba(123, 45, 255, 0.2);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

/* 分类标签 */
.categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: rgba(123, 45, 255, 0.5);
    color: #fff;
}

.category-btn.active {
    background: linear-gradient(135deg, #7b2dff, #00d4ff);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

/* DAPP网格 */
.dapp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

/* DAPP卡片 */
.dapp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

/* 状态标签 */
.dapp-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
}

.dapp-tag.coming {
    background: linear-gradient(135deg, #ff6b35, #f7931a);
    color: #fff;
}

.dapp-tag.expired {
    background: rgba(255, 255, 255, 0.2);
    color: #999;
}

.dapp-tag.expiring {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
}

.dapp-tag.hot {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
}

.dapp-tag.download {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: #fff;
}

.dapp-card:hover {
    transform: translateY(-4px);
    background: rgba(123, 45, 255, 0.1);
    border-color: rgba(123, 45, 255, 0.3);
    box-shadow: 0 8px 30px rgba(123, 45, 255, 0.2);
}

.dapp-card.hidden {
    display: none;
}

.dapp-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, rgba(123, 45, 255, 0.2), rgba(0, 212, 255, 0.2));
    border-radius: 50%;
    margin-bottom: 12px;
    overflow: hidden;
}

.dapp-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dapp-info {
    text-align: center;
}

.dapp-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dapp-info p {
    font-size: 12px;
    color: #888;
}

/* 底部 */
.footer {
    text-align: center;
    padding: 40px 0 20px;
    color: #555;
    font-size: 12px;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dapp-card {
    animation: fadeIn 0.4s ease forwards;
}

.dapp-card:nth-child(1) { animation-delay: 0.05s; }
.dapp-card:nth-child(2) { animation-delay: 0.1s; }
.dapp-card:nth-child(3) { animation-delay: 0.15s; }
.dapp-card:nth-child(4) { animation-delay: 0.2s; }
.dapp-card:nth-child(5) { animation-delay: 0.25s; }
.dapp-card:nth-child(6) { animation-delay: 0.3s; }

/* 无结果提示 */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results span {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}
