/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #1a1a1a;
    line-height: 1.6;
}

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

/* 导航栏 */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.brand-link:hover {
    text-decoration: none;
    color: inherit;
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-left: 8px;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #1a1a1a;
    background: #f3f4f6;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-actions .btn {
    height: 32px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 钱包连接按钮样式 */
.wallet-connect-btn {
    position: relative;
    min-width: 120px;
}

.wallet-connect-btn.connected {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-address {
    font-size: 12px;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.wallet-disconnect-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.wallet-disconnect-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.wallet-disconnect-btn i {
    font-size: 10px;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 14px;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
    border: 1px solid #1a1a1a;
}

.btn-primary:hover {
    background: #374151;
    border-color: #374151;
}

.btn-outline {
    background: transparent;
    color: #303030;
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background: #171717;
    color: #fff;
    border-color: #9ca3af;
}

.btn-white {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.btn-white:hover {
    background: #ffffff !important;
    color: #1a1a1a !important;
    border-color: #ffffff !important;
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 600;
}

/* 主要内容 */
.main-content {
    margin-top: 100px;
    min-height: calc(100vh - 80px);
}

/* 农场筛选区域 */
.farms-container .card {
    margin-bottom: 40px;
}


/* 英雄区域 */
.hero {
    /* background: #ffffff; */
    background-image: url(https://web3.okx.com/cdn/oksupport/common/dot.e002e0ad0b481f.png);
    background-size: 20px auto;
    background-repeat: repeat;
    padding: 100px 0;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 40px;
}

.hero-actions .btn {
    min-width: auto;
    width: auto;
    padding: 16px 32px;
}

/* 社交媒体链接 */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-link i {
    font-size: 20px;
}

/* 功能区域 */
.features {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #1a1a1a;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #1a1a1a;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.feature-card p {
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

.feature-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.feature-link:hover {
    color: #374151;
}

/* 统计数据 */
.stats {
    background: #ffffff;
    padding: 80px 0;
    color: #1a1a1a;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.stat-label {
    font-size: 1.1rem;
    color: #6b7280;
}

/* 页脚 */
.footer {
    background-image: url(https://web3.okx.com/cdn/oksupport/common/dot.e002e0ad0b481f.png);
    background-size: 20px auto;
    background-repeat: repeat;
    color: #6b7280;
    padding: 60px 0 20px;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #1a1a1a;
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
}

/* 移动端菜单样式 */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

/* 确保桌面端不显示移动端菜单按钮 */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    .mobile-lang-btn {
        display: none !important;
    }
}

.mobile-menu-btn {
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
}

.mobile-menu-btn:hover {
    background: #000000;
}

.mobile-menu-btn i {
    font-size: 16px;
}

.mobile-lang-btn {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e5e7eb;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: none;
    min-width: auto;
    white-space: nowrap;
    height: 32px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.mobile-lang-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.mobile-menu-close:hover {
    background: #e5e7eb;
    color: #1a1a1a;
}

.mobile-menu-links {
    flex: 1;
    padding: 20px 0;
}

.mobile-menu-social {
    padding: 20px;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
    display: flex;
    gap: 16px;
    justify-content: center;
}

.mobile-social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.mobile-social-link:hover {
    color: #1a1a1a;
    text-decoration: none;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-social-link i {
    font-size: 24px;
}

.mobile-social-link span {
    font-size: 12px;
    font-weight: 500;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-link {
    display: block;
    padding: 16px 0 16px 20px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    color: #1a1a1a;
    text-decoration: none;
    background: #f9fafb;
    padding-left: 32px;
}

.mobile-menu-link.active {
    color: #1a1a1a;
    font-weight: 600;
    background: #f3f4f6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .mobile-lang-btn {
        display: flex !important;
    }
    
    .nav-actions {
        gap: 8px;
    }
    
    .nav-actions .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .nav-actions .mobile-lang-btn {
        padding: 6px 8px;
        font-size: 11px;
        min-width: 50px;
        height: 32px;
    }
    
    .nav-actions .mobile-menu-btn {
        width: 32px;
        height: 32px;
        padding: 0;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .hero-actions .btn {
        min-width: auto;
        width: auto;
        padding: 16px 28px;
        font-size: 16px;
    }
    
    .social-links {
        gap: 16px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
    
    .social-link i {
        font-size: 18px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        gap: 8px;
    }
    
    .hero-actions .btn {
        padding: 14px 24px;
        font-size: 14px;
        min-width: auto;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link i {
        font-size: 16px;
    }
    
    .nav-actions {
        gap: 6px;
    }
    
    .nav-actions .btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .nav-actions .mobile-lang-btn {
        padding: 5px 6px;
        font-size: 10px;
        min-width: 45px;
        height: 32px;
    }
    
    .nav-actions .mobile-menu-btn {
        width: 32px;
        height: 32px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
