/* 农场页面专用样式 */

.farms-container {
    margin-top: 40px;
}

/* 农场统计 */
.farms-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

/* 农场筛选 */
.farms-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    background: #f8f9fa;
    padding: 4px;
    border-radius: 8px;
}

.filter-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-tab.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-options select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
}

/* 农场网格 */
.farms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.farm-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.farm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.farm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.farm-tokens {
    display: flex;
    gap: -8px;
}

.farm-tokens .token-icon {
    margin-left: -8px;
    border: 2px solid white;
}

.farm-tokens .token-icon:first-child {
    margin-left: 0;
}

.farm-info {
    flex: 1;
}

.farm-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.farm-multiplier {
    font-size: 12px;
    color: #667eea;
    font-weight: 500;
}

.farm-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.farm-status i {
    font-size: 8px;
}

.farm-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row span:first-child {
    color: #666;
}

.detail-value {
    color: #333;
    font-weight: 500;
}

.farm-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.farm-actions .btn {
    flex: 1;
    min-width: 80px;
    padding: 8px 12px;
    font-size: 14px;
}

/* 质押模态框 */
.stake-content {
    padding: 20px 0;
}

.balance-info {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .farms-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .farms-stats {
        grid-template-columns: 1fr;
    }
    
    .farms-filters {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .farm-actions {
        flex-direction: column;
    }
    
    .farm-actions .btn {
        flex: none;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .farm-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
