/*
Theme Name: AirdropBank
Theme URI: https://airdropbank.com
Author: AirdropBank Team
Author URI: https://airdropbank.com
Description: 一个专注于加密货币空投项目的WordPress主题，提供优雅的界面和强大的功能。
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: airdropbank
Tags: crypto, airdrop, blockchain, web3, dark-theme
*/

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #14b8a6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0a0e1a;
    --dark-light: #151b2e;
    --dark-lighter: #1f2937;
    --gray: #64748b;
    --light: #f1f5f9;
}

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

html {
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--dark);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: #e2e8f0;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 导航栏 */
.navbar {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    margin: 0;
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.98);
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(99, 102, 241, 0.1);
}

.navbar-brand-wrapper {
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-logo {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.brand-text {
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
}

.nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #fff !important;
}

.nav-link:hover::after {
    width: 60%;
}

/* 分页样式 */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    gap: 0.5rem;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    color: white;
    transform: scale(1.05);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.pagination-dots {
    color: #64748b;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
}

/* 筛选区域 */
.filter-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #0a0e1a 0%, #151b2e 50%, #0a0e1a 100%);
    position: relative;
    overflow: hidden;
}

.filter-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08), transparent 70%);
    top: -150px;
    right: -100px;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.filter-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.06), transparent 70%);
    bottom: -100px;
    left: -75px;
    border-radius: 50%;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.filter-card {
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.95), rgba(31, 41, 55, 0.9));
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

/* PC端横版布局 */
.filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    color: #e2e8f0;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-select, .form-control {
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
    height: 42px;
}

.form-select:focus, .form-control:focus {
    background: rgba(10, 14, 26, 0.9);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
}

.form-select option {
    background: var(--dark-light);
}

/* 空投列表 */
.airdrop-section {
    padding: 4rem 0;
    background: var(--dark);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.airdrop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

.airdrop-card {
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.9), rgba(31, 41, 55, 0.7));
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.airdrop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.airdrop-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.2);
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.project-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    position: relative;
    transition: transform 0.3s ease;
}

.airdrop-card:hover .project-logo {
    transform: rotate(-5deg) scale(1.05);
}

.project-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #fff;
}

.project-info p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0;
}

.card-badges {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.badge-custom {
    padding: 0.6rem 1.3rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-upcoming {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-ended {
    background: rgba(100, 116, 139, 0.2);
    color: var(--gray);
    border: 1px solid rgba(100, 116, 139, 0.4);
}

.badge-chain {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    padding: 1.2rem;
    background: rgba(10, 14, 26, 0.6);
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.stat-box {
    text-align: center;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.3rem;
}

.stat-label-small {
    font-size: 0.85rem;
    color: #94a3b8;
}

.card-footer {
    display: flex;
    gap: 1rem;
}

.btn-view {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem;
    border-radius: 14px;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.5);
    color: white;
}

.btn-bookmark {
    width: 54px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-radius: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-bookmark:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

/* Footer Styles */
.footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid #333;
}

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.copyright p {
    margin: 0;
    color: #cccccc;
    font-size: 14px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #007cba, #00a8e6);
    color: white;
    border: none;
    border-radius: 12px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 124, 186, 0.3);
    backdrop-filter: blur(10px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 124, 186, 0.4);
}

.back-to-top i {
    font-size: 18px;
}

/* Footer Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }
    
    .footer-contact-column {
        grid-column: 1 / -1;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 0;
        margin-top: 60px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .footer-contact-column {
        grid-column: 1 / -1;
        margin-top: 16px;
        padding: 20px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .brand-info h3 {
        font-size: 20px;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-legal .separator {
        display: none;
    }
}

/* 无结果显示 */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.no-results p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 1024px) {
    .filter-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 900px) {
    .filter-row {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .filter-card {
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .site-content {
        padding-top: 80px;
    }
    
    .filter-section {
        padding: 3rem 0 2rem 0;
    }
    
    .filter-card {
        padding: 1.5rem;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        align-items: stretch;
    }
    
    .filter-label {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .form-select, .form-control {
        padding: 1rem;
        height: 48px;
        font-size: 1rem;
    }
    
    .airdrop-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .filter-card {
        padding: 1rem;
    }
    
    .airdrop-card {
        padding: 1rem;
    }
    
    .project-logo {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .project-info h3 {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* WordPress特定样式 */
.site-content {
    padding-top: 100px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: #cbd5e1;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-navigation a:hover {
    color: #fff;
}

.main-navigation a:hover::after {
    width: 60%;
}

/* 分页容器 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* 卡片悬停效果增强 */
.airdrop-card {
    cursor: pointer;
}

.airdrop-card:hover .project-info h3 {
    color: var(--primary);
}

/* 移动端导航 */
@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}